ecs

package
v0.0.0-...-7983b3b Latest Latest
Warning

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

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

Documentation

Overview

Package ecs provides metadata collection when the Agent runs on the ECS platform

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNTPHosts

func GetNTPHosts(ctx context.Context) []string

GetNTPHosts returns the NTP hosts for ECS/Fargate if it is detected as the cloud provider, otherwise an empty array.

func IsECSInstance

func IsECSInstance() bool

IsECSInstance returns whether the agent is running in ECS.

func IsFargateInstance

func IsFargateInstance(ctx context.Context) bool

IsFargateInstance returns whether the agent is in an ECS fargate task. It detects it by getting and unmarshalling the metadata API response.

func IsRunningOn

func IsRunningOn(ctx context.Context) bool

IsRunningOn returns true if the agent is running on ECS/Fargate

Types

This section is empty.

Directories

Path Synopsis
Package metadata provides clients for Metadata APIs exposed by the ECS agent.
Package metadata provides clients for Metadata APIs exposed by the ECS agent.
v1
v2
v3

Jump to

Keyboard shortcuts

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