Documentation ¶
Index ¶
- Constants
- type LogConfigTypeClusterIndex
- func (index *LogConfigTypeClusterIndex) DeleteConfig(logConfigKey string) bool
- func (index *LogConfigTypeClusterIndex) GetAll() *control.PipelineConfig
- func (index *LogConfigTypeClusterIndex) GetAllConfigMap() map[string]*TypeClusterPipeConfig
- func (index *LogConfigTypeClusterIndex) GetConfig(logConfigKey string) ([]pipeline.Config, bool)
- func (index *LogConfigTypeClusterIndex) SetConfig(logConfigKey string, p []pipeline.Config, lgc *v1beta1.LogConfig)
- func (index *LogConfigTypeClusterIndex) ValidateAndSetConfig(logConfigKey string, p []pipeline.Config, lgc *v1beta1.LogConfig) error
- type LogConfigTypeNodeIndex
- func (index *LogConfigTypeNodeIndex) DeleteConfig(logConfigKey string) bool
- func (index *LogConfigTypeNodeIndex) GetAll() *control.PipelineConfig
- func (index *LogConfigTypeNodeIndex) GetAllConfigMap() map[string]*TypeNodePipeConfig
- func (index *LogConfigTypeNodeIndex) GetConfig(logConfigKey string) ([]pipeline.Config, bool)
- func (index *LogConfigTypeNodeIndex) SetConfig(logConfigKey string, p []pipeline.Config, lgc *v1beta1.LogConfig)
- func (index *LogConfigTypeNodeIndex) ValidateAndSetConfig(logConfigKey string, p []pipeline.Config, lgc *v1beta1.LogConfig) error
- type LogConfigTypePodIndex
- func (p *LogConfigTypePodIndex) DeletePipeConfigsByLogConfigKey(lgcKey string) bool
- func (p *LogConfigTypePodIndex) DeletePipeConfigsByPodKey(podKey string) bool
- func (p *LogConfigTypePodIndex) GetAllConfigMap() map[string]*TypePodPipeConfig
- func (p *LogConfigTypePodIndex) GetAllGroupByLogConfig(dynamicContainerLog bool) *control.PipelineConfig
- func (p *LogConfigTypePodIndex) GetPipeConfigs(namespace string, podName string, lgcNamespace string, lgcName string) *pipeline.Config
- func (p *LogConfigTypePodIndex) IgnoredPodKeyAndLgcKeys() map[string]struct{}
- func (p *LogConfigTypePodIndex) IsPodUpdated(pod *corev1.Pod) bool
- func (p *LogConfigTypePodIndex) SetConfigs(pod *corev1.Pod, lgcName string, cfg *pipeline.Config, lgc *v1beta1.LogConfig)
- type TypeClusterPipeConfig
- type TypeNodePipeConfig
- type TypePodPipeConfig
Constants ¶
View Source
const ( OverrideLogConfigAnnotation = "logconfig.loggie.io/override" OverrideClusterLogConfigAnnotation = "clusterlogconfig.loggie.io/override" K8sFieldsKey = "@privateK8sFields" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogConfigTypeClusterIndex ¶
type LogConfigTypeClusterIndex struct {
// contains filtered or unexported fields
}
func NewLogConfigTypeLoggieIndex ¶
func NewLogConfigTypeLoggieIndex() *LogConfigTypeClusterIndex
func (*LogConfigTypeClusterIndex) DeleteConfig ¶
func (index *LogConfigTypeClusterIndex) DeleteConfig(logConfigKey string) bool
func (*LogConfigTypeClusterIndex) GetAll ¶
func (index *LogConfigTypeClusterIndex) GetAll() *control.PipelineConfig
func (*LogConfigTypeClusterIndex) GetAllConfigMap ¶ added in v1.1.0
func (index *LogConfigTypeClusterIndex) GetAllConfigMap() map[string]*TypeClusterPipeConfig
func (*LogConfigTypeClusterIndex) GetConfig ¶
func (index *LogConfigTypeClusterIndex) GetConfig(logConfigKey string) ([]pipeline.Config, bool)
func (*LogConfigTypeClusterIndex) ValidateAndSetConfig ¶
type LogConfigTypeNodeIndex ¶
type LogConfigTypeNodeIndex struct {
// contains filtered or unexported fields
}
LogConfigTypeNodeIndex stores logConfigKey to pipeline configurations mapping cache for type: Node and type: Vm
func NewLogConfigTypeNodeIndex ¶
func NewLogConfigTypeNodeIndex() *LogConfigTypeNodeIndex
func (*LogConfigTypeNodeIndex) DeleteConfig ¶
func (index *LogConfigTypeNodeIndex) DeleteConfig(logConfigKey string) bool
func (*LogConfigTypeNodeIndex) GetAll ¶
func (index *LogConfigTypeNodeIndex) GetAll() *control.PipelineConfig
func (*LogConfigTypeNodeIndex) GetAllConfigMap ¶ added in v1.1.0
func (index *LogConfigTypeNodeIndex) GetAllConfigMap() map[string]*TypeNodePipeConfig
func (*LogConfigTypeNodeIndex) GetConfig ¶
func (index *LogConfigTypeNodeIndex) GetConfig(logConfigKey string) ([]pipeline.Config, bool)
func (*LogConfigTypeNodeIndex) ValidateAndSetConfig ¶
type LogConfigTypePodIndex ¶
type LogConfigTypePodIndex struct {
// contains filtered or unexported fields
}
func NewLogConfigTypePodIndex ¶
func NewLogConfigTypePodIndex() *LogConfigTypePodIndex
func (*LogConfigTypePodIndex) DeletePipeConfigsByLogConfigKey ¶
func (p *LogConfigTypePodIndex) DeletePipeConfigsByLogConfigKey(lgcKey string) bool
func (*LogConfigTypePodIndex) DeletePipeConfigsByPodKey ¶
func (p *LogConfigTypePodIndex) DeletePipeConfigsByPodKey(podKey string) bool
func (*LogConfigTypePodIndex) GetAllConfigMap ¶ added in v1.1.0
func (p *LogConfigTypePodIndex) GetAllConfigMap() map[string]*TypePodPipeConfig
func (*LogConfigTypePodIndex) GetAllGroupByLogConfig ¶
func (p *LogConfigTypePodIndex) GetAllGroupByLogConfig(dynamicContainerLog bool) *control.PipelineConfig
func (*LogConfigTypePodIndex) GetPipeConfigs ¶
func (*LogConfigTypePodIndex) IgnoredPodKeyAndLgcKeys ¶ added in v1.3.0
func (p *LogConfigTypePodIndex) IgnoredPodKeyAndLgcKeys() map[string]struct{}
IgnoredPodKeyAndLgcKeys return map which key is podKey/overrideLgcKey
func (*LogConfigTypePodIndex) IsPodUpdated ¶ added in v1.3.0
func (p *LogConfigTypePodIndex) IsPodUpdated(pod *corev1.Pod) bool
IsPodUpdated check weather pod is in the index or pod containers has changed.
func (*LogConfigTypePodIndex) SetConfigs ¶
type TypeClusterPipeConfig ¶ added in v1.1.0
type TypeNodePipeConfig ¶ added in v1.1.0
type TypePodPipeConfig ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.