gcp

package
v0.0.0-...-a355528 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2017 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client contains state required for communication with GCP

func NewClient

func NewClient(projectName string, serviceAccountKey *types.Any) (*Client, error)

NewClient creates a new GCP client

func (Client) CreateImage

func (g Client) CreateImage(name, storageURL, family string, replace bool) error

CreateImage creates a GCP image using the a source from Google Storage

func (Client) DeleteImage

func (g Client) DeleteImage(name string) error

DeleteImage deletes and image

Jump to

Keyboard shortcuts

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