gce

package
v0.0.0-...-f06bd48 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResourceDetector

func NewResourceDetector() resource.Detector

NewResourceDetector will return an implementation for gcp gce resource detector

Types

type GCE

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

GCE implements resource.Detector interface for GCE instances

func (*GCE) Detect

func (computeEngine *GCE) Detect(ctx context.Context) (*resource.Resource, error)

Detect detects associated resources when running on GCE hosts.

Jump to

Keyboard shortcuts

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