stablemocks

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package stablemocks launches the third-party mocks for the component pipeline using the official public images for each tool, with a fixed docker run contract (network, ports, mounts, container names and readiness) so `gtool services up --stable` provides a reproducible mock environment that seeds data from test/component/mocks-data.

Index

Constants

This section is empty.

Variables

View Source
var Supported = []string{"postgresql", "pubsub", "mountebank"}

Supported lists the mocks this launcher can start.

Functions

This section is empty.

Types

type Launcher

type Launcher struct {
	// contains filtered or unexported fields
}

Launcher launches and stops the mock containers.

func New

func New(d dockerClient, logger *zap.Logger) (*Launcher, error)

New builds a Launcher resolving the mocks-data directory from the working directory ($PWD/test/component/mocks-data).

func (*Launcher) Down

func (l *Launcher) Down(ctx context.Context, services []string) error

Down removes the fixed-name mock containers.

func (*Launcher) Up

func (l *Launcher) Up(ctx context.Context, services []string, cfg *config.Config) error

Up launches the given services (or all configured mocks), waits until each one is ready and seeds any post-start resources.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL