route

package
v0.0.0-...-6a0ee39 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 16, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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

func BuildIngressName(wfName string) string

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

func BuildObjectMeta(ns string, name string, anno map[string]string) metav1.ObjectMeta

helper function to quickly build metav1.ObjectMeta objcet

func Create

func Create(cmd *cobra.Command, args []string)

func Delete

func Delete(cmd *cobra.Command, args []string)

func List

func List(cmd *cobra.Command, args []string)

func Update

func Update(cmd *cobra.Command, args []string)

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL