config

package
v0.30.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const ReaperDefaultImage = "testcontainers/ryuk:0.7.0"

Variables

This section is empty.

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

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

Jump to

Keyboard shortcuts

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