package config

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

Index

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="`
	RyukDisabled       bool   `properties:"ryuk.disabled,default=false"`
	RyukPrivileged     bool   `properties:"ryuk.container.privileged,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.21.0
Published
Jun 22, 2023
Platform
js/wasm
Imports
6 packages
Last checked
3 hours ago

Tools for package owners.