Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateInstance(name, plan, region string) (*CreateInstanceResponse, error)
- func (c *Client) DeleteInstance(instance InstanceInfo) error
- func (c *Client) Do(req *http.Request) (int, []byte, error)
- func (c *Client) GetInstance(name string) (*InstanceInfo, error)
- func (c *Client) GetInstanceInfo(id int) (*InstanceInfo, error)
- func (c *Client) GetRegion(key string) (*Region, error)
- func (c *Client) ListInstances() (Instances, error)
- func (c *Client) ListRegions() (Regions, error)
- type CreateInstanceResponse
- type Instance
- type InstanceInfo
- type Instances
- type Region
- type Regions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
func (*Client) CreateInstance ¶
func (c *Client) CreateInstance(name, plan, region string) (*CreateInstanceResponse, error)
func (*Client) DeleteInstance ¶
func (c *Client) DeleteInstance(instance InstanceInfo) error
func (*Client) GetInstance ¶
func (c *Client) GetInstance(name string) (*InstanceInfo, error)
func (*Client) GetInstanceInfo ¶
func (c *Client) GetInstanceInfo(id int) (*InstanceInfo, error)
func (*Client) ListInstances ¶
func (*Client) ListRegions ¶
type CreateInstanceResponse ¶
type InstanceInfo ¶
Click to show internal directories.
Click to hide internal directories.