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"` RyukReconnectionTimeout time.Duration `properties:"ryuk.reconnection.timeout,default=10s"` RyukConnectionTimeout time.Duration `properties:"ryuk.connection.timeout,default=1m"` 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 ¶
- Version
- v0.25.0
- Published
- Sep 29, 2023
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 55 seconds ago –
Tools for package owners.