gce

package
v0.15.4 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2017 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Client

func Client(kube *model.Kube) (*compute.Service, error)

Client creates the client for the provider.

Types

type Provider

type Provider struct {
	Core   *core.Core
	Client func(*model.Kube) (*compute.Service, error)
}

Provider Holds DO account info.

func (*Provider) CreateKube

func (p *Provider) CreateKube(m *model.Kube, action *core.Action) error

CreateKube creates a new GCE kubernetes cluster.

func (*Provider) CreateLoadBalancer added in v0.14.0

func (p *Provider) CreateLoadBalancer(m *model.LoadBalancer, action *core.Action) error

func (*Provider) CreateNode

func (p *Provider) CreateNode(m *model.Node, action *core.Action) error

CreateNode creates a new minion on DO kubernetes cluster.

func (*Provider) DeleteKube

func (p *Provider) DeleteKube(m *model.Kube, action *core.Action) error

DeleteKube deletes a GCE kubernetes cluster.

func (*Provider) DeleteLoadBalancer added in v0.14.0

func (p *Provider) DeleteLoadBalancer(m *model.LoadBalancer, action *core.Action) error

func (*Provider) DeleteNode

func (p *Provider) DeleteNode(m *model.Node, action *core.Action) error

DeleteNode deletes a minsion on a DO kubernetes cluster.

func (*Provider) UpdateLoadBalancer added in v0.14.0

func (p *Provider) UpdateLoadBalancer(m *model.LoadBalancer, action *core.Action) error

func (*Provider) ValidateAccount

func (p *Provider) ValidateAccount(m *model.CloudAccount) error

ValidateAccount Valitades Open Stack account info.

Jump to

Keyboard shortcuts

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