options

package
v0.0.0-...-1d5fc45 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultTunnelMetricsPort = 10265
	DefaultProxyMetricsPort  = 10266
	DefaultHealthyProbeAddr  = 10275
	DefaultLocalHost         = "127.0.0.1"
	DefaultMACPrefix         = "aa:0f"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AgentOptions

type AgentOptions struct {
	TunnelOptions
	ProxyOptions
	NodeName           string
	NodeIP             string
	Kubeconfig         string
	MetricsBindAddress string
	HealthProbeAddr    string
	SyncRules          bool
	SyncPeriod         metav1.Duration
}

AgentOptions has the information that required by the raven agent

func (*AgentOptions) AddFlags

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

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

func (*AgentOptions) Config

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

Config return a raven agent config objective

func (*AgentOptions) Validate

func (o *AgentOptions) Validate() error

Validate validates the AgentOptions

type ProxyOptions

type ProxyOptions struct {
	ProxyMetricsAddress      string
	InternalInsecureAddress  string
	InternalSecureAddress    string
	ExternalAddress          string
	ProxyServerCertDNSNames  string
	ProxyServerCertIPs       string
	ProxyServerCertDir       string
	ProxyClientCertDir       string
	InterceptorServerUDSFile string
}

type TunnelOptions

type TunnelOptions struct {
	VPNDriver         string
	VPNPort           string
	RouteDriver       string
	MACPrefix         string
	ForwardNodeIP     bool
	NATTraversal      bool
	KeepAliveInterval int
	KeepAliveTimeout  int
}

Jump to

Keyboard shortcuts

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