Documentation ¶
Index ¶
- func DecodeResponse(resp *http.Response, v interface{}) error
- type AuthResponse
- type HTTPClient
- func (client *HTTPClient) CreateHost(name string, ramInMB int) (*Host, error)
- func (client *HTTPClient) DeleteHost(id string) error
- func (client *HTTPClient) DoRequest(req *http.Request, v interface{}) error
- func (client *HTTPClient) GetAuthKey(username string, password string) (string, string, error)
- func (client *HTTPClient) GetHost(name string) (*Host, error)
- func (client *HTTPClient) GetHosts() ([]*Host, error)
- type Host
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecodeResponse ¶
Types ¶
type AuthResponse ¶
type HTTPClient ¶
func (*HTTPClient) CreateHost ¶
func (client *HTTPClient) CreateHost(name string, ramInMB int) (*Host, error)
func (*HTTPClient) DeleteHost ¶
func (client *HTTPClient) DeleteHost(id string) error
func (*HTTPClient) DoRequest ¶
func (client *HTTPClient) DoRequest(req *http.Request, v interface{}) error
func (*HTTPClient) GetAuthKey ¶
func (*HTTPClient) GetHosts ¶
func (client *HTTPClient) GetHosts() ([]*Host, error)
Click to show internal directories.
Click to hide internal directories.