Versions in this module Expand all Collapse all v0 v0.33.0 Nov 10, 2024 v0.32.0 Jul 21, 2024 Changes in this version + const DefaultSessionFile + var RetryMaxTimeout = 5 * time.Minute + func CleanupResources() error + func CleanupSessionResources(session *Session) error + func CleanupSessionResourcesFromFile(fname string) error + func GetEnv() (string, string, error) + func GetFreePort() (string, error) + func InDocker() bool + func Retry(op func() error) error + type BuildOptions struct + BuildArgs []docker.BuildArg + ContextDir string + Dockerfile string + type Component interface + Start func(*Session) error + type RunOptions struct + Cmd []string + InitExecCmd string + type Session struct + func LoadSession() (*Session, error) + func LoadSessionFromFile(inDocker bool, fpath string) (*Session, error) + func NewSession(id, networkID string) (*Session, error) + func (s *Session) AutoServiceAddress(serviceName string) (string, error) + func (s *Session) DockerToDockerServiceAddress(serviceName string) (string, error) + func (s *Session) HostToDockerServiceAddress(serviceName string) (string, error) + func (s *Session) ID() string + func (s *Session) InDocker() bool + func (s *Session) NetworkID() string + func (s *Session) Persist() error + func (s *Session) PersistToFile(fpath string) error + func (s *Session) RegisterHostMappedDockerService(serviceName, endpoint string) error + func (s *Session) RegisterInternalDockerService(serviceName, endpoint string) error + func (s *Session) ServiceNames() []string + func (s *Session) StartComponents(cs ...Component) error + type SimpleComponent struct + Containers []SimpleContainerConfig + Name string + func (c *SimpleComponent) Start(session *Session) error + type SimpleContainerConfig struct + BuildOpts *BuildOptions + Env []string + Name string + ReadyFunc func(*Session) error + Repository string + RunOpts *RunOptions + ServicePorts map[string]string + StaticServicePorts map[string]string + Tag string + type SimpleContainerOptionFunc func(*SimpleContainerConfig) + func WithTag(tag string) SimpleContainerOptionFunc