cloud

package
v0.0.0-...-cad3fbd Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2018 License: Apache-2.0 Imports: 15 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 interface {
	Droplets() droplets.Client
	Accounts() accounts.Client
	Actions() actions.Client
	Domains() domains.Client
	Images() images.Client
	Keys() keys.Client
	Regions() regions.Client
	Sizes() sizes.Client
	FloatingIPs() floatingips.Client
	Volumes() volumes.Client
	Tags() tags.Client
	LoadBalancers() loadbalancers.Client
	Snapshots() snapshots.Client
	Firewalls() firewalls.Client
}

A Client knows how to interact with the DigitalOcean cloud.

func New

func New(opts ...ClientOpt) Client

New creates a Client to the DigitalOcean cloud. Options are applied in order, such that of multiple options modifying the same value, only the last one's effect will be observed.

type ClientOpt

type ClientOpt func(*clientOpts)

ClientOpt is an option to configure a client.

func UseGodo

func UseGodo(client *godo.Client) ClientOpt

UseGodo allows setting options on the underlying *godo.Client.

Jump to

Keyboard shortcuts

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