utils

package
v0.16.1-patch2 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApiJobStateFromActiveJobState

func ApiJobStateFromActiveJobState(s ActiveJobState) api.JobState

func LabelSliceAsMap

func LabelSliceAsMap(labels []string) (map[string]string, error)

func QueueNameValidation

func QueueNameValidation(queueName string) error

Types

type ActiveJobState

type ActiveJobState string
const (
	UNKNOWN ActiveJobState = "unknown"
	QUEUED  ActiveJobState = "queued"
	LEASED  ActiveJobState = "leased"
	PENDING ActiveJobState = "pending"
	RUNNING ActiveJobState = "running"
)

func ActiveJobStateFromString

func ActiveJobStateFromString(v string) (ActiveJobState, error)

func (*ActiveJobState) Set

func (s *ActiveJobState) Set(v string) error

func (*ActiveJobState) String

func (s *ActiveJobState) String() string

func (*ActiveJobState) Type

func (s *ActiveJobState) Type() string

Jump to

Keyboard shortcuts

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