client

package
v0.2.8-rc3 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: 0 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

This section is empty.

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

func (c *Client) GetNodeConfig(node *common.Node) (*common.NodeDriverConfig, 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) LoadNodeConfig added in v0.2.5

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

func (*Client) Login

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

func (*Client) PowerOffNode added in v0.2.5

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

func (*Client) PowerOnNode added in v0.2.5

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

func (*Client) ProvisionLoad added in v0.1.2

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

func (c *Client) RunJob(job *common.Job, handle func(common.JobResult), arguments ...string) error

func (*Client) ShutdownNode

func (c *Client) ShutdownNode(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) StopLoad

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

func (*Client) UnloadNodeConfig added in v0.2.5

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

func (*Client) ValidateNodeConfig added in v0.2.5

func (c *Client) ValidateNodeConfig(node *common.Node) 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