package
1.20.0-1
Repository: https://github.com/fenxiong/amazon-ecs-agent.git
Documentation: pkg.go.dev

# Functions

CredentialsHandler creates response for the 'v2/credentials' API.
NewContainerResponse creates a new container response based on container id.
NewTaskResponse creates a new response object for the task.
NewTaskStatsResponse returns a new task stats response object.
TaskContainerMetadataHandler returns the handler method for handling task and container metadata requests.
TaskContainerStatsHandler returns the handler method for handling task and container stats requests.
WriteContainerMetadataResponse writes the container metadata to response writer.
WriteContainerStatsResponse writes the container stats to response writer.
WriteTaskMetadataResponse writes the task metadata to response writer.
WriteTaskStatsResponse writes the task stats to response writer.

# Constants

TaskMetadataPath specifies the relative URI path for serving task metadata.
TaskMetadataPathWithSlash specifies the relative URI path for serving task metadata.
TaskStatsPath specifies the relative URI path for serving task stats.
TaskStatsPathWithSlash specifies the relative URI path for serving task stats.
TaskWithTagsMetadataPath specifies the relative URI path for serving task metadata with Container Instance and Task Tags.
TaskWithTagsMetadataPath specifies the relative URI path for serving task metadata with Container Instance and Task Tags.

# Variables

ContainerMetadataPath specifies the relative URI path for serving container metadata.
ContainerStatsPath specifies the relative URI path for serving container stats.
CredentialsPath specifies the relative URI path for serving task IAM credentials.

# Structs

ContainerResponse defines the schema for the container response JSON object.
LimitsResponse defines the schema for task/cpu limits response JSON object.
TaskResponse defines the schema for the task response JSON object.