Documentation
¶
Index ¶
Constants ¶
Variables ¶
This section is empty.
Functions ¶
func BuildEndpoint ¶
func BuildEndpoint(ctx context.Context, container testcontainers.Container, opts ...LocalStackOption) (string, error)
BuildEndpoint returns the endpoint of the LocalStack container
Example: "http://localhost:4566"
func WithLocalStackContainer ¶
func WithLocalStackContainer() container.ContainerOption
Return a new container definition for a LocalStack container with default options:
DockerImage: "localstack/localstack:3.4" ExposedPort: "4566" Environment variables: DEBUG: false DOCKER_HOST: "unix:///var/run/docker.sock" DEFAULT_REGION: "us-east-1" BasePath: "/etc/localstack/init/ready.d" WaitingForLog: "Initialization complete!" StartupTimeout: "30 seconds"
Types ¶
type LocalStackOption ¶
type LocalStackOption func(*Options)
LocalStackOption is a type that represents a LocalStack option
func WithDebug ¶
func WithDebug(debug string) LocalStackOption
WithDebug is a LocalStackOption that sets the debug of the LocalStack container
Default: false
func WithDefaultRegion ¶
func WithDefaultRegion(defaultRegion string) LocalStackOption
WithDefaultRegion is a LocalStackOption that sets the default region of the LocalStack container
Default: "us-east-1"
func WithDockerHost ¶
func WithDockerHost(dockerHost string) LocalStackOption
WithDockerHost is a LocalStackOption that sets the Docker host of the LocalStack container
Default: "unix:///var/run/docker.sock"
func WithExposedPort ¶
func WithExposedPort(exposedPort string) LocalStackOption
WithExposedPort is a LocalStackOption that sets the exposed port of the LocalStack container
Default: "4566"
Click to show internal directories.
Click to hide internal directories.