option

package
v0.4.0-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExactArgs added in v0.2.0

func ExactArgs(n int) cobra.PositionalArgs

ExactArgs is a wrapper around cobra.ExactArgs to additionally print usage string

func Filenames

func Filenames(fs *pflag.FlagSet, filenames *[]string, verb string)

func Freight

func Freight(fs *pflag.FlagSet, freight *string)

func InsecureTLS

func InsecureTLS(fs *pflag.FlagSet, opt *Option)

func LocalServer

func LocalServer(fs *pflag.FlagSet, opt *Option)

func MinimumNArgs added in v0.2.0

func MinimumNArgs(n int) cobra.PositionalArgs

MinimumNArgs is a wrapper around cobra.MinimumNArgs to additionally print usage string

func NewScheme

func NewScheme() (*runtime.Scheme, error)

func Project added in v0.3.0

func Project(fs *pflag.FlagSet, opt *Option, defaultProject string)

func ReadManifests

func ReadManifests(filenames ...string) ([]byte, error)

func Stage added in v0.4.0

func Stage(fs *pflag.FlagSet, stage *string)

func Wait added in v0.4.0

func Wait(fs *pflag.FlagSet, wait *bool)

Types

type Option

type Option struct {
	InsecureTLS        bool
	LocalServerAddress string
	UseLocalServer     bool

	Project string

	IOStreams  *genericclioptions.IOStreams
	PrintFlags *genericclioptions.PrintFlags
}

func NewOption

func NewOption(cfg config.CLIConfig) *Option

Jump to

Keyboard shortcuts

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