gce

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: 11 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 {
	// contains filtered or unexported fields
}

Provider implements common.CloudProvider

func NewProvider

func NewProvider(projectID string, domain string, dnsZone string) (*Provider, error)

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 GCP

func (*Provider) CreateK8s

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

CreateK8s creates a new cluster on GCE

func (*Provider) CreateServer

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

CreateServer creates a droplet on GCP 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 GCE

func (*Provider) CreateStaticIP

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

CreateStaticIP creates a static IP on GCE

func (*Provider) RemoveDNSRecord

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

RemoveDNSRecord removes a DNS A Record from GCP

func (*Provider) RemoveK8s

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

RemoveK8s removes a cluster on GCE

func (*Provider) RemoveServer

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

RemoveServer removes a droplet on GCP

func (*Provider) RemoveServerGroup

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

RemoveServerGroup unimplemented for GCE

func (*Provider) RemoveStaticIP

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

RemoveStaticIP removes a global static IP on GCE

Directories

Path Synopsis
examples
k8s

Jump to

Keyboard shortcuts

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