Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageDataplaneAPIConfiguration ¶
type StorageDataplaneAPIConfiguration struct {
Version *int `yaml:"config_version,omitempty" hcl:"config_version,omitempty"`
Name *string `yaml:"name,omitempty" hcl:"name,omitempty"`
Mode *string `yaml:"mode,omitempty" hcl:"mode,omitempty"`
DeprecatedBootstrapKey *string `yaml:"bootstrap_key,omitempty" hcl:"bootstrap_key,omitempty"`
Status *string `yaml:"status,omitempty" hcl:"status,omitempty"`
Dataplaneapi *configTypeDataplaneapi `yaml:"dataplaneapi,omitempty" hcl:"dataplaneapi,omitempty"`
Haproxy *configTypeHaproxy `yaml:"haproxy,omitempty" hcl:"haproxy,omitempty"`
Cluster *configTypeCluster `yaml:"cluster,omitempty" hcl:"cluster,omitempty"`
ServiceDiscovery *configTypeServiceDiscovery `yaml:"service_discovery,omitempty" hcl:"service_discovery,omitempty"`
Log *configTypeLog `yaml:"log,omitempty" hcl:"log,omitempty"`
LogTargets *Targets `yaml:"log_targets,omitempty" hcl:"log_targets,omitempty"`
}
type StorageHCL ¶
type StorageHCL struct {
// contains filtered or unexported fields
}
func (*StorageHCL) Get ¶
func (s *StorageHCL) Get() *StorageDataplaneAPIConfiguration
func (*StorageHCL) Load ¶
func (s *StorageHCL) Load(filename string) error
type StorageYAML ¶
type StorageYAML struct {
// contains filtered or unexported fields
}
func (*StorageYAML) Load ¶
func (s *StorageYAML) Load(filename string) error
func (*StorageYAML) SaveAs ¶
func (s *StorageYAML) SaveAs(filename string) error
func (*StorageYAML) Set ¶
func (s *StorageYAML) Set(cfg *StorageDataplaneAPIConfiguration)
type Target ¶
type Target struct {
LogTo string `yaml:"log_to,omitempty" description:"Log target, can be stdout, file, or syslog" hcl:"log_to"`
LogFile string `yaml:"log_file,omitempty" description:"Location of the log file" hcl:"log_file"`
LogLevel string `yaml:"log_level,omitempty" description:"Logging level, allowed values: trace|debug|info|warning|error" hcl:"log_level"`
LogFormat string `yaml:"log_format,omitempty" description:"Logging format, allowed values: text|JSON" hcl:"log_format"`
ACLFormat string `` /* 190-byte string literal not displayed */
SyslogAddr string `` /* 207-byte string literal not displayed */
SyslogProto string `` /* 136-byte string literal not displayed */
SyslogTag string `yaml:"syslog_tag,omitempty" description:"String to tag the syslog messages" hcl:"syslog_tag"`
SyslogLevel string `` /* 179-byte string literal not displayed */
SyslogFacility string `` /* 242-byte string literal not displayed */
SyslogMsgID string `yaml:"-"`
LogTypes []string `` /* 141-byte string literal not displayed */
}
Click to show internal directories.
Click to hide internal directories.