client

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNode

func GetNode(cfg *config.Config, nodeName string) *common.NodeConfig

func GetNodes

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

Types

type Client

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

func NewClient

func NewClient(cfg *config.Config) Client

func NewUnauthClient

func NewUnauthClient() Client

func (*Client) DeprovisionLoad added in v0.1.2

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

func (*Client) DeprovisionNode added in v0.1.2

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

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) GetNode added in v0.1.2

func (c *Client) GetNode(node *common.Node) (*dto.NodeResponse, 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) ProvisionLoad added in v0.1.2

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

func (*Client) ProvisionNode added in v0.1.2

func (c *Client) ProvisionNode(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) StartLoad added in v0.1.5

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

func (*Client) StartNode added in v0.1.5

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

func (*Client) StopLoad

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

func (*Client) StopNode added in v0.1.5

func (c *Client) StopNode(node *common.Node, wallMessage string, offsetTime uint32, force bool) 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