instances

package
v1.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearCache

func ClearCache()

func EnsureProjectID

func EnsureProjectID()

ensures GOOGLE_CLOUD_PROJECT is set with project id

func GetExternalIP

func GetExternalIP() (string, error)

gets servers external IP on GCP using metadata endpoint

func GetInternalDNS

func GetInternalDNS() (string, error)

internal DNS works within VPC

func GetInternalIP

func GetInternalIP() (string, error)

func GetProjectID

func GetProjectID() (string, error)

gets servers project on GCP using metadata endpoint

func GetSubnetMask

func GetSubnetMask() (string, error)

func GetZone

func GetZone() (string, error)

func ListAllExternalIPs added in v1.4.2

func ListAllExternalIPs(prefix string) ([]string, error)

ListAllExternalIPs returns all compute instances in all zones for the project set with GOOGLE_CLOUD_PROJET

Types

This section is empty.

Jump to

Keyboard shortcuts

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