econtainer

package
v1.6.3 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SucceededStatus ephemeralContainerStatusState = iota
	FailedStatus
	WaitingStatus
	RunningStatus
	UnknownStatus
)

Variables

This section is empty.

Functions

This section is empty.

Types

type EphemeralContainerInterface

type EphemeralContainerInterface interface {
	// GetEphemeralContainersStatus will return all ephemeral container status.
	// Maybe they are not created by current ephemeral jobs.
	GetEphemeralContainersStatus(target *v1.Pod) []v1.ContainerStatus
	// GetEphemeralContainers return all ephemeral containers which have been created in target pods.
	// Maybe they are not created by current ephemeral jobs.
	GetEphemeralContainers(target *v1.Pod) []v1.EphemeralContainer
	// ContainsEphemeralContainer return if target pod contains(1st return value) and owns(2nd return value)
	// the ephemeral containers having the same name with the ones ephemeralJob want to inject.
	// Owning an ephemeral containers to a ephemeralJob means KRUISE_EJOB_ID env of the ephemeral container
	// equals to this ephemeralJob's uid.
	ContainsEphemeralContainer(target *v1.Pod) (bool, bool)

	UpdateEphemeralContainer(target *v1.Pod) error
	CreateEphemeralContainer(target *v1.Pod) error
	RemoveEphemeralContainer(target *v1.Pod) (*time.Duration, error)
}

Jump to

Keyboard shortcuts

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