digitalocean

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT 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 {
	Client *godo.Client
}

func NewClient

func NewClient(accessToken string) *Client

func (*Client) CreateDroplet

func (do *Client) CreateDroplet(region string, size string, image string, publicKey ssh.PublicKey, name string, env string) (newDroplet *godo.Droplet, monitorUri string, err error)

func (*Client) CreateSSHKey

func (do *Client) CreateSSHKey(key string) error

func (*Client) GetAvailableRegions

func (do *Client) GetAvailableRegions() ([]godo.Region, error)

func (*Client) GetDroplet

func (do *Client) GetDroplet(droplet *godo.Droplet) (*godo.Droplet, string, error)

func (*Client) GetSSHKey

func (do *Client) GetSSHKey(publicKey ssh.PublicKey) (*godo.Response, error)

func (*Client) GetSizesByRegion

func (do *Client) GetSizesByRegion(region *godo.Region) ([]godo.Size, error)

Jump to

Keyboard shortcuts

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