jobstatusenum

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNoValidEnum = errors.New("not a valid enum")

Functions

This section is empty.

Types

type JobStatus

type JobStatus string
const (
	Queued     JobStatus = "queued"
	Running    JobStatus = "running"
	Completed  JobStatus = "completed"
	Cancelling JobStatus = "cancelling"
	Canceled   JobStatus = "canceled"
	Failed     JobStatus = "failed"
	Paused     JobStatus = "paused"
)

func JobStatusFromString

func JobStatusFromString(raw string) (JobStatus, bool)

JobStatusFromString determines the enum value with an exact case match.

func JobStatusFromStringIgnoreCase

func JobStatusFromStringIgnoreCase(raw string) (JobStatus, bool)

JobStatusFromStringIgnoreCase determines the enum value with a case-insensitive match.

func (JobStatus) IsValid

func (_j JobStatus) IsValid() bool

IsValid tests whether the value is a valid enum value.

func (JobStatus) MarshalBinary

func (_j JobStatus) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface for JobStatus.

func (JobStatus) MarshalGQL

func (_j JobStatus) MarshalGQL(w io.Writer)

MarshalGQL implements the graphql.Marshaler interface for JobStatus.

func (JobStatus) MarshalJSON

func (_j JobStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler interface for JobStatus.

func (JobStatus) MarshalText

func (_j JobStatus) MarshalText() ([]byte, error)

MarshalText implements the encoding.TextMarshaler interface for JobStatus.

func (JobStatus) MarshalYAML

func (_j JobStatus) MarshalYAML() (interface{}, error)

MarshalYAML implements a YAML Marshaler for JobStatus.

func (JobStatus) SQLTypeName

func (JobStatus) SQLTypeName() string

func (*JobStatus) Scan

func (_j *JobStatus) Scan(value interface{}) error

Scan implements the sql/driver.Scanner interface for JobStatus.

func (JobStatus) String

func (_j JobStatus) String() string

String returns the string of the enum value. If the enum value is invalid, it will produce a string of the following pattern JobStatus(%d) instead.

func (*JobStatus) UnmarshalBinary

func (_j *JobStatus) UnmarshalBinary(text []byte) error

UnmarshalBinary implements the encoding.BinaryUnmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalGQL

func (_j *JobStatus) UnmarshalGQL(value interface{}) error

UnmarshalGQL implements the graphql.Unmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalJSON

func (_j *JobStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements the json.Unmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalText

func (_j *JobStatus) UnmarshalText(text []byte) error

UnmarshalText implements the encoding.TextUnmarshaler interface for JobStatus.

func (*JobStatus) UnmarshalYAML

func (_j *JobStatus) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements a YAML Unmarshaler for JobStatus.

func (JobStatus) Validate

func (_j JobStatus) Validate() error

Validate whether the value is within the range of enum values.

func (JobStatus) Values

func (JobStatus) Values() []string

Values returns a slice of all String values of the enum.

Jump to

Keyboard shortcuts

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