Documentation ¶
Index ¶
- func ClearCache()
- func EnsureProjectID()
- func GetExternalIP() (string, error)
- func GetInternalDNS() (string, error)
- func GetInternalIP() (string, error)
- func GetProjectID() (string, error)
- func GetSubnetMask() (string, error)
- func GetZone() (string, error)
- func ListAllExternalIPs(prefix string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearCache ¶
func ClearCache()
func GetExternalIP ¶
gets servers external IP on GCP using metadata endpoint
func GetInternalIP ¶
func GetProjectID ¶
gets servers project on GCP using metadata endpoint
func GetSubnetMask ¶
func ListAllExternalIPs ¶ added in v1.4.2
ListAllExternalIPs returns all compute instances in all zones for the project set with GOOGLE_CLOUD_PROJET
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.