types

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2023 License: Apache-2.0 Imports: 1 Imported by: 1

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

func K8sStateString(s string) (K8sState, error)

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

func (i K8sState) IsAK8sState() bool

IsAK8sState returns "true" if the value is listed in the enum definition. "false" otherwise

func (K8sState) String

func (i K8sState) String() string

Jump to

Keyboard shortcuts

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