gce

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractNatIpFromInstance

func ExtractNatIpFromInstance(instance *compute.Instance) (string, error)

Types

type Client

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

func NewClient

func NewClient(ctx context.Context, project, zone string) (*Client, error)

func (*Client) GetInstance

func (c *Client) GetInstance(instanceName string) (*compute.Instance, error)

func (*Client) ListInstances

func (c *Client) ListInstances() ([]*compute.Instance, error)

func (*Client) ResetPassword

func (c *Client) ResetPassword(instanceName, userName string) (string, error)

func (*Client) StartInstance

func (c *Client) StartInstance(instanceName string) error

Jump to

Keyboard shortcuts

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