options

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 16 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
	CertDir                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