options

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ProxyOptions

type ProxyOptions struct {
	Address string

	KubeAPIQPS   float32
	KubeAPIBurst int

	StaticPath string

	TLSEnable  bool
	CACertFile string
	CertFile   string
	KeyFile    string

	Keepalive time.Duration

	Log *logs.Options
}

ProxyOptions have the data required to perform the proxy operation

func NewProxyOptions

func NewProxyOptions() *ProxyOptions

NewProxyOptions creates the options for proxy

func (*ProxyOptions) AddFlags

func (o *ProxyOptions) AddFlags(flags *pflag.FlagSet)

AddFlags adds flags to the specified FlagSet.

func (*ProxyOptions) BuildTLSConfigOrDie added in v0.0.3

func (o *ProxyOptions) BuildTLSConfigOrDie() *tls.Config

func (*ProxyOptions) Complete

func (o *ProxyOptions) Complete() error

Complete adapts from the command line args and factory to the data required.

func (*ProxyOptions) Validate

func (o *ProxyOptions) Validate() field.ErrorList

Validate checks to the ProxyOptions to see if there is sufficient information to run the command.

Jump to

Keyboard shortcuts

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