ProviderRegistryAuth constructor
Creates a new ProviderRegistryAuth.
address Address of the registry
authDisabled Setting this to true will tell the provider that this registry does not need authentication. Due to the docker internals, the provider will use dummy credentials (see https://github.com/kreuzwerker/terraform-provider-docker/issues/470 for more information). Defaults to false.
configFile Path to docker json file for registry auth. Defaults to ~/.docker/config.json. If DOCKER_CONFIG env variable is set, the value of DOCKER_CONFIG is used as the path. DOCKER_CONFIG can be set to a directory (as per Docker CLI) or a file path directly. configFile has precedence over all other options.
configFileContent Plain content of the docker json file for registry auth. configFileContent has precedence over username/password.
password Password for the registry. Defaults to DOCKER_REGISTRY_PASS env variable if set.
username Username for the registry. Defaults to DOCKER_REGISTRY_USER env variable if set.
Implementation
const ProviderRegistryAuth({
required this.address,
this.authDisabled,
this.configFile,
this.configFileContent,
this.password,
this.username,
});