options

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	IOStreams genericclioptions.IOStreams
	LogLevel  string
	Logger    log.LoggerWithInterceptor
	CacheDir  string
	EnvConfig
}

Common describes global configuration options that can be set.

func (*Common) BindFlags

func (o *Common) BindFlags(fs *pflag.FlagSet)

BindFlags binds options from a flag set to Common options.

func (*Common) Init

func (o *Common) Init() error

Init initializes default values for Common options.

type EnvConfig

type EnvConfig struct {
	UOR_DEV_MODE bool // true: show unimplemented stubs in --help
}

EnvConfig stores CLI runtime configuration from environment variables. Struct field names should match the name of the environment variable that the field is derived from.

type Remote

type Remote struct {
	Insecure  bool
	PlainHTTP bool
}

Remote describes remote configuration options that can be set.

func (*Remote) BindFlags

func (o *Remote) BindFlags(fs *pflag.FlagSet)

BindFlags binds options from a flag set to Remote options.

type RemoteAuth

type RemoteAuth struct {
	Configs []string
}

RemoteAuth describes remote authentication configuration options that can be set.

func (*RemoteAuth) BindFlags

func (o *RemoteAuth) BindFlags(fs *pflag.FlagSet)

BindFlags binds options from a flag set to RemoteAuth options.

Jump to

Keyboard shortcuts

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