digitalocean

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package digitalocean implements methods to create servers on DigitalOcean

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

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

Provider implements common.CloudProvider

func NewProvider

func NewProvider(DOToken string, domain string) *Provider

NewProvider returns a new Provider instance

func (*Provider) CreateDNSRecord

func (p *Provider) CreateDNSRecord(ctx context.Context, subDomain string, IP string) (*common.CreateDNSRecordResponse, error)

CreateDNSRecord creates a DNS A Record on DigitalOcean

func (*Provider) CreateK8s

func (p *Provider) CreateK8s(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateK8sResponse, error)

CreateK8s unimplemented for DigitalOcean

func (*Provider) CreateServer

func (p *Provider) CreateServer(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerResponse, error)

CreateServer creates a droplet on DigitalOcean TODO reimplement waiting for IP using a ticker

func (*Provider) CreateServerGroup

func (p *Provider) CreateServerGroup(ctx context.Context, name string, opts ...common.ServerOption) (*common.CreateServerGroupResponse, error)

CreateServerGroup unimplemented for DigitalOcean

func (*Provider) CreateStaticIP

func (p *Provider) CreateStaticIP(ctx context.Context, name string, req *common.StaticIPRequest) (*common.CreateStaticIPResponse, error)

CreateStaticIP unimplemented for DigitalOcean

func (*Provider) RemoveDNSRecord

func (p *Provider) RemoveDNSRecord(ctx context.Context, subDomain *common.CreateDNSRecordResponse) error

RemoveDNSRecord removes a DNS A Record from DigitalOcean

func (*Provider) RemoveK8s

func (p *Provider) RemoveK8s(ctx context.Context, k8s *common.CreateK8sResponse) error

RemoveK8s unimplemented for DigitalOcean

func (*Provider) RemoveServer

func (p *Provider) RemoveServer(ctx context.Context, server *common.CreateServerResponse) error

RemoveServer removes a droplet on DigitalOcean

func (*Provider) RemoveServerGroup

func (p *Provider) RemoveServerGroup(ctx context.Context, group *common.CreateServerGroupResponse) error

RemoveServerGroup unimplemented for DigitalOcean

func (*Provider) RemoveStaticIP

func (p *Provider) RemoveStaticIP(ctx context.Context, staticIP *common.CreateStaticIPResponse) error

RemoveStaticIP unimplemented for DigitalOcean

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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