api

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2026 License: AGPL-3.0 Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func DeprovisionLoadDeployments(loadName string) error

func DeprovisionNode

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

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 agent 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

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

func ProvisionNode

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

func StartLoadDeployments(loadName string) error

func StartNode

func StartNode(node *common.Node) error

func StopLoadDeployments

func StopLoadDeployments(loadName string) error

func StopNode

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