state

package
v0.1.8-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Active

func Active(state State) bool

func CanTransition

func CanTransition(from, to State) bool

func IsKnown

func IsKnown(state State) bool

func Transition

func Transition(from, to State) error

Types

type State

type State string
const (
	Unregistered State = "UNREGISTERED"
	Registering  State = "REGISTERING"
	Offline      State = "OFFLINE"
	Starting     State = "STARTING"
	Benchmarking State = "BENCHMARKING"
	Idle         State = "IDLE"
	Preparing    State = "PREPARING_MODEL"
	Available    State = "AVAILABLE"
	Busy         State = "BUSY"
	Draining     State = "DRAINING"
	Paused       State = "PAUSED"
	Error        State = "ERROR"
	Updating     State = "UPDATING"
)

func Parse

func Parse(value string) (State, error)

Jump to

Keyboard shortcuts

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