options

package
v0.0.0-...-e0434a4 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2019 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigFileOptions

type ConfigFileOptions struct {
	ConfigFile string
}

func (*ConfigFileOptions) AddFlags

func (o *ConfigFileOptions) AddFlags(fs ctrl.FlagSet)

func (*ConfigFileOptions) ApplyTo

func (o *ConfigFileOptions) ApplyTo(config *trebuchet.ExtraConfig) error

ApplyTo adds ConfigFileOptions to the server configuration.

func (*ConfigFileOptions) Validate

func (o *ConfigFileOptions) Validate() []error

type TrebuchetOptions

type TrebuchetOptions struct {
	LoggingOptions    options.LoggerOptions
	ConfigFileOptions *ConfigFileOptions
}

func NewTrebuchetOptions

func NewTrebuchetOptions() *TrebuchetOptions

func (*TrebuchetOptions) AddFlags

func (o *TrebuchetOptions) AddFlags(fs ctrl.FlagSet)

func (*TrebuchetOptions) ApplyTo

func (o *TrebuchetOptions) ApplyTo(config *trebuchet.ExtraConfig) error

ApplyTo adds CreatorOptions to the server configuration.

func (*TrebuchetOptions) Validate

func (o *TrebuchetOptions) Validate() []error

type TrebuchetServerOptions

type TrebuchetServerOptions struct {
	RecommendedOptions *utilapiserver.RecommendedOptions
	TrebuchetOptions   *TrebuchetOptions
}

func NewTrebuchetServerOptions

func NewTrebuchetServerOptions(processInfo *kubeoptions.ProcessInfo) *TrebuchetServerOptions

NewTrebuchetServerOptions creates default options.

func (*TrebuchetServerOptions) AddFlags

func (o *TrebuchetServerOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags to the flagset.

func (*TrebuchetServerOptions) Complete

func (o *TrebuchetServerOptions) Complete() error

Complete fills in missing options.

func (*TrebuchetServerOptions) Config

func (o *TrebuchetServerOptions) Config() (*apiserver.Config, error)

Config returns a configuration.

func (*TrebuchetServerOptions) Validate

func (o *TrebuchetServerOptions) Validate() error

Validate validates the apiserver options.

Jump to

Keyboard shortcuts

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