container

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: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package container provides container fixture implementations for testing.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Container

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

Container represents a test container fixture that is used for testing purposes.

func NewContainer

func NewContainer(
	ctr tc.Container,
	env env.Variables,
) *Container

NewContainer creates a new Container instance with the given Docker container and commit hashes.

func (*Container) Container

func (fx *Container) Container() tc.Container

Container returns the test Docker container associated with the actual fixture.

func (*Container) Env

func (fx *Container) Env() env.Variables

Env returns the collection of environment variables that contain commit hashes.

func (*Container) Terminate

func (fx *Container) Terminate(
	ctx context.Context,
	timeout time.Duration,
) error

Terminate stops and removes the test Docker container associated with the actual fixture, using the specified timeout.

Jump to

Keyboard shortcuts

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