Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultLogFile = "/tmp/nx-daemon.log" DefaultConfigPath = "netmux.yaml" DefaultIface = "lo" DefaultTokensVaultPath = "/etc/netmux-tokens.yaml" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Address string `json:"address" yaml:"address,omitempty"` Network string `json:"network" yaml:"network"` User string `json:"-" yaml:"user,omitempty"` Cert string `json:"cert" yaml:"cert,omitempty"` Key string `json:"key" yaml:"key,omitempty"` IFace string `json:"iface" yaml:"iface,omitempty"` LogLevel string `json:"logLevel" yaml:"logLevel,omitempty"` LogFormat string `json:"logFormat" yaml:"logFormat,omitempty"` Endpoints Endpoints `json:"endpoints" yaml:"endpoints,omitempty"` }
Config represents the agent central userconfig file.
func (*Config) ContextByName ¶
type Endpoint ¶
type Endpoint struct { Name string `yaml:"name"` Endpoint string `yaml:"endpoint"` Kubernetes portforwarder.KubernetesInfo `yaml:"kubernetes"` }
Click to show internal directories.
Click to hide internal directories.