package
0.8.1
Repository: https://github.com/hashicorp/consul-ecs.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

AuthMethodInit sets up necessary pieces for the IAM auth method: - Start a fake AWS server.
No description provided by the author
ConsulACLConfigFn configures a Consul test server with ACLs.
ConsulServer initializes a Consul test server and returns Consul client config and the configured test server.
EnterpriseFlag indicates whether or not the test was invoked with the -enterprise command line argument.
FakeCommandWithTraps is a script used to validate our "entrypoint" commands.
No description provided by the author
SetECSConfigEnvVar the CONSUL_ECS_CONFIG_JSON environment variable to the JSON string of the provided value, with a test cleanup.
SimpleFakeCommand sleeps for a given number of seconds.
TaskMetaHandler returns an http.Handler that always responds with the given string for the 'GET /task' request of the ECS Task Metadata server.
TaskMetaHandler wraps the respFn in an http.Handler for the ECS Task Metadata server.
TaskMetaServer starts a local HTTP server to mimic the ECS Task Metadata server.
TempDir creates a temporary directory.

# Constants

No description provided by the author

# Structs

FakeCommand is a command/script to be run by tests for "entrypoint" commands.

# Type aliases

No description provided by the author