apitypes

package
v0.1.0-beta.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppStatusResponse

type AppStatusResponse struct {
	State        string          `json:"state"`
	DeploymentID string          `json:"deploymentId"`
	ContainerIDs []string        `json:"containerIds"`
	Domains      []config.Domain `json:"domains"`
}

type DeployRequest

type DeployRequest struct {
	DeploymentID string              `json:"deploymentID"`
	TargetConfig config.TargetConfig `json:"targetConfig"`
	// AppConfig without resolved secrets and with target extracted. Saved on server for rollbacks
	RollbackAppConfig config.AppConfig `json:"rollbackAppConfig"`
}

type ExecRequest

type ExecRequest struct {
	Command       []string `json:"command"`                 // Required: command to execute
	ContainerID   string   `json:"containerId,omitempty"`   // Optional: specific container ID
	AllContainers bool     `json:"allContainers,omitempty"` // Optional: run on all containers
}

type ExecResponse

type ExecResponse struct {
	Results []ExecResult `json:"results"`
}

type ExecResult

type ExecResult struct {
	ContainerID string `json:"containerId"`
	ExitCode    int    `json:"exitCode"`
	Stdout      string `json:"stdout"`
	Stderr      string `json:"stderr"`
	Error       string `json:"error,omitempty"` // Set if exec failed for this container
}

type HealthResponse

type HealthResponse struct {
	Status  string `json:"status"`
	Version string `json:"version,omitempty"`
	Service string `json:"service"`
}

type ImageUploadResponse

type ImageUploadResponse struct {
	Success bool   `json:"success"`
	Message string `json:"message"`
}

type RollbackRequest

type RollbackRequest struct {
	TargetDeploymentID string              `json:"targetDeploymentID"`
	NewDeploymentID    string              `json:"newDeploymentID"`
	NewTargetConfig    config.TargetConfig `json:"newTargetConfig"`
}

type RollbackTargetsResponse

type RollbackTargetsResponse struct {
	Targets []deploytypes.RollbackTarget `json:"targets"`
}

type StopAppResponse

type StopAppResponse struct {
	Message string `json:"message,omitempty"`
}

type VersionResponse

type VersionResponse struct {
	Version        string `json:"haloyd"`
	HAProxyVersion string `json:"haproxy"`
}

Jump to

Keyboard shortcuts

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