// *** WARNING: this file was generated by pulumi-language-dotnet. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** using System; using System.Collections.Immutable; namespace Pulumi.DockerBuild { public static class Config { [global::System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Design", "IDE1006", Justification = "Double underscore prefix used to avoid conflicts with variable names.")] private sealed class __Value { private readonly Func _getter; private T _value = default!; private bool _set; public __Value(Func getter) { _getter = getter; } public T Get() => _set ? _value : _getter(); public void Set(T value) { _value = value; _set = true; } } private static readonly global::Pulumi.Config __config = new global::Pulumi.Config("docker-build"); private static readonly __Value _host = new __Value(() => __config.Get("host") ?? Utilities.GetEnv("DOCKER_HOST") ?? ""); /// /// The build daemon's address. /// public static string? Host { get => _host.Get(); set => _host.Set(value); } private static readonly __Value> _registries = new __Value>(() => __config.GetObject>("registries")); public static ImmutableArray Registries { get => _registries.Get(); set => _registries.Set(value); } public static class Types { public class Registry { /// /// The registry's address (e.g. "docker.io"). /// public string Address { get; set; } /// /// Password or token for the registry. /// public string? Password { get; set; } = null!; /// /// Username for the registry. /// public string? Username { get; set; } = null!; } } } }