Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPBinding ¶
type HTTPBinding struct { Address string TLS []struct { Cert string Key string } ClientCA []struct { Cert string } }
HTTPBinding defines the address that should be bound on and optional tls certificates
func (HTTPBinding) ClientCertificateRequired ¶
func (httpBinding HTTPBinding) ClientCertificateRequired() bool
ClientCertificateRequired returns true if ClientCA's are present
func (HTTPBinding) TLSEnabled ¶
func (httpBinding HTTPBinding) TLSEnabled() bool
TLSEnabled returns true if TLS settings are present
type Settings ¶
type Settings struct { Main struct { RedisHost string RedisPassword string } Listen []HTTPBinding Influxdb struct { Host string Db string User string Password string } Handlers struct { Binary string Cwd string Env map[string]string } Syncthing struct { Port int } }
Settings are the configurable options for the AgentController
func LoadSettingsFromTomlFile ¶
LoadSettingsFromTomlFile does exactly what the name says, it loads a toml in a Settings struct
Click to show internal directories.
Click to hide internal directories.