option

package
v0.1.1-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewScheme

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

func ReadManifests

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

Types

type FlagFn

type FlagFn func(*pflag.FlagSet)

func Filenames

func Filenames(verb string, v *[]string) FlagFn

func Freight

func Freight(v *string) FlagFn

func InsecureTLS

func InsecureTLS(v *bool) FlagFn

func LocalServer

func LocalServer(v *bool) FlagFn

func OptionalProject

func OptionalProject(v Optional[string]) FlagFn

func OptionalStage

func OptionalStage(v Optional[string]) FlagFn

type Option

type Option struct {
	InsecureTLS        bool
	LocalServerAddress string
	UseLocalServer     bool

	Project Optional[string]

	IOStreams  *genericclioptions.IOStreams
	PrintFlags *genericclioptions.PrintFlags
}

func NewOption

func NewOption() *Option

type Optional

type Optional[T any] interface {
	pflag.Value

	IsPresent() bool
	Get() (T, bool)
	OrElse(fallback T) T
}

func OptionalBool

func OptionalBool() Optional[bool]

func OptionalString

func OptionalString() Optional[string]

Jump to

Keyboard shortcuts

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