google

package
v0.0.0-...-305cc5f Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Google

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

func New

func New(client *http.Client, project, region, zone, token string) *Google

func (*Google) CreateStaticIP

func (g *Google) CreateStaticIP(
	ctx context.Context,
	name string,
	typ tf.IPType,
) (*tf.IP, error)

func (*Google) CreateVM

func (g *Google) CreateVM(ctx context.Context, vm *tf.VM) error

func (*Google) Delete

func (g *Google) Delete(ctx context.Context, name string) error

func (*Google) GetAll

func (g *Google) GetAll(ctx context.Context) ([]*tf.VM, error)

func (*Google) GetStaticIPs

func (g *Google) GetStaticIPs(ctx context.Context) ([]*tf.IP, error)

Jump to

Keyboard shortcuts

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