config

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeConfig

func DecodeConfig(path string, v *Config) error

func LoadConfig

func LoadConfig(path string, v *Config) error

Types

type Config

type Config struct {
	Debug       bool                `yaml:"debug" json:"debug"`
	Listen      string              `yaml:"listen" json:"listen"`
	Proxy       string              `yaml:"proxy" json:"proxy"`
	WhiteList   WhiteListConfig     `yaml:"white_list" json:"white_list"`
	Upgrade     UpgradeConfig       `yaml:"upgrade" json:"upgrade"`
	SystemAgent *config.AgentConfig `yaml:"systemagent" json:"systemagent"`
	CSIProxy    *csiproxy.Config    `yaml:"csi-proxy" json:"csi-proxy"`
	TLSConfig   *wintls.Config      `yaml:"tls-config" json:"tls-config"`
}

func DefaultConfig

func DefaultConfig() *Config

func (*Config) Validate

func (c *Config) Validate() error

type UpgradeConfig

type UpgradeConfig struct {
	Mode         string `yaml:"mode" json:"mode"`
	WatchingPath string `yaml:"watching_path" json:"watchingPath"`
}

func (*UpgradeConfig) IsWatchingMode

func (c *UpgradeConfig) IsWatchingMode() bool

func (*UpgradeConfig) Validate

func (c *UpgradeConfig) Validate() error

type WhiteListConfig

type WhiteListConfig struct {
	ProcessPaths []string `yaml:"process_paths" json:"processPaths"`
	ProxyPorts   []int    `yaml:"proxy_ports" json:"proxyPorts"`
}

func (*WhiteListConfig) Validate

func (c *WhiteListConfig) Validate() error

Jump to

Keyboard shortcuts

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