gcp

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2022 License: Apache-2.0 Imports: 8 Imported by: 58

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SemVersion added in v0.24.0

func SemVersion() string

SemVersion is the semantic version to be supplied to tracer/meter creation.

func Version added in v0.24.0

func Version() string

Version is the current release version of the GCP resource detector.

Types

type CloudRun added in v0.15.0

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

CloudRun collects resource information of Cloud Run instance.

func NewCloudRun added in v0.15.0

func NewCloudRun() *CloudRun

NewCloudRun creates a CloudRun detector.

func (*CloudRun) Detect added in v0.15.0

func (c *CloudRun) Detect(ctx context.Context) (*resource.Resource, error)

Detect detects associated resources when running on Cloud Run hosts. NOTE: the service.namespace attribute is currently hardcoded to be "cloud-run-managed". This may change in the future, please do not rely on this behavior yet.

type GCE

type GCE struct{}

GCE collects resource information of GCE computing instances

func (*GCE) Detect

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

Detect detects associated resources when running on GCE hosts.

type GKE

type GKE struct{}

GKE collects resource information of GKE computing instances

func (*GKE) Detect

func (gke *GKE) Detect(ctx context.Context) (*resource.Resource, error)

Detect detects associated resources when running in GKE environment.

Jump to

Keyboard shortcuts

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