tcshandler

package
v0.0.0-...-b702281 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

View Source
const (
	ContainerRuntimeDocker = "Docker"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TcsEcsClient

type TcsEcsClient interface {
	DiscoverTelemetryEndpoint(string) (string, error)
}

type TelemetrySession

type TelemetrySession interface {
	StartTelemetrySession(context.Context) error
	Start(context.Context) error
}

TelemetrySession defines an interface for handler's long-lived connection with TCS.

func NewTelemetrySession

func NewTelemetrySession(
	containerInstanceArn string,
	cluster string,
	agentVersion string,
	agentHash string,
	containerRuntimeVersion string,
	disableMetrics bool,
	credentialsProvider *credentials.Credentials,
	cfg *wsclient.WSClientMinAgentConfig,
	deregisterInstanceEventStream *eventstream.EventStream,
	heartbeatTimeout time.Duration,
	heartbeatJitterMax time.Duration,
	disconnectTimeout time.Duration,
	disconnectJitterMax time.Duration,
	metricsFactory metrics.EntryFactory,
	metricsChannel <-chan ecstcs.TelemetryMessage,
	healthChannel <-chan ecstcs.HealthMessage,
	doctor *doctor.Doctor,
	ecsClient TcsEcsClient,
) TelemetrySession

Jump to

Keyboard shortcuts

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