package
0.33.0
Repository: https://github.com/beatlabs/bake.git
Documentation: pkg.go.dev

# Packages

Package component contains components for component tests.
Package env contains helpers to export a service's env vars with some substitution in order to replace docker-to-docker to host-to-docker addresses.

# Functions

CleanupResources finds all session files and prunes Docker resources associated with them.
CleanupSessionResources cleans up Docker resources for a Session.
CleanupSessionResourcesFromFile cleans up docker resources for a Session from a session file.
GetEnv retrieves bake related env vars, with defaults.
GetFreePort tries to find a free port on the current machine.
InDocker indicates whether the current process is running inside a Docker container.
LoadSession attempts to load a Session from the default file location.
LoadSessionFromFile attempts to load a session from a file.
NewSession prepares a new Docker session.
Retry is an exponential backoff retry helper.
WithTag sets a Docker tag in a SimpleContainerConfig.

# Constants

DefaultSessionFile is the file name used for storing sessions.

# Variables

RetryMaxTimeout is the timeout for the default retry func.

# Structs

BuildOptions contains simple docker build options.
RunOptions contains docker container run options.
Session is the docker session, used to manage the lifecycle of components.
SimpleComponent groups together several containers.
SimpleContainerConfig defines a Docker container with associated service ports.

# Interfaces

Component is a logical service, it groups together several containers.

# Type aliases

SimpleContainerOptionFunc allows for customization of SimpleContainerConfigs.