client

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2026 License: AGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNode

func GetNode(nodeName string) *common.NodeConfig

func GetNodes

func GetNodes() map[string]*common.NodeConfig

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() Client

func NewUnauthClient

func NewUnauthClient() Client

func (*Client) GetAllContainers

func (c *Client) GetAllContainers() (map[string]map[string]Container, error)

func (*Client) GetAllImages

func (c *Client) GetAllImages() (dto.NodeImagesMapResponse, error)

func (*Client) GetContainerLogs

func (c *Client) GetContainerLogs(node string, container string) error

func (*Client) GetLoadsDeployments

func (c *Client) GetLoadsDeployments(nodeUrl string) (dto.LoadsDeployments, error)

func (*Client) GetNodeState

func (c *Client) GetNodeState(node string) (*dto.NodeStateResponse, error)

func (*Client) GetProxyConfig

func (c *Client) GetProxyConfig(node string, container string) error

func (*Client) GetSystemInfo

func (c *Client) GetSystemInfo(node string) (*dto.SystemInfo, error)

func (*Client) KillLoad

func (c *Client) KillLoad(load *common.Load) error

func (*Client) ListNetworks

func (c *Client) ListNetworks() (map[string]any, error)

func (*Client) Login

func (c *Client) Login(node string, username string, password string) (string, error)

func (*Client) PlanLoad

func (c *Client) PlanLoad(load *common.Load) error

func (*Client) PlanNode

func (c *Client) PlanNode(node *common.Node) error

func (*Client) ReadLoadStderr

func (c *Client) ReadLoadStderr(load *common.Load) error

func (*Client) ReadLoadStdout

func (c *Client) ReadLoadStdout(load *common.Load) error

func (*Client) RestartNode

func (c *Client) RestartNode(node *common.Node, wallMessage string, offsetTime uint32) error

func (*Client) RunLoad

func (c *Client) RunLoad(load *common.Load) error

func (*Client) ShutdownNode

func (c *Client) ShutdownNode(node *common.Node, wallMessage string, offsetTime uint32) error

func (*Client) StartupNode

func (c *Client) StartupNode(node *common.Node) error

func (*Client) StopLoad

func (c *Client) StopLoad(load *common.Load) error

func (*Client) UnplanLoad

func (c *Client) UnplanLoad(load *common.Load) error

type Container

type Container struct {
	Container ContainerInfo `json:"container"`
	Status    string        `json:"status"`
}

type ContainerInfo

type ContainerInfo struct {
	ID    string
	Image string
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

Authentication

type LoginResponse

type LoginResponse struct {
	Token string `json:"token"`
}

Jump to

Keyboard shortcuts

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