digitalocean

package
v0.0.0-...-72560b2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Client     libmachine.API
	Host       *host.Host
	Name       string
	ClientPath string
	Region     string
	Size       string
	ImageSlug  string
	KeyID      int
	Ctx        context.Context
}

Provider definition, represents a concrete implementation of an iaas

func New

func New(token string) (do *Provider, err error)

func (*Provider) CreateMachine

func (do *Provider) CreateMachine() (machine *iaas.Machine, err error)

CreateMachine on digitalocean

func (*Provider) DeleteMachine

func (do *Provider) DeleteMachine() (err error)

DeleteMachine Shutdown and Delete a droplet

Jump to

Keyboard shortcuts

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