type GenericPLEG …
type plegContainerState …
const plegContainerRunning …
const plegContainerExited …
const plegContainerUnknown …
const plegContainerNonExistent …
func convertState(state kubecontainer.State) plegContainerState { … }
type podRecord …
type podRecords …
func NewGenericPLEG(logger klog.Logger, runtime kubecontainer.Runtime, eventChannel chan *PodLifecycleEvent,
relistDuration *RelistDuration, cache kubecontainer.Cache,
clock clock.Clock) PodLifecycleEventGenerator { … }
func (g *GenericPLEG) Watch() chan *PodLifecycleEvent { … }
func (g *GenericPLEG) Start() { … }
func (g *GenericPLEG) Stop() { … }
func (g *GenericPLEG) Update(relistDuration *RelistDuration) { … }
func (g *GenericPLEG) Healthy() (bool, error) { … }
func generateEvents(logger klog.Logger, podID types.UID, cid string, oldState, newState plegContainerState) []*PodLifecycleEvent { … }
func (g *GenericPLEG) getRelistTime() time.Time { … }
func (g *GenericPLEG) updateRelistTime(timestamp time.Time) { … }
func (g *GenericPLEG) Relist() { … }
func getContainersFromPods(pods ...*kubecontainer.Pod) []*kubecontainer.Container { … }
func computeEvents(logger klog.Logger, oldPod, newPod *kubecontainer.Pod, cid *kubecontainer.ContainerID) []*PodLifecycleEvent { … }
func (g *GenericPLEG) cacheEnabled() bool { … }
func (g *GenericPLEG) getPodIPs(pid types.UID, status *kubecontainer.PodStatus) []string { … }
func (g *GenericPLEG) updateCache(ctx context.Context, pod *kubecontainer.Pod, pid types.UID) (error, bool) { … }
func (g *GenericPLEG) UpdateCache(pod *kubecontainer.Pod, pid types.UID) (error, bool) { … }
func updateEvents(eventsByPodID map[types.UID][]*PodLifecycleEvent, e *PodLifecycleEvent) { … }
func getContainerState(pod *kubecontainer.Pod, cid *kubecontainer.ContainerID) plegContainerState { … }
func updateRunningPodAndContainerMetrics(pods []*kubecontainer.Pod) { … }
func (pr podRecords) getOld(id types.UID) *kubecontainer.Pod { … }
func (pr podRecords) getCurrent(id types.UID) *kubecontainer.Pod { … }
func (pr podRecords) setCurrent(pods []*kubecontainer.Pod) { … }
func (pr podRecords) update(id types.UID) { … }
func (pr podRecords) updateInternal(id types.UID, r *podRecord) { … }