gce

package
v0.0.0-...-3b12f0d Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddMetadata

func AddMetadata(result map[string]string)

AddMetadata gathers a subset of GCE instance metadata, and adds it to the result map. This is safe to call even if the instance isn't running on GCE. The added keys are the metadata path in the metadata service, prefixed with 'gce:'. Synthetic metadata is also added, prefixed with 'instance:'. Failures (missing keys, etc) are logged and ignored.

Types

This section is empty.

Jump to

Keyboard shortcuts

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