Documentation ¶
Index ¶
- func GenerateK8SAttrRbacRules(_ logr.Logger, config K8sAttributeConfig) ([]rbacv1.PolicyRule, error)
- func GenerateResourceDetectionRbacRules(_ logr.Logger, config ResourceDetectionConfig) ([]rbacv1.PolicyRule, error)
- func IsRegistered(name string) bool
- func ProcessorFor(name string) components.Parser
- func Register(name string, p components.Parser)
- type Extract
- type FieldExtractConfig
- type K8sAttributeConfig
- type ResourceDetectionConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateK8SAttrRbacRules ¶
func GenerateK8SAttrRbacRules(_ logr.Logger, config K8sAttributeConfig) ([]rbacv1.PolicyRule, error)
func GenerateResourceDetectionRbacRules ¶
func GenerateResourceDetectionRbacRules(_ logr.Logger, config ResourceDetectionConfig) ([]rbacv1.PolicyRule, error)
func IsRegistered ¶
IsRegistered checks whether a parser is registered with the given name.
func ProcessorFor ¶
func ProcessorFor(name string) components.Parser
ProcessorFor returns a parser builder for the given exporter name.
func Register ¶
func Register(name string, p components.Parser)
Register adds a new parser builder to the list of known builders.
Types ¶
type Extract ¶
type Extract struct { Metadata []string `mapstructure:"metadata"` Labels []FieldExtractConfig `mapstructure:"labels"` Annotations []FieldExtractConfig `mapstructure:"annotations"` }
type FieldExtractConfig ¶
type K8sAttributeConfig ¶
type K8sAttributeConfig struct {
Extract Extract `mapstructure:"extract"`
}
K8sAttributeConfig is a minimal struct needed for parsing a valid k8sattribute processor configuration This only contains the fields necessary for parsing, other fields can be added in the future.
type ResourceDetectionConfig ¶
type ResourceDetectionConfig struct {
Detectors []string `mapstructure:"detectors"`
}
ResourceDetectionConfig is a minimal struct needed for parsing a valid resourcedetection processor configuration This only contains the fields necessary for parsing, other fields can be added in the future.
Click to show internal directories.
Click to hide internal directories.