gcp

package
v0.0.0-...-f0d86f2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2021 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCP

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

GCP is an implementation of CloudProvider for Google Cloud Platform

func NewGCP

func NewGCP() (*GCP, error)

NewGCP instantiates a new GCP CloudProvider

func (GCP) CreateNode

func (gc GCP) CreateNode(ctx context.Context, node model.Node, callback func(string, string), onError func(error))

CreateNode creates a google compute engine instance

func (GCP) DeleteNode

func (gc GCP) DeleteNode(ctx context.Context, node model.Node, onSuccess func(), onError func(error))

DeleteNode deletes the google compute engine instance

Jump to

Keyboard shortcuts

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