options

package
v2.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2021 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 ClientOptions

type ClientOptions struct {
	CertFile      string
	KeyFile       string
	CAFile        string
	CertDirectory string
	PairName      string
}

ClientOptions is the options for agent client

func NewClientOptions

func NewClientOptions() *ClientOptions

NewClientOptions creates a new agent ClientOptions object with default values.

func (*ClientOptions) AddFlags

func (s *ClientOptions) AddFlags(fs *pflag.FlagSet)

AddFlags adds flags for ServerRunOptions fields to be specified via FlagSet.

func (*ClientOptions) Config

func (s *ClientOptions) Config(dynamicClient dynamic.Interface) getter.ClientConfig

Config returns agent ClientConfig from options

func (*ClientOptions) MaybeDefaultWithSelfSignedCerts

func (s *ClientOptions) MaybeDefaultWithSelfSignedCerts(publicAddress string) error

MaybeDefaultWithSelfSignedCerts generate self signed cert if they are not set

type Options

func NewOptions

func NewOptions() *Options

NewOptions constructs a new set of default options for proxyserver.

func (*Options) APIServerConfig

func (o *Options) APIServerConfig() (*genericapiserver.Config, error)

func (*Options) AddFlags

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

func (*Options) SetDefaults

func (o *Options) SetDefaults() error

func (*Options) Validate

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

Jump to

Keyboard shortcuts

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