Documentation
¶
Overview ¶
The client package is a client implementation of the mayu network API.
Index ¶
- type Client
- func (c *Client) BootComplete(serial string, host hostmgr.Host) error
- func (c *Client) List() ([]hostmgr.Host, error)
- func (c *Client) Override(serial, property, value string) error
- func (c *Client) SetEtcdClusterToken(serial, value string) error
- func (c *Client) SetIPMIAddr(serial, value string) error
- func (c *Client) SetProviderId(serial, value string) error
- func (c *Client) SetState(serial, value string) error
- func (c *Client) Status(serial string) (hostmgr.Host, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// Scheme defines the protocol scheme. This is either http or https.
Scheme string
// Host is used to connect to mayu over network.
Host string
// Port is used to connect to mayu over network.
Port uint16
}
Client implements the network API. Check the corresponding methods.
func (*Client) Override ¶
Override overrides a template properties such as docker_version, yochu_version, etc
func (*Client) SetEtcdClusterToken ¶
SetEtcdClusterToken sets the etcd cluster token given by value for a node given by serial.
func (*Client) SetIPMIAddr ¶
SetIPMIAddr sets the IPMI address given by value for a node given by serial.
func (*Client) SetProviderId ¶
SetProviderId sets the provider ID given by value for a node given by serial.
Click to show internal directories.
Click to hide internal directories.