Documentation
¶
Index ¶
- type Client
- func (c *Client) BootLinuxDelete(id int) (*models.Linux, error)
- func (c *Client) BootLinuxGet(id int) (*models.Linux, error)
- func (c *Client) BootLinuxSet(id int, input *models.LinuxSetInput) (*models.Linux, error)
- func (c *Client) BootRescueDelete(id int) (*models.Rescue, error)
- func (c *Client) BootRescueGet(id int) (*models.Rescue, error)
- func (c *Client) BootRescueSet(id int, input *models.RescueSetInput) (*models.Rescue, error)
- func (c *Client) FailoverGet(ip string) (*models.Failover, error)
- func (c *Client) FailoverGetList() ([]models.Failover, error)
- func (c *Client) GetVersion() string
- func (c *Client) IPGetList() ([]models.IP, error)
- func (c *Client) KeyGetList() ([]models.Key, error)
- func (c *Client) KeySet(input *models.KeySetInput) (*models.Key, error)
- func (c *Client) RDnsGet(ip string) (*models.Rdns, error)
- func (c *Client) RDnsGetList() ([]models.Rdns, error)
- func (c *Client) ResetGet(id int) (*models.Reset, error)
- func (c *Client) ResetSet(id int, input *models.ResetSetInput) (*models.ResetPost, error)
- func (c *Client) ServerGet(id int) (*models.Server, error)
- func (c *Client) ServerGetList() ([]models.Server, error)
- func (c *Client) ServerReverse(id int) (*models.Cancellation, error)
- func (c *Client) ServerSetName(id int, input *models.ServerSetNameInput) (*models.Server, error)
- func (c *Client) SetBaseURL(baseURL string)
- func (c *Client) SetCredentials(username, password string) error
- func (c *Client) SetUserAgent(userAgent string)
- func (c *Client) ValidateCredentials() error
- type RobotClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) BootLinuxDelete ¶ added in v0.2.0
func (*Client) BootLinuxGet ¶ added in v0.2.0
func (*Client) BootLinuxSet ¶ added in v0.2.0
func (*Client) BootRescueDelete ¶ added in v0.2.0
func (*Client) BootRescueSet ¶
func (*Client) GetVersion ¶
func (*Client) ServerReverse ¶
func (c *Client) ServerReverse(id int) (*models.Cancellation, error)
func (*Client) ServerSetName ¶
func (*Client) SetBaseURL ¶
func (*Client) SetCredentials ¶ added in v0.2.6
func (*Client) SetUserAgent ¶
func (*Client) ValidateCredentials ¶ added in v0.2.4
type RobotClient ¶
type RobotClient interface {
SetBaseURL(baseURL string)
SetUserAgent(userAgent string)
GetVersion() string
SetCredentials(username, password string) error
ValidateCredentials() error
ServerGetList() ([]models.Server, error)
ServerGet(id int) (*models.Server, error)
ServerSetName(id int, input *models.ServerSetNameInput) (*models.Server, error)
ServerReverse(id int) (*models.Cancellation, error)
KeyGetList() ([]models.Key, error)
KeySet(input *models.KeySetInput) (*models.Key, error)
IPGetList() ([]models.IP, error)
RDnsGetList() ([]models.Rdns, error)
RDnsGet(ip string) (*models.Rdns, error)
BootLinuxGet(id int) (*models.Linux, error)
BootLinuxDelete(id int) (*models.Linux, error)
BootLinuxSet(id int, input *models.LinuxSetInput) (*models.Linux, error)
BootRescueGet(id int) (*models.Rescue, error)
BootRescueDelete(id int) (*models.Rescue, error)
BootRescueSet(id int, input *models.RescueSetInput) (*models.Rescue, error)
ResetGet(id int) (*models.Reset, error)
ResetSet(id int, input *models.ResetSetInput) (*models.ResetPost, error)
FailoverGetList() ([]models.Failover, error)
FailoverGet(ip string) (*models.Failover, error)
}
func NewBasicAuthClient ¶
func NewBasicAuthClient(username, password string) RobotClient
func NewBasicAuthClientWithCustomHttpClient ¶ added in v0.2.5
func NewBasicAuthClientWithCustomHttpClient(username, password string, httpClient *http.Client) RobotClient
Source Files
¶
Click to show internal directories.
Click to hide internal directories.