Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type K8sState ¶
type K8sState int
K8sState represents a desired state for the go runner and the lifecycle it has for servicing requests
const ( // K8sUnknown indicates that the desired state for the runner is not accessible at this time K8sUnknown K8sState = iota // K8sRunning inidcates the runner should restart retrieving work and running if it is not doing so K8sRunning // K8sDrainAndTerminate indicates the runner should complete its current outstanding work and then exit K8sDrainAndTerminate // K8sDrainAndSuspend indicates the runner should complete its current outstanding work and then wait for a K8sResume K8sDrainAndSuspend )
func K8sStateString ¶
K8sStateString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func K8sStateValues ¶
func K8sStateValues() []K8sState
K8sStateValues returns all values of the enum
func (K8sState) IsAK8sState ¶
IsAK8sState returns "true" if the value is listed in the enum definition. "false" otherwise
Click to show internal directories.
Click to hide internal directories.