machine

package
v0.0.0-...-756137a Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: AGPL-3.0 Imports: 1 Imported by: 2

Documentation

Overview

Package machine provides the services for managing machines in Juju.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InstanceStatusType

type InstanceStatusType int

InstanceStatusType represents the status of an instance as recorded in the instance_status_value lookup table.

const (
	InstanceStatusUnset InstanceStatusType = iota
	InstanceStatusAllocating
	InstanceStatusRunning
	InstanceStatusProvisioningError
)

type MachineStatusType

type MachineStatusType int

MachineStatusType represents the status of a machine as recorded in the machine_status_value lookup table.

const (
	MachineStatusStarted MachineStatusType = iota
	MachineStatusStopped
	MachineStatusError
	MachineStatusPending
	MachineStatusDown
	MachineStatusUnknown
)

type StatusID

type StatusID interface {
	UnsetStatusType | MachineStatusType | InstanceStatusType
}

StatusID represents the status of an entity.

type StatusInfo

type StatusInfo[T StatusID] struct {
	Status  T
	Message string
	Data    []byte
	Since   *time.Time
}

StatusInfo contains the status information for a machine.

type UnsetStatusType

type UnsetStatusType int

UnsetStatusType represents the status of an entity that has not been set.

const (
	UnsetStatus UnsetStatusType = iota
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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