api

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2026 License: AGPL-3.0 Imports: 12 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() 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() (*dto.NodeResponse, error)

GetNode returns the node state (CPU, memory, etc) and status (provisioned, error, etc..)

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 RunLoadDeployments

func RunLoadDeployments(loadName string) error

func ShutdownNode

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

func StartupNode added in v0.1.2

func StartupNode(node *common.Node) error

func StopLoadDeployments

func StopLoadDeployments(loadName string) 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