phase

package
v0.0.0-...-f1e7488 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2022 License: Apache-2.0 Imports: 0 Imported by: 1

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.

Jump to

Keyboard shortcuts

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