Initial provider implementation (#18)
This brings over the initial buildx prototype from pulumi/pulumi-docker and fixes various build and release issues.
This commit is contained in:
29
sdk/dotnet/Provider.cs
generated
29
sdk/dotnet/Provider.cs
generated
@@ -7,11 +7,18 @@ using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild
|
||||
namespace Pulumi.DockerBuild
|
||||
{
|
||||
[DockerbuildResourceType("pulumi:providers:dockerbuild")]
|
||||
[DockerBuildResourceType("pulumi:providers:docker-build")]
|
||||
public partial class Provider : global::Pulumi.ProviderResource
|
||||
{
|
||||
/// <summary>
|
||||
/// The build daemon's address.
|
||||
/// </summary>
|
||||
[Output("host")]
|
||||
public Output<string?> Host { get; private set; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create a Provider resource with the given unique name, arguments, and options.
|
||||
/// </summary>
|
||||
@@ -20,7 +27,7 @@ namespace Pulumi.Dockerbuild
|
||||
/// <param name="args">The arguments used to populate this resource's properties</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public Provider(string name, ProviderArgs? args = null, CustomResourceOptions? options = null)
|
||||
: base("dockerbuild", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
|
||||
: base("docker-build", name, args ?? new ProviderArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
@@ -29,7 +36,6 @@ namespace Pulumi.Dockerbuild
|
||||
var defaultOptions = new CustomResourceOptions
|
||||
{
|
||||
Version = Utilities.Version,
|
||||
PluginDownloadURL = "github.com/pulumi/pulumi-dockerbuild",
|
||||
};
|
||||
var merged = CustomResourceOptions.Merge(defaultOptions, options);
|
||||
// Override the ID if one was specified for consistency with other language SDKs.
|
||||
@@ -40,8 +46,23 @@ namespace Pulumi.Dockerbuild
|
||||
|
||||
public sealed class ProviderArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The build daemon's address.
|
||||
/// </summary>
|
||||
[Input("host")]
|
||||
public Input<string>? Host { get; set; }
|
||||
|
||||
[Input("registries", json: true)]
|
||||
private InputList<Inputs.RegistryArgs>? _registries;
|
||||
public InputList<Inputs.RegistryArgs> Registries
|
||||
{
|
||||
get => _registries ?? (_registries = new InputList<Inputs.RegistryArgs>());
|
||||
set => _registries = value;
|
||||
}
|
||||
|
||||
public ProviderArgs()
|
||||
{
|
||||
Host = Utilities.GetEnv("DOCKER_HOST") ?? "";
|
||||
}
|
||||
public static new ProviderArgs Empty => new ProviderArgs();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user