api

package
v0.1.9 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: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckDeploymentStatus

func CheckDeploymentStatus(deployments []common.Deployment, repository *common.DeploymentsRepository, check func(common.DeploymentStatusCode) bool, msgContext string) error

func DeprovisionLoadDeployments added in v0.1.2

func DeprovisionLoadDeployments(loadName string) error

func DeprovisionNode added in v0.1.2

func DeprovisionNode(nodeName *string) error

func GetContainerStatus

func GetContainerStatus(containerName string) (containerd.Status, error)

func GetHealthStatus

func GetHealthStatus() (map[string]any, error)

GetHealthStatus returns the health status of all monitored services

func GetLoadsDeployments

func GetLoadsDeployments() (*dto.LoadsDeployments, error)

func GetNode added in v0.1.2

func GetNode(nodeName *string) (*dto.NodeResponse, error)

GetNode returns the node state (CPU, memory, etc) and status (provisioned, error, etc..) If a node is provided, it will be used to query the node state. Otherwise, the self node is used.

func GetSystemInfo

func GetSystemInfo() (*dto.SystemInfo, error)

GetSystemInfo returns static system information about the host

func GetVersion

func GetVersion() (string, error)

GetVersion returns the daemon version

func KillLoadDeployments

func KillLoadDeployments(loadName string) error

func ListContainers

func ListContainers() (map[string]containers.ContainerInfo, error)

ListContainers returns a list of all containers with their status

func ProvisionLoad added in v0.1.2

func ProvisionLoad(load *common.Load) (*dto.ProvisionLoadInfo, error)

func ProvisionNode added in v0.1.2

func ProvisionNode(node *common.Node) error

func ReadLoadStderr

func ReadLoadStderr(loadName string, offset int64) ([]byte, int64, error)

func ReadLoadStdout

func ReadLoadStdout(loadName string, offset int64) ([]byte, int64, error)

func RestartNode

func RestartNode(nodeName *string, message string, time uint32) error

func StartLoadDeployments added in v0.1.5

func StartLoadDeployments(loadName string) error

func StartNode added in v0.1.5

func StartNode(node *common.Node) error

func StopLoadDeployments

func StopLoadDeployments(loadName string) error

func StopNode added in v0.1.5

func StopNode(nodeName *string, message string, time uint32, force bool) error

func StreamLoadStderr

func StreamLoadStderr(loadName string, w io.Writer) error

func StreamLoadStdout

func StreamLoadStdout(loadName string, w io.Writer) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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