Documentation
¶
Index ¶
- func CheckDeploymentStatus(deployments []common.Deployment, repository *common.DeploymentsRepository, ...) error
- func DeprovisionLoadDeployments(loadName string) error
- func DeprovisionNode(nodeName *string) error
- func GetContainerStatus(containerName string) (containerd.Status, error)
- func GetHealthStatus() (map[string]any, error)
- func GetLoadsDeployments() (*dto.LoadsDeployments, error)
- func GetNode(nodeName *string) (*dto.NodeResponse, error)
- func GetSystemInfo() (*dto.SystemInfo, error)
- func GetVersion() (string, error)
- func KillLoadDeployments(loadName string) error
- func ListContainers() (map[string]containers.ContainerInfo, error)
- func ProvisionLoad(load *common.Load) (*dto.ProvisionLoadInfo, error)
- func ProvisionNode(node *common.Node) error
- func ReadLoadStderr(loadName string, offset int64) ([]byte, int64, error)
- func ReadLoadStdout(loadName string, offset int64) ([]byte, int64, error)
- func RestartNode(nodeName *string, message string, time uint32) error
- func StartLoadDeployments(loadName string) error
- func StartNode(node *common.Node) error
- func StopLoadDeployments(loadName string) error
- func StopNode(nodeName *string, message string, time uint32, force bool) error
- func StreamLoadStderr(loadName string, w io.Writer) error
- func StreamLoadStdout(loadName string, w io.Writer) 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 DeprovisionLoadDeployments ¶ added in v0.1.2
func DeprovisionNode ¶ added in v0.1.2
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 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 KillLoadDeployments ¶
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 StartLoadDeployments ¶ added in v0.1.5
func StopLoadDeployments ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.