doclient

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2018 License: Unlicense Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(token string) *Client

func (*Client) CreateDroplet

func (c *Client) CreateDroplet(name, region, size, userData, image string) (id int, err error)

func (*Client) CreateFirewall

func (c *Client) CreateFirewall(name string, dropletID int) error

func (*Client) CreateSSHKey added in v0.0.15

func (c *Client) CreateSSHKey(name, publicKey string) (id int, err error)

func (*Client) DeleteDroplet

func (c *Client) DeleteDroplet(dropletID int) error

func (*Client) DeleteFirewall

func (c *Client) DeleteFirewall(firewallID string) error

func (*Client) GetAccountSSHKeys added in v0.0.15

func (c *Client) GetAccountSSHKeys() ([]godo.Key, error)

func (*Client) ListDroplets

func (c *Client) ListDroplets() (droplets []godo.Droplet, err error)

func (*Client) ListFirewalls

func (c *Client) ListFirewalls() (firewalls []godo.Firewall, err error)

func (*Client) ListRegions

func (c *Client) ListRegions() (regions map[string]string, err error)

func (*Client) WaitForDropletIP

func (c *Client) WaitForDropletIP(dropletID int) (ip string, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL