source

package
v0.43.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Kind

type Kind string

Kind of source

const (
	// InvalidKind is an invalid kind. It is the zero value of Kind.
	InvalidKind Kind = ""
	// HostnameKind is a host source.
	HostnameKind Kind = "host"
	// AWSECSFargateKind is a serverless source on AWS ECS Fargate.
	AWSECSFargateKind Kind = "task_arn"
)

type Provider

type Provider interface {
	// Source gets the source from the current context.
	Source(ctx context.Context) (Source, error)
}

Provider identifies a source.

type Source

type Source struct {
	// Kind of source (serverless v. host).
	Kind Kind
	// Identifier that uniquely determines the source.
	Identifier string
}

Source represents a telemetry source.

func (*Source) Tag

func (s *Source) Tag() string

Tag associated to a source.

Jump to

Keyboard shortcuts

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