Documentation ¶
Overview ¶
Package metadata provides clients for Metadata APIs exposed by the ECS agent. There are three versions of these APIs:
V1: also called introspection endpoint.
V2: available since ecs-agent 1.17.0 with the EC2 launch type and since platform version 1.1.0 with the Fargate launch type.
V3: available since ecs-agent 1.21.0 with the EC2 launch type and since platform version 1.3.0 with the Faragate launch type.
Each of these versions sits in its own subpackage.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func V1 ¶
V1 returns a client for the ECS metadata API v1, also called introspection endpoint, by detecting the endpoint address. Returns an error if it was not possible to detect the endpoint address.
func V3 ¶
V3 returns a client for the ECS metadata API v3 by detecting the endpoint address for the specified container. Returns an error if it was not possible to detect the endpoint address.
func V3FromCurrentTask ¶
V3FromCurrentTask returns a client for the ECS metadata API v3 by detedting the endpoint address from the task the executable is running in. Returns an error if it was not possible to detect the endpoint address.
Types ¶
This section is empty.