Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ComponentID ¶
type EnvVarComponentID ¶
type EnvVarProperty ¶
type EnvVarProperty struct { ComponentType string `parser:"'SPLUNK' Underscore 'DISCOVERY' Underscore @('RECEIVERS' | 'EXTENSIONS') Underscore"` Component EnvVarComponentID `parser:"@@"` Type string `parser:"Underscore @('CONFIG'|'ENABLED')"` Key string `parser:"(Underscore @(String|Underscore)+)*"` Val string }
func NewEnvVarProperty ¶
func NewEnvVarProperty(property, val string) (*EnvVarProperty, error)
type File ¶ added in v0.79.0
type File struct { Mapping `mapstructure:"splunk.discovery"` Entries map[string]any `mapstructure:",remain"` }
File is loaded from properties.discovery.yaml and can consist of --set discovery property entries as well as a splunk.discovery: property mapping
type Property ¶
type Property struct { ComponentType string `parser:"'splunk' Dot 'discovery' Dot @('receivers' | 'extensions') Dot"` Component ComponentID `parser:"@@ Dot"` Type string `parser:"((@'config' Dot)|@('enabled'))"` Key string `parser:"@(String|Dot|ForwardSlash)*"` Val string Input string // contains filtered or unexported fields }
Property is the ast for a parsed property. TODO: support rules and resource_attributes instead of just embedded config
func NewProperty ¶
func NewPropertyFromEnvVar ¶
func (*Property) ToEnvVar ¶
ToEnvVar will output the equivalent env var property for informational purposes.
func (*Property) ToStringMap ¶
ToStringMap() will return a map[string]any equivalent to the property's root-level confmap.ToStringMap()
Click to show internal directories.
Click to hide internal directories.