Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AllocatedStatus ¶
func IsActiveAllocatedStatus ¶
func IsActiveUsedStatus ¶
func IsAliveStatus ¶
func IsPodBound ¶
Types ¶
type PodStatus ¶
type PodStatus int
PodStatus defines the status of a task/pod.
const ( // Pending means the task is pending in the apiserver. Pending PodStatus = 1 << iota // Allocated means the scheduler assigns a host to it. Allocated // Pipelined means the scheduler assigns a host to wait for releasing resource. Pipelined // Binding means the scheduler send Bind request to apiserver. Binding // Bound means the task/Pod bounds to a host. Bound // Running means a task is running on the host. Running // Releasing means a task/pod is deleted. Releasing // Succeeded means that all containers in the pod have voluntarily terminated // with a container exit code of 0, and the system is not going to restart any of these containers. Succeeded // Failed means that all containers in the pod have terminated, and at least one container has // terminated in a failure (exited with a non-zero exit code or was stopped by the system). Failed // Unknown means the status of task/pod is unknown to the scheduler. Unknown Deleted )
Click to show internal directories.
Click to hide internal directories.