Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentID ¶
type EnvVarComponentID ¶
type EnvVarProperty ¶
type EnvVarProperty struct { ComponentType string `parser:"'SPLUNK' Underscore 'DISCOVERY' Underscore @('RECEIVERS' | 'EXTENSIONS') Underscore"` Component EnvVarComponentID `parser:"@@"` Key string `parser:"Underscore 'CONFIG' Underscore @(String|Underscore)+"` Val string }
func NewEnvVarProperty ¶
func NewEnvVarProperty(property, val string) (*EnvVarProperty, error)
type Property ¶
type Property struct { ComponentType string `parser:"'splunk' Dot 'discovery' Dot @('receivers' | 'extensions') Dot"` Component ComponentID `parser:"@@"` Key string `parser:"Dot 'config' Dot @(String|Dot|ForwardSlash)+"` Val 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.