Documentation ¶
Index ¶
- Constants
- func ExtractContainerId(containerID string) string
- func GenContainerStdoutLog(podLogDirPrefix string, namespace string, podName string, podUID string, ...) []string
- func GenTypePodSourceName(lgcNamespace string, podNamespace string, podName string, containerName string, ...) string
- func GetContainerIds(pod *corev1.Pod) sets.String
- func GetLogConfigRelatedPod(lgc *logconfigv1beta1.LogConfig, podsLister corev1listers.PodLister) ([]*corev1.Pod, error)
- func GetMatchedPodAnnotation(annotationKeys []string, pod *corev1.Pod) map[string]string
- func GetMatchedPodEnv(envKeys []string, pod *corev1.Pod, containerName string) map[string]string
- func GetMatchedPodLabel(labelKeys []string, pod *corev1.Pod) map[string]string
- func GetPathsFromSource(src *source.Config) []string
- func GetPathsFromSources(src []*source.Config) []string
- func GetPodRelatedClusterLogConfigs(pod *corev1.Pod, clgcLister logconfigLister.ClusterLogConfigLister) ([]*logconfigv1beta1.ClusterLogConfig, error)
- func GetPodRelatedLogConfigs(pod *corev1.Pod, lgcLister logconfigLister.LogConfigLister) ([]*logconfigv1beta1.LogConfig, error)
- func GetTypePodOriginSourceName(podSourceName string) string
- func IsPodReady(pod *corev1.Pod) bool
- func LabelsSubset(i map[string]string, j map[string]string) bool
- func MatchStringMap(new map[string]string, old map[string]string) bool
- func MetaNamespaceKey(namespace string, name string) string
- func PathEqual(p1 string, p2 string) bool
- func PathsInNode(podLogDirPrefix string, kubeletRootDir string, rootFsCollectionEnabled bool, ...) ([]string, error)
- func Selector(labelSelector map[string]string) (labels.Selector, error)
- func SetPathsToSource(src *source.Config, paths []string)
- func ToPipeline(lgc *logconfigv1beta1.LogConfig, sinkLister v1beta1.SinkLister, ...) (*control.PipelineConfig, error)
- func ToPipelineInterceptor(interceptorsRaw string, interceptorRef string, ...) ([]*interceptor.Config, error)
- func ToPipelineSink(sinkRaw string, sinkRef string, sinkLister v1beta1.SinkLister) (*sink.Config, error)
- func ToPipelineSources(sources string) ([]*source.Config, error)
- type FuncGetRelatedPod
- type Workload
Constants ¶
View Source
const MatchAllToken = "*"
Variables ¶
This section is empty.
Functions ¶
func ExtractContainerId ¶
func GenContainerStdoutLog ¶ added in v1.2.0
func GenTypePodSourceName ¶ added in v1.3.0
func GetLogConfigRelatedPod ¶
func GetLogConfigRelatedPod(lgc *logconfigv1beta1.LogConfig, podsLister corev1listers.PodLister) ([]*corev1.Pod, error)
func GetMatchedPodAnnotation ¶
func GetMatchedPodEnv ¶
func GetMatchedPodLabel ¶
func GetPathsFromSource ¶ added in v1.3.0
func GetPathsFromSources ¶ added in v1.3.0
func GetPodRelatedClusterLogConfigs ¶
func GetPodRelatedClusterLogConfigs(pod *corev1.Pod, clgcLister logconfigLister.ClusterLogConfigLister) ([]*logconfigv1beta1.ClusterLogConfig, error)
func GetPodRelatedLogConfigs ¶
func GetPodRelatedLogConfigs(pod *corev1.Pod, lgcLister logconfigLister.LogConfigLister) ([]*logconfigv1beta1.LogConfig, error)
func GetTypePodOriginSourceName ¶ added in v1.3.0
func IsPodReady ¶
func LabelsSubset ¶
LabelsSubset checks if i is subset of j
func MatchStringMap ¶ added in v1.3.0
func MetaNamespaceKey ¶
func PathEqual ¶ added in v1.2.4
PathEqual Compare whether the two paths are same, ignoring the suffix '/'
func PathsInNode ¶
func SetPathsToSource ¶ added in v1.3.0
func ToPipeline ¶
func ToPipeline(lgc *logconfigv1beta1.LogConfig, sinkLister v1beta1.SinkLister, interceptorLister v1beta1.InterceptorLister) (*control.PipelineConfig, error)
func ToPipelineInterceptor ¶
func ToPipelineInterceptor(interceptorsRaw string, interceptorRef string, interceptorLister v1beta1.InterceptorLister) ([]*interceptor.Config, error)
func ToPipelineSink ¶
Types ¶
type FuncGetRelatedPod ¶
Click to show internal directories.
Click to hide internal directories.