domain

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	ID             string
	OrganizationID string
	GameServerID   string
	Version        string
	Status         DeploymentStatus
	InitiatedBy    string // user ID
	StartedAt      time.Time
	FinishedAt     *time.Time
	FailureReason  string
	CreatedAt      time.Time
	UpdatedAt      time.Time
}

Deployment represents a single intent to deploy a game server version. It is a control-plane record — it describes desired state and tracks progress. The actual execution is handled by daemon workers.

func (*Deployment) IsTerminal

func (d *Deployment) IsTerminal() bool

IsTerminal returns true if the deployment has reached a final state.

type DeploymentStatus

type DeploymentStatus string

DeploymentStatus tracks the lifecycle of a deployment operation.

const (
	DeploymentPending    DeploymentStatus = "pending"
	DeploymentInProgress DeploymentStatus = "in_progress"
	DeploymentSucceeded  DeploymentStatus = "succeeded"
	DeploymentFailed     DeploymentStatus = "failed"
	DeploymentRolledBack DeploymentStatus = "rolled_back"
)

Jump to

Keyboard shortcuts

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