pleg

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRemotePodStatus added in v1.0.0

func GetRemotePodStatus(gl *GenericLifecycle, podUID types.UID) (*kubecontainer.PodStatus, error)

GetRemotePodStatus gets the pods's status

func NewGenericLifecycle

func NewGenericLifecycle(manager containers.ContainerManager, probeManager prober.Manager, channelCapacity int,
	relistPeriod time.Duration, podManager podmanager.Manager, statusManager status.Manager) pleg.PodLifecycleEventGenerator

NewGenericLifecycle creates new generic life cycle object

func NewGenericLifecycleRemote added in v1.0.0

func NewGenericLifecycleRemote(runtime kubecontainer.Runtime, probeManager prober.Manager, channelCapacity int,
	relistPeriod time.Duration, podManager podmanager.Manager, statusManager status.Manager, podCache kubecontainer.Cache, clock clock.Clock, iface string) pleg.PodLifecycleEventGenerator

NewGenericLifecycleRemote creates new generic life cycle object for remote

Types

type GenericLifecycle

type GenericLifecycle struct {
	pleg.GenericPLEG
	// contains filtered or unexported fields
}

GenericLifecycle is object for pleg lifecycle

func (*GenericLifecycle) GetPodStatus added in v1.0.0

func (gl *GenericLifecycle) GetPodStatus(pod *v1.Pod) (v1.PodStatus, bool)

GetPodStatus gets the pods's status

func (*GenericLifecycle) Start

func (gl *GenericLifecycle) Start()

Start spawns a goroutine to relist periodically.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL