api

package
v0.2.8-rc2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: AGPL-3.0 Imports: 15 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 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 If a node is provided, it will be used to query the node state. Otherwise, the self node is used.

func GetNodeConfig added in v0.2.5

func GetNodeConfig() (*common.NodeDriverConfig, error)

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 LoadNodeConfig added in v0.2.5

func LoadNodeConfig(node *common.Node) error

func PowerOffNode added in v0.2.5

func PowerOffNode(nodeName *string) error

func PowerOnNode added in v0.2.5

func PowerOnNode(node *common.Node) error

func ProvisionLoad

func ProvisionLoad(load *common.Load) (*dto.ProvisionLoadInfo, 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 RunJob added in v0.2.5

func RunJob(w common.JobResultWriter, request dto.JobRequest) error

func ShutdownNode added in v0.2.5

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

func StartLoadDeployments

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

func UnloadGuestNodeConfig added in v0.2.5

func UnloadGuestNodeConfig(nodeName string) error

func UnloadNodeConfig added in v0.2.5

func UnloadNodeConfig() error

func ValidateNodeConfig added in v0.2.5

func ValidateNodeConfig(node *common.Node) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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