types

package
v0.0.0-...-699ca5e Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	RunStatusPending    RunStatus = "pending"
	RunStatusRunning              = "running"
	RunStatusPlanned              = "planned"
	RunStatusCompleted            = "completed"
	RunStatusFailed               = "failed"
	RunStatusSuperseded           = "superseded"
	RunStatusCancelled            = "cancelled"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OrganizationStatus

type OrganizationStatus string
const (
	OrganizationStatusActive   OrganizationStatus = "active"
	OrganizationStatusInactive                    = "inactive"
)

func ToOrganizationStatus

func ToOrganizationStatus(input string) (OrganizationStatus, error)

func (OrganizationStatus) String

func (os OrganizationStatus) String() (string, error)

type RunStatus

type RunStatus string

func ToRunStatus

func ToRunStatus(input string) (RunStatus, error)

func (RunStatus) String

func (rs RunStatus) String() (string, error)

type Type

type Type int64
const (
	Uuid Type = iota
	String
)

type UuidOrString

type UuidOrString struct {
	Type        Type
	UuidValue   uuid.UUID
	StringValue string
}

func FromString

func FromString(input string) (*UuidOrString, error)

func FromUuid

func FromUuid(input uuid.UUID) *UuidOrString

func (UuidOrString) String

func (uos UuidOrString) String() string

Jump to

Keyboard shortcuts

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