package
1.49.0
Repository: https://github.com/pureweb/ecs-amazon-agent.git
Documentation: pkg.go.dev

# Packages

Package mock_containermetadata is a generated GoMock package.

# Functions

NewManager creates a metadataManager for a given DockerTaskEngine settings.

# Constants

No description provided by the author
MetadataInitial is the initial state of the metadata file which contains metadata provided by the ECS Agent.
No description provided by the author
MetadataReady is the final state of the metadata file which indicates it has acquired all the data it needs (Currently from the Agent and Docker).

# Variables

No description provided by the author

# Structs

DockerContainerMetadata keeps track of all metadata acquired from Docker inspection Has redundancies with dockerapi.DockerContainerMetadata but this packages all docker metadata we want in the service so we can change features easily.
Metadata packages all acquired metadata and is used to format it into JSON to write to the metadata file.
Network is a struct that keeps track of metadata of a network interface.
NetworkMetadata keeps track of the data we parse from the Network Settings in docker containers.
TaskMetadata keeps track of all metadata associated with a task provided by AWS, does not depend on the creation of the container.

# Interfaces

DockerMetadataClient is a wrapper for the docker interface functions we need We use this as a dummy type to be able to pass in dockerapi.DockerClient to our functions without creating import cycles We make it exported because we need to use it for testing (Using the MockDockerClient in engine package leads to import cycles) The problems described above are indications dockerapi.DockerClient needs to be moved outside the engine package.
Manager is an interface that allows us to abstract away the metadata operations.

# Type aliases

MetadataStatus specifies the current update status of the metadata file.