types

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2025 License: Apache-2.0 Imports: 1 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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