config

package
v0.0.0-...-b1ee384 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	DryRun                  bool     `json:"DRY_RUN"`
	ProxyUID                string   `json:"PROXY_UID"`
	ProxyGID                string   `json:"PROXY_GID"`
	RedirectDNS             bool     `json:"REDIRECT_DNS"`
	DNSServersV4            []string `json:"DNS_SERVERS_V4"`
	DNSServersV6            []string `json:"DNS_SERVERS_V6"`
	CaptureAllDNS           bool     `json:"CAPTURE_ALL_DNS"`
	OwnerGroupsInclude      string   `json:"OUTBOUND_OWNER_GROUPS_INCLUDE"`
	OwnerGroupsExclude      string   `json:"OUTBOUND_OWNER_GROUPS_EXCLUDE"`
	InboundInterceptionMode string   `json:"INBOUND_INTERCEPTION_MODE"`
	InboundTProxyMark       string   `json:"INBOUND_TPROXY_MARK"`
	OutboundIPRangesInclude string   `json:"OUTBOUND_IPRANGES_INCLUDE"`
	KubeVirtInterfaces      string   `json:"KUBE_VIRT_INTERFACES"`
}

Command line options nolint: maligned

func DefaultConfig

func DefaultConfig() *Config

func (*Config) FillConfigFromEnvironment

func (c *Config) FillConfigFromEnvironment()

func (*Config) Print

func (c *Config) Print()

func (*Config) String

func (c *Config) String() string

func (*Config) Validate

func (c *Config) Validate() error

Jump to

Keyboard shortcuts

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