Documentation
¶
Index ¶
- func GetNode(cfg *config.Config, nodeName string) *common.NodeConfig
- func GetNodes(cfg *config.Config) map[string]*common.NodeConfig
- type Client
- func (c *Client) DeprovisionLoad(load *common.Load) error
- func (c *Client) DeprovisionNode(node *common.Node) error
- func (c *Client) GetAllContainers() (map[string]map[string]Container, error)
- func (c *Client) GetAllImages() (dto.NodeImagesMapResponse, error)
- func (c *Client) GetContainerLogs(node string, container string) error
- func (c *Client) GetLoadsDeployments(nodeUrl string) (dto.LoadsDeployments, error)
- func (c *Client) GetNode(node *common.Node) (*dto.NodeResponse, error)
- func (c *Client) GetProxyConfig(node string, container string) error
- func (c *Client) GetSystemInfo(node string) (*dto.SystemInfo, error)
- func (c *Client) KillLoad(load *common.Load) error
- func (c *Client) ListNetworks() (map[string]any, error)
- func (c *Client) Login(node string, username string, password string) (string, error)
- func (c *Client) ProvisionLoad(load *common.Load) error
- func (c *Client) ProvisionNode(node *common.Node) error
- func (c *Client) ReadLoadStderr(load *common.Load) error
- func (c *Client) ReadLoadStdout(load *common.Load) error
- func (c *Client) RestartNode(node *common.Node, wallMessage string, offsetTime uint32) error
- func (c *Client) StartLoad(load *common.Load) error
- func (c *Client) StartNode(node *common.Node) error
- func (c *Client) StopLoad(load *common.Load) error
- func (c *Client) StopNode(node *common.Node, wallMessage string, offsetTime uint32, force bool) error
- type Container
- type ContainerInfo
- type LoginRequest
- type LoginResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewUnauthClient ¶
func NewUnauthClient() Client
func (*Client) DeprovisionLoad ¶ added in v0.1.2
func (*Client) DeprovisionNode ¶ added in v0.1.2
func (*Client) GetAllContainers ¶
func (*Client) GetAllImages ¶
func (c *Client) GetAllImages() (dto.NodeImagesMapResponse, error)
func (*Client) GetContainerLogs ¶
func (*Client) GetLoadsDeployments ¶
func (c *Client) GetLoadsDeployments(nodeUrl string) (dto.LoadsDeployments, error)
func (*Client) GetProxyConfig ¶
func (*Client) GetSystemInfo ¶
func (c *Client) GetSystemInfo(node string) (*dto.SystemInfo, error)
func (*Client) ProvisionLoad ¶ added in v0.1.2
func (*Client) ProvisionNode ¶ added in v0.1.2
func (*Client) RestartNode ¶
type Container ¶
type Container struct {
Container ContainerInfo `json:"container"`
Status string `json:"status"`
}
type ContainerInfo ¶
type LoginRequest ¶
Authentication
type LoginResponse ¶
type LoginResponse struct {
Token string `json:"token"`
}
Click to show internal directories.
Click to hide internal directories.