options

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FeatureOptions added in v1.9.0

type FeatureOptions struct {
	NotFoundCRDProxy bool
}

FeatureOptions contains the options that feature gate.

func NewFeatureOptions added in v1.9.0

func NewFeatureOptions() *FeatureOptions

NewFeatureOptions creates an Options object with default feature parameters.

func (*FeatureOptions) AddFlags added in v1.9.0

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

AddFlags adds flags for log to the specified FlagSet object.

func (*FeatureOptions) ApplyFlags added in v1.9.0

func (o *FeatureOptions) ApplyFlags() []error

ApplyFlags parsing parameters from the command line or configuration file to the options instance.

type Options

Options is the main context object for the TKE platform apiserver.

func NewOptions

func NewOptions(serverName string) *Options

NewOptions creates a new Options with a default config.

func (*Options) AddFlags

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

AddFlags adds flags for a specific server to the specified FlagSet object.

func (*Options) ApplyFlags

func (o *Options) ApplyFlags() []error

ApplyFlags parsing parameters from the command line or configuration file to the options instance.

func (*Options) Complete

func (o *Options) Complete() error

Complete set default Options. Should be called after tke-platform-api flags parsed.

Jump to

Keyboard shortcuts

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