ecs

package
v0.100.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package ecs contains the ECS Fargate hostname provider

Index

Constants

This section is empty.

Variables

View Source
var ErrNotOnECSFargate = fmt.Errorf("not running on ECS Fargate")

Functions

This section is empty.

Types

type Provider

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

func NewProvider

func NewProvider(set component.TelemetrySettings) (*Provider, error)

NewProvider creates a new ECS Fargate hostname provider.

func (*Provider) OnECSFargate

func (p *Provider) OnECSFargate(_ context.Context) (bool, error)

OnECSFargate determines if the application is running on ECS Fargate.

func (*Provider) Source

func (p *Provider) Source(ctx context.Context) (source.Source, error)

Source returns the task ARN of the ECS Fargate task if on ECS Fargate.

Jump to

Keyboard shortcuts

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