options

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2021 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerOptions

type ServerOptions struct {
	KubeConfig             string
	BindAddr               string
	InsecureBindAddr       string
	CertDNSNames           string
	CertIPs                string
	Version                bool
	EnableIptables         bool
	EnableDNSController    bool
	EgressSelectorEnabled  bool
	IptablesSyncPeriod     int
	DNSSyncPeriod          int
	TunnelAgentConnectPort string
	SecurePort             string
	InsecurePort           string
	MetaPort               string
	ServerCount            int
	ProxyStrategy          string
}

ServerOptions has the information that required by the yurttunel-server

func NewServerOptions

func NewServerOptions() *ServerOptions

NewServerOptions creates a new ServerOptions

func (*ServerOptions) AddFlags

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

AddFlags returns flags for a specific yurttunnel-agent by section name

func (*ServerOptions) Config

func (o *ServerOptions) Config() (*config.Config, error)

func (*ServerOptions) Validate

func (o *ServerOptions) Validate() error

Validate validates the YurttunnelServerOptions

Jump to

Keyboard shortcuts

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