cli

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const COMMAND_DELETE = "delete"
View Source
const COMMAND_SET = "set"

Variables

View Source
var (
	KubernetesConfigFlags *genericclioptions.ConfigFlags
)

Functions

func CreateOptions

func CreateOptions(flags *CliFlags, command string, ingressName string) *ingress_rule.Options

func Execute

func Execute(ctx context.Context)

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

Types

type CliFlags

type CliFlags struct {
	Host             *string
	Path             *string
	PathType         *string
	ServiceName      *string
	PortNumber       *int
	IngressClassName *string
	Tls              *string
}
var IngressRuleDeleteConfigFlags *CliFlags
var IngressRuleSetConfigFlags *CliFlags

func AddOptionFlags

func AddOptionFlags(flagSet *pflag.FlagSet, command string) *CliFlags

Jump to

Keyboard shortcuts

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