package config

import "github.com/testcontainers/testcontainers-go/internal/config"

Index

Constants

const ReaperDefaultImage = "testcontainers/ryuk:0.6.0"

Functions

func Reset

func Reset()

Reset resets the singleton instance of the Config struct, allowing to read the configuration again. Handy for testing, so do not use it in production code This function is not thread-safe

Types

type Config

type Config struct {
	Host                    string        `properties:"docker.host,default="`
	TLSVerify               int           `properties:"docker.tls.verify,default=0"`
	CertPath                string        `properties:"docker.cert.path,default="`
	HubImageNamePrefix      string        `properties:"hub.image.name.prefix,default="`
	RyukDisabled            bool          `properties:"ryuk.disabled,default=false"`
	RyukPrivileged          bool          `properties:"ryuk.container.privileged,default=false"`
	RyukReconnectionTimeout time.Duration `properties:"ryuk.reconnection.timeout,default=10s"`
	RyukConnectionTimeout   time.Duration `properties:"ryuk.connection.timeout,default=1m"`
	RyukVerbose             bool          `properties:"ryuk.verbose,default=false"`
	TestcontainersHost      string        `properties:"tc.host,default="`
}

Config represents the configuration for Testcontainers testcontainersConfig {

func Read

func Read() Config

Read reads from testcontainers properties file, if it exists it is possible that certain values get overridden when set as environment variables

Source Files

config.go

Version
v0.28.0
Published
Feb 15, 2024
Platform
windows/amd64
Imports
7 packages
Last checked
14 minutes ago

Tools for package owners.