Documentation
¶
Index ¶
Constants ¶
View Source
const ( TaskMetadataEndpointV3EnvVar = "ECS_CONTAINER_METADATA_URI" TaskMetadataEndpointV4EnvVar = "ECS_CONTAINER_METADATA_URI_V4" TaskMetadataPath = "/task" ContainerMetadataPath = "" )
Variables ¶
This section is empty.
Functions ¶
func GetTMEFromEnv ¶
GetTMEFromEnv will return the first available task metadata endpoint for the v4 or v3 env var in that order.
func GetTMEV3FromEnv ¶
GetTMEV3FromEnv will return a validated task metadata endpoint as obtained by the v3 env var, if any.
func GetTMEV4FromEnv ¶
GetTMEV4FromEnv will return a validated task metadata endpoint as obtained by the v4 env var, if any.
Types ¶
type ErrNoTaskMetadataEndpointDetected ¶
type ErrNoTaskMetadataEndpointDetected struct { MissingVersion int // contains filtered or unexported fields }
ErrNoTaskMetadataEndpointDetected is a reserved error type to distinguish between incompatible environments and other error scenarios
Click to show internal directories.
Click to hide internal directories.