Versions in this module Expand all Collapse all v2 v2.1.2 Jul 22, 2022 Changes in this version + const ExtYaml + var ErrInvalidTransform = errors.New("invalid transform config: must have only one of: 'apply', 'scale'") + type CacheSettings struct + Enabled bool + TTL time.Duration + func (conf *CacheSettings) Log() + type DeviceAlias struct + Name string + Template string + type DeviceInstance struct + Alias *DeviceAlias + Context map[string]string + Data map[string]interface{} + DisableInheritance bool + Handler string + Info string + Output string + SortIndex int32 + Tags []string + Transforms []*TransformConfig + Type string + WriteTimeout time.Duration + type DeviceProto struct + Context map[string]string + Data map[string]interface{} + Handler string + Instances []*DeviceInstance + Tags []string + Transforms []*TransformConfig + Type string + WriteTimeout time.Duration + type Devices struct + Devices []*DeviceProto + Version int + type DynamicRegistrationSettings struct + Config []map[string]interface{} + func (conf *DynamicRegistrationSettings) Log() (err error) + type HealthCheckSettings struct + DisableDefaults bool + func (conf *HealthCheckSettings) Log() + type HealthSettings struct + Checks *HealthCheckSettings + HealthFile string + UpdateInterval time.Duration + func (conf *HealthSettings) Log() + type IDSettings struct + UseCustom []string + UseEnv []string + UseMachineID bool + UsePluginTag bool + func (conf *IDSettings) Log() + type LimiterSettings struct + Burst int + Rate int + func (conf *LimiterSettings) Log() + type ListenSettings struct + Disable bool + func (conf *ListenSettings) Log() + type Loader struct + EnvOverride string + EnvPrefix string + Ext string + FileName string + Name string + SearchPaths []string + func NewYamlLoader(name string) *Loader + func (loader *Loader) AddSearchPaths(paths ...string) + func (loader *Loader) Load(pol policy.Policy) (err error) + func (loader *Loader) Scan(out interface{}) error + type MetricsSettings struct + Enabled bool + func (conf *MetricsSettings) Log() + type NetworkSettings struct + Address string + TLS *TLSNetworkSettings + Type string + func (conf *NetworkSettings) Log() + type Plugin struct + Debug bool + DynamicRegistration *DynamicRegistrationSettings + Health *HealthSettings + ID *IDSettings + Metrics *MetricsSettings + Network *NetworkSettings + Settings *PluginSettings + Version int + func (conf *Plugin) Log() + type PluginSettings struct + Cache *CacheSettings + Limiter *LimiterSettings + Listen *ListenSettings + Mode string + Read *ReadSettings + Transaction *TransactionSettings + Write *WriteSettings + func (conf *PluginSettings) Log() + type ReadSettings struct + Delay time.Duration + Disable bool + Interval time.Duration + QueueSize int + func (conf *ReadSettings) Log() + type TLSNetworkSettings struct + CACerts []string + Cert string + Key string + SkipVerify bool + func (conf *TLSNetworkSettings) Log() + type TransactionSettings struct + TTL time.Duration + func (conf *TransactionSettings) Log() + type TransformConfig struct + Apply string + Scale string + func (c *TransformConfig) Validate() error + type WriteSettings struct + BatchSize int + Delay time.Duration + Disable bool + Interval time.Duration + QueueSize int + func (conf *WriteSettings) Log()