Documentation
¶
Index ¶
- func CheckDeploymentStatus(deployments []common.Deployment, repository *common.DeploymentsRepository, ...) error
- func GetContainerStatus(containerName string) (containerd.Status, error)
- func GetHealthStatus() (map[string]any, error)
- func GetLoadsDeployments() (*dto.LoadsDeployments, error)
- func GetNodeState() (*dto.NodeStateResponse, error)
- func GetSystemInfo() (*dto.SystemInfo, error)
- func GetVersion() (string, error)
- func KillLoadDeployments(loadName string) error
- func ListContainers() (map[string]containers.ContainerInfo, error)
- func PlanAndRegisterNode(node *common.Node) error
- func PlanLoad(load *common.Load) (*dto.PlanLoadInfo, error)
- func ReadLoadStderr(loadName string, offset int64) ([]byte, int64, error)
- func ReadLoadStdout(loadName string, offset int64) ([]byte, int64, error)
- func RestartNode(message string, time uint32) error
- func RunLoadDeployments(loadName string) error
- func ShutdownNode(message string, time uint32) error
- func StopLoadDeployments(loadName string) error
- func StreamLoadStderr(loadName string, w io.Writer) error
- func StreamLoadStdout(loadName string, w io.Writer) error
- func UnplanLoadDeployments(loadName string) error
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 GetContainerStatus ¶
func GetContainerStatus(containerName string) (containerd.Status, error)
func GetHealthStatus ¶
GetHealthStatus returns the health status of all monitored services
func GetLoadsDeployments ¶
func GetLoadsDeployments() (*dto.LoadsDeployments, error)
func GetNodeState ¶
func GetNodeState() (*dto.NodeStateResponse, error)
GetNodeState returns the current node status (CPU, memory, etc) as a typed dto.NodeStateResponse
func GetSystemInfo ¶
func GetSystemInfo() (*dto.SystemInfo, error)
GetSystemInfo returns static system information about the host
func KillLoadDeployments ¶
func ListContainers ¶
func ListContainers() (map[string]containers.ContainerInfo, error)
ListContainers returns a list of all containers with their status
func PlanAndRegisterNode ¶
func RestartNode ¶
func RunLoadDeployments ¶
func ShutdownNode ¶
func StopLoadDeployments ¶
func UnplanLoadDeployments ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.