metadata

package
v0.0.0-...-4189bbb Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 7 Imported by: 2

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

func V1() (*v1.Client, error)

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 V2

func V2() (*v2.Client, error)

V2 returns a client for the ECS metadata API v2 that uses the default endpoint address.

func V3orV4FromCurrentTask

func V3orV4FromCurrentTask() (*v3or4.Client, error)

V3orV4FromCurrentTask returns a client for the ECS metadata API v3 or v4 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.

Directories

Path Synopsis
Package testutil implements a fake ECS client to be used in tests.
Package testutil implements a fake ECS client to be used in tests.

Jump to

Keyboard shortcuts

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