Documentation ¶
Index ¶
- Variables
- func BuildIngressName(wfName string) string
- func BuildIngressSpec(path string, wfName string) networkingv1beta1.IngressSpec
- func BuildObjectMeta(ns string, name string, anno map[string]string) metav1.ObjectMeta
- func Create(cmd *cobra.Command, args []string)
- func Delete(cmd *cobra.Command, args []string)
- func List(cmd *cobra.Command, args []string)
- func Update(cmd *cobra.Command, args []string)
- type CreateRoute
- type DeleteRoute
- type ListRoutes
- type UpdateRoute
Constants ¶
This section is empty.
Variables ¶
View Source
var CreateCmd = &cobra.Command{ Use: "create", Aliases: []string{"open", "op", "cret"}, Short: "Create a route for a workflow", Long: "Create a route for a workflow specified by workflow wfn and namespace. For now one route can only match one workflow. Has alias of 'open', 'op' and 'cret'", Run: Create, }
View Source
var DefaultAnno map[string]string
View Source
var DeleteCmd = &cobra.Command{ Use: "delete", Aliases: []string{"del", "remove", "rm"}, Short: "Delete the route of a workflow", Long: "Delete the only route of a workflow specified by wfn and namespace of the workflow. For now one route can only match one workflow. Has alias of 'rm', 'del', 'remove'", Run: Delete, }
View Source
var ListCmd = &cobra.Command{ Use: "list", Short: "List all routes", Long: "List all routes in a namespace if specified, else, list routes in default namespace", Run: List, }
View Source
var UpdateCmd = &cobra.Command{ Use: "update", Short: "Update the route of a workflow", Long: "Update the only route of a workflow specified by wfn and namespace of the workflow. For now one route can only match one workflow.", Run: Update, }
Functions ¶
func BuildIngressName ¶
helper function to quickly build IngressName
func BuildIngressSpec ¶
func BuildIngressSpec(path string, wfName string) networkingv1beta1.IngressSpec
helper function to quickly build networkingv1beta1.IngressSpec object
func BuildObjectMeta ¶
helper function to quickly build metav1.ObjectMeta objcet
Types ¶
type CreateRoute ¶
type CreateRoute struct {
// contains filtered or unexported fields
}
type DeleteRoute ¶
type DeleteRoute struct {
// contains filtered or unexported fields
}
type ListRoutes ¶
type ListRoutes struct {
// contains filtered or unexported fields
}
type UpdateRoute ¶
type UpdateRoute struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.