Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Phase ¶
type Phase string
Phase represents a certain point in the lifecycle of a Resource.
const ( // Pending is used to represent a Resource in the Pending Phase. // Used by: Pods, Nodes. Pending Phase = "Pending" // Running is used to represent a Resource in the Running Phase. // Used by Pods, Nodes. Running Phase = "Running" // Succeeded is used to represent a Resource in the Succeeded Phase. // Used by: Pods. Succeeded Phase = "Succeeded" // Evicted is used to represent a Resource in the Evicted Phase. // Used by: Pods. Evicted Phase = "Evicted" // Error is used to represent a Resource in the Error Phase. // Used by: Pods. Error Phase = "Error" // Failed is used to represent a Resource in the Failed Phase. // Used by: Pods. Failed Phase = "Failed" // Unknown is used to represent a Resource in an Unknown Phase. // Used by: Pods. Unknown Phase = "Unknown" // Terminated is used to represent a Resource in the Terminated Phase. // Used by: Nodes. Terminated Phase = "Terminated" )
type ResourcePhase ¶
type ResourcePhase interface { // Phase is a simple, high-level summary of where the Resource is in its lifecycle. Phase() Phase }
ResourcePhase has a method to return the phase of a certain Resource.
func NewResourcePhase ¶
func NewResourcePhase(phase Phase) ResourcePhase
NewResourcePhase initializes a new ResourcePhase implementation.
Click to show internal directories.
Click to hide internal directories.