cloud

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTLS

func SetupTLS() (*tls.Config, error)

Types

type GoogleClient

type GoogleClient struct {
	*compute.Service
}

func NewGCPClient

func NewGCPClient() (*GoogleClient, error)

func (*GoogleClient) GetInstances

func (c *GoogleClient) GetInstances(project string) ([]Instance, error)

GetInstances returns a list of external IP addresses used for the SHH connection

type Instance

type Instance struct {
	PublicAddress  string
	PrivateAddress string
	Name           string
	Labels         map[string]string
}

func GetInstances

func GetInstances(target string) ([]Instance, error)

func (Instance) GetAddress

func (i Instance) GetAddress(private bool) string

Jump to

Keyboard shortcuts

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