Documentation ¶
Index ¶
- Constants
- Variables
- func DelDynamicPaths(pipelineName string)
- func GetByContainerId(containerId string) *corev1.Pod
- func GetByPodNamespaceName(namespace string, name string) *corev1.Pod
- func GetByPodUid(uid string) *corev1.Pod
- func InitDynamicLogIndexer()
- func InitGlobalPodIndexer(podIndexer cache.Indexer, podLister v1.PodLister)
- func SetDynamicPaths(pipelineName string, sourceName string, pair []PathFieldsPair)
- type CustomPodIndexer
- type DynamicLogIndexer
- type PathFieldsPair
- type PodIndexer
Constants ¶
View Source
const ( IndexPodUid = "pod.uid" IndexNamespace = "namespace" IndexPodName = "pod.name" IndexContainerId = "container.id" )
View Source
const SystemContainerLogsPath = "containerLogs"
Variables ¶
View Source
var (
Cluster string
)
Functions ¶
func DelDynamicPaths ¶ added in v1.3.0
func DelDynamicPaths(pipelineName string)
func GetByContainerId ¶
func GetByPodUid ¶
func InitDynamicLogIndexer ¶ added in v1.3.0
func InitDynamicLogIndexer()
func InitGlobalPodIndexer ¶
func SetDynamicPaths ¶ added in v1.3.0
func SetDynamicPaths(pipelineName string, sourceName string, pair []PathFieldsPair)
Types ¶
type CustomPodIndexer ¶
type CustomPodIndexer struct {
// contains filtered or unexported fields
}
func (*CustomPodIndexer) GetByContainerId ¶
func (c *CustomPodIndexer) GetByContainerId(containerId string) (*corev1.Pod, error)
func (*CustomPodIndexer) GetByNamespaceName ¶
type DynamicLogIndexer ¶ added in v1.3.0
type DynamicLogIndexer struct { PipelineSourceToPaths map[string][]PathFieldsPair // key: (pipelineName/sourceName), value: file source paths PipelineToSource map[string]sets.String // key: pipelineName, value: sourceName // contains filtered or unexported fields }
DynamicLogIndexer store all paths corresponding to pipeline/source and associated fields.
type PathFieldsPair ¶ added in v1.3.0
func GetDynamicPaths ¶ added in v1.3.0
func GetDynamicPaths(pipelineName string, sourceName string) ([]PathFieldsPair, bool)
Click to show internal directories.
Click to hide internal directories.