server

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartDeploymentWorker added in v0.3.0

func StartDeploymentWorker(
	configPath string,
)

StartDeploymentWorker starts a background worker that processes queued deployment jobs one at a time.

func StartServer

func StartServer(address string, configPath string) error

func SwaggerHandler

func SwaggerHandler() http.HandlerFunc

Types

type AgentStatusResponse

type AgentStatusResponse struct {
	ConfigValid           bool `json:"config_valid"`
	DeploymentCount       int  `json:"deployment_count"`
	HistoryExists         bool `json:"history_exists"`
	HistoryCount          int  `json:"history_count"`
	LastDeploymentSuccess bool `json:"last_deployment_success"`
}

type DeployRequest

type DeployRequest struct {
	Deployment string `json:"deployment"`
}

type DeploymentListItem

type DeploymentListItem struct {
	Name           string `json:"name"`
	RepositoryPath string `json:"repository_path"`
	Preset         string `json:"preset"`
	StepCount      int    `json:"step_count"`
}

type HealthResponse

type HealthResponse struct {
	Status    string    `json:"status"`
	Service   string    `json:"service"`
	Timestamp time.Time `json:"timestamp"`
}

type HeartbeatResponse added in v0.3.0

type HeartbeatResponse struct {
	NodeID        string       `json:"node_id"`
	NodeName      string       `json:"node_name"`
	NodeRegion    string       `json:"node_region"`
	Service       string       `json:"service"`
	Version       string       `json:"version"`
	Status        string       `json:"status"`
	StartedAt     time.Time    `json:"started_at"`
	Timestamp     time.Time    `json:"timestamp"`
	UptimeSeconds int64        `json:"uptime_seconds"`
	Queue         jobs.Summary `json:"queue"`
}

type NodeInfoResponse added in v0.3.0

type NodeInfoResponse struct {
	NodeID          string   `json:"node_id"`
	NodeName        string   `json:"node_name"`
	NodeRegion      string   `json:"node_region"`
	Service         string   `json:"service"`
	Version         string   `json:"version"`
	OperatingSystem string   `json:"operating_system"`
	Architecture    string   `json:"architecture"`
	Capabilities    []string `json:"capabilities"`
}

Jump to

Keyboard shortcuts

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