Documentation ¶
Overview ¶
Package podinformer keeps track of pods with the containerIDs.
Equivalent information can be retrieved with: kubectl get pods -o=jsonpath='{.items[*].status.containerStatuses[*].containerID}'
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContainerInfo ¶
type PodInformer ¶
type PodInformer struct {
// contains filtered or unexported fields
}
func NewPodInformer ¶
func NewPodInformer(podInformerChan chan ContainerInfo) (*PodInformer, error)
func (*PodInformer) GetContainerIDFromPod ¶
func (p *PodInformer) GetContainerIDFromPod(namespace, podname string, containerIndex int) (string, error)
func (*PodInformer) GetPodFromContainerID ¶
func (p *PodInformer) GetPodFromContainerID(containerID string) (info *ContainerInfo, err error)
func (*PodInformer) Run ¶
func (p *PodInformer) Run(threadiness int, stopCh chan struct{})
func (*PodInformer) Stop ¶
func (p *PodInformer) Stop()
Click to show internal directories.
Click to hide internal directories.