Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudRun

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

    CloudRun collects resource information of Cloud Run instance.

    func NewCloudRun

    func NewCloudRun() *CloudRun

      NewCloudRun creates a CloudRun detector.

      func (*CloudRun) Detect

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

        Detect detects associated resources when running on Cloud Run hosts. NOTE: the service.namespace label 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.