status

package
v0.0.0-...-b55e7ca Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckpointState

type CheckpointState string
const (
	CheckpointStateRunning                   CheckpointState = "RUNNING"
	CheckpointStatePullBaseImageFailed       CheckpointState = "PULL_BASE_IMAGE_FAILED"
	CheckpointStateContainerWaitReadyFailed  CheckpointState = "CONTAINER_WAIT_READY_FAILED"
	CheckpointStateContainerCheckpointFailed CheckpointState = "CONTAINER_CHECKPOINT_FAILED"
	CheckpointStatePushCheckpointFailed      CheckpointState = "PUSH_CHECKPOINT_FAILED"
	CheckpointStateCompleted                 CheckpointState = "COMPLETED"
)

type CheckpointStatus

type CheckpointStatus struct {
	State       CheckpointState
	Message     string
	CompletedAt *time.Time
	Port        uint16
}

type MemStore

type MemStore struct {
	// contains filtered or unexported fields
}

func NewMemStore

func NewMemStore() *MemStore

func (*MemStore) Del

func (s *MemStore) Del(id string)

func (*MemStore) Get

func (s *MemStore) Get(id string) *Status

func (*MemStore) Update

func (s *MemStore) Update(id string, new Status)

func (*MemStore) View

func (s *MemStore) View() map[string]Status

View returns a copy of the current state of the underlying map

type Status

type Status struct {
	CheckpointStatus *CheckpointStatus
	WorkloadStatus   *WorkloadStatus
}

type Store

type Store interface {
	Update(id string, status Status)
	Get(id string) *Status
	Del(id string)
	View() map[string]Status
}

type WorkloadHealthStatus

type WorkloadHealthStatus string
var (
	WorkloadHealthStatusHealthy   WorkloadHealthStatus = "HEALTHY"
	WorkloadHealthStatusUnhealthy WorkloadHealthStatus = "UNHEALTHY"
)

type WorkloadState

type WorkloadState string
var (
	WorkloadStateCreating       WorkloadState = "CREATING"
	WorkloadStateRunning        WorkloadState = "RUNNING"
	WorkloadStateDeleted        WorkloadState = "DELETED"
	WorkloadStateCreationFailed WorkloadState = "CREATION_FAILED"
)

type WorkloadStatus

type WorkloadStatus struct {
	State WorkloadState
	Port  uint16
}

Jump to

Keyboard shortcuts

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