Forklift buildx provider
This commit is contained in:
72
sdk/dotnet/Config/Config.cs
generated
Normal file
72
sdk/dotnet/Config/Config.cs
generated
Normal file
@@ -0,0 +1,72 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** 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<T>
|
||||
{
|
||||
private readonly Func<T> _getter;
|
||||
private T _value = default!;
|
||||
private bool _set;
|
||||
|
||||
public __Value(Func<T> 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("dockerbuild");
|
||||
|
||||
private static readonly __Value<string?> _host = new __Value<string?>(() => __config.Get("host") ?? Utilities.GetEnv("DOCKER_HOST") ?? "");
|
||||
/// <summary>
|
||||
/// The build daemon's address.
|
||||
/// </summary>
|
||||
public static string? Host
|
||||
{
|
||||
get => _host.Get();
|
||||
set => _host.Set(value);
|
||||
}
|
||||
|
||||
private static readonly __Value<ImmutableArray<Types.Registry>> _registries = new __Value<ImmutableArray<Types.Registry>>(() => __config.GetObject<ImmutableArray<Types.Registry>>("registries"));
|
||||
public static ImmutableArray<Types.Registry> Registries
|
||||
{
|
||||
get => _registries.Get();
|
||||
set => _registries.Set(value);
|
||||
}
|
||||
|
||||
public static class Types
|
||||
{
|
||||
|
||||
public class Registry
|
||||
{
|
||||
/// <summary>
|
||||
/// The registry's address (e.g. "docker.io").
|
||||
/// </summary>
|
||||
public string Address { get; set; }
|
||||
/// <summary>
|
||||
/// Password or token for the registry.
|
||||
/// </summary>
|
||||
public string? Password { get; set; } = null!;
|
||||
/// <summary>
|
||||
/// Username for the registry.
|
||||
/// </summary>
|
||||
public string? Username { get; set; } = null!;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
1
sdk/dotnet/Config/README.md
generated
Normal file
1
sdk/dotnet/Config/README.md
generated
Normal file
@@ -0,0 +1 @@
|
||||
A Pulumi provider for Docker buildx
|
||||
173
sdk/dotnet/Enums.cs
generated
Normal file
173
sdk/dotnet/Enums.cs
generated
Normal file
@@ -0,0 +1,173 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.ComponentModel;
|
||||
using Pulumi;
|
||||
|
||||
namespace Pulumi.Dockerbuild
|
||||
{
|
||||
[EnumType]
|
||||
public readonly struct CacheMode : IEquatable<CacheMode>
|
||||
{
|
||||
private readonly string _value;
|
||||
|
||||
private CacheMode(string value)
|
||||
{
|
||||
_value = value ?? throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Only layers that are exported into the resulting image are cached.
|
||||
/// </summary>
|
||||
public static CacheMode Min { get; } = new CacheMode("min");
|
||||
/// <summary>
|
||||
/// All layers are cached, even those of intermediate steps.
|
||||
/// </summary>
|
||||
public static CacheMode Max { get; } = new CacheMode("max");
|
||||
|
||||
public static bool operator ==(CacheMode left, CacheMode right) => left.Equals(right);
|
||||
public static bool operator !=(CacheMode left, CacheMode right) => !left.Equals(right);
|
||||
|
||||
public static explicit operator string(CacheMode value) => value._value;
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override bool Equals(object? obj) => obj is CacheMode other && Equals(other);
|
||||
public bool Equals(CacheMode other) => string.Equals(_value, other._value, StringComparison.Ordinal);
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
|
||||
|
||||
public override string ToString() => _value;
|
||||
}
|
||||
|
||||
[EnumType]
|
||||
public readonly struct CompressionType : IEquatable<CompressionType>
|
||||
{
|
||||
private readonly string _value;
|
||||
|
||||
private CompressionType(string value)
|
||||
{
|
||||
_value = value ?? throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use `gzip` for compression.
|
||||
/// </summary>
|
||||
public static CompressionType Gzip { get; } = new CompressionType("gzip");
|
||||
/// <summary>
|
||||
/// Use `estargz` for compression.
|
||||
/// </summary>
|
||||
public static CompressionType Estargz { get; } = new CompressionType("estargz");
|
||||
/// <summary>
|
||||
/// Use `zstd` for compression.
|
||||
/// </summary>
|
||||
public static CompressionType Zstd { get; } = new CompressionType("zstd");
|
||||
|
||||
public static bool operator ==(CompressionType left, CompressionType right) => left.Equals(right);
|
||||
public static bool operator !=(CompressionType left, CompressionType right) => !left.Equals(right);
|
||||
|
||||
public static explicit operator string(CompressionType value) => value._value;
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override bool Equals(object? obj) => obj is CompressionType other && Equals(other);
|
||||
public bool Equals(CompressionType other) => string.Equals(_value, other._value, StringComparison.Ordinal);
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
|
||||
|
||||
public override string ToString() => _value;
|
||||
}
|
||||
|
||||
[EnumType]
|
||||
public readonly struct NetworkMode : IEquatable<NetworkMode>
|
||||
{
|
||||
private readonly string _value;
|
||||
|
||||
private NetworkMode(string value)
|
||||
{
|
||||
_value = value ?? throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The default sandbox network mode.
|
||||
/// </summary>
|
||||
public static NetworkMode @Default { get; } = new NetworkMode("default");
|
||||
/// <summary>
|
||||
/// Host network mode.
|
||||
/// </summary>
|
||||
public static NetworkMode Host { get; } = new NetworkMode("host");
|
||||
/// <summary>
|
||||
/// Disable network access.
|
||||
/// </summary>
|
||||
public static NetworkMode None { get; } = new NetworkMode("none");
|
||||
|
||||
public static bool operator ==(NetworkMode left, NetworkMode right) => left.Equals(right);
|
||||
public static bool operator !=(NetworkMode left, NetworkMode right) => !left.Equals(right);
|
||||
|
||||
public static explicit operator string(NetworkMode value) => value._value;
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override bool Equals(object? obj) => obj is NetworkMode other && Equals(other);
|
||||
public bool Equals(NetworkMode other) => string.Equals(_value, other._value, StringComparison.Ordinal);
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
|
||||
|
||||
public override string ToString() => _value;
|
||||
}
|
||||
|
||||
[EnumType]
|
||||
public readonly struct Platform : IEquatable<Platform>
|
||||
{
|
||||
private readonly string _value;
|
||||
|
||||
private Platform(string value)
|
||||
{
|
||||
_value = value ?? throw new ArgumentNullException(nameof(value));
|
||||
}
|
||||
|
||||
public static Platform Darwin_386 { get; } = new Platform("darwin/386");
|
||||
public static Platform Darwin_amd64 { get; } = new Platform("darwin/amd64");
|
||||
public static Platform Darwin_arm { get; } = new Platform("darwin/arm");
|
||||
public static Platform Darwin_arm64 { get; } = new Platform("darwin/arm64");
|
||||
public static Platform Dragonfly_amd64 { get; } = new Platform("dragonfly/amd64");
|
||||
public static Platform Freebsd_386 { get; } = new Platform("freebsd/386");
|
||||
public static Platform Freebsd_amd64 { get; } = new Platform("freebsd/amd64");
|
||||
public static Platform Freebsd_arm { get; } = new Platform("freebsd/arm");
|
||||
public static Platform Linux_386 { get; } = new Platform("linux/386");
|
||||
public static Platform Linux_amd64 { get; } = new Platform("linux/amd64");
|
||||
public static Platform Linux_arm { get; } = new Platform("linux/arm");
|
||||
public static Platform Linux_arm64 { get; } = new Platform("linux/arm64");
|
||||
public static Platform Linux_mips64 { get; } = new Platform("linux/mips64");
|
||||
public static Platform Linux_mips64le { get; } = new Platform("linux/mips64le");
|
||||
public static Platform Linux_ppc64le { get; } = new Platform("linux/ppc64le");
|
||||
public static Platform Linux_riscv64 { get; } = new Platform("linux/riscv64");
|
||||
public static Platform Linux_s390x { get; } = new Platform("linux/s390x");
|
||||
public static Platform Netbsd_386 { get; } = new Platform("netbsd/386");
|
||||
public static Platform Netbsd_amd64 { get; } = new Platform("netbsd/amd64");
|
||||
public static Platform Netbsd_arm { get; } = new Platform("netbsd/arm");
|
||||
public static Platform Openbsd_386 { get; } = new Platform("openbsd/386");
|
||||
public static Platform Openbsd_amd64 { get; } = new Platform("openbsd/amd64");
|
||||
public static Platform Openbsd_arm { get; } = new Platform("openbsd/arm");
|
||||
public static Platform Plan9_386 { get; } = new Platform("plan9/386");
|
||||
public static Platform Plan9_amd64 { get; } = new Platform("plan9/amd64");
|
||||
public static Platform Solaris_amd64 { get; } = new Platform("solaris/amd64");
|
||||
public static Platform Windows_386 { get; } = new Platform("windows/386");
|
||||
public static Platform Windows_amd64 { get; } = new Platform("windows/amd64");
|
||||
|
||||
public static bool operator ==(Platform left, Platform right) => left.Equals(right);
|
||||
public static bool operator !=(Platform left, Platform right) => !left.Equals(right);
|
||||
|
||||
public static explicit operator string(Platform value) => value._value;
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override bool Equals(object? obj) => obj is Platform other && Equals(other);
|
||||
public bool Equals(Platform other) => string.Equals(_value, other._value, StringComparison.Ordinal);
|
||||
|
||||
[EditorBrowsable(EditorBrowsableState.Never)]
|
||||
public override int GetHashCode() => _value?.GetHashCode() ?? 0;
|
||||
|
||||
public override string ToString() => _value;
|
||||
}
|
||||
}
|
||||
1124
sdk/dotnet/Image.cs
generated
Normal file
1124
sdk/dotnet/Image.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
248
sdk/dotnet/Index.cs
generated
Normal file
248
sdk/dotnet/Index.cs
generated
Normal file
@@ -0,0 +1,248 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild
|
||||
{
|
||||
/// <summary>
|
||||
/// An index (or manifest list) referencing one or more existing images.
|
||||
///
|
||||
/// Useful for crafting a multi-platform image from several
|
||||
/// platform-specific images.
|
||||
///
|
||||
/// This creates an OCI image index or a Docker manifest list depending on
|
||||
/// the media types of the source images.
|
||||
///
|
||||
/// ## Example Usage
|
||||
/// ### Multi-platform registry caching
|
||||
/// ```csharp
|
||||
/// using System.Collections.Generic;
|
||||
/// using System.Linq;
|
||||
/// using Pulumi;
|
||||
/// using Docker = Pulumi.Docker;
|
||||
///
|
||||
/// return await Deployment.RunAsync(() =>
|
||||
/// {
|
||||
/// var amd64 = new Docker.Buildx.Image("amd64", new()
|
||||
/// {
|
||||
/// CacheFrom = new[]
|
||||
/// {
|
||||
/// new Docker.Buildx.Inputs.CacheFromArgs
|
||||
/// {
|
||||
/// Registry = new Docker.Buildx.Inputs.CacheFromRegistryArgs
|
||||
/// {
|
||||
/// Ref = "docker.io/pulumi/pulumi:cache-amd64",
|
||||
/// },
|
||||
/// },
|
||||
/// },
|
||||
/// CacheTo = new[]
|
||||
/// {
|
||||
/// new Docker.Buildx.Inputs.CacheToArgs
|
||||
/// {
|
||||
/// Registry = new Docker.Buildx.Inputs.CacheToRegistryArgs
|
||||
/// {
|
||||
/// Mode = Docker.Buildx.Image.CacheMode.Max,
|
||||
/// Ref = "docker.io/pulumi/pulumi:cache-amd64",
|
||||
/// },
|
||||
/// },
|
||||
/// },
|
||||
/// Context = new Docker.Buildx.Inputs.BuildContextArgs
|
||||
/// {
|
||||
/// Location = "app",
|
||||
/// },
|
||||
/// Platforms = new[]
|
||||
/// {
|
||||
/// Docker.Buildx.Image.Platform.Linux_amd64,
|
||||
/// },
|
||||
/// Tags = new[]
|
||||
/// {
|
||||
/// "docker.io/pulumi/pulumi:3.107.0-amd64",
|
||||
/// },
|
||||
/// });
|
||||
///
|
||||
/// var arm64 = new Docker.Buildx.Image("arm64", new()
|
||||
/// {
|
||||
/// CacheFrom = new[]
|
||||
/// {
|
||||
/// new Docker.Buildx.Inputs.CacheFromArgs
|
||||
/// {
|
||||
/// Registry = new Docker.Buildx.Inputs.CacheFromRegistryArgs
|
||||
/// {
|
||||
/// Ref = "docker.io/pulumi/pulumi:cache-arm64",
|
||||
/// },
|
||||
/// },
|
||||
/// },
|
||||
/// CacheTo = new[]
|
||||
/// {
|
||||
/// new Docker.Buildx.Inputs.CacheToArgs
|
||||
/// {
|
||||
/// Registry = new Docker.Buildx.Inputs.CacheToRegistryArgs
|
||||
/// {
|
||||
/// Mode = Docker.Buildx.Image.CacheMode.Max,
|
||||
/// Ref = "docker.io/pulumi/pulumi:cache-arm64",
|
||||
/// },
|
||||
/// },
|
||||
/// },
|
||||
/// Context = new Docker.Buildx.Inputs.BuildContextArgs
|
||||
/// {
|
||||
/// Location = "app",
|
||||
/// },
|
||||
/// Platforms = new[]
|
||||
/// {
|
||||
/// Docker.Buildx.Image.Platform.Linux_arm64,
|
||||
/// },
|
||||
/// Tags = new[]
|
||||
/// {
|
||||
/// "docker.io/pulumi/pulumi:3.107.0-arm64",
|
||||
/// },
|
||||
/// });
|
||||
///
|
||||
/// var index = new Docker.Buildx.Index("index", new()
|
||||
/// {
|
||||
/// Sources = new[]
|
||||
/// {
|
||||
/// amd64.Ref,
|
||||
/// arm64.Ref,
|
||||
/// },
|
||||
/// Tag = "docker.io/pulumi/pulumi:3.107.0",
|
||||
/// });
|
||||
///
|
||||
/// return new Dictionary<string, object?>
|
||||
/// {
|
||||
/// ["ref"] = index.Ref,
|
||||
/// };
|
||||
/// });
|
||||
///
|
||||
/// ```
|
||||
/// </summary>
|
||||
[DockerbuildResourceType("dockerbuild:index:Index")]
|
||||
public partial class Index : global::Pulumi.CustomResource
|
||||
{
|
||||
/// <summary>
|
||||
/// If true, push the index to the target registry.
|
||||
///
|
||||
/// Defaults to `true`.
|
||||
/// </summary>
|
||||
[Output("push")]
|
||||
public Output<bool?> Push { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// The pushed tag with digest.
|
||||
///
|
||||
/// Identical to the tag if the index was not pushed.
|
||||
/// </summary>
|
||||
[Output("ref")]
|
||||
public Output<string> Ref { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Authentication for the registry where the tagged index will be pushed.
|
||||
///
|
||||
/// Credentials can also be included with the provider's configuration.
|
||||
/// </summary>
|
||||
[Output("registry")]
|
||||
public Output<Outputs.Registry?> Registry { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Existing images to include in the index.
|
||||
/// </summary>
|
||||
[Output("sources")]
|
||||
public Output<ImmutableArray<string>> Sources { get; private set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// The tag to apply to the index.
|
||||
/// </summary>
|
||||
[Output("tag")]
|
||||
public Output<string> Tag { get; private set; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create a Index resource with the given unique name, arguments, and options.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">The unique name of the resource</param>
|
||||
/// <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 Index(string name, IndexArgs args, CustomResourceOptions? options = null)
|
||||
: base("dockerbuild:index:Index", name, args ?? new IndexArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
private Index(string name, Input<string> id, CustomResourceOptions? options = null)
|
||||
: base("dockerbuild:index:Index", name, null, MakeResourceOptions(options, id))
|
||||
{
|
||||
}
|
||||
|
||||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
||||
{
|
||||
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.
|
||||
merged.Id = id ?? merged.Id;
|
||||
return merged;
|
||||
}
|
||||
/// <summary>
|
||||
/// Get an existing Index resource's state with the given name, ID, and optional extra
|
||||
/// properties used to qualify the lookup.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">The unique name of the resulting resource.</param>
|
||||
/// <param name="id">The unique provider ID of the resource to lookup.</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public static Index Get(string name, Input<string> id, CustomResourceOptions? options = null)
|
||||
{
|
||||
return new Index(name, id, options);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class IndexArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// If true, push the index to the target registry.
|
||||
///
|
||||
/// Defaults to `true`.
|
||||
/// </summary>
|
||||
[Input("push")]
|
||||
public Input<bool>? Push { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Authentication for the registry where the tagged index will be pushed.
|
||||
///
|
||||
/// Credentials can also be included with the provider's configuration.
|
||||
/// </summary>
|
||||
[Input("registry")]
|
||||
public Input<Inputs.RegistryArgs>? Registry { get; set; }
|
||||
|
||||
[Input("sources", required: true)]
|
||||
private InputList<string>? _sources;
|
||||
|
||||
/// <summary>
|
||||
/// Existing images to include in the index.
|
||||
/// </summary>
|
||||
public InputList<string> Sources
|
||||
{
|
||||
get => _sources ?? (_sources = new InputList<string>());
|
||||
set => _sources = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The tag to apply to the index.
|
||||
/// </summary>
|
||||
[Input("tag", required: true)]
|
||||
public Input<string> Tag { get; set; } = null!;
|
||||
|
||||
public IndexArgs()
|
||||
{
|
||||
Push = true;
|
||||
}
|
||||
public static new IndexArgs Empty => new IndexArgs();
|
||||
}
|
||||
}
|
||||
50
sdk/dotnet/Inputs/BuildContextArgs.cs
generated
Normal file
50
sdk/dotnet/Inputs/BuildContextArgs.cs
generated
Normal file
@@ -0,0 +1,50 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class BuildContextArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Resources to use for build context.
|
||||
///
|
||||
/// The location can be:
|
||||
/// * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
/// `/app`, etc.).
|
||||
/// * A remote URL of a Git repository, tarball, or plain text file
|
||||
/// (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
/// etc.).
|
||||
/// </summary>
|
||||
[Input("location", required: true)]
|
||||
public Input<string> Location { get; set; } = null!;
|
||||
|
||||
[Input("named")]
|
||||
private InputMap<Inputs.ContextArgs>? _named;
|
||||
|
||||
/// <summary>
|
||||
/// Additional build contexts to use.
|
||||
///
|
||||
/// These contexts are accessed with `FROM name` or `--from=name`
|
||||
/// statements when using Dockerfile 1.4+ syntax.
|
||||
///
|
||||
/// Values can be local paths, HTTP URLs, or `docker-image://` images.
|
||||
/// </summary>
|
||||
public InputMap<Inputs.ContextArgs> Named
|
||||
{
|
||||
get => _named ?? (_named = new InputMap<Inputs.ContextArgs>());
|
||||
set => _named = value;
|
||||
}
|
||||
|
||||
public BuildContextArgs()
|
||||
{
|
||||
}
|
||||
public static new BuildContextArgs Empty => new BuildContextArgs();
|
||||
}
|
||||
}
|
||||
31
sdk/dotnet/Inputs/BuilderConfigArgs.cs
generated
Normal file
31
sdk/dotnet/Inputs/BuilderConfigArgs.cs
generated
Normal file
@@ -0,0 +1,31 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class BuilderConfigArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of an existing buildx builder to use.
|
||||
///
|
||||
/// Only `docker-container`, `kubernetes`, or `remote` drivers are
|
||||
/// supported. The legacy `docker` driver is not supported.
|
||||
///
|
||||
/// Equivalent to Docker's `--builder` flag.
|
||||
/// </summary>
|
||||
[Input("name")]
|
||||
public Input<string>? Name { get; set; }
|
||||
|
||||
public BuilderConfigArgs()
|
||||
{
|
||||
}
|
||||
public static new BuilderConfigArgs Empty => new BuilderConfigArgs();
|
||||
}
|
||||
}
|
||||
67
sdk/dotnet/Inputs/CacheFromArgs.cs
generated
Normal file
67
sdk/dotnet/Inputs/CacheFromArgs.cs
generated
Normal file
@@ -0,0 +1,67 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheFromArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Upload build caches to Azure's blob storage service.
|
||||
/// </summary>
|
||||
[Input("azblob")]
|
||||
public Input<Inputs.CacheFromAzureBlobArgs>? Azblob { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When `true` this entry will be excluded. Defaults to `false`.
|
||||
/// </summary>
|
||||
[Input("disabled")]
|
||||
public Input<bool>? Disabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
/// expose appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
[Input("gha")]
|
||||
public Input<Inputs.CacheFromGitHubActionsArgs>? Gha { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A simple backend which caches images on your local filesystem.
|
||||
/// </summary>
|
||||
[Input("local")]
|
||||
public Input<Inputs.CacheFromLocalArgs>? Local { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
/// `type=inline`).
|
||||
/// </summary>
|
||||
[Input("raw")]
|
||||
public Input<string>? Raw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Upload build caches to remote registries.
|
||||
/// </summary>
|
||||
[Input("registry")]
|
||||
public Input<Inputs.CacheFromRegistryArgs>? Registry { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
/// MinIO.
|
||||
/// </summary>
|
||||
[Input("s3")]
|
||||
public Input<Inputs.CacheFromS3Args>? S3 { get; set; }
|
||||
|
||||
public CacheFromArgs()
|
||||
{
|
||||
}
|
||||
public static new CacheFromArgs Empty => new CacheFromArgs();
|
||||
}
|
||||
}
|
||||
48
sdk/dotnet/Inputs/CacheFromAzureBlobArgs.cs
generated
Normal file
48
sdk/dotnet/Inputs/CacheFromAzureBlobArgs.cs
generated
Normal file
@@ -0,0 +1,48 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheFromAzureBlobArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Base URL of the storage account.
|
||||
/// </summary>
|
||||
[Input("accountUrl")]
|
||||
public Input<string>? AccountUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the cache image.
|
||||
/// </summary>
|
||||
[Input("name", required: true)]
|
||||
public Input<string> Name { get; set; } = null!;
|
||||
|
||||
[Input("secretAccessKey")]
|
||||
private Input<string>? _secretAccessKey;
|
||||
|
||||
/// <summary>
|
||||
/// Blob storage account key.
|
||||
/// </summary>
|
||||
public Input<string>? SecretAccessKey
|
||||
{
|
||||
get => _secretAccessKey;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_secretAccessKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
public CacheFromAzureBlobArgs()
|
||||
{
|
||||
}
|
||||
public static new CacheFromAzureBlobArgs Empty => new CacheFromAzureBlobArgs();
|
||||
}
|
||||
}
|
||||
63
sdk/dotnet/Inputs/CacheFromGitHubActionsArgs.cs
generated
Normal file
63
sdk/dotnet/Inputs/CacheFromGitHubActionsArgs.cs
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheFromGitHubActionsArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
///
|
||||
/// This should be set if building and caching multiple images in one
|
||||
/// workflow, otherwise caches will overwrite each other.
|
||||
/// </summary>
|
||||
[Input("scope")]
|
||||
public Input<string>? Scope { get; set; }
|
||||
|
||||
[Input("token")]
|
||||
private Input<string>? _token;
|
||||
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public Input<string>? Token
|
||||
{
|
||||
get => _token;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_token = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
[Input("url")]
|
||||
public Input<string>? Url { get; set; }
|
||||
|
||||
public CacheFromGitHubActionsArgs()
|
||||
{
|
||||
Scope = Utilities.GetEnv("buildkit") ?? "";
|
||||
Token = Utilities.GetEnv("ACTIONS_RUNTIME_TOKEN") ?? "";
|
||||
Url = Utilities.GetEnv("ACTIONS_RUNTIME_URL") ?? "";
|
||||
}
|
||||
public static new CacheFromGitHubActionsArgs Empty => new CacheFromGitHubActionsArgs();
|
||||
}
|
||||
}
|
||||
32
sdk/dotnet/Inputs/CacheFromLocalArgs.cs
generated
Normal file
32
sdk/dotnet/Inputs/CacheFromLocalArgs.cs
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheFromLocalArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Digest of manifest to import.
|
||||
/// </summary>
|
||||
[Input("digest")]
|
||||
public Input<string>? Digest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Path of the local directory where cache gets imported from.
|
||||
/// </summary>
|
||||
[Input("src", required: true)]
|
||||
public Input<string> Src { get; set; } = null!;
|
||||
|
||||
public CacheFromLocalArgs()
|
||||
{
|
||||
}
|
||||
public static new CacheFromLocalArgs Empty => new CacheFromLocalArgs();
|
||||
}
|
||||
}
|
||||
26
sdk/dotnet/Inputs/CacheFromRegistryArgs.cs
generated
Normal file
26
sdk/dotnet/Inputs/CacheFromRegistryArgs.cs
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheFromRegistryArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Fully qualified name of the cache image to import.
|
||||
/// </summary>
|
||||
[Input("ref", required: true)]
|
||||
public Input<string> Ref { get; set; } = null!;
|
||||
|
||||
public CacheFromRegistryArgs()
|
||||
{
|
||||
}
|
||||
public static new CacheFromRegistryArgs Empty => new CacheFromRegistryArgs();
|
||||
}
|
||||
}
|
||||
104
sdk/dotnet/Inputs/CacheFromS3Args.cs
generated
Normal file
104
sdk/dotnet/Inputs/CacheFromS3Args.cs
generated
Normal file
@@ -0,0 +1,104 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheFromS3Args : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
/// </summary>
|
||||
[Input("accessKeyId")]
|
||||
public Input<string>? AccessKeyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Prefix to prepend to blob filenames.
|
||||
/// </summary>
|
||||
[Input("blobsPrefix")]
|
||||
public Input<string>? BlobsPrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the S3 bucket.
|
||||
/// </summary>
|
||||
[Input("bucket", required: true)]
|
||||
public Input<string> Bucket { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Endpoint of the S3 bucket.
|
||||
/// </summary>
|
||||
[Input("endpointUrl")]
|
||||
public Input<string>? EndpointUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Prefix to prepend on manifest filenames.
|
||||
/// </summary>
|
||||
[Input("manifestsPrefix")]
|
||||
public Input<string>? ManifestsPrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the cache image.
|
||||
/// </summary>
|
||||
[Input("name")]
|
||||
public Input<string>? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
/// </summary>
|
||||
[Input("region", required: true)]
|
||||
public Input<string> Region { get; set; } = null!;
|
||||
|
||||
[Input("secretAccessKey")]
|
||||
private Input<string>? _secretAccessKey;
|
||||
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
/// </summary>
|
||||
public Input<string>? SecretAccessKey
|
||||
{
|
||||
get => _secretAccessKey;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_secretAccessKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
[Input("sessionToken")]
|
||||
private Input<string>? _sessionToken;
|
||||
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SESSION_TOKEN`.
|
||||
/// </summary>
|
||||
public Input<string>? SessionToken
|
||||
{
|
||||
get => _sessionToken;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_sessionToken = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Uses `bucket` in the URL instead of hostname when `true`.
|
||||
/// </summary>
|
||||
[Input("usePathStyle")]
|
||||
public Input<bool>? UsePathStyle { get; set; }
|
||||
|
||||
public CacheFromS3Args()
|
||||
{
|
||||
AccessKeyId = Utilities.GetEnv("AWS_ACCESS_KEY_ID") ?? "";
|
||||
Region = Utilities.GetEnv("AWS_REGION") ?? "";
|
||||
SecretAccessKey = Utilities.GetEnv("AWS_SECRET_ACCESS_KEY") ?? "";
|
||||
SessionToken = Utilities.GetEnv("AWS_SESSION_TOKEN") ?? "";
|
||||
}
|
||||
public static new CacheFromS3Args Empty => new CacheFromS3Args();
|
||||
}
|
||||
}
|
||||
75
sdk/dotnet/Inputs/CacheToArgs.cs
generated
Normal file
75
sdk/dotnet/Inputs/CacheToArgs.cs
generated
Normal file
@@ -0,0 +1,75 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheToArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Push cache to Azure's blob storage service.
|
||||
/// </summary>
|
||||
[Input("azblob")]
|
||||
public Input<Inputs.CacheToAzureBlobArgs>? Azblob { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When `true` this entry will be excluded. Defaults to `false`.
|
||||
/// </summary>
|
||||
[Input("disabled")]
|
||||
public Input<bool>? Disabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
/// expose appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
[Input("gha")]
|
||||
public Input<Inputs.CacheToGitHubActionsArgs>? Gha { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The inline cache storage backend is the simplest implementation to get
|
||||
/// started with, but it does not handle multi-stage builds. Consider the
|
||||
/// `registry` cache backend instead.
|
||||
/// </summary>
|
||||
[Input("inline")]
|
||||
public Input<Inputs.CacheToInlineArgs>? Inline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A simple backend which caches imagines on your local filesystem.
|
||||
/// </summary>
|
||||
[Input("local")]
|
||||
public Input<Inputs.CacheToLocalArgs>? Local { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
/// `type=inline`)
|
||||
/// </summary>
|
||||
[Input("raw")]
|
||||
public Input<string>? Raw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Push caches to remote registries. Incompatible with the `docker` build
|
||||
/// driver.
|
||||
/// </summary>
|
||||
[Input("registry")]
|
||||
public Input<Inputs.CacheToRegistryArgs>? Registry { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
/// </summary>
|
||||
[Input("s3")]
|
||||
public Input<Inputs.CacheToS3Args>? S3 { get; set; }
|
||||
|
||||
public CacheToArgs()
|
||||
{
|
||||
}
|
||||
public static new CacheToArgs Empty => new CacheToArgs();
|
||||
}
|
||||
}
|
||||
62
sdk/dotnet/Inputs/CacheToAzureBlobArgs.cs
generated
Normal file
62
sdk/dotnet/Inputs/CacheToAzureBlobArgs.cs
generated
Normal file
@@ -0,0 +1,62 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheToAzureBlobArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Base URL of the storage account.
|
||||
/// </summary>
|
||||
[Input("accountUrl")]
|
||||
public Input<string>? AccountUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
[Input("ignoreError")]
|
||||
public Input<bool>? IgnoreError { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
[Input("mode")]
|
||||
public Input<Pulumi.Dockerbuild.CacheMode>? Mode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The name of the cache image.
|
||||
/// </summary>
|
||||
[Input("name", required: true)]
|
||||
public Input<string> Name { get; set; } = null!;
|
||||
|
||||
[Input("secretAccessKey")]
|
||||
private Input<string>? _secretAccessKey;
|
||||
|
||||
/// <summary>
|
||||
/// Blob storage account key.
|
||||
/// </summary>
|
||||
public Input<string>? SecretAccessKey
|
||||
{
|
||||
get => _secretAccessKey;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_secretAccessKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
public CacheToAzureBlobArgs()
|
||||
{
|
||||
IgnoreError = false;
|
||||
Mode = Pulumi.Dockerbuild.CacheMode.Min;
|
||||
}
|
||||
public static new CacheToAzureBlobArgs Empty => new CacheToAzureBlobArgs();
|
||||
}
|
||||
}
|
||||
77
sdk/dotnet/Inputs/CacheToGitHubActionsArgs.cs
generated
Normal file
77
sdk/dotnet/Inputs/CacheToGitHubActionsArgs.cs
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheToGitHubActionsArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
[Input("ignoreError")]
|
||||
public Input<bool>? IgnoreError { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
[Input("mode")]
|
||||
public Input<Pulumi.Dockerbuild.CacheMode>? Mode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
///
|
||||
/// This should be set if building and caching multiple images in one
|
||||
/// workflow, otherwise caches will overwrite each other.
|
||||
/// </summary>
|
||||
[Input("scope")]
|
||||
public Input<string>? Scope { get; set; }
|
||||
|
||||
[Input("token")]
|
||||
private Input<string>? _token;
|
||||
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public Input<string>? Token
|
||||
{
|
||||
get => _token;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_token = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
[Input("url")]
|
||||
public Input<string>? Url { get; set; }
|
||||
|
||||
public CacheToGitHubActionsArgs()
|
||||
{
|
||||
IgnoreError = false;
|
||||
Mode = Pulumi.Dockerbuild.CacheMode.Min;
|
||||
Scope = Utilities.GetEnv("buildkit") ?? "";
|
||||
Token = Utilities.GetEnv("ACTIONS_RUNTIME_TOKEN") ?? "";
|
||||
Url = Utilities.GetEnv("ACTIONS_RUNTIME_URL") ?? "";
|
||||
}
|
||||
public static new CacheToGitHubActionsArgs Empty => new CacheToGitHubActionsArgs();
|
||||
}
|
||||
}
|
||||
23
sdk/dotnet/Inputs/CacheToInlineArgs.cs
generated
Normal file
23
sdk/dotnet/Inputs/CacheToInlineArgs.cs
generated
Normal file
@@ -0,0 +1,23 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Include an inline cache with the exported image.
|
||||
/// </summary>
|
||||
public sealed class CacheToInlineArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
public CacheToInlineArgs()
|
||||
{
|
||||
}
|
||||
public static new CacheToInlineArgs Empty => new CacheToInlineArgs();
|
||||
}
|
||||
}
|
||||
61
sdk/dotnet/Inputs/CacheToLocalArgs.cs
generated
Normal file
61
sdk/dotnet/Inputs/CacheToLocalArgs.cs
generated
Normal file
@@ -0,0 +1,61 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheToLocalArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
[Input("compression")]
|
||||
public Input<Pulumi.Dockerbuild.CompressionType>? Compression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
[Input("compressionLevel")]
|
||||
public Input<int>? CompressionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Path of the local directory to export the cache.
|
||||
/// </summary>
|
||||
[Input("dest", required: true)]
|
||||
public Input<string> Dest { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
[Input("forceCompression")]
|
||||
public Input<bool>? ForceCompression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
[Input("ignoreError")]
|
||||
public Input<bool>? IgnoreError { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
[Input("mode")]
|
||||
public Input<Pulumi.Dockerbuild.CacheMode>? Mode { get; set; }
|
||||
|
||||
public CacheToLocalArgs()
|
||||
{
|
||||
Compression = Pulumi.Dockerbuild.CompressionType.Gzip;
|
||||
CompressionLevel = 0;
|
||||
ForceCompression = false;
|
||||
IgnoreError = false;
|
||||
Mode = Pulumi.Dockerbuild.CacheMode.Min;
|
||||
}
|
||||
public static new CacheToLocalArgs Empty => new CacheToLocalArgs();
|
||||
}
|
||||
}
|
||||
82
sdk/dotnet/Inputs/CacheToRegistryArgs.cs
generated
Normal file
82
sdk/dotnet/Inputs/CacheToRegistryArgs.cs
generated
Normal file
@@ -0,0 +1,82 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheToRegistryArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
[Input("compression")]
|
||||
public Input<Pulumi.Dockerbuild.CompressionType>? Compression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
[Input("compressionLevel")]
|
||||
public Input<int>? CompressionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
[Input("forceCompression")]
|
||||
public Input<bool>? ForceCompression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
[Input("ignoreError")]
|
||||
public Input<bool>? IgnoreError { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Export cache manifest as an OCI-compatible image manifest instead of a
|
||||
/// manifest list. Requires `ociMediaTypes` to also be `true`.
|
||||
///
|
||||
/// Some registries like AWS ECR will not work with caching if this is
|
||||
/// `false`.
|
||||
///
|
||||
/// Defaults to `false` to match Docker's default behavior.
|
||||
/// </summary>
|
||||
[Input("imageManifest")]
|
||||
public Input<bool>? ImageManifest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
[Input("mode")]
|
||||
public Input<Pulumi.Dockerbuild.CacheMode>? Mode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Whether to use OCI media types in exported manifests. Defaults to
|
||||
/// `true`.
|
||||
/// </summary>
|
||||
[Input("ociMediaTypes")]
|
||||
public Input<bool>? OciMediaTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Fully qualified name of the cache image to import.
|
||||
/// </summary>
|
||||
[Input("ref", required: true)]
|
||||
public Input<string> Ref { get; set; } = null!;
|
||||
|
||||
public CacheToRegistryArgs()
|
||||
{
|
||||
Compression = Pulumi.Dockerbuild.CompressionType.Gzip;
|
||||
CompressionLevel = 0;
|
||||
ForceCompression = false;
|
||||
IgnoreError = false;
|
||||
ImageManifest = false;
|
||||
Mode = Pulumi.Dockerbuild.CacheMode.Min;
|
||||
OciMediaTypes = true;
|
||||
}
|
||||
public static new CacheToRegistryArgs Empty => new CacheToRegistryArgs();
|
||||
}
|
||||
}
|
||||
118
sdk/dotnet/Inputs/CacheToS3Args.cs
generated
Normal file
118
sdk/dotnet/Inputs/CacheToS3Args.cs
generated
Normal file
@@ -0,0 +1,118 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class CacheToS3Args : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
/// </summary>
|
||||
[Input("accessKeyId")]
|
||||
public Input<string>? AccessKeyId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Prefix to prepend to blob filenames.
|
||||
/// </summary>
|
||||
[Input("blobsPrefix")]
|
||||
public Input<string>? BlobsPrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the S3 bucket.
|
||||
/// </summary>
|
||||
[Input("bucket", required: true)]
|
||||
public Input<string> Bucket { get; set; } = null!;
|
||||
|
||||
/// <summary>
|
||||
/// Endpoint of the S3 bucket.
|
||||
/// </summary>
|
||||
[Input("endpointUrl")]
|
||||
public Input<string>? EndpointUrl { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
[Input("ignoreError")]
|
||||
public Input<bool>? IgnoreError { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Prefix to prepend on manifest filenames.
|
||||
/// </summary>
|
||||
[Input("manifestsPrefix")]
|
||||
public Input<string>? ManifestsPrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
[Input("mode")]
|
||||
public Input<Pulumi.Dockerbuild.CacheMode>? Mode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name of the cache image.
|
||||
/// </summary>
|
||||
[Input("name")]
|
||||
public Input<string>? Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
/// </summary>
|
||||
[Input("region", required: true)]
|
||||
public Input<string> Region { get; set; } = null!;
|
||||
|
||||
[Input("secretAccessKey")]
|
||||
private Input<string>? _secretAccessKey;
|
||||
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
/// </summary>
|
||||
public Input<string>? SecretAccessKey
|
||||
{
|
||||
get => _secretAccessKey;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_secretAccessKey = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
[Input("sessionToken")]
|
||||
private Input<string>? _sessionToken;
|
||||
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SESSION_TOKEN`.
|
||||
/// </summary>
|
||||
public Input<string>? SessionToken
|
||||
{
|
||||
get => _sessionToken;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_sessionToken = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Uses `bucket` in the URL instead of hostname when `true`.
|
||||
/// </summary>
|
||||
[Input("usePathStyle")]
|
||||
public Input<bool>? UsePathStyle { get; set; }
|
||||
|
||||
public CacheToS3Args()
|
||||
{
|
||||
AccessKeyId = Utilities.GetEnv("AWS_ACCESS_KEY_ID") ?? "";
|
||||
IgnoreError = false;
|
||||
Mode = Pulumi.Dockerbuild.CacheMode.Min;
|
||||
Region = Utilities.GetEnv("AWS_REGION") ?? "";
|
||||
SecretAccessKey = Utilities.GetEnv("AWS_SECRET_ACCESS_KEY") ?? "";
|
||||
SessionToken = Utilities.GetEnv("AWS_SESSION_TOKEN") ?? "";
|
||||
}
|
||||
public static new CacheToS3Args Empty => new CacheToS3Args();
|
||||
}
|
||||
}
|
||||
33
sdk/dotnet/Inputs/ContextArgs.cs
generated
Normal file
33
sdk/dotnet/Inputs/ContextArgs.cs
generated
Normal file
@@ -0,0 +1,33 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ContextArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Resources to use for build context.
|
||||
///
|
||||
/// The location can be:
|
||||
/// * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
/// `/app`, etc.).
|
||||
/// * A remote URL of a Git repository, tarball, or plain text file
|
||||
/// (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
/// etc.).
|
||||
/// </summary>
|
||||
[Input("location", required: true)]
|
||||
public Input<string> Location { get; set; } = null!;
|
||||
|
||||
public ContextArgs()
|
||||
{
|
||||
}
|
||||
public static new ContextArgs Empty => new ContextArgs();
|
||||
}
|
||||
}
|
||||
42
sdk/dotnet/Inputs/DockerfileArgs.cs
generated
Normal file
42
sdk/dotnet/Inputs/DockerfileArgs.cs
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class DockerfileArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Raw Dockerfile contents.
|
||||
///
|
||||
/// Conflicts with `location`.
|
||||
///
|
||||
/// Equivalent to invoking Docker with `-f -`.
|
||||
/// </summary>
|
||||
[Input("inline")]
|
||||
public Input<string>? Inline { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Location of the Dockerfile to use.
|
||||
///
|
||||
/// Can be a relative or absolute path to a local file, or a remote URL.
|
||||
///
|
||||
/// Defaults to `${context.location}/Dockerfile` if context is on-disk.
|
||||
///
|
||||
/// Conflicts with `inline`.
|
||||
/// </summary>
|
||||
[Input("location")]
|
||||
public Input<string>? Location { get; set; }
|
||||
|
||||
public DockerfileArgs()
|
||||
{
|
||||
}
|
||||
public static new DockerfileArgs Empty => new DockerfileArgs();
|
||||
}
|
||||
}
|
||||
76
sdk/dotnet/Inputs/ExportArgs.cs
generated
Normal file
76
sdk/dotnet/Inputs/ExportArgs.cs
generated
Normal file
@@ -0,0 +1,76 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
/// just want to populate caches.
|
||||
/// </summary>
|
||||
[Input("cacheonly")]
|
||||
public Input<Inputs.ExportCacheOnlyArgs>? Cacheonly { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// When `true` this entry will be excluded. Defaults to `false`.
|
||||
/// </summary>
|
||||
[Input("disabled")]
|
||||
public Input<bool>? Disabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Export as a Docker image layout.
|
||||
/// </summary>
|
||||
[Input("docker")]
|
||||
public Input<Inputs.ExportDockerArgs>? Docker { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Outputs the build result into a container image format.
|
||||
/// </summary>
|
||||
[Input("image")]
|
||||
public Input<Inputs.ExportImageArgs>? Image { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Export to a local directory as files and directories.
|
||||
/// </summary>
|
||||
[Input("local")]
|
||||
public Input<Inputs.ExportLocalArgs>? Local { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Identical to the Docker exporter but uses OCI media types by default.
|
||||
/// </summary>
|
||||
[Input("oci")]
|
||||
public Input<Inputs.ExportOCIArgs>? Oci { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
/// `type=docker`)
|
||||
/// </summary>
|
||||
[Input("raw")]
|
||||
public Input<string>? Raw { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Identical to the Image exporter, but pushes by default.
|
||||
/// </summary>
|
||||
[Input("registry")]
|
||||
public Input<Inputs.ExportRegistryArgs>? Registry { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Export to a local directory as a tarball.
|
||||
/// </summary>
|
||||
[Input("tar")]
|
||||
public Input<Inputs.ExportTarArgs>? Tar { get; set; }
|
||||
|
||||
public ExportArgs()
|
||||
{
|
||||
}
|
||||
public static new ExportArgs Empty => new ExportArgs();
|
||||
}
|
||||
}
|
||||
20
sdk/dotnet/Inputs/ExportCacheOnlyArgs.cs
generated
Normal file
20
sdk/dotnet/Inputs/ExportCacheOnlyArgs.cs
generated
Normal file
@@ -0,0 +1,20 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportCacheOnlyArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
public ExportCacheOnlyArgs()
|
||||
{
|
||||
}
|
||||
public static new ExportCacheOnlyArgs Empty => new ExportCacheOnlyArgs();
|
||||
}
|
||||
}
|
||||
85
sdk/dotnet/Inputs/ExportDockerArgs.cs
generated
Normal file
85
sdk/dotnet/Inputs/ExportDockerArgs.cs
generated
Normal file
@@ -0,0 +1,85 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportDockerArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
[Input("annotations")]
|
||||
private InputMap<string>? _annotations;
|
||||
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public InputMap<string> Annotations
|
||||
{
|
||||
get => _annotations ?? (_annotations = new InputMap<string>());
|
||||
set => _annotations = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
[Input("compression")]
|
||||
public Input<Pulumi.Dockerbuild.CompressionType>? Compression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
[Input("compressionLevel")]
|
||||
public Input<int>? CompressionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The local export path.
|
||||
/// </summary>
|
||||
[Input("dest")]
|
||||
public Input<string>? Dest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
[Input("forceCompression")]
|
||||
public Input<bool>? ForceCompression { get; set; }
|
||||
|
||||
[Input("names")]
|
||||
private InputList<string>? _names;
|
||||
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public InputList<string> Names
|
||||
{
|
||||
get => _names ?? (_names = new InputList<string>());
|
||||
set => _names = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
[Input("ociMediaTypes")]
|
||||
public Input<bool>? OciMediaTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bundle the output into a tarball layout.
|
||||
/// </summary>
|
||||
[Input("tar")]
|
||||
public Input<bool>? Tar { get; set; }
|
||||
|
||||
public ExportDockerArgs()
|
||||
{
|
||||
Compression = Pulumi.Dockerbuild.CompressionType.Gzip;
|
||||
CompressionLevel = 0;
|
||||
ForceCompression = false;
|
||||
OciMediaTypes = false;
|
||||
Tar = true;
|
||||
}
|
||||
public static new ExportDockerArgs Empty => new ExportDockerArgs();
|
||||
}
|
||||
}
|
||||
122
sdk/dotnet/Inputs/ExportImageArgs.cs
generated
Normal file
122
sdk/dotnet/Inputs/ExportImageArgs.cs
generated
Normal file
@@ -0,0 +1,122 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportImageArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
[Input("annotations")]
|
||||
private InputMap<string>? _annotations;
|
||||
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public InputMap<string> Annotations
|
||||
{
|
||||
get => _annotations ?? (_annotations = new InputMap<string>());
|
||||
set => _annotations = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
[Input("compression")]
|
||||
public Input<Pulumi.Dockerbuild.CompressionType>? Compression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
[Input("compressionLevel")]
|
||||
public Input<int>? CompressionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name image with `prefix@<digest>`, used for anonymous images.
|
||||
/// </summary>
|
||||
[Input("danglingNamePrefix")]
|
||||
public Input<string>? DanglingNamePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
[Input("forceCompression")]
|
||||
public Input<bool>? ForceCompression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Allow pushing to an insecure registry.
|
||||
/// </summary>
|
||||
[Input("insecure")]
|
||||
public Input<bool>? Insecure { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Add additional canonical name (`name@<digest>`).
|
||||
/// </summary>
|
||||
[Input("nameCanonical")]
|
||||
public Input<bool>? NameCanonical { get; set; }
|
||||
|
||||
[Input("names")]
|
||||
private InputList<string>? _names;
|
||||
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public InputList<string> Names
|
||||
{
|
||||
get => _names ?? (_names = new InputList<string>());
|
||||
set => _names = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
[Input("ociMediaTypes")]
|
||||
public Input<bool>? OciMediaTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Push after creating the image. Defaults to `false`.
|
||||
/// </summary>
|
||||
[Input("push")]
|
||||
public Input<bool>? Push { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Push image without name.
|
||||
/// </summary>
|
||||
[Input("pushByDigest")]
|
||||
public Input<bool>? PushByDigest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Store resulting images to the worker's image store and ensure all of
|
||||
/// its blobs are in the content store.
|
||||
///
|
||||
/// Defaults to `true`.
|
||||
///
|
||||
/// Ignored if the worker doesn't have image store (when using OCI workers,
|
||||
/// for example).
|
||||
/// </summary>
|
||||
[Input("store")]
|
||||
public Input<bool>? Store { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unpack image after creation (for use with containerd). Defaults to
|
||||
/// `false`.
|
||||
/// </summary>
|
||||
[Input("unpack")]
|
||||
public Input<bool>? Unpack { get; set; }
|
||||
|
||||
public ExportImageArgs()
|
||||
{
|
||||
Compression = Pulumi.Dockerbuild.CompressionType.Gzip;
|
||||
CompressionLevel = 0;
|
||||
ForceCompression = false;
|
||||
OciMediaTypes = false;
|
||||
Store = true;
|
||||
}
|
||||
public static new ExportImageArgs Empty => new ExportImageArgs();
|
||||
}
|
||||
}
|
||||
26
sdk/dotnet/Inputs/ExportLocalArgs.cs
generated
Normal file
26
sdk/dotnet/Inputs/ExportLocalArgs.cs
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportLocalArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Output path.
|
||||
/// </summary>
|
||||
[Input("dest", required: true)]
|
||||
public Input<string> Dest { get; set; } = null!;
|
||||
|
||||
public ExportLocalArgs()
|
||||
{
|
||||
}
|
||||
public static new ExportLocalArgs Empty => new ExportLocalArgs();
|
||||
}
|
||||
}
|
||||
85
sdk/dotnet/Inputs/ExportOCIArgs.cs
generated
Normal file
85
sdk/dotnet/Inputs/ExportOCIArgs.cs
generated
Normal file
@@ -0,0 +1,85 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportOCIArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
[Input("annotations")]
|
||||
private InputMap<string>? _annotations;
|
||||
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public InputMap<string> Annotations
|
||||
{
|
||||
get => _annotations ?? (_annotations = new InputMap<string>());
|
||||
set => _annotations = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
[Input("compression")]
|
||||
public Input<Pulumi.Dockerbuild.CompressionType>? Compression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
[Input("compressionLevel")]
|
||||
public Input<int>? CompressionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// The local export path.
|
||||
/// </summary>
|
||||
[Input("dest")]
|
||||
public Input<string>? Dest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
[Input("forceCompression")]
|
||||
public Input<bool>? ForceCompression { get; set; }
|
||||
|
||||
[Input("names")]
|
||||
private InputList<string>? _names;
|
||||
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public InputList<string> Names
|
||||
{
|
||||
get => _names ?? (_names = new InputList<string>());
|
||||
set => _names = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
[Input("ociMediaTypes")]
|
||||
public Input<bool>? OciMediaTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Bundle the output into a tarball layout.
|
||||
/// </summary>
|
||||
[Input("tar")]
|
||||
public Input<bool>? Tar { get; set; }
|
||||
|
||||
public ExportOCIArgs()
|
||||
{
|
||||
Compression = Pulumi.Dockerbuild.CompressionType.Gzip;
|
||||
CompressionLevel = 0;
|
||||
ForceCompression = false;
|
||||
OciMediaTypes = true;
|
||||
Tar = true;
|
||||
}
|
||||
public static new ExportOCIArgs Empty => new ExportOCIArgs();
|
||||
}
|
||||
}
|
||||
123
sdk/dotnet/Inputs/ExportRegistryArgs.cs
generated
Normal file
123
sdk/dotnet/Inputs/ExportRegistryArgs.cs
generated
Normal file
@@ -0,0 +1,123 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportRegistryArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
[Input("annotations")]
|
||||
private InputMap<string>? _annotations;
|
||||
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public InputMap<string> Annotations
|
||||
{
|
||||
get => _annotations ?? (_annotations = new InputMap<string>());
|
||||
set => _annotations = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
[Input("compression")]
|
||||
public Input<Pulumi.Dockerbuild.CompressionType>? Compression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
[Input("compressionLevel")]
|
||||
public Input<int>? CompressionLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Name image with `prefix@<digest>`, used for anonymous images.
|
||||
/// </summary>
|
||||
[Input("danglingNamePrefix")]
|
||||
public Input<string>? DanglingNamePrefix { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
[Input("forceCompression")]
|
||||
public Input<bool>? ForceCompression { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Allow pushing to an insecure registry.
|
||||
/// </summary>
|
||||
[Input("insecure")]
|
||||
public Input<bool>? Insecure { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Add additional canonical name (`name@<digest>`).
|
||||
/// </summary>
|
||||
[Input("nameCanonical")]
|
||||
public Input<bool>? NameCanonical { get; set; }
|
||||
|
||||
[Input("names")]
|
||||
private InputList<string>? _names;
|
||||
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public InputList<string> Names
|
||||
{
|
||||
get => _names ?? (_names = new InputList<string>());
|
||||
set => _names = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
[Input("ociMediaTypes")]
|
||||
public Input<bool>? OciMediaTypes { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Push after creating the image. Defaults to `true`.
|
||||
/// </summary>
|
||||
[Input("push")]
|
||||
public Input<bool>? Push { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Push image without name.
|
||||
/// </summary>
|
||||
[Input("pushByDigest")]
|
||||
public Input<bool>? PushByDigest { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Store resulting images to the worker's image store and ensure all of
|
||||
/// its blobs are in the content store.
|
||||
///
|
||||
/// Defaults to `true`.
|
||||
///
|
||||
/// Ignored if the worker doesn't have image store (when using OCI workers,
|
||||
/// for example).
|
||||
/// </summary>
|
||||
[Input("store")]
|
||||
public Input<bool>? Store { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Unpack image after creation (for use with containerd). Defaults to
|
||||
/// `false`.
|
||||
/// </summary>
|
||||
[Input("unpack")]
|
||||
public Input<bool>? Unpack { get; set; }
|
||||
|
||||
public ExportRegistryArgs()
|
||||
{
|
||||
Compression = Pulumi.Dockerbuild.CompressionType.Gzip;
|
||||
CompressionLevel = 0;
|
||||
ForceCompression = false;
|
||||
OciMediaTypes = false;
|
||||
Push = true;
|
||||
Store = true;
|
||||
}
|
||||
public static new ExportRegistryArgs Empty => new ExportRegistryArgs();
|
||||
}
|
||||
}
|
||||
26
sdk/dotnet/Inputs/ExportTarArgs.cs
generated
Normal file
26
sdk/dotnet/Inputs/ExportTarArgs.cs
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class ExportTarArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Output path.
|
||||
/// </summary>
|
||||
[Input("dest", required: true)]
|
||||
public Input<string> Dest { get; set; } = null!;
|
||||
|
||||
public ExportTarArgs()
|
||||
{
|
||||
}
|
||||
public static new ExportTarArgs Empty => new ExportTarArgs();
|
||||
}
|
||||
}
|
||||
48
sdk/dotnet/Inputs/RegistryArgs.cs
generated
Normal file
48
sdk/dotnet/Inputs/RegistryArgs.cs
generated
Normal file
@@ -0,0 +1,48 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class RegistryArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// The registry's address (e.g. "docker.io").
|
||||
/// </summary>
|
||||
[Input("address", required: true)]
|
||||
public Input<string> Address { get; set; } = null!;
|
||||
|
||||
[Input("password")]
|
||||
private Input<string>? _password;
|
||||
|
||||
/// <summary>
|
||||
/// Password or token for the registry.
|
||||
/// </summary>
|
||||
public Input<string>? Password
|
||||
{
|
||||
get => _password;
|
||||
set
|
||||
{
|
||||
var emptySecret = Output.CreateSecret(0);
|
||||
_password = Output.Tuple<Input<string>?, int>(value, emptySecret).Apply(t => t.Item1);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Username for the registry.
|
||||
/// </summary>
|
||||
[Input("username")]
|
||||
public Input<string>? Username { get; set; }
|
||||
|
||||
public RegistryArgs()
|
||||
{
|
||||
}
|
||||
public static new RegistryArgs Empty => new RegistryArgs();
|
||||
}
|
||||
}
|
||||
48
sdk/dotnet/Inputs/SSHArgs.cs
generated
Normal file
48
sdk/dotnet/Inputs/SSHArgs.cs
generated
Normal file
@@ -0,0 +1,48 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Inputs
|
||||
{
|
||||
|
||||
public sealed class SSHArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
/// <summary>
|
||||
/// Useful for distinguishing different servers that are part of the same
|
||||
/// build.
|
||||
///
|
||||
/// A value of `default` is appropriate if only dealing with a single host.
|
||||
/// </summary>
|
||||
[Input("id", required: true)]
|
||||
public Input<string> Id { get; set; } = null!;
|
||||
|
||||
[Input("paths")]
|
||||
private InputList<string>? _paths;
|
||||
|
||||
/// <summary>
|
||||
/// SSH agent socket or private keys to expose to the build under the given
|
||||
/// identifier.
|
||||
///
|
||||
/// Defaults to `[$SSH_AUTH_SOCK]`.
|
||||
///
|
||||
/// Note that your keys are **not** automatically added when using an
|
||||
/// agent. Run `ssh-add -l` locally to confirm which public keys are
|
||||
/// visible to the agent; these will be exposed to your build.
|
||||
/// </summary>
|
||||
public InputList<string> Paths
|
||||
{
|
||||
get => _paths ?? (_paths = new InputList<string>());
|
||||
set => _paths = value;
|
||||
}
|
||||
|
||||
public SSHArgs()
|
||||
{
|
||||
}
|
||||
public static new SSHArgs Empty => new SSHArgs();
|
||||
}
|
||||
}
|
||||
47
sdk/dotnet/Outputs/BuildContext.cs
generated
Normal file
47
sdk/dotnet/Outputs/BuildContext.cs
generated
Normal file
@@ -0,0 +1,47 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class BuildContext
|
||||
{
|
||||
/// <summary>
|
||||
/// Resources to use for build context.
|
||||
///
|
||||
/// The location can be:
|
||||
/// * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
/// `/app`, etc.).
|
||||
/// * A remote URL of a Git repository, tarball, or plain text file
|
||||
/// (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
/// etc.).
|
||||
/// </summary>
|
||||
public readonly string Location;
|
||||
/// <summary>
|
||||
/// Additional build contexts to use.
|
||||
///
|
||||
/// These contexts are accessed with `FROM name` or `--from=name`
|
||||
/// statements when using Dockerfile 1.4+ syntax.
|
||||
///
|
||||
/// Values can be local paths, HTTP URLs, or `docker-image://` images.
|
||||
/// </summary>
|
||||
public readonly ImmutableDictionary<string, Outputs.Context>? Named;
|
||||
|
||||
[OutputConstructor]
|
||||
private BuildContext(
|
||||
string location,
|
||||
|
||||
ImmutableDictionary<string, Outputs.Context>? named)
|
||||
{
|
||||
Location = location;
|
||||
Named = named;
|
||||
}
|
||||
}
|
||||
}
|
||||
32
sdk/dotnet/Outputs/BuilderConfig.cs
generated
Normal file
32
sdk/dotnet/Outputs/BuilderConfig.cs
generated
Normal file
@@ -0,0 +1,32 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class BuilderConfig
|
||||
{
|
||||
/// <summary>
|
||||
/// Name of an existing buildx builder to use.
|
||||
///
|
||||
/// Only `docker-container`, `kubernetes`, or `remote` drivers are
|
||||
/// supported. The legacy `docker` driver is not supported.
|
||||
///
|
||||
/// Equivalent to Docker's `--builder` flag.
|
||||
/// </summary>
|
||||
public readonly string? Name;
|
||||
|
||||
[OutputConstructor]
|
||||
private BuilderConfig(string? name)
|
||||
{
|
||||
Name = name;
|
||||
}
|
||||
}
|
||||
}
|
||||
75
sdk/dotnet/Outputs/CacheFrom.cs
generated
Normal file
75
sdk/dotnet/Outputs/CacheFrom.cs
generated
Normal file
@@ -0,0 +1,75 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheFrom
|
||||
{
|
||||
/// <summary>
|
||||
/// Upload build caches to Azure's blob storage service.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheFromAzureBlob? Azblob;
|
||||
/// <summary>
|
||||
/// When `true` this entry will be excluded. Defaults to `false`.
|
||||
/// </summary>
|
||||
public readonly bool? Disabled;
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
/// expose appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheFromGitHubActions? Gha;
|
||||
/// <summary>
|
||||
/// A simple backend which caches images on your local filesystem.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheFromLocal? Local;
|
||||
/// <summary>
|
||||
/// A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
/// `type=inline`).
|
||||
/// </summary>
|
||||
public readonly string? Raw;
|
||||
/// <summary>
|
||||
/// Upload build caches to remote registries.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheFromRegistry? Registry;
|
||||
/// <summary>
|
||||
/// Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
/// MinIO.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheFromS3? S3;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheFrom(
|
||||
Outputs.CacheFromAzureBlob? azblob,
|
||||
|
||||
bool? disabled,
|
||||
|
||||
Outputs.CacheFromGitHubActions? gha,
|
||||
|
||||
Outputs.CacheFromLocal? local,
|
||||
|
||||
string? raw,
|
||||
|
||||
Outputs.CacheFromRegistry? registry,
|
||||
|
||||
Outputs.CacheFromS3? s3)
|
||||
{
|
||||
Azblob = azblob;
|
||||
Disabled = disabled;
|
||||
Gha = gha;
|
||||
Local = local;
|
||||
Raw = raw;
|
||||
Registry = registry;
|
||||
S3 = s3;
|
||||
}
|
||||
}
|
||||
}
|
||||
42
sdk/dotnet/Outputs/CacheFromAzureBlob.cs
generated
Normal file
42
sdk/dotnet/Outputs/CacheFromAzureBlob.cs
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheFromAzureBlob
|
||||
{
|
||||
/// <summary>
|
||||
/// Base URL of the storage account.
|
||||
/// </summary>
|
||||
public readonly string? AccountUrl;
|
||||
/// <summary>
|
||||
/// The name of the cache image.
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// Blob storage account key.
|
||||
/// </summary>
|
||||
public readonly string? SecretAccessKey;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheFromAzureBlob(
|
||||
string? accountUrl,
|
||||
|
||||
string name,
|
||||
|
||||
string? secretAccessKey)
|
||||
{
|
||||
AccountUrl = accountUrl;
|
||||
Name = name;
|
||||
SecretAccessKey = secretAccessKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
54
sdk/dotnet/Outputs/CacheFromGitHubActions.cs
generated
Normal file
54
sdk/dotnet/Outputs/CacheFromGitHubActions.cs
generated
Normal file
@@ -0,0 +1,54 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheFromGitHubActions
|
||||
{
|
||||
/// <summary>
|
||||
/// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
///
|
||||
/// This should be set if building and caching multiple images in one
|
||||
/// workflow, otherwise caches will overwrite each other.
|
||||
/// </summary>
|
||||
public readonly string? Scope;
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public readonly string? Token;
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public readonly string? Url;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheFromGitHubActions(
|
||||
string? scope,
|
||||
|
||||
string? token,
|
||||
|
||||
string? url)
|
||||
{
|
||||
Scope = scope;
|
||||
Token = token;
|
||||
Url = url;
|
||||
}
|
||||
}
|
||||
}
|
||||
35
sdk/dotnet/Outputs/CacheFromLocal.cs
generated
Normal file
35
sdk/dotnet/Outputs/CacheFromLocal.cs
generated
Normal file
@@ -0,0 +1,35 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheFromLocal
|
||||
{
|
||||
/// <summary>
|
||||
/// Digest of manifest to import.
|
||||
/// </summary>
|
||||
public readonly string? Digest;
|
||||
/// <summary>
|
||||
/// Path of the local directory where cache gets imported from.
|
||||
/// </summary>
|
||||
public readonly string Src;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheFromLocal(
|
||||
string? digest,
|
||||
|
||||
string src)
|
||||
{
|
||||
Digest = digest;
|
||||
Src = src;
|
||||
}
|
||||
}
|
||||
}
|
||||
27
sdk/dotnet/Outputs/CacheFromRegistry.cs
generated
Normal file
27
sdk/dotnet/Outputs/CacheFromRegistry.cs
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheFromRegistry
|
||||
{
|
||||
/// <summary>
|
||||
/// Fully qualified name of the cache image to import.
|
||||
/// </summary>
|
||||
public readonly string Ref;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheFromRegistry(string @ref)
|
||||
{
|
||||
Ref = @ref;
|
||||
}
|
||||
}
|
||||
}
|
||||
91
sdk/dotnet/Outputs/CacheFromS3.cs
generated
Normal file
91
sdk/dotnet/Outputs/CacheFromS3.cs
generated
Normal file
@@ -0,0 +1,91 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheFromS3
|
||||
{
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
/// </summary>
|
||||
public readonly string? AccessKeyId;
|
||||
/// <summary>
|
||||
/// Prefix to prepend to blob filenames.
|
||||
/// </summary>
|
||||
public readonly string? BlobsPrefix;
|
||||
/// <summary>
|
||||
/// Name of the S3 bucket.
|
||||
/// </summary>
|
||||
public readonly string Bucket;
|
||||
/// <summary>
|
||||
/// Endpoint of the S3 bucket.
|
||||
/// </summary>
|
||||
public readonly string? EndpointUrl;
|
||||
/// <summary>
|
||||
/// Prefix to prepend on manifest filenames.
|
||||
/// </summary>
|
||||
public readonly string? ManifestsPrefix;
|
||||
/// <summary>
|
||||
/// Name of the cache image.
|
||||
/// </summary>
|
||||
public readonly string? Name;
|
||||
/// <summary>
|
||||
/// The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
/// </summary>
|
||||
public readonly string Region;
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
/// </summary>
|
||||
public readonly string? SecretAccessKey;
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SESSION_TOKEN`.
|
||||
/// </summary>
|
||||
public readonly string? SessionToken;
|
||||
/// <summary>
|
||||
/// Uses `bucket` in the URL instead of hostname when `true`.
|
||||
/// </summary>
|
||||
public readonly bool? UsePathStyle;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheFromS3(
|
||||
string? accessKeyId,
|
||||
|
||||
string? blobsPrefix,
|
||||
|
||||
string bucket,
|
||||
|
||||
string? endpointUrl,
|
||||
|
||||
string? manifestsPrefix,
|
||||
|
||||
string? name,
|
||||
|
||||
string region,
|
||||
|
||||
string? secretAccessKey,
|
||||
|
||||
string? sessionToken,
|
||||
|
||||
bool? usePathStyle)
|
||||
{
|
||||
AccessKeyId = accessKeyId;
|
||||
BlobsPrefix = blobsPrefix;
|
||||
Bucket = bucket;
|
||||
EndpointUrl = endpointUrl;
|
||||
ManifestsPrefix = manifestsPrefix;
|
||||
Name = name;
|
||||
Region = region;
|
||||
SecretAccessKey = secretAccessKey;
|
||||
SessionToken = sessionToken;
|
||||
UsePathStyle = usePathStyle;
|
||||
}
|
||||
}
|
||||
}
|
||||
84
sdk/dotnet/Outputs/CacheTo.cs
generated
Normal file
84
sdk/dotnet/Outputs/CacheTo.cs
generated
Normal file
@@ -0,0 +1,84 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheTo
|
||||
{
|
||||
/// <summary>
|
||||
/// Push cache to Azure's blob storage service.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheToAzureBlob? Azblob;
|
||||
/// <summary>
|
||||
/// When `true` this entry will be excluded. Defaults to `false`.
|
||||
/// </summary>
|
||||
public readonly bool? Disabled;
|
||||
/// <summary>
|
||||
/// Recommended for use with GitHub Actions workflows.
|
||||
///
|
||||
/// An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
/// expose appropriate credentials to your GitHub workflow.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheToGitHubActions? Gha;
|
||||
/// <summary>
|
||||
/// The inline cache storage backend is the simplest implementation to get
|
||||
/// started with, but it does not handle multi-stage builds. Consider the
|
||||
/// `registry` cache backend instead.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheToInline? Inline;
|
||||
/// <summary>
|
||||
/// A simple backend which caches imagines on your local filesystem.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheToLocal? Local;
|
||||
/// <summary>
|
||||
/// A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
/// `type=inline`)
|
||||
/// </summary>
|
||||
public readonly string? Raw;
|
||||
/// <summary>
|
||||
/// Push caches to remote registries. Incompatible with the `docker` build
|
||||
/// driver.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheToRegistry? Registry;
|
||||
/// <summary>
|
||||
/// Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
/// </summary>
|
||||
public readonly Outputs.CacheToS3? S3;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheTo(
|
||||
Outputs.CacheToAzureBlob? azblob,
|
||||
|
||||
bool? disabled,
|
||||
|
||||
Outputs.CacheToGitHubActions? gha,
|
||||
|
||||
Outputs.CacheToInline? inline,
|
||||
|
||||
Outputs.CacheToLocal? local,
|
||||
|
||||
string? raw,
|
||||
|
||||
Outputs.CacheToRegistry? registry,
|
||||
|
||||
Outputs.CacheToS3? s3)
|
||||
{
|
||||
Azblob = azblob;
|
||||
Disabled = disabled;
|
||||
Gha = gha;
|
||||
Inline = inline;
|
||||
Local = local;
|
||||
Raw = raw;
|
||||
Registry = registry;
|
||||
S3 = s3;
|
||||
}
|
||||
}
|
||||
}
|
||||
56
sdk/dotnet/Outputs/CacheToAzureBlob.cs
generated
Normal file
56
sdk/dotnet/Outputs/CacheToAzureBlob.cs
generated
Normal file
@@ -0,0 +1,56 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheToAzureBlob
|
||||
{
|
||||
/// <summary>
|
||||
/// Base URL of the storage account.
|
||||
/// </summary>
|
||||
public readonly string? AccountUrl;
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
public readonly bool? IgnoreError;
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CacheMode? Mode;
|
||||
/// <summary>
|
||||
/// The name of the cache image.
|
||||
/// </summary>
|
||||
public readonly string Name;
|
||||
/// <summary>
|
||||
/// Blob storage account key.
|
||||
/// </summary>
|
||||
public readonly string? SecretAccessKey;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheToAzureBlob(
|
||||
string? accountUrl,
|
||||
|
||||
bool? ignoreError,
|
||||
|
||||
Pulumi.Dockerbuild.CacheMode? mode,
|
||||
|
||||
string name,
|
||||
|
||||
string? secretAccessKey)
|
||||
{
|
||||
AccountUrl = accountUrl;
|
||||
IgnoreError = ignoreError;
|
||||
Mode = mode;
|
||||
Name = name;
|
||||
SecretAccessKey = secretAccessKey;
|
||||
}
|
||||
}
|
||||
}
|
||||
68
sdk/dotnet/Outputs/CacheToGitHubActions.cs
generated
Normal file
68
sdk/dotnet/Outputs/CacheToGitHubActions.cs
generated
Normal file
@@ -0,0 +1,68 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheToGitHubActions
|
||||
{
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
public readonly bool? IgnoreError;
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CacheMode? Mode;
|
||||
/// <summary>
|
||||
/// The scope to use for cache keys. Defaults to `buildkit`.
|
||||
///
|
||||
/// This should be set if building and caching multiple images in one
|
||||
/// workflow, otherwise caches will overwrite each other.
|
||||
/// </summary>
|
||||
public readonly string? Scope;
|
||||
/// <summary>
|
||||
/// The GitHub Actions token to use. This is not a personal access tokens
|
||||
/// and is typically generated automatically as part of each job.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_TOKEN`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public readonly string? Token;
|
||||
/// <summary>
|
||||
/// The cache server URL to use for artifacts.
|
||||
///
|
||||
/// Defaults to `$ACTIONS_RUNTIME_URL`, although a separate action like
|
||||
/// `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
/// environment variable to your jobs.
|
||||
/// </summary>
|
||||
public readonly string? Url;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheToGitHubActions(
|
||||
bool? ignoreError,
|
||||
|
||||
Pulumi.Dockerbuild.CacheMode? mode,
|
||||
|
||||
string? scope,
|
||||
|
||||
string? token,
|
||||
|
||||
string? url)
|
||||
{
|
||||
IgnoreError = ignoreError;
|
||||
Mode = mode;
|
||||
Scope = scope;
|
||||
Token = token;
|
||||
Url = url;
|
||||
}
|
||||
}
|
||||
}
|
||||
24
sdk/dotnet/Outputs/CacheToInline.cs
generated
Normal file
24
sdk/dotnet/Outputs/CacheToInline.cs
generated
Normal file
@@ -0,0 +1,24 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// Include an inline cache with the exported image.
|
||||
/// </summary>
|
||||
[OutputType]
|
||||
public sealed class CacheToInline
|
||||
{
|
||||
[OutputConstructor]
|
||||
private CacheToInline()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
63
sdk/dotnet/Outputs/CacheToLocal.cs
generated
Normal file
63
sdk/dotnet/Outputs/CacheToLocal.cs
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheToLocal
|
||||
{
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CompressionType? Compression;
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
public readonly int? CompressionLevel;
|
||||
/// <summary>
|
||||
/// Path of the local directory to export the cache.
|
||||
/// </summary>
|
||||
public readonly string Dest;
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
public readonly bool? ForceCompression;
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
public readonly bool? IgnoreError;
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CacheMode? Mode;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheToLocal(
|
||||
Pulumi.Dockerbuild.CompressionType? compression,
|
||||
|
||||
int? compressionLevel,
|
||||
|
||||
string dest,
|
||||
|
||||
bool? forceCompression,
|
||||
|
||||
bool? ignoreError,
|
||||
|
||||
Pulumi.Dockerbuild.CacheMode? mode)
|
||||
{
|
||||
Compression = compression;
|
||||
CompressionLevel = compressionLevel;
|
||||
Dest = dest;
|
||||
ForceCompression = forceCompression;
|
||||
IgnoreError = ignoreError;
|
||||
Mode = mode;
|
||||
}
|
||||
}
|
||||
}
|
||||
84
sdk/dotnet/Outputs/CacheToRegistry.cs
generated
Normal file
84
sdk/dotnet/Outputs/CacheToRegistry.cs
generated
Normal file
@@ -0,0 +1,84 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheToRegistry
|
||||
{
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CompressionType? Compression;
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
public readonly int? CompressionLevel;
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
public readonly bool? ForceCompression;
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
public readonly bool? IgnoreError;
|
||||
/// <summary>
|
||||
/// Export cache manifest as an OCI-compatible image manifest instead of a
|
||||
/// manifest list. Requires `ociMediaTypes` to also be `true`.
|
||||
///
|
||||
/// Some registries like AWS ECR will not work with caching if this is
|
||||
/// `false`.
|
||||
///
|
||||
/// Defaults to `false` to match Docker's default behavior.
|
||||
/// </summary>
|
||||
public readonly bool? ImageManifest;
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CacheMode? Mode;
|
||||
/// <summary>
|
||||
/// Whether to use OCI media types in exported manifests. Defaults to
|
||||
/// `true`.
|
||||
/// </summary>
|
||||
public readonly bool? OciMediaTypes;
|
||||
/// <summary>
|
||||
/// Fully qualified name of the cache image to import.
|
||||
/// </summary>
|
||||
public readonly string Ref;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheToRegistry(
|
||||
Pulumi.Dockerbuild.CompressionType? compression,
|
||||
|
||||
int? compressionLevel,
|
||||
|
||||
bool? forceCompression,
|
||||
|
||||
bool? ignoreError,
|
||||
|
||||
bool? imageManifest,
|
||||
|
||||
Pulumi.Dockerbuild.CacheMode? mode,
|
||||
|
||||
bool? ociMediaTypes,
|
||||
|
||||
string @ref)
|
||||
{
|
||||
Compression = compression;
|
||||
CompressionLevel = compressionLevel;
|
||||
ForceCompression = forceCompression;
|
||||
IgnoreError = ignoreError;
|
||||
ImageManifest = imageManifest;
|
||||
Mode = mode;
|
||||
OciMediaTypes = ociMediaTypes;
|
||||
Ref = @ref;
|
||||
}
|
||||
}
|
||||
}
|
||||
105
sdk/dotnet/Outputs/CacheToS3.cs
generated
Normal file
105
sdk/dotnet/Outputs/CacheToS3.cs
generated
Normal file
@@ -0,0 +1,105 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class CacheToS3
|
||||
{
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
/// </summary>
|
||||
public readonly string? AccessKeyId;
|
||||
/// <summary>
|
||||
/// Prefix to prepend to blob filenames.
|
||||
/// </summary>
|
||||
public readonly string? BlobsPrefix;
|
||||
/// <summary>
|
||||
/// Name of the S3 bucket.
|
||||
/// </summary>
|
||||
public readonly string Bucket;
|
||||
/// <summary>
|
||||
/// Endpoint of the S3 bucket.
|
||||
/// </summary>
|
||||
public readonly string? EndpointUrl;
|
||||
/// <summary>
|
||||
/// Ignore errors caused by failed cache exports.
|
||||
/// </summary>
|
||||
public readonly bool? IgnoreError;
|
||||
/// <summary>
|
||||
/// Prefix to prepend on manifest filenames.
|
||||
/// </summary>
|
||||
public readonly string? ManifestsPrefix;
|
||||
/// <summary>
|
||||
/// The cache mode to use. Defaults to `min`.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CacheMode? Mode;
|
||||
/// <summary>
|
||||
/// Name of the cache image.
|
||||
/// </summary>
|
||||
public readonly string? Name;
|
||||
/// <summary>
|
||||
/// The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
/// </summary>
|
||||
public readonly string Region;
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
/// </summary>
|
||||
public readonly string? SecretAccessKey;
|
||||
/// <summary>
|
||||
/// Defaults to `$AWS_SESSION_TOKEN`.
|
||||
/// </summary>
|
||||
public readonly string? SessionToken;
|
||||
/// <summary>
|
||||
/// Uses `bucket` in the URL instead of hostname when `true`.
|
||||
/// </summary>
|
||||
public readonly bool? UsePathStyle;
|
||||
|
||||
[OutputConstructor]
|
||||
private CacheToS3(
|
||||
string? accessKeyId,
|
||||
|
||||
string? blobsPrefix,
|
||||
|
||||
string bucket,
|
||||
|
||||
string? endpointUrl,
|
||||
|
||||
bool? ignoreError,
|
||||
|
||||
string? manifestsPrefix,
|
||||
|
||||
Pulumi.Dockerbuild.CacheMode? mode,
|
||||
|
||||
string? name,
|
||||
|
||||
string region,
|
||||
|
||||
string? secretAccessKey,
|
||||
|
||||
string? sessionToken,
|
||||
|
||||
bool? usePathStyle)
|
||||
{
|
||||
AccessKeyId = accessKeyId;
|
||||
BlobsPrefix = blobsPrefix;
|
||||
Bucket = bucket;
|
||||
EndpointUrl = endpointUrl;
|
||||
IgnoreError = ignoreError;
|
||||
ManifestsPrefix = manifestsPrefix;
|
||||
Mode = mode;
|
||||
Name = name;
|
||||
Region = region;
|
||||
SecretAccessKey = secretAccessKey;
|
||||
SessionToken = sessionToken;
|
||||
UsePathStyle = usePathStyle;
|
||||
}
|
||||
}
|
||||
}
|
||||
34
sdk/dotnet/Outputs/Context.cs
generated
Normal file
34
sdk/dotnet/Outputs/Context.cs
generated
Normal file
@@ -0,0 +1,34 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class Context
|
||||
{
|
||||
/// <summary>
|
||||
/// Resources to use for build context.
|
||||
///
|
||||
/// The location can be:
|
||||
/// * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
/// `/app`, etc.).
|
||||
/// * A remote URL of a Git repository, tarball, or plain text file
|
||||
/// (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
/// etc.).
|
||||
/// </summary>
|
||||
public readonly string Location;
|
||||
|
||||
[OutputConstructor]
|
||||
private Context(string location)
|
||||
{
|
||||
Location = location;
|
||||
}
|
||||
}
|
||||
}
|
||||
45
sdk/dotnet/Outputs/Dockerfile.cs
generated
Normal file
45
sdk/dotnet/Outputs/Dockerfile.cs
generated
Normal file
@@ -0,0 +1,45 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class Dockerfile
|
||||
{
|
||||
/// <summary>
|
||||
/// Raw Dockerfile contents.
|
||||
///
|
||||
/// Conflicts with `location`.
|
||||
///
|
||||
/// Equivalent to invoking Docker with `-f -`.
|
||||
/// </summary>
|
||||
public readonly string? Inline;
|
||||
/// <summary>
|
||||
/// Location of the Dockerfile to use.
|
||||
///
|
||||
/// Can be a relative or absolute path to a local file, or a remote URL.
|
||||
///
|
||||
/// Defaults to `${context.location}/Dockerfile` if context is on-disk.
|
||||
///
|
||||
/// Conflicts with `inline`.
|
||||
/// </summary>
|
||||
public readonly string? Location;
|
||||
|
||||
[OutputConstructor]
|
||||
private Dockerfile(
|
||||
string? inline,
|
||||
|
||||
string? location)
|
||||
{
|
||||
Inline = inline;
|
||||
Location = location;
|
||||
}
|
||||
}
|
||||
}
|
||||
86
sdk/dotnet/Outputs/Export.cs
generated
Normal file
86
sdk/dotnet/Outputs/Export.cs
generated
Normal file
@@ -0,0 +1,86 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class Export
|
||||
{
|
||||
/// <summary>
|
||||
/// A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
/// just want to populate caches.
|
||||
/// </summary>
|
||||
public readonly Outputs.ExportCacheOnly? Cacheonly;
|
||||
/// <summary>
|
||||
/// When `true` this entry will be excluded. Defaults to `false`.
|
||||
/// </summary>
|
||||
public readonly bool? Disabled;
|
||||
/// <summary>
|
||||
/// Export as a Docker image layout.
|
||||
/// </summary>
|
||||
public readonly Outputs.ExportDocker? Docker;
|
||||
/// <summary>
|
||||
/// Outputs the build result into a container image format.
|
||||
/// </summary>
|
||||
public readonly Outputs.ExportImage? Image;
|
||||
/// <summary>
|
||||
/// Export to a local directory as files and directories.
|
||||
/// </summary>
|
||||
public readonly Outputs.ExportLocal? Local;
|
||||
/// <summary>
|
||||
/// Identical to the Docker exporter but uses OCI media types by default.
|
||||
/// </summary>
|
||||
public readonly Outputs.ExportOCI? Oci;
|
||||
/// <summary>
|
||||
/// A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
/// `type=docker`)
|
||||
/// </summary>
|
||||
public readonly string? Raw;
|
||||
/// <summary>
|
||||
/// Identical to the Image exporter, but pushes by default.
|
||||
/// </summary>
|
||||
public readonly Outputs.ExportRegistry? Registry;
|
||||
/// <summary>
|
||||
/// Export to a local directory as a tarball.
|
||||
/// </summary>
|
||||
public readonly Outputs.ExportTar? Tar;
|
||||
|
||||
[OutputConstructor]
|
||||
private Export(
|
||||
Outputs.ExportCacheOnly? cacheonly,
|
||||
|
||||
bool? disabled,
|
||||
|
||||
Outputs.ExportDocker? docker,
|
||||
|
||||
Outputs.ExportImage? image,
|
||||
|
||||
Outputs.ExportLocal? local,
|
||||
|
||||
Outputs.ExportOCI? oci,
|
||||
|
||||
string? raw,
|
||||
|
||||
Outputs.ExportRegistry? registry,
|
||||
|
||||
Outputs.ExportTar? tar)
|
||||
{
|
||||
Cacheonly = cacheonly;
|
||||
Disabled = disabled;
|
||||
Docker = docker;
|
||||
Image = image;
|
||||
Local = local;
|
||||
Oci = oci;
|
||||
Raw = raw;
|
||||
Registry = registry;
|
||||
Tar = tar;
|
||||
}
|
||||
}
|
||||
}
|
||||
21
sdk/dotnet/Outputs/ExportCacheOnly.cs
generated
Normal file
21
sdk/dotnet/Outputs/ExportCacheOnly.cs
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class ExportCacheOnly
|
||||
{
|
||||
[OutputConstructor]
|
||||
private ExportCacheOnly()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
77
sdk/dotnet/Outputs/ExportDocker.cs
generated
Normal file
77
sdk/dotnet/Outputs/ExportDocker.cs
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class ExportDocker
|
||||
{
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public readonly ImmutableDictionary<string, string>? Annotations;
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CompressionType? Compression;
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
public readonly int? CompressionLevel;
|
||||
/// <summary>
|
||||
/// The local export path.
|
||||
/// </summary>
|
||||
public readonly string? Dest;
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
public readonly bool? ForceCompression;
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public readonly ImmutableArray<string> Names;
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
public readonly bool? OciMediaTypes;
|
||||
/// <summary>
|
||||
/// Bundle the output into a tarball layout.
|
||||
/// </summary>
|
||||
public readonly bool? Tar;
|
||||
|
||||
[OutputConstructor]
|
||||
private ExportDocker(
|
||||
ImmutableDictionary<string, string>? annotations,
|
||||
|
||||
Pulumi.Dockerbuild.CompressionType? compression,
|
||||
|
||||
int? compressionLevel,
|
||||
|
||||
string? dest,
|
||||
|
||||
bool? forceCompression,
|
||||
|
||||
ImmutableArray<string> names,
|
||||
|
||||
bool? ociMediaTypes,
|
||||
|
||||
bool? tar)
|
||||
{
|
||||
Annotations = annotations;
|
||||
Compression = compression;
|
||||
CompressionLevel = compressionLevel;
|
||||
Dest = dest;
|
||||
ForceCompression = forceCompression;
|
||||
Names = names;
|
||||
OciMediaTypes = ociMediaTypes;
|
||||
Tar = tar;
|
||||
}
|
||||
}
|
||||
}
|
||||
119
sdk/dotnet/Outputs/ExportImage.cs
generated
Normal file
119
sdk/dotnet/Outputs/ExportImage.cs
generated
Normal file
@@ -0,0 +1,119 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class ExportImage
|
||||
{
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public readonly ImmutableDictionary<string, string>? Annotations;
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CompressionType? Compression;
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
public readonly int? CompressionLevel;
|
||||
/// <summary>
|
||||
/// Name image with `prefix@<digest>`, used for anonymous images.
|
||||
/// </summary>
|
||||
public readonly string? DanglingNamePrefix;
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
public readonly bool? ForceCompression;
|
||||
/// <summary>
|
||||
/// Allow pushing to an insecure registry.
|
||||
/// </summary>
|
||||
public readonly bool? Insecure;
|
||||
/// <summary>
|
||||
/// Add additional canonical name (`name@<digest>`).
|
||||
/// </summary>
|
||||
public readonly bool? NameCanonical;
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public readonly ImmutableArray<string> Names;
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
public readonly bool? OciMediaTypes;
|
||||
/// <summary>
|
||||
/// Push after creating the image. Defaults to `false`.
|
||||
/// </summary>
|
||||
public readonly bool? Push;
|
||||
/// <summary>
|
||||
/// Push image without name.
|
||||
/// </summary>
|
||||
public readonly bool? PushByDigest;
|
||||
/// <summary>
|
||||
/// Store resulting images to the worker's image store and ensure all of
|
||||
/// its blobs are in the content store.
|
||||
///
|
||||
/// Defaults to `true`.
|
||||
///
|
||||
/// Ignored if the worker doesn't have image store (when using OCI workers,
|
||||
/// for example).
|
||||
/// </summary>
|
||||
public readonly bool? Store;
|
||||
/// <summary>
|
||||
/// Unpack image after creation (for use with containerd). Defaults to
|
||||
/// `false`.
|
||||
/// </summary>
|
||||
public readonly bool? Unpack;
|
||||
|
||||
[OutputConstructor]
|
||||
private ExportImage(
|
||||
ImmutableDictionary<string, string>? annotations,
|
||||
|
||||
Pulumi.Dockerbuild.CompressionType? compression,
|
||||
|
||||
int? compressionLevel,
|
||||
|
||||
string? danglingNamePrefix,
|
||||
|
||||
bool? forceCompression,
|
||||
|
||||
bool? insecure,
|
||||
|
||||
bool? nameCanonical,
|
||||
|
||||
ImmutableArray<string> names,
|
||||
|
||||
bool? ociMediaTypes,
|
||||
|
||||
bool? push,
|
||||
|
||||
bool? pushByDigest,
|
||||
|
||||
bool? store,
|
||||
|
||||
bool? unpack)
|
||||
{
|
||||
Annotations = annotations;
|
||||
Compression = compression;
|
||||
CompressionLevel = compressionLevel;
|
||||
DanglingNamePrefix = danglingNamePrefix;
|
||||
ForceCompression = forceCompression;
|
||||
Insecure = insecure;
|
||||
NameCanonical = nameCanonical;
|
||||
Names = names;
|
||||
OciMediaTypes = ociMediaTypes;
|
||||
Push = push;
|
||||
PushByDigest = pushByDigest;
|
||||
Store = store;
|
||||
Unpack = unpack;
|
||||
}
|
||||
}
|
||||
}
|
||||
27
sdk/dotnet/Outputs/ExportLocal.cs
generated
Normal file
27
sdk/dotnet/Outputs/ExportLocal.cs
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class ExportLocal
|
||||
{
|
||||
/// <summary>
|
||||
/// Output path.
|
||||
/// </summary>
|
||||
public readonly string Dest;
|
||||
|
||||
[OutputConstructor]
|
||||
private ExportLocal(string dest)
|
||||
{
|
||||
Dest = dest;
|
||||
}
|
||||
}
|
||||
}
|
||||
77
sdk/dotnet/Outputs/ExportOCI.cs
generated
Normal file
77
sdk/dotnet/Outputs/ExportOCI.cs
generated
Normal file
@@ -0,0 +1,77 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class ExportOCI
|
||||
{
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public readonly ImmutableDictionary<string, string>? Annotations;
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CompressionType? Compression;
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
public readonly int? CompressionLevel;
|
||||
/// <summary>
|
||||
/// The local export path.
|
||||
/// </summary>
|
||||
public readonly string? Dest;
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
public readonly bool? ForceCompression;
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public readonly ImmutableArray<string> Names;
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
public readonly bool? OciMediaTypes;
|
||||
/// <summary>
|
||||
/// Bundle the output into a tarball layout.
|
||||
/// </summary>
|
||||
public readonly bool? Tar;
|
||||
|
||||
[OutputConstructor]
|
||||
private ExportOCI(
|
||||
ImmutableDictionary<string, string>? annotations,
|
||||
|
||||
Pulumi.Dockerbuild.CompressionType? compression,
|
||||
|
||||
int? compressionLevel,
|
||||
|
||||
string? dest,
|
||||
|
||||
bool? forceCompression,
|
||||
|
||||
ImmutableArray<string> names,
|
||||
|
||||
bool? ociMediaTypes,
|
||||
|
||||
bool? tar)
|
||||
{
|
||||
Annotations = annotations;
|
||||
Compression = compression;
|
||||
CompressionLevel = compressionLevel;
|
||||
Dest = dest;
|
||||
ForceCompression = forceCompression;
|
||||
Names = names;
|
||||
OciMediaTypes = ociMediaTypes;
|
||||
Tar = tar;
|
||||
}
|
||||
}
|
||||
}
|
||||
119
sdk/dotnet/Outputs/ExportRegistry.cs
generated
Normal file
119
sdk/dotnet/Outputs/ExportRegistry.cs
generated
Normal file
@@ -0,0 +1,119 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class ExportRegistry
|
||||
{
|
||||
/// <summary>
|
||||
/// Attach an arbitrary key/value annotation to the image.
|
||||
/// </summary>
|
||||
public readonly ImmutableDictionary<string, string>? Annotations;
|
||||
/// <summary>
|
||||
/// The compression type to use.
|
||||
/// </summary>
|
||||
public readonly Pulumi.Dockerbuild.CompressionType? Compression;
|
||||
/// <summary>
|
||||
/// Compression level from 0 to 22.
|
||||
/// </summary>
|
||||
public readonly int? CompressionLevel;
|
||||
/// <summary>
|
||||
/// Name image with `prefix@<digest>`, used for anonymous images.
|
||||
/// </summary>
|
||||
public readonly string? DanglingNamePrefix;
|
||||
/// <summary>
|
||||
/// Forcefully apply compression.
|
||||
/// </summary>
|
||||
public readonly bool? ForceCompression;
|
||||
/// <summary>
|
||||
/// Allow pushing to an insecure registry.
|
||||
/// </summary>
|
||||
public readonly bool? Insecure;
|
||||
/// <summary>
|
||||
/// Add additional canonical name (`name@<digest>`).
|
||||
/// </summary>
|
||||
public readonly bool? NameCanonical;
|
||||
/// <summary>
|
||||
/// Specify images names to export. This is overridden if tags are already specified.
|
||||
/// </summary>
|
||||
public readonly ImmutableArray<string> Names;
|
||||
/// <summary>
|
||||
/// Use OCI media types in exporter manifests.
|
||||
/// </summary>
|
||||
public readonly bool? OciMediaTypes;
|
||||
/// <summary>
|
||||
/// Push after creating the image. Defaults to `true`.
|
||||
/// </summary>
|
||||
public readonly bool? Push;
|
||||
/// <summary>
|
||||
/// Push image without name.
|
||||
/// </summary>
|
||||
public readonly bool? PushByDigest;
|
||||
/// <summary>
|
||||
/// Store resulting images to the worker's image store and ensure all of
|
||||
/// its blobs are in the content store.
|
||||
///
|
||||
/// Defaults to `true`.
|
||||
///
|
||||
/// Ignored if the worker doesn't have image store (when using OCI workers,
|
||||
/// for example).
|
||||
/// </summary>
|
||||
public readonly bool? Store;
|
||||
/// <summary>
|
||||
/// Unpack image after creation (for use with containerd). Defaults to
|
||||
/// `false`.
|
||||
/// </summary>
|
||||
public readonly bool? Unpack;
|
||||
|
||||
[OutputConstructor]
|
||||
private ExportRegistry(
|
||||
ImmutableDictionary<string, string>? annotations,
|
||||
|
||||
Pulumi.Dockerbuild.CompressionType? compression,
|
||||
|
||||
int? compressionLevel,
|
||||
|
||||
string? danglingNamePrefix,
|
||||
|
||||
bool? forceCompression,
|
||||
|
||||
bool? insecure,
|
||||
|
||||
bool? nameCanonical,
|
||||
|
||||
ImmutableArray<string> names,
|
||||
|
||||
bool? ociMediaTypes,
|
||||
|
||||
bool? push,
|
||||
|
||||
bool? pushByDigest,
|
||||
|
||||
bool? store,
|
||||
|
||||
bool? unpack)
|
||||
{
|
||||
Annotations = annotations;
|
||||
Compression = compression;
|
||||
CompressionLevel = compressionLevel;
|
||||
DanglingNamePrefix = danglingNamePrefix;
|
||||
ForceCompression = forceCompression;
|
||||
Insecure = insecure;
|
||||
NameCanonical = nameCanonical;
|
||||
Names = names;
|
||||
OciMediaTypes = ociMediaTypes;
|
||||
Push = push;
|
||||
PushByDigest = pushByDigest;
|
||||
Store = store;
|
||||
Unpack = unpack;
|
||||
}
|
||||
}
|
||||
}
|
||||
27
sdk/dotnet/Outputs/ExportTar.cs
generated
Normal file
27
sdk/dotnet/Outputs/ExportTar.cs
generated
Normal file
@@ -0,0 +1,27 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class ExportTar
|
||||
{
|
||||
/// <summary>
|
||||
/// Output path.
|
||||
/// </summary>
|
||||
public readonly string Dest;
|
||||
|
||||
[OutputConstructor]
|
||||
private ExportTar(string dest)
|
||||
{
|
||||
Dest = dest;
|
||||
}
|
||||
}
|
||||
}
|
||||
42
sdk/dotnet/Outputs/Registry.cs
generated
Normal file
42
sdk/dotnet/Outputs/Registry.cs
generated
Normal file
@@ -0,0 +1,42 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class Registry
|
||||
{
|
||||
/// <summary>
|
||||
/// The registry's address (e.g. "docker.io").
|
||||
/// </summary>
|
||||
public readonly string Address;
|
||||
/// <summary>
|
||||
/// Password or token for the registry.
|
||||
/// </summary>
|
||||
public readonly string? Password;
|
||||
/// <summary>
|
||||
/// Username for the registry.
|
||||
/// </summary>
|
||||
public readonly string? Username;
|
||||
|
||||
[OutputConstructor]
|
||||
private Registry(
|
||||
string address,
|
||||
|
||||
string? password,
|
||||
|
||||
string? username)
|
||||
{
|
||||
Address = address;
|
||||
Password = password;
|
||||
Username = username;
|
||||
}
|
||||
}
|
||||
}
|
||||
45
sdk/dotnet/Outputs/SSH.cs
generated
Normal file
45
sdk/dotnet/Outputs/SSH.cs
generated
Normal file
@@ -0,0 +1,45 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild.Outputs
|
||||
{
|
||||
|
||||
[OutputType]
|
||||
public sealed class SSH
|
||||
{
|
||||
/// <summary>
|
||||
/// Useful for distinguishing different servers that are part of the same
|
||||
/// build.
|
||||
///
|
||||
/// A value of `default` is appropriate if only dealing with a single host.
|
||||
/// </summary>
|
||||
public readonly string Id;
|
||||
/// <summary>
|
||||
/// SSH agent socket or private keys to expose to the build under the given
|
||||
/// identifier.
|
||||
///
|
||||
/// Defaults to `[$SSH_AUTH_SOCK]`.
|
||||
///
|
||||
/// Note that your keys are **not** automatically added when using an
|
||||
/// agent. Run `ssh-add -l` locally to confirm which public keys are
|
||||
/// visible to the agent; these will be exposed to your build.
|
||||
/// </summary>
|
||||
public readonly ImmutableArray<string> Paths;
|
||||
|
||||
[OutputConstructor]
|
||||
private SSH(
|
||||
string id,
|
||||
|
||||
ImmutableArray<string> paths)
|
||||
{
|
||||
Id = id;
|
||||
Paths = paths;
|
||||
}
|
||||
}
|
||||
}
|
||||
22
sdk/dotnet/Provider.cs
generated
22
sdk/dotnet/Provider.cs
generated
@@ -12,6 +12,13 @@ namespace Pulumi.Dockerbuild
|
||||
[DockerbuildResourceType("pulumi:providers:dockerbuild")]
|
||||
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>
|
||||
@@ -40,8 +47,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();
|
||||
}
|
||||
|
||||
2
sdk/dotnet/Pulumi.Dockerbuild.csproj
generated
2
sdk/dotnet/Pulumi.Dockerbuild.csproj
generated
@@ -4,7 +4,7 @@
|
||||
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||
<Authors>pulumi</Authors>
|
||||
<Company>pulumi</Company>
|
||||
<Description>Description</Description>
|
||||
<Description>A Pulumi provider for Docker buildx</Description>
|
||||
<PackageLicenseExpression></PackageLicenseExpression>
|
||||
<PackageProjectUrl>pulumi.com</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/pulumi/pulumi-dockerbuild</RepositoryUrl>
|
||||
|
||||
2
sdk/dotnet/README.md
generated
2
sdk/dotnet/README.md
generated
@@ -1 +1 @@
|
||||
Description
|
||||
A Pulumi provider for Docker buildx
|
||||
|
||||
75
sdk/dotnet/Random.cs
generated
75
sdk/dotnet/Random.cs
generated
@@ -1,75 +0,0 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Threading.Tasks;
|
||||
using Pulumi.Serialization;
|
||||
|
||||
namespace Pulumi.Dockerbuild
|
||||
{
|
||||
[DockerbuildResourceType("dockerbuild:index:Random")]
|
||||
public partial class Random : global::Pulumi.CustomResource
|
||||
{
|
||||
[Output("length")]
|
||||
public Output<int> Length { get; private set; } = null!;
|
||||
|
||||
[Output("result")]
|
||||
public Output<string> Result { get; private set; } = null!;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Create a Random resource with the given unique name, arguments, and options.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">The unique name of the resource</param>
|
||||
/// <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 Random(string name, RandomArgs args, CustomResourceOptions? options = null)
|
||||
: base("dockerbuild:index:Random", name, args ?? new RandomArgs(), MakeResourceOptions(options, ""))
|
||||
{
|
||||
}
|
||||
|
||||
private Random(string name, Input<string> id, CustomResourceOptions? options = null)
|
||||
: base("dockerbuild:index:Random", name, null, MakeResourceOptions(options, id))
|
||||
{
|
||||
}
|
||||
|
||||
private static CustomResourceOptions MakeResourceOptions(CustomResourceOptions? options, Input<string>? id)
|
||||
{
|
||||
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.
|
||||
merged.Id = id ?? merged.Id;
|
||||
return merged;
|
||||
}
|
||||
/// <summary>
|
||||
/// Get an existing Random resource's state with the given name, ID, and optional extra
|
||||
/// properties used to qualify the lookup.
|
||||
/// </summary>
|
||||
///
|
||||
/// <param name="name">The unique name of the resulting resource.</param>
|
||||
/// <param name="id">The unique provider ID of the resource to lookup.</param>
|
||||
/// <param name="options">A bag of options that control this resource's behavior</param>
|
||||
public static Random Get(string name, Input<string> id, CustomResourceOptions? options = null)
|
||||
{
|
||||
return new Random(name, id, options);
|
||||
}
|
||||
}
|
||||
|
||||
public sealed class RandomArgs : global::Pulumi.ResourceArgs
|
||||
{
|
||||
[Input("length", required: true)]
|
||||
public Input<int> Length { get; set; } = null!;
|
||||
|
||||
public RandomArgs()
|
||||
{
|
||||
}
|
||||
public static new RandomArgs Empty => new RandomArgs();
|
||||
}
|
||||
}
|
||||
29
sdk/go/dockerbuild/config/config.go
generated
Normal file
29
sdk/go/dockerbuild/config/config.go
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
dockerbuild "github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
|
||||
)
|
||||
|
||||
var _ = internal.GetEnvOrDefault
|
||||
|
||||
// The build daemon's address.
|
||||
func GetHost(ctx *pulumi.Context) string {
|
||||
v, err := config.Try(ctx, "dockerbuild:host")
|
||||
if err == nil {
|
||||
return v
|
||||
}
|
||||
var value string
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
value = d.(string)
|
||||
}
|
||||
return value
|
||||
}
|
||||
func GetRegistries(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "dockerbuild:registries")
|
||||
}
|
||||
2
sdk/go/dockerbuild/doc.go
generated
2
sdk/go/dockerbuild/doc.go
generated
@@ -1,2 +1,2 @@
|
||||
// Description
|
||||
// A Pulumi provider for Docker buildx
|
||||
package dockerbuild
|
||||
|
||||
42
sdk/go/dockerbuild/go.mod
generated
42
sdk/go/dockerbuild/go.mod
generated
@@ -4,7 +4,7 @@ go 1.21.7
|
||||
|
||||
require (
|
||||
github.com/blang/semver v3.5.1+incompatible
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.1
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.2-0.20240324200353-583e06df0c70
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -21,26 +21,29 @@ require (
|
||||
github.com/charmbracelet/lipgloss v0.7.1 // indirect
|
||||
github.com/cheggaaa/pb v1.0.29 // indirect
|
||||
github.com/cloudflare/circl v1.3.7 // indirect
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
|
||||
github.com/containerd/console v1.0.4 // indirect
|
||||
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
|
||||
github.com/djherbis/times v1.5.0 // indirect
|
||||
github.com/emirpasic/gods v1.18.1 // indirect
|
||||
github.com/fatih/color v1.15.0 // indirect
|
||||
github.com/frankban/quicktest v1.14.4 // indirect
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
|
||||
github.com/go-git/go-billy/v5 v5.5.0 // indirect
|
||||
github.com/go-git/go-git/v5 v5.11.0 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang/glog v1.1.2 // indirect
|
||||
github.com/golang/glog v1.2.0 // indirect
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||
github.com/golang/protobuf v1.5.3 // indirect
|
||||
github.com/google/uuid v1.4.0 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
|
||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||
github.com/hashicorp/hcl/v2 v2.18.0 // indirect
|
||||
github.com/hashicorp/hcl/v2 v2.19.1 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
||||
github.com/kevinburke/ssh_config v1.2.0 // indirect
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||
github.com/mattn/go-isatty v0.0.19 // indirect
|
||||
github.com/mattn/go-localereader v0.0.1 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||
@@ -61,10 +64,11 @@ require (
|
||||
github.com/rivo/uniseg v0.4.4 // indirect
|
||||
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 // indirect
|
||||
github.com/sergi/go-diff v1.3.1 // indirect
|
||||
github.com/skeema/knownhosts v1.2.1 // indirect
|
||||
github.com/spf13/cobra v1.7.0 // indirect
|
||||
github.com/spf13/cast v1.5.0 // indirect
|
||||
github.com/spf13/cobra v1.8.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/stretchr/objx v0.5.0 // indirect
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
|
||||
@@ -72,20 +76,20 @@ require (
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
|
||||
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
||||
github.com/zclconf/go-cty v1.14.0 // indirect
|
||||
go.uber.org/atomic v1.11.0 // indirect
|
||||
golang.org/x/crypto v0.17.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect
|
||||
github.com/zclconf/go-cty v1.14.1 // indirect
|
||||
go.uber.org/atomic v1.10.0 // indirect
|
||||
golang.org/x/crypto v0.21.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
|
||||
golang.org/x/mod v0.14.0 // indirect
|
||||
golang.org/x/net v0.19.0 // indirect
|
||||
golang.org/x/sync v0.5.0 // indirect
|
||||
golang.org/x/sys v0.15.0 // indirect
|
||||
golang.org/x/term v0.15.0 // indirect
|
||||
golang.org/x/net v0.21.0 // indirect
|
||||
golang.org/x/sync v0.6.0 // indirect
|
||||
golang.org/x/sys v0.18.0 // indirect
|
||||
golang.org/x/term v0.18.0 // indirect
|
||||
golang.org/x/text v0.14.0 // indirect
|
||||
golang.org/x/tools v0.15.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
|
||||
google.golang.org/grpc v1.59.0 // indirect
|
||||
google.golang.org/protobuf v1.31.0 // indirect
|
||||
golang.org/x/tools v0.17.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 // indirect
|
||||
google.golang.org/grpc v1.62.0 // indirect
|
||||
google.golang.org/protobuf v1.33.0 // indirect
|
||||
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
lukechampine.com/frand v1.4.2 // indirect
|
||||
|
||||
96
sdk/go/dockerbuild/go.sum
generated
96
sdk/go/dockerbuild/go.sum
generated
@@ -35,9 +35,10 @@ github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuP
|
||||
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
|
||||
github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
|
||||
github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA=
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/containerd/console v1.0.4 h1:F2g4+oChYvBTsASRTz8NP6iIAi97J3TtSAsLbIFn4ro=
|
||||
github.com/containerd/console v1.0.4/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
@@ -50,8 +51,10 @@ github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/El
|
||||
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
|
||||
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
|
||||
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
|
||||
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
|
||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
||||
github.com/fatih/color v1.15.0 h1:kOqh6YHBtK8aywxGerMG2Eq3H6Qgoqeo13Bk2Mv/nBs=
|
||||
github.com/fatih/color v1.15.0/go.mod h1:0h5ZqXfHYED7Bhv2ZJamyIOUej9KtShiJESRwBDUSsw=
|
||||
github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY=
|
||||
github.com/frankban/quicktest v1.14.4/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
|
||||
github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY=
|
||||
github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4=
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
|
||||
@@ -65,18 +68,19 @@ github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lK
|
||||
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
|
||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo=
|
||||
github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ=
|
||||
github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68=
|
||||
github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
|
||||
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4=
|
||||
github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU=
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
@@ -84,8 +88,8 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY
|
||||
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
|
||||
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
|
||||
github.com/hashicorp/hcl/v2 v2.18.0 h1:wYnG7Lt31t2zYkcquwgKo6MWXzRUDIeIVU5naZwHLl8=
|
||||
github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
|
||||
github.com/hashicorp/hcl/v2 v2.19.1 h1://i05Jqznmb2EXqa39Nsvyan2o5XyMowW5fnCKW5RPI=
|
||||
github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
|
||||
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
|
||||
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
|
||||
@@ -105,10 +109,11 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
|
||||
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
||||
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
|
||||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
|
||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
|
||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
|
||||
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
|
||||
@@ -140,6 +145,7 @@ github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU=
|
||||
github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M=
|
||||
github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=
|
||||
github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI=
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk=
|
||||
@@ -150,26 +156,29 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435
|
||||
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
|
||||
github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw=
|
||||
github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.2-0.20240324200353-583e06df0c70 h1:ghmycvyB0Pp1SUgGr49YyLQIaJQhyWicpBDs6mxuqn8=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.2-0.20240324200353-583e06df0c70/go.mod h1:BZqRjE2GtMYyjB8eNUomPWld+8RaqXKAuYXFqE13JMY=
|
||||
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
|
||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
|
||||
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
|
||||
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 h1:lZUw3E0/J3roVtGQ+SCrUrg3ON6NgVqpn3+iol9aGu4=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1/go.mod h1:uToXkOrWAZ6/Oc07xWQrPOhJotwFIyu2bBVN41fcDUY=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0 h1:TToq11gyfNlrMFZiYujSekIsPd9AmsA2Bj/iv+s4JHE=
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.0.0/go.mod h1:FKdcjfQW6rpZSnxxUvEA5H/cDPdvJ/SZJQLWWXWGrZ0=
|
||||
github.com/sergi/go-diff v1.3.1 h1:xkr+Oxo4BOQKmkn/B9eMK0g5Kg/983T9DqqPHwYqD+8=
|
||||
github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NFbPK1I=
|
||||
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ=
|
||||
github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo=
|
||||
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
|
||||
github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
|
||||
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
||||
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
||||
github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0=
|
||||
github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho=
|
||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
@@ -198,10 +207,10 @@ github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc=
|
||||
github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
|
||||
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
|
||||
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
|
||||
github.com/zclconf/go-cty v1.14.1 h1:t9fyA35fwjjUMcmL5hLER+e/rEPqrbCK1/OSE4SI9KA=
|
||||
github.com/zclconf/go-cty v1.14.1/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
|
||||
go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ=
|
||||
go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
@@ -209,10 +218,10 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
|
||||
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||
golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
|
||||
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
|
||||
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
|
||||
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
|
||||
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ=
|
||||
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE=
|
||||
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
|
||||
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
|
||||
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 h1:hNQpMuAJe5CtcUqCXaWga3FHu+kQvCqcsoVaQgSV60o=
|
||||
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08=
|
||||
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
@@ -232,15 +241,15 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
|
||||
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
||||
golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
|
||||
golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U=
|
||||
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
|
||||
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
|
||||
golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
|
||||
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
@@ -256,20 +265,21 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
|
||||
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
|
||||
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||
golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
|
||||
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
|
||||
golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8=
|
||||
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
@@ -287,20 +297,20 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/tools v0.15.0 h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8=
|
||||
golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk=
|
||||
golang.org/x/tools v0.17.0 h1:FvmRgNOcs3kOa+T20R1uhfP9F6HgG2mfxDv1vrx1Htc=
|
||||
golang.org/x/tools v0.17.0/go.mod h1:xsh6VxdV005rRVaS6SSAf9oiAqljS7UZUacMZ8Bnsps=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f h1:ultW7fxlIvee4HYrtnaRPon9HpEgFk5zYpmfMgtKB5I=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f/go.mod h1:L9KNLi232K1/xB6f7AlSX692koaRnKaWSR0stBki0Yc=
|
||||
google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk=
|
||||
google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80 h1:AjyfHzEPEFp/NpvfN5g+KDla3EMojjhRVZc1i7cj+oM=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240123012728-ef4313101c80/go.mod h1:PAREbraiVEVGVdTZsVWjSbbTtSyGbAgIIvni8a8CD5s=
|
||||
google.golang.org/grpc v1.62.0 h1:HQKZ/fa1bXkX1oFOvSjmZEUL8wLSaZTjCcLAlmZRtdk=
|
||||
google.golang.org/grpc v1.62.0/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
|
||||
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
|
||||
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
|
||||
1366
sdk/go/dockerbuild/image.go
generated
Normal file
1366
sdk/go/dockerbuild/image.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
295
sdk/go/dockerbuild/index.go
generated
Normal file
295
sdk/go/dockerbuild/index.go
generated
Normal file
@@ -0,0 +1,295 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
// An index (or manifest list) referencing one or more existing images.
|
||||
//
|
||||
// Useful for crafting a multi-platform image from several
|
||||
// platform-specific images.
|
||||
//
|
||||
// This creates an OCI image index or a Docker manifest list depending on
|
||||
// the media types of the source images.
|
||||
//
|
||||
// ## Example Usage
|
||||
// ### Multi-platform registry caching
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker/buildx"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// amd64, err := buildx.NewImage(ctx, "amd64", &buildx.ImageArgs{
|
||||
// CacheFrom: buildx.CacheFromArray{
|
||||
// &buildx.CacheFromArgs{
|
||||
// Registry: &buildx.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: buildx.CacheToArray{
|
||||
// &buildx.CacheToArgs{
|
||||
// Registry: &buildx.CacheToRegistryArgs{
|
||||
// Mode: buildx.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &buildx.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: buildx.PlatformArray{
|
||||
// buildx.Platform_Linux_amd64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-amd64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// arm64, err := buildx.NewImage(ctx, "arm64", &buildx.ImageArgs{
|
||||
// CacheFrom: buildx.CacheFromArray{
|
||||
// &buildx.CacheFromArgs{
|
||||
// Registry: &buildx.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: buildx.CacheToArray{
|
||||
// &buildx.CacheToArgs{
|
||||
// Registry: &buildx.CacheToRegistryArgs{
|
||||
// Mode: buildx.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &buildx.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: buildx.PlatformArray{
|
||||
// buildx.Platform_Linux_arm64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-arm64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// index, err := buildx.NewIndex(ctx, "index", &buildx.IndexArgs{
|
||||
// Sources: pulumi.StringArray{
|
||||
// amd64.Ref,
|
||||
// arm64.Ref,
|
||||
// },
|
||||
// Tag: pulumi.String("docker.io/pulumi/pulumi:3.107.0"),
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("ref", index.Ref)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
type Index struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumi.BoolPtrOutput `pulumi:"push"`
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
Ref pulumi.StringOutput `pulumi:"ref"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry RegistryPtrOutput `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources pulumi.StringArrayOutput `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag pulumi.StringOutput `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// NewIndex registers a new resource with the given unique name, arguments, and options.
|
||||
func NewIndex(ctx *pulumi.Context,
|
||||
name string, args *IndexArgs, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Sources == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Sources'")
|
||||
}
|
||||
if args.Tag == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Tag'")
|
||||
}
|
||||
if args.Push == nil {
|
||||
args.Push = pulumi.BoolPtr(true)
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Index
|
||||
err := ctx.RegisterResource("dockerbuild:index:Index", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetIndex gets an existing Index resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetIndex(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *IndexState, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
var resource Index
|
||||
err := ctx.ReadResource("dockerbuild:index:Index", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Index resources.
|
||||
type indexState struct {
|
||||
}
|
||||
|
||||
type IndexState struct {
|
||||
}
|
||||
|
||||
func (IndexState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type indexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push *bool `pulumi:"push"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry *Registry `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources []string `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag string `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Index resource.
|
||||
type IndexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumi.BoolPtrInput
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry RegistryPtrInput
|
||||
// Existing images to include in the index.
|
||||
Sources pulumi.StringArrayInput
|
||||
// The tag to apply to the index.
|
||||
Tag pulumi.StringInput
|
||||
}
|
||||
|
||||
func (IndexArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type IndexInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToIndexOutput() IndexOutput
|
||||
ToIndexOutputWithContext(ctx context.Context) IndexOutput
|
||||
}
|
||||
|
||||
func (*Index) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Index)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *Index) ToIndexOutput() IndexOutput {
|
||||
return i.ToIndexOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *Index) ToIndexOutputWithContext(ctx context.Context) IndexOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(IndexOutput)
|
||||
}
|
||||
|
||||
func (i *Index) ToOutput(ctx context.Context) pulumix.Output[*Index] {
|
||||
return pulumix.Output[*Index]{
|
||||
OutputState: i.ToIndexOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type IndexOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (IndexOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Index)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutput() IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutputWithContext(ctx context.Context) IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToOutput(ctx context.Context) pulumix.Output[*Index] {
|
||||
return pulumix.Output[*Index]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
func (o IndexOutput) Push() pulumi.BoolPtrOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.BoolPtrOutput { return v.Push }).(pulumi.BoolPtrOutput)
|
||||
}
|
||||
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
func (o IndexOutput) Ref() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.StringOutput { return v.Ref }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
func (o IndexOutput) Registry() RegistryPtrOutput {
|
||||
return o.ApplyT(func(v *Index) RegistryPtrOutput { return v.Registry }).(RegistryPtrOutput)
|
||||
}
|
||||
|
||||
// Existing images to include in the index.
|
||||
func (o IndexOutput) Sources() pulumi.StringArrayOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.StringArrayOutput { return v.Sources }).(pulumi.StringArrayOutput)
|
||||
}
|
||||
|
||||
// The tag to apply to the index.
|
||||
func (o IndexOutput) Tag() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.StringOutput { return v.Tag }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*IndexInput)(nil)).Elem(), &Index{})
|
||||
pulumi.RegisterOutputType(IndexOutput{})
|
||||
}
|
||||
6
sdk/go/dockerbuild/init.go
generated
6
sdk/go/dockerbuild/init.go
generated
@@ -21,8 +21,10 @@ func (m *module) Version() semver.Version {
|
||||
|
||||
func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
|
||||
switch typ {
|
||||
case "dockerbuild:index:Random":
|
||||
r = &Random{}
|
||||
case "dockerbuild:index:Image":
|
||||
r = &Image{}
|
||||
case "dockerbuild:index:Index":
|
||||
r = &Index{}
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown resource type: %s", typ)
|
||||
}
|
||||
|
||||
51
sdk/go/dockerbuild/provider.go
generated
51
sdk/go/dockerbuild/provider.go
generated
@@ -14,6 +14,9 @@ import (
|
||||
|
||||
type Provider struct {
|
||||
pulumi.ProviderResourceState
|
||||
|
||||
// The build daemon's address.
|
||||
Host pulumi.StringPtrOutput `pulumi:"host"`
|
||||
}
|
||||
|
||||
// NewProvider registers a new resource with the given unique name, arguments, and options.
|
||||
@@ -23,6 +26,11 @@ func NewProvider(ctx *pulumi.Context,
|
||||
args = &ProviderArgs{}
|
||||
}
|
||||
|
||||
if args.Host == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
args.Host = pulumi.StringPtr(d.(string))
|
||||
}
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Provider
|
||||
err := ctx.RegisterResource("pulumi:providers:dockerbuild", name, args, &resource, opts...)
|
||||
@@ -33,20 +41,51 @@ func NewProvider(ctx *pulumi.Context,
|
||||
}
|
||||
|
||||
type providerArgs struct {
|
||||
// The build daemon's address.
|
||||
Host *string `pulumi:"host"`
|
||||
Registries []Registry `pulumi:"registries"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Provider resource.
|
||||
type ProviderArgs struct {
|
||||
// The build daemon's address.
|
||||
Host pulumi.StringPtrInput
|
||||
Registries RegistryArrayInput
|
||||
}
|
||||
|
||||
func (ProviderArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*providerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ProviderInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToProviderOutput() ProviderOutput
|
||||
ToProviderOutputWithContext(ctx context.Context) ProviderOutput
|
||||
}
|
||||
|
||||
func (*Provider) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *Provider) ToProviderOutput() ProviderOutput {
|
||||
return i.ToProviderOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput)
|
||||
}
|
||||
|
||||
func (i *Provider) ToOutput(ctx context.Context) pulumix.Output[*Provider] {
|
||||
return pulumix.Output[*Provider]{
|
||||
OutputState: i.ToProviderOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type ProviderOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ProviderOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Provider)(nil)).Elem()
|
||||
return reflect.TypeOf((**Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutput() ProviderOutput {
|
||||
@@ -57,12 +96,18 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[Provider] {
|
||||
return pulumix.Output[Provider]{
|
||||
func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[*Provider] {
|
||||
return pulumix.Output[*Provider]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// The build daemon's address.
|
||||
func (o ProviderOutput) Host() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Host }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{})
|
||||
pulumi.RegisterOutputType(ProviderOutput{})
|
||||
}
|
||||
|
||||
886
sdk/go/dockerbuild/pulumiEnums.go
generated
Normal file
886
sdk/go/dockerbuild/pulumiEnums.go
generated
Normal file
@@ -0,0 +1,886 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
type CacheMode string
|
||||
|
||||
const (
|
||||
// Only layers that are exported into the resulting image are cached.
|
||||
CacheModeMin = CacheMode("min")
|
||||
// All layers are cached, even those of intermediate steps.
|
||||
CacheModeMax = CacheMode("max")
|
||||
)
|
||||
|
||||
func (CacheMode) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CacheMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModeOutput() CacheModeOutput {
|
||||
return pulumi.ToOutput(e).(CacheModeOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModeOutputWithContext(ctx context.Context) CacheModeOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(CacheModeOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return e.ToCacheModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return CacheMode(e).ToCacheModeOutputWithContext(ctx).ToCacheModePtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type CacheModeOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheModeOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CacheMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModeOutput() CacheModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModeOutputWithContext(ctx context.Context) CacheModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return o.ToCacheModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v CacheMode) *CacheMode {
|
||||
return &v
|
||||
}).(CacheModePtrOutput)
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToOutput(ctx context.Context) pulumix.Output[CacheMode] {
|
||||
return pulumix.Output[CacheMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CacheMode) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CacheMode) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type CacheModePtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheModePtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**CacheMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*CacheMode] {
|
||||
return pulumix.Output[*CacheMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) Elem() CacheModeOutput {
|
||||
return o.ApplyT(func(v *CacheMode) CacheMode {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret CacheMode
|
||||
return ret
|
||||
}).(CacheModeOutput)
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *CacheMode) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// CacheModeInput is an input type that accepts values of the CacheMode enum
|
||||
// A concrete instance of `CacheModeInput` can be one of the following:
|
||||
//
|
||||
// CacheModeMin
|
||||
// CacheModeMax
|
||||
type CacheModeInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCacheModeOutput() CacheModeOutput
|
||||
ToCacheModeOutputWithContext(context.Context) CacheModeOutput
|
||||
}
|
||||
|
||||
var cacheModePtrType = reflect.TypeOf((**CacheMode)(nil)).Elem()
|
||||
|
||||
type CacheModePtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCacheModePtrOutput() CacheModePtrOutput
|
||||
ToCacheModePtrOutputWithContext(context.Context) CacheModePtrOutput
|
||||
}
|
||||
|
||||
type cacheModePtr string
|
||||
|
||||
func CacheModePtr(v string) CacheModePtrInput {
|
||||
return (*cacheModePtr)(&v)
|
||||
}
|
||||
|
||||
func (*cacheModePtr) ElementType() reflect.Type {
|
||||
return cacheModePtrType
|
||||
}
|
||||
|
||||
func (in *cacheModePtr) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return pulumi.ToOutput(in).(CacheModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *cacheModePtr) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(CacheModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *cacheModePtr) ToOutput(ctx context.Context) pulumix.Output[*CacheMode] {
|
||||
return pulumix.Output[*CacheMode]{
|
||||
OutputState: in.ToCacheModePtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type CompressionType string
|
||||
|
||||
const (
|
||||
// Use `gzip` for compression.
|
||||
CompressionTypeGzip = CompressionType("gzip")
|
||||
// Use `estargz` for compression.
|
||||
CompressionTypeEstargz = CompressionType("estargz")
|
||||
// Use `zstd` for compression.
|
||||
CompressionTypeZstd = CompressionType("zstd")
|
||||
)
|
||||
|
||||
func (CompressionType) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CompressionType)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypeOutput() CompressionTypeOutput {
|
||||
return pulumi.ToOutput(e).(CompressionTypeOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypeOutputWithContext(ctx context.Context) CompressionTypeOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(CompressionTypeOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return e.ToCompressionTypePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return CompressionType(e).ToCompressionTypeOutputWithContext(ctx).ToCompressionTypePtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type CompressionTypeOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CompressionTypeOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CompressionType)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypeOutput() CompressionTypeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypeOutputWithContext(ctx context.Context) CompressionTypeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return o.ToCompressionTypePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v CompressionType) *CompressionType {
|
||||
return &v
|
||||
}).(CompressionTypePtrOutput)
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToOutput(ctx context.Context) pulumix.Output[CompressionType] {
|
||||
return pulumix.Output[CompressionType]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CompressionType) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CompressionType) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type CompressionTypePtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CompressionTypePtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**CompressionType)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*CompressionType] {
|
||||
return pulumix.Output[*CompressionType]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) Elem() CompressionTypeOutput {
|
||||
return o.ApplyT(func(v *CompressionType) CompressionType {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret CompressionType
|
||||
return ret
|
||||
}).(CompressionTypeOutput)
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *CompressionType) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// CompressionTypeInput is an input type that accepts values of the CompressionType enum
|
||||
// A concrete instance of `CompressionTypeInput` can be one of the following:
|
||||
//
|
||||
// CompressionTypeGzip
|
||||
// CompressionTypeEstargz
|
||||
// CompressionTypeZstd
|
||||
type CompressionTypeInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCompressionTypeOutput() CompressionTypeOutput
|
||||
ToCompressionTypeOutputWithContext(context.Context) CompressionTypeOutput
|
||||
}
|
||||
|
||||
var compressionTypePtrType = reflect.TypeOf((**CompressionType)(nil)).Elem()
|
||||
|
||||
type CompressionTypePtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCompressionTypePtrOutput() CompressionTypePtrOutput
|
||||
ToCompressionTypePtrOutputWithContext(context.Context) CompressionTypePtrOutput
|
||||
}
|
||||
|
||||
type compressionTypePtr string
|
||||
|
||||
func CompressionTypePtr(v string) CompressionTypePtrInput {
|
||||
return (*compressionTypePtr)(&v)
|
||||
}
|
||||
|
||||
func (*compressionTypePtr) ElementType() reflect.Type {
|
||||
return compressionTypePtrType
|
||||
}
|
||||
|
||||
func (in *compressionTypePtr) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return pulumi.ToOutput(in).(CompressionTypePtrOutput)
|
||||
}
|
||||
|
||||
func (in *compressionTypePtr) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(CompressionTypePtrOutput)
|
||||
}
|
||||
|
||||
func (in *compressionTypePtr) ToOutput(ctx context.Context) pulumix.Output[*CompressionType] {
|
||||
return pulumix.Output[*CompressionType]{
|
||||
OutputState: in.ToCompressionTypePtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type NetworkMode string
|
||||
|
||||
const (
|
||||
// The default sandbox network mode.
|
||||
NetworkModeDefault = NetworkMode("default")
|
||||
// Host network mode.
|
||||
NetworkModeHost = NetworkMode("host")
|
||||
// Disable network access.
|
||||
NetworkModeNone = NetworkMode("none")
|
||||
)
|
||||
|
||||
func (NetworkMode) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*NetworkMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModeOutput() NetworkModeOutput {
|
||||
return pulumi.ToOutput(e).(NetworkModeOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModeOutputWithContext(ctx context.Context) NetworkModeOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(NetworkModeOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return e.ToNetworkModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return NetworkMode(e).ToNetworkModeOutputWithContext(ctx).ToNetworkModePtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type NetworkModeOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (NetworkModeOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*NetworkMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModeOutput() NetworkModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModeOutputWithContext(ctx context.Context) NetworkModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return o.ToNetworkModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v NetworkMode) *NetworkMode {
|
||||
return &v
|
||||
}).(NetworkModePtrOutput)
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToOutput(ctx context.Context) pulumix.Output[NetworkMode] {
|
||||
return pulumix.Output[NetworkMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e NetworkMode) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e NetworkMode) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type NetworkModePtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (NetworkModePtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**NetworkMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkMode] {
|
||||
return pulumix.Output[*NetworkMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) Elem() NetworkModeOutput {
|
||||
return o.ApplyT(func(v *NetworkMode) NetworkMode {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret NetworkMode
|
||||
return ret
|
||||
}).(NetworkModeOutput)
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *NetworkMode) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// NetworkModeInput is an input type that accepts values of the NetworkMode enum
|
||||
// A concrete instance of `NetworkModeInput` can be one of the following:
|
||||
//
|
||||
// NetworkModeDefault
|
||||
// NetworkModeHost
|
||||
// NetworkModeNone
|
||||
type NetworkModeInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToNetworkModeOutput() NetworkModeOutput
|
||||
ToNetworkModeOutputWithContext(context.Context) NetworkModeOutput
|
||||
}
|
||||
|
||||
var networkModePtrType = reflect.TypeOf((**NetworkMode)(nil)).Elem()
|
||||
|
||||
type NetworkModePtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToNetworkModePtrOutput() NetworkModePtrOutput
|
||||
ToNetworkModePtrOutputWithContext(context.Context) NetworkModePtrOutput
|
||||
}
|
||||
|
||||
type networkModePtr string
|
||||
|
||||
func NetworkModePtr(v string) NetworkModePtrInput {
|
||||
return (*networkModePtr)(&v)
|
||||
}
|
||||
|
||||
func (*networkModePtr) ElementType() reflect.Type {
|
||||
return networkModePtrType
|
||||
}
|
||||
|
||||
func (in *networkModePtr) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return pulumi.ToOutput(in).(NetworkModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *networkModePtr) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(NetworkModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *networkModePtr) ToOutput(ctx context.Context) pulumix.Output[*NetworkMode] {
|
||||
return pulumix.Output[*NetworkMode]{
|
||||
OutputState: in.ToNetworkModePtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type Platform string
|
||||
|
||||
const (
|
||||
Platform_Darwin_386 = Platform("darwin/386")
|
||||
Platform_Darwin_amd64 = Platform("darwin/amd64")
|
||||
Platform_Darwin_arm = Platform("darwin/arm")
|
||||
Platform_Darwin_arm64 = Platform("darwin/arm64")
|
||||
Platform_Dragonfly_amd64 = Platform("dragonfly/amd64")
|
||||
Platform_Freebsd_386 = Platform("freebsd/386")
|
||||
Platform_Freebsd_amd64 = Platform("freebsd/amd64")
|
||||
Platform_Freebsd_arm = Platform("freebsd/arm")
|
||||
Platform_Linux_386 = Platform("linux/386")
|
||||
Platform_Linux_amd64 = Platform("linux/amd64")
|
||||
Platform_Linux_arm = Platform("linux/arm")
|
||||
Platform_Linux_arm64 = Platform("linux/arm64")
|
||||
Platform_Linux_mips64 = Platform("linux/mips64")
|
||||
Platform_Linux_mips64le = Platform("linux/mips64le")
|
||||
Platform_Linux_ppc64le = Platform("linux/ppc64le")
|
||||
Platform_Linux_riscv64 = Platform("linux/riscv64")
|
||||
Platform_Linux_s390x = Platform("linux/s390x")
|
||||
Platform_Netbsd_386 = Platform("netbsd/386")
|
||||
Platform_Netbsd_amd64 = Platform("netbsd/amd64")
|
||||
Platform_Netbsd_arm = Platform("netbsd/arm")
|
||||
Platform_Openbsd_386 = Platform("openbsd/386")
|
||||
Platform_Openbsd_amd64 = Platform("openbsd/amd64")
|
||||
Platform_Openbsd_arm = Platform("openbsd/arm")
|
||||
Platform_Plan9_386 = Platform("plan9/386")
|
||||
Platform_Plan9_amd64 = Platform("plan9/amd64")
|
||||
Platform_Solaris_amd64 = Platform("solaris/amd64")
|
||||
Platform_Windows_386 = Platform("windows/386")
|
||||
Platform_Windows_amd64 = Platform("windows/amd64")
|
||||
)
|
||||
|
||||
func (Platform) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformOutput() PlatformOutput {
|
||||
return pulumi.ToOutput(e).(PlatformOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformOutputWithContext(ctx context.Context) PlatformOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(PlatformOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return e.ToPlatformPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return Platform(e).ToPlatformOutputWithContext(ctx).ToPlatformPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e Platform) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e Platform) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type PlatformOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (PlatformOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformOutput() PlatformOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformOutputWithContext(ctx context.Context) PlatformOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return o.ToPlatformPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v Platform) *Platform {
|
||||
return &v
|
||||
}).(PlatformPtrOutput)
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToOutput(ctx context.Context) pulumix.Output[Platform] {
|
||||
return pulumix.Output[Platform]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e Platform) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e Platform) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type PlatformPtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (PlatformPtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*Platform] {
|
||||
return pulumix.Output[*Platform]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) Elem() PlatformOutput {
|
||||
return o.ApplyT(func(v *Platform) Platform {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret Platform
|
||||
return ret
|
||||
}).(PlatformOutput)
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *Platform) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// PlatformInput is an input type that accepts values of the Platform enum
|
||||
// A concrete instance of `PlatformInput` can be one of the following:
|
||||
//
|
||||
// Platform_Darwin_386
|
||||
// Platform_Darwin_amd64
|
||||
// Platform_Darwin_arm
|
||||
// Platform_Darwin_arm64
|
||||
// Platform_Dragonfly_amd64
|
||||
// Platform_Freebsd_386
|
||||
// Platform_Freebsd_amd64
|
||||
// Platform_Freebsd_arm
|
||||
// Platform_Linux_386
|
||||
// Platform_Linux_amd64
|
||||
// Platform_Linux_arm
|
||||
// Platform_Linux_arm64
|
||||
// Platform_Linux_mips64
|
||||
// Platform_Linux_mips64le
|
||||
// Platform_Linux_ppc64le
|
||||
// Platform_Linux_riscv64
|
||||
// Platform_Linux_s390x
|
||||
// Platform_Netbsd_386
|
||||
// Platform_Netbsd_amd64
|
||||
// Platform_Netbsd_arm
|
||||
// Platform_Openbsd_386
|
||||
// Platform_Openbsd_amd64
|
||||
// Platform_Openbsd_arm
|
||||
// Platform_Plan9_386
|
||||
// Platform_Plan9_amd64
|
||||
// Platform_Solaris_amd64
|
||||
// Platform_Windows_386
|
||||
// Platform_Windows_amd64
|
||||
type PlatformInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToPlatformOutput() PlatformOutput
|
||||
ToPlatformOutputWithContext(context.Context) PlatformOutput
|
||||
}
|
||||
|
||||
var platformPtrType = reflect.TypeOf((**Platform)(nil)).Elem()
|
||||
|
||||
type PlatformPtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToPlatformPtrOutput() PlatformPtrOutput
|
||||
ToPlatformPtrOutputWithContext(context.Context) PlatformPtrOutput
|
||||
}
|
||||
|
||||
type platformPtr string
|
||||
|
||||
func PlatformPtr(v string) PlatformPtrInput {
|
||||
return (*platformPtr)(&v)
|
||||
}
|
||||
|
||||
func (*platformPtr) ElementType() reflect.Type {
|
||||
return platformPtrType
|
||||
}
|
||||
|
||||
func (in *platformPtr) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return pulumi.ToOutput(in).(PlatformPtrOutput)
|
||||
}
|
||||
|
||||
func (in *platformPtr) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(PlatformPtrOutput)
|
||||
}
|
||||
|
||||
func (in *platformPtr) ToOutput(ctx context.Context) pulumix.Output[*Platform] {
|
||||
return pulumix.Output[*Platform]{
|
||||
OutputState: in.ToPlatformPtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// PlatformArrayInput is an input type that accepts PlatformArray and PlatformArrayOutput values.
|
||||
// You can construct a concrete instance of `PlatformArrayInput` via:
|
||||
//
|
||||
// PlatformArray{ PlatformArgs{...} }
|
||||
type PlatformArrayInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToPlatformArrayOutput() PlatformArrayOutput
|
||||
ToPlatformArrayOutputWithContext(context.Context) PlatformArrayOutput
|
||||
}
|
||||
|
||||
type PlatformArray []Platform
|
||||
|
||||
func (PlatformArray) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i PlatformArray) ToPlatformArrayOutput() PlatformArrayOutput {
|
||||
return i.ToPlatformArrayOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i PlatformArray) ToPlatformArrayOutputWithContext(ctx context.Context) PlatformArrayOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(PlatformArrayOutput)
|
||||
}
|
||||
|
||||
func (i PlatformArray) ToOutput(ctx context.Context) pulumix.Output[[]Platform] {
|
||||
return pulumix.Output[[]Platform]{
|
||||
OutputState: i.ToPlatformArrayOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type PlatformArrayOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (PlatformArrayOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) ToPlatformArrayOutput() PlatformArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) ToPlatformArrayOutputWithContext(ctx context.Context) PlatformArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]Platform] {
|
||||
return pulumix.Output[[]Platform]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) Index(i pulumi.IntInput) PlatformOutput {
|
||||
return pulumi.All(o, i).ApplyT(func(vs []interface{}) Platform {
|
||||
return vs[0].([]Platform)[vs[1].(int)]
|
||||
}).(PlatformOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CacheModeInput)(nil)).Elem(), CacheMode("min"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CacheModePtrInput)(nil)).Elem(), CacheMode("min"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CompressionTypeInput)(nil)).Elem(), CompressionType("gzip"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CompressionTypePtrInput)(nil)).Elem(), CompressionType("gzip"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*NetworkModeInput)(nil)).Elem(), NetworkMode("default"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*NetworkModePtrInput)(nil)).Elem(), NetworkMode("default"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*PlatformInput)(nil)).Elem(), Platform("darwin/386"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*PlatformPtrInput)(nil)).Elem(), Platform("darwin/386"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*PlatformArrayInput)(nil)).Elem(), PlatformArray{})
|
||||
pulumi.RegisterOutputType(CacheModeOutput{})
|
||||
pulumi.RegisterOutputType(CacheModePtrOutput{})
|
||||
pulumi.RegisterOutputType(CompressionTypeOutput{})
|
||||
pulumi.RegisterOutputType(CompressionTypePtrOutput{})
|
||||
pulumi.RegisterOutputType(NetworkModeOutput{})
|
||||
pulumi.RegisterOutputType(NetworkModePtrOutput{})
|
||||
pulumi.RegisterOutputType(PlatformOutput{})
|
||||
pulumi.RegisterOutputType(PlatformPtrOutput{})
|
||||
pulumi.RegisterOutputType(PlatformArrayOutput{})
|
||||
}
|
||||
7217
sdk/go/dockerbuild/pulumiTypes.go
generated
Normal file
7217
sdk/go/dockerbuild/pulumiTypes.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
110
sdk/go/dockerbuild/random.go
generated
110
sdk/go/dockerbuild/random.go
generated
@@ -1,110 +0,0 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
type Random struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
Length pulumix.Output[int] `pulumi:"length"`
|
||||
Result pulumix.Output[string] `pulumi:"result"`
|
||||
}
|
||||
|
||||
// NewRandom registers a new resource with the given unique name, arguments, and options.
|
||||
func NewRandom(ctx *pulumi.Context,
|
||||
name string, args *RandomArgs, opts ...pulumi.ResourceOption) (*Random, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Length == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Length'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Random
|
||||
err := ctx.RegisterResource("dockerbuild:index:Random", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetRandom gets an existing Random resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetRandom(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *RandomState, opts ...pulumi.ResourceOption) (*Random, error) {
|
||||
var resource Random
|
||||
err := ctx.ReadResource("dockerbuild:index:Random", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Random resources.
|
||||
type randomState struct {
|
||||
}
|
||||
|
||||
type RandomState struct {
|
||||
}
|
||||
|
||||
func (RandomState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*randomState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type randomArgs struct {
|
||||
Length int `pulumi:"length"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Random resource.
|
||||
type RandomArgs struct {
|
||||
Length pulumix.Input[int]
|
||||
}
|
||||
|
||||
func (RandomArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*randomArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type RandomOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (RandomOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Random)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o RandomOutput) ToRandomOutput() RandomOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RandomOutput) ToRandomOutputWithContext(ctx context.Context) RandomOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RandomOutput) ToOutput(ctx context.Context) pulumix.Output[Random] {
|
||||
return pulumix.Output[Random]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o RandomOutput) Length() pulumix.Output[int] {
|
||||
value := pulumix.Apply[Random](o, func(v Random) pulumix.Output[int] { return v.Length })
|
||||
return pulumix.Flatten[int, pulumix.Output[int]](value)
|
||||
}
|
||||
|
||||
func (o RandomOutput) Result() pulumix.Output[string] {
|
||||
value := pulumix.Apply[Random](o, func(v Random) pulumix.Output[string] { return v.Result })
|
||||
return pulumix.Flatten[string, pulumix.Output[string]](value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(RandomOutput{})
|
||||
}
|
||||
29
sdk/go/dockerbuild/x/config/config.go
generated
Normal file
29
sdk/go/dockerbuild/x/config/config.go
generated
Normal file
@@ -0,0 +1,29 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
dockerbuild "github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
|
||||
)
|
||||
|
||||
var _ = internal.GetEnvOrDefault
|
||||
|
||||
// The build daemon's address.
|
||||
func GetHost(ctx *pulumi.Context) string {
|
||||
v, err := config.Try(ctx, "dockerbuild:host")
|
||||
if err == nil {
|
||||
return v
|
||||
}
|
||||
var value string
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
value = d.(string)
|
||||
}
|
||||
return value
|
||||
}
|
||||
func GetRegistries(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "dockerbuild:registries")
|
||||
}
|
||||
2
sdk/go/dockerbuild/x/doc.go
generated
Normal file
2
sdk/go/dockerbuild/x/doc.go
generated
Normal file
@@ -0,0 +1,2 @@
|
||||
// A Pulumi provider for Docker buildx
|
||||
package dockerbuild
|
||||
1379
sdk/go/dockerbuild/x/image.go
generated
Normal file
1379
sdk/go/dockerbuild/x/image.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
276
sdk/go/dockerbuild/x/index.go
generated
Normal file
276
sdk/go/dockerbuild/x/index.go
generated
Normal file
@@ -0,0 +1,276 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
// An index (or manifest list) referencing one or more existing images.
|
||||
//
|
||||
// Useful for crafting a multi-platform image from several
|
||||
// platform-specific images.
|
||||
//
|
||||
// This creates an OCI image index or a Docker manifest list depending on
|
||||
// the media types of the source images.
|
||||
//
|
||||
// ## Example Usage
|
||||
// ### Multi-platform registry caching
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker/buildx"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// amd64, err := buildx.NewImage(ctx, "amd64", &buildx.ImageArgs{
|
||||
// CacheFrom: buildx.CacheFromArray{
|
||||
// &buildx.CacheFromArgs{
|
||||
// Registry: &buildx.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: buildx.CacheToArray{
|
||||
// &buildx.CacheToArgs{
|
||||
// Registry: &buildx.CacheToRegistryArgs{
|
||||
// Mode: buildx.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &buildx.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: buildx.PlatformArray{
|
||||
// buildx.Platform_Linux_amd64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-amd64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// arm64, err := buildx.NewImage(ctx, "arm64", &buildx.ImageArgs{
|
||||
// CacheFrom: buildx.CacheFromArray{
|
||||
// &buildx.CacheFromArgs{
|
||||
// Registry: &buildx.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: buildx.CacheToArray{
|
||||
// &buildx.CacheToArgs{
|
||||
// Registry: &buildx.CacheToRegistryArgs{
|
||||
// Mode: buildx.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &buildx.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: buildx.PlatformArray{
|
||||
// buildx.Platform_Linux_arm64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-arm64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// index, err := buildx.NewIndex(ctx, "index", &buildx.IndexArgs{
|
||||
// Sources: pulumi.StringArray{
|
||||
// amd64.Ref,
|
||||
// arm64.Ref,
|
||||
// },
|
||||
// Tag: pulumi.String("docker.io/pulumi/pulumi:3.107.0"),
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("ref", index.Ref)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
type Index struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumix.Output[*bool] `pulumi:"push"`
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
Ref pulumix.Output[string] `pulumi:"ref"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry pulumix.GPtrOutput[Registry, RegistryOutput] `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources pulumix.ArrayOutput[string] `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag pulumix.Output[string] `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// NewIndex registers a new resource with the given unique name, arguments, and options.
|
||||
func NewIndex(ctx *pulumi.Context,
|
||||
name string, args *IndexArgs, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Sources == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Sources'")
|
||||
}
|
||||
if args.Tag == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Tag'")
|
||||
}
|
||||
if args.Push == nil {
|
||||
args.Push = pulumix.Ptr(true)
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Index
|
||||
err := ctx.RegisterResource("dockerbuild:index:Index", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetIndex gets an existing Index resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetIndex(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *IndexState, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
var resource Index
|
||||
err := ctx.ReadResource("dockerbuild:index:Index", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Index resources.
|
||||
type indexState struct {
|
||||
}
|
||||
|
||||
type IndexState struct {
|
||||
}
|
||||
|
||||
func (IndexState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type indexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push *bool `pulumi:"push"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry *Registry `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources []string `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag string `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Index resource.
|
||||
type IndexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumix.Input[*bool]
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry pulumix.Input[*RegistryArgs]
|
||||
// Existing images to include in the index.
|
||||
Sources pulumix.Input[[]string]
|
||||
// The tag to apply to the index.
|
||||
Tag pulumix.Input[string]
|
||||
}
|
||||
|
||||
func (IndexArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type IndexOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (IndexOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Index)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutput() IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutputWithContext(ctx context.Context) IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToOutput(ctx context.Context) pulumix.Output[Index] {
|
||||
return pulumix.Output[Index]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
func (o IndexOutput) Push() pulumix.Output[*bool] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.Output[*bool] { return v.Push })
|
||||
return pulumix.Flatten[*bool, pulumix.Output[*bool]](value)
|
||||
}
|
||||
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
func (o IndexOutput) Ref() pulumix.Output[string] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.Output[string] { return v.Ref })
|
||||
return pulumix.Flatten[string, pulumix.Output[string]](value)
|
||||
}
|
||||
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
func (o IndexOutput) Registry() pulumix.GPtrOutput[Registry, RegistryOutput] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.GPtrOutput[Registry, RegistryOutput] { return v.Registry })
|
||||
unwrapped := pulumix.Flatten[*Registry, pulumix.GPtrOutput[Registry, RegistryOutput]](value)
|
||||
return pulumix.GPtrOutput[Registry, RegistryOutput]{OutputState: unwrapped.OutputState}
|
||||
}
|
||||
|
||||
// Existing images to include in the index.
|
||||
func (o IndexOutput) Sources() pulumix.ArrayOutput[string] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.ArrayOutput[string] { return v.Sources })
|
||||
unwrapped := pulumix.Flatten[[]string, pulumix.ArrayOutput[string]](value)
|
||||
return pulumix.ArrayOutput[string]{OutputState: unwrapped.OutputState}
|
||||
}
|
||||
|
||||
// The tag to apply to the index.
|
||||
func (o IndexOutput) Tag() pulumix.Output[string] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.Output[string] { return v.Tag })
|
||||
return pulumix.Flatten[string, pulumix.Output[string]](value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(IndexOutput{})
|
||||
}
|
||||
68
sdk/go/dockerbuild/x/init.go
generated
Normal file
68
sdk/go/dockerbuild/x/init.go
generated
Normal file
@@ -0,0 +1,68 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type module struct {
|
||||
version semver.Version
|
||||
}
|
||||
|
||||
func (m *module) Version() semver.Version {
|
||||
return m.version
|
||||
}
|
||||
|
||||
func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
|
||||
switch typ {
|
||||
case "dockerbuild:index:Image":
|
||||
r = &Image{}
|
||||
case "dockerbuild:index:Index":
|
||||
r = &Index{}
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown resource type: %s", typ)
|
||||
}
|
||||
|
||||
err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
|
||||
return
|
||||
}
|
||||
|
||||
type pkg struct {
|
||||
version semver.Version
|
||||
}
|
||||
|
||||
func (p *pkg) Version() semver.Version {
|
||||
return p.version
|
||||
}
|
||||
|
||||
func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pulumi.ProviderResource, error) {
|
||||
if typ != "pulumi:providers:dockerbuild" {
|
||||
return nil, fmt.Errorf("unknown provider type: %s", typ)
|
||||
}
|
||||
|
||||
r := &Provider{}
|
||||
err := ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
|
||||
return r, err
|
||||
}
|
||||
|
||||
func init() {
|
||||
version, err := internal.PkgVersion()
|
||||
if err != nil {
|
||||
version = semver.Version{Major: 1}
|
||||
}
|
||||
pulumi.RegisterResourceModule(
|
||||
"dockerbuild",
|
||||
"index",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourcePackage(
|
||||
"dockerbuild",
|
||||
&pkg{version},
|
||||
)
|
||||
}
|
||||
88
sdk/go/dockerbuild/x/provider.go
generated
Normal file
88
sdk/go/dockerbuild/x/provider.go
generated
Normal file
@@ -0,0 +1,88 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
type Provider struct {
|
||||
pulumi.ProviderResourceState
|
||||
|
||||
// The build daemon's address.
|
||||
Host pulumix.Output[*string] `pulumi:"host"`
|
||||
}
|
||||
|
||||
// NewProvider registers a new resource with the given unique name, arguments, and options.
|
||||
func NewProvider(ctx *pulumi.Context,
|
||||
name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error) {
|
||||
if args == nil {
|
||||
args = &ProviderArgs{}
|
||||
}
|
||||
|
||||
if args.Host == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
args.Host = pulumix.Ptr(d.(string))
|
||||
}
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Provider
|
||||
err := ctx.RegisterResource("pulumi:providers:dockerbuild", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
type providerArgs struct {
|
||||
// The build daemon's address.
|
||||
Host *string `pulumi:"host"`
|
||||
Registries []Registry `pulumi:"registries"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Provider resource.
|
||||
type ProviderArgs struct {
|
||||
// The build daemon's address.
|
||||
Host pulumix.Input[*string]
|
||||
Registries pulumix.Input[[]*RegistryArgs]
|
||||
}
|
||||
|
||||
func (ProviderArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*providerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ProviderOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ProviderOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutput() ProviderOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[Provider] {
|
||||
return pulumix.Output[Provider]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// The build daemon's address.
|
||||
func (o ProviderOutput) Host() pulumix.Output[*string] {
|
||||
value := pulumix.Apply[Provider](o, func(v Provider) pulumix.Output[*string] { return v.Host })
|
||||
return pulumix.Flatten[*string, pulumix.Output[*string]](value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(ProviderOutput{})
|
||||
}
|
||||
68
sdk/go/dockerbuild/x/pulumiEnums.go
generated
Normal file
68
sdk/go/dockerbuild/x/pulumiEnums.go
generated
Normal file
@@ -0,0 +1,68 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
type CacheMode string
|
||||
|
||||
const (
|
||||
// Only layers that are exported into the resulting image are cached.
|
||||
CacheModeCacheModeMin = CacheMode("min")
|
||||
// All layers are cached, even those of intermediate steps.
|
||||
CacheModeCacheModeMax = CacheMode("max")
|
||||
)
|
||||
|
||||
type CompressionType string
|
||||
|
||||
const (
|
||||
// Use `gzip` for compression.
|
||||
CompressionTypeCompressionTypeGzip = CompressionType("gzip")
|
||||
// Use `estargz` for compression.
|
||||
CompressionTypeCompressionTypeEstargz = CompressionType("estargz")
|
||||
// Use `zstd` for compression.
|
||||
CompressionTypeCompressionTypeZstd = CompressionType("zstd")
|
||||
)
|
||||
|
||||
type NetworkMode string
|
||||
|
||||
const (
|
||||
// The default sandbox network mode.
|
||||
NetworkModeNetworkModeDefault = NetworkMode("default")
|
||||
// Host network mode.
|
||||
NetworkModeNetworkModeHost = NetworkMode("host")
|
||||
// Disable network access.
|
||||
NetworkModeNetworkModeNone = NetworkMode("none")
|
||||
)
|
||||
|
||||
type Platform string
|
||||
|
||||
const (
|
||||
Platform_Platform_Darwin_386 = Platform("darwin/386")
|
||||
Platform_Platform_Darwin_amd64 = Platform("darwin/amd64")
|
||||
Platform_Platform_Darwin_arm = Platform("darwin/arm")
|
||||
Platform_Platform_Darwin_arm64 = Platform("darwin/arm64")
|
||||
Platform_Platform_Dragonfly_amd64 = Platform("dragonfly/amd64")
|
||||
Platform_Platform_Freebsd_386 = Platform("freebsd/386")
|
||||
Platform_Platform_Freebsd_amd64 = Platform("freebsd/amd64")
|
||||
Platform_Platform_Freebsd_arm = Platform("freebsd/arm")
|
||||
Platform_Platform_Linux_386 = Platform("linux/386")
|
||||
Platform_Platform_Linux_amd64 = Platform("linux/amd64")
|
||||
Platform_Platform_Linux_arm = Platform("linux/arm")
|
||||
Platform_Platform_Linux_arm64 = Platform("linux/arm64")
|
||||
Platform_Platform_Linux_mips64 = Platform("linux/mips64")
|
||||
Platform_Platform_Linux_mips64le = Platform("linux/mips64le")
|
||||
Platform_Platform_Linux_ppc64le = Platform("linux/ppc64le")
|
||||
Platform_Platform_Linux_riscv64 = Platform("linux/riscv64")
|
||||
Platform_Platform_Linux_s390x = Platform("linux/s390x")
|
||||
Platform_Platform_Netbsd_386 = Platform("netbsd/386")
|
||||
Platform_Platform_Netbsd_amd64 = Platform("netbsd/amd64")
|
||||
Platform_Platform_Netbsd_arm = Platform("netbsd/arm")
|
||||
Platform_Platform_Openbsd_386 = Platform("openbsd/386")
|
||||
Platform_Platform_Openbsd_amd64 = Platform("openbsd/amd64")
|
||||
Platform_Platform_Openbsd_arm = Platform("openbsd/arm")
|
||||
Platform_Platform_Plan9_386 = Platform("plan9/386")
|
||||
Platform_Platform_Plan9_amd64 = Platform("plan9/amd64")
|
||||
Platform_Platform_Solaris_amd64 = Platform("solaris/amd64")
|
||||
Platform_Platform_Windows_386 = Platform("windows/386")
|
||||
Platform_Platform_Windows_amd64 = Platform("windows/amd64")
|
||||
)
|
||||
3413
sdk/go/dockerbuild/x/pulumiTypes.go
generated
Normal file
3413
sdk/go/dockerbuild/x/pulumiTypes.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
2
sdk/java/README.md
generated
2
sdk/java/README.md
generated
@@ -1 +1 @@
|
||||
Description
|
||||
A Pulumi provider for Docker buildx
|
||||
|
||||
26
sdk/java/src/main/java/com/pulumi/dockerbuild/Config.java
generated
Normal file
26
sdk/java/src/main/java/com/pulumi/dockerbuild/Config.java
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild;
|
||||
|
||||
import com.pulumi.core.TypeShape;
|
||||
import com.pulumi.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.inputs.Registry;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
|
||||
public final class Config {
|
||||
|
||||
private static final com.pulumi.Config config = com.pulumi.Config.of("dockerbuild");
|
||||
/**
|
||||
* The build daemon's address.
|
||||
*
|
||||
*/
|
||||
public Optional<String> host() {
|
||||
return Codegen.stringProp("host").config(config).env("DOCKER_HOST").def("").get();
|
||||
}
|
||||
public Optional<List<Registry>> registries() {
|
||||
return Codegen.objectProp("registries", TypeShape.<List<Registry>>builder(List.class).addParameter(Registry.class).build()).config(config).get();
|
||||
}
|
||||
}
|
||||
1261
sdk/java/src/main/java/com/pulumi/dockerbuild/Image.java
generated
Normal file
1261
sdk/java/src/main/java/com/pulumi/dockerbuild/Image.java
generated
Normal file
File diff suppressed because it is too large
Load Diff
1396
sdk/java/src/main/java/com/pulumi/dockerbuild/ImageArgs.java
generated
Normal file
1396
sdk/java/src/main/java/com/pulumi/dockerbuild/ImageArgs.java
generated
Normal file
File diff suppressed because it is too large
Load Diff
241
sdk/java/src/main/java/com/pulumi/dockerbuild/Index.java
generated
Normal file
241
sdk/java/src/main/java/com/pulumi/dockerbuild/Index.java
generated
Normal file
@@ -0,0 +1,241 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Export;
|
||||
import com.pulumi.core.annotations.ResourceType;
|
||||
import com.pulumi.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.IndexArgs;
|
||||
import com.pulumi.dockerbuild.Utilities;
|
||||
import com.pulumi.dockerbuild.outputs.Registry;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
/**
|
||||
* An index (or manifest list) referencing one or more existing images.
|
||||
*
|
||||
* Useful for crafting a multi-platform image from several
|
||||
* platform-specific images.
|
||||
*
|
||||
* This creates an OCI image index or a Docker manifest list depending on
|
||||
* the media types of the source images.
|
||||
*
|
||||
* ## Example Usage
|
||||
* ### Multi-platform registry caching
|
||||
* ```java
|
||||
* package generated_program;
|
||||
*
|
||||
* import com.pulumi.Context;
|
||||
* import com.pulumi.Pulumi;
|
||||
* import com.pulumi.core.Output;
|
||||
* import com.pulumi.docker.buildx.Image;
|
||||
* import com.pulumi.docker.buildx.ImageArgs;
|
||||
* import com.pulumi.docker.buildx.inputs.CacheFromArgs;
|
||||
* import com.pulumi.docker.buildx.inputs.CacheFromRegistryArgs;
|
||||
* import com.pulumi.docker.buildx.inputs.CacheToArgs;
|
||||
* import com.pulumi.docker.buildx.inputs.CacheToRegistryArgs;
|
||||
* import com.pulumi.docker.buildx.inputs.BuildContextArgs;
|
||||
* import com.pulumi.docker.buildx.Index;
|
||||
* import com.pulumi.docker.buildx.IndexArgs;
|
||||
* import java.util.List;
|
||||
* import java.util.ArrayList;
|
||||
* import java.util.Map;
|
||||
* import java.io.File;
|
||||
* import java.nio.file.Files;
|
||||
* import java.nio.file.Paths;
|
||||
*
|
||||
* public class App {
|
||||
* public static void main(String[] args) {
|
||||
* Pulumi.run(App::stack);
|
||||
* }
|
||||
*
|
||||
* public static void stack(Context ctx) {
|
||||
* var amd64 = new Image("amd64", ImageArgs.builder()
|
||||
* .cacheFrom(CacheFromArgs.builder()
|
||||
* .registry(CacheFromRegistryArgs.builder()
|
||||
* .ref("docker.io/pulumi/pulumi:cache-amd64")
|
||||
* .build())
|
||||
* .build())
|
||||
* .cacheTo(CacheToArgs.builder()
|
||||
* .registry(CacheToRegistryArgs.builder()
|
||||
* .mode("max")
|
||||
* .ref("docker.io/pulumi/pulumi:cache-amd64")
|
||||
* .build())
|
||||
* .build())
|
||||
* .context(BuildContextArgs.builder()
|
||||
* .location("app")
|
||||
* .build())
|
||||
* .platforms("linux/amd64")
|
||||
* .tags("docker.io/pulumi/pulumi:3.107.0-amd64")
|
||||
* .build());
|
||||
*
|
||||
* var arm64 = new Image("arm64", ImageArgs.builder()
|
||||
* .cacheFrom(CacheFromArgs.builder()
|
||||
* .registry(CacheFromRegistryArgs.builder()
|
||||
* .ref("docker.io/pulumi/pulumi:cache-arm64")
|
||||
* .build())
|
||||
* .build())
|
||||
* .cacheTo(CacheToArgs.builder()
|
||||
* .registry(CacheToRegistryArgs.builder()
|
||||
* .mode("max")
|
||||
* .ref("docker.io/pulumi/pulumi:cache-arm64")
|
||||
* .build())
|
||||
* .build())
|
||||
* .context(BuildContextArgs.builder()
|
||||
* .location("app")
|
||||
* .build())
|
||||
* .platforms("linux/arm64")
|
||||
* .tags("docker.io/pulumi/pulumi:3.107.0-arm64")
|
||||
* .build());
|
||||
*
|
||||
* var index = new Index("index", IndexArgs.builder()
|
||||
* .sources(
|
||||
* amd64.ref(),
|
||||
* arm64.ref())
|
||||
* .tag("docker.io/pulumi/pulumi:3.107.0")
|
||||
* .build());
|
||||
*
|
||||
* ctx.export("ref", index.ref());
|
||||
* }
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
*/
|
||||
@ResourceType(type="dockerbuild:index:Index")
|
||||
public class Index extends com.pulumi.resources.CustomResource {
|
||||
/**
|
||||
* If true, push the index to the target registry.
|
||||
*
|
||||
* Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
@Export(name="push", refs={Boolean.class}, tree="[0]")
|
||||
private Output</* @Nullable */ Boolean> push;
|
||||
|
||||
/**
|
||||
* @return If true, push the index to the target registry.
|
||||
*
|
||||
* Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
public Output<Optional<Boolean>> push() {
|
||||
return Codegen.optional(this.push);
|
||||
}
|
||||
/**
|
||||
* The pushed tag with digest.
|
||||
*
|
||||
* Identical to the tag if the index was not pushed.
|
||||
*
|
||||
*/
|
||||
@Export(name="ref", refs={String.class}, tree="[0]")
|
||||
private Output<String> ref;
|
||||
|
||||
/**
|
||||
* @return The pushed tag with digest.
|
||||
*
|
||||
* Identical to the tag if the index was not pushed.
|
||||
*
|
||||
*/
|
||||
public Output<String> ref() {
|
||||
return this.ref;
|
||||
}
|
||||
/**
|
||||
* Authentication for the registry where the tagged index will be pushed.
|
||||
*
|
||||
* Credentials can also be included with the provider's configuration.
|
||||
*
|
||||
*/
|
||||
@Export(name="registry", refs={Registry.class}, tree="[0]")
|
||||
private Output</* @Nullable */ Registry> registry;
|
||||
|
||||
/**
|
||||
* @return Authentication for the registry where the tagged index will be pushed.
|
||||
*
|
||||
* Credentials can also be included with the provider's configuration.
|
||||
*
|
||||
*/
|
||||
public Output<Optional<Registry>> registry() {
|
||||
return Codegen.optional(this.registry);
|
||||
}
|
||||
/**
|
||||
* Existing images to include in the index.
|
||||
*
|
||||
*/
|
||||
@Export(name="sources", refs={List.class,String.class}, tree="[0,1]")
|
||||
private Output<List<String>> sources;
|
||||
|
||||
/**
|
||||
* @return Existing images to include in the index.
|
||||
*
|
||||
*/
|
||||
public Output<List<String>> sources() {
|
||||
return this.sources;
|
||||
}
|
||||
/**
|
||||
* The tag to apply to the index.
|
||||
*
|
||||
*/
|
||||
@Export(name="tag", refs={String.class}, tree="[0]")
|
||||
private Output<String> tag;
|
||||
|
||||
/**
|
||||
* @return The tag to apply to the index.
|
||||
*
|
||||
*/
|
||||
public Output<String> tag() {
|
||||
return this.tag;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
*/
|
||||
public Index(String name) {
|
||||
this(name, IndexArgs.Empty);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
*/
|
||||
public Index(String name, IndexArgs args) {
|
||||
this(name, args, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param options A bag of options that control this resource's behavior.
|
||||
*/
|
||||
public Index(String name, IndexArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
|
||||
super("dockerbuild:index:Index", name, args == null ? IndexArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
|
||||
}
|
||||
|
||||
private Index(String name, Output<String> id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
|
||||
super("dockerbuild:index:Index", name, null, makeResourceOptions(options, id));
|
||||
}
|
||||
|
||||
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> id) {
|
||||
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
|
||||
.version(Utilities.getVersion())
|
||||
.build();
|
||||
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an existing Host resource's state with the given name, ID, and optional extra
|
||||
* properties used to qualify the lookup.
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param id The _unique_ provider ID of the resource to lookup.
|
||||
* @param options Optional settings to control the behavior of the CustomResource.
|
||||
*/
|
||||
public static Index get(String name, Output<String> id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
|
||||
return new Index(name, id, options);
|
||||
}
|
||||
}
|
||||
232
sdk/java/src/main/java/com/pulumi/dockerbuild/IndexArgs.java
generated
Normal file
232
sdk/java/src/main/java/com/pulumi/dockerbuild/IndexArgs.java
generated
Normal file
@@ -0,0 +1,232 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Import;
|
||||
import com.pulumi.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.inputs.RegistryArgs;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class IndexArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final IndexArgs Empty = new IndexArgs();
|
||||
|
||||
/**
|
||||
* If true, push the index to the target registry.
|
||||
*
|
||||
* Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
@Import(name="push")
|
||||
private @Nullable Output<Boolean> push;
|
||||
|
||||
/**
|
||||
* @return If true, push the index to the target registry.
|
||||
*
|
||||
* Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> push() {
|
||||
return Optional.ofNullable(this.push);
|
||||
}
|
||||
|
||||
/**
|
||||
* Authentication for the registry where the tagged index will be pushed.
|
||||
*
|
||||
* Credentials can also be included with the provider's configuration.
|
||||
*
|
||||
*/
|
||||
@Import(name="registry")
|
||||
private @Nullable Output<RegistryArgs> registry;
|
||||
|
||||
/**
|
||||
* @return Authentication for the registry where the tagged index will be pushed.
|
||||
*
|
||||
* Credentials can also be included with the provider's configuration.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<RegistryArgs>> registry() {
|
||||
return Optional.ofNullable(this.registry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Existing images to include in the index.
|
||||
*
|
||||
*/
|
||||
@Import(name="sources", required=true)
|
||||
private Output<List<String>> sources;
|
||||
|
||||
/**
|
||||
* @return Existing images to include in the index.
|
||||
*
|
||||
*/
|
||||
public Output<List<String>> sources() {
|
||||
return this.sources;
|
||||
}
|
||||
|
||||
/**
|
||||
* The tag to apply to the index.
|
||||
*
|
||||
*/
|
||||
@Import(name="tag", required=true)
|
||||
private Output<String> tag;
|
||||
|
||||
/**
|
||||
* @return The tag to apply to the index.
|
||||
*
|
||||
*/
|
||||
public Output<String> tag() {
|
||||
return this.tag;
|
||||
}
|
||||
|
||||
private IndexArgs() {}
|
||||
|
||||
private IndexArgs(IndexArgs $) {
|
||||
this.push = $.push;
|
||||
this.registry = $.registry;
|
||||
this.sources = $.sources;
|
||||
this.tag = $.tag;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(IndexArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private IndexArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new IndexArgs();
|
||||
}
|
||||
|
||||
public Builder(IndexArgs defaults) {
|
||||
$ = new IndexArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param push If true, push the index to the target registry.
|
||||
*
|
||||
* Defaults to `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder push(@Nullable Output<Boolean> push) {
|
||||
$.push = push;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param push If true, push the index to the target registry.
|
||||
*
|
||||
* Defaults to `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder push(Boolean push) {
|
||||
return push(Output.of(push));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param registry Authentication for the registry where the tagged index will be pushed.
|
||||
*
|
||||
* Credentials can also be included with the provider's configuration.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(@Nullable Output<RegistryArgs> registry) {
|
||||
$.registry = registry;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param registry Authentication for the registry where the tagged index will be pushed.
|
||||
*
|
||||
* Credentials can also be included with the provider's configuration.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(RegistryArgs registry) {
|
||||
return registry(Output.of(registry));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sources Existing images to include in the index.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder sources(Output<List<String>> sources) {
|
||||
$.sources = sources;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sources Existing images to include in the index.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder sources(List<String> sources) {
|
||||
return sources(Output.of(sources));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sources Existing images to include in the index.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder sources(String... sources) {
|
||||
return sources(List.of(sources));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tag The tag to apply to the index.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tag(Output<String> tag) {
|
||||
$.tag = tag;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tag The tag to apply to the index.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tag(String tag) {
|
||||
return tag(Output.of(tag));
|
||||
}
|
||||
|
||||
public IndexArgs build() {
|
||||
$.push = Codegen.booleanProp("push").output().arg($.push).def(true).getNullable();
|
||||
if ($.sources == null) {
|
||||
throw new MissingRequiredPropertyException("IndexArgs", "sources");
|
||||
}
|
||||
if ($.tag == null) {
|
||||
throw new MissingRequiredPropertyException("IndexArgs", "tag");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
@@ -4,14 +4,32 @@
|
||||
package com.pulumi.dockerbuild;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Export;
|
||||
import com.pulumi.core.annotations.ResourceType;
|
||||
import com.pulumi.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.ProviderArgs;
|
||||
import com.pulumi.dockerbuild.Utilities;
|
||||
import java.lang.String;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@ResourceType(type="pulumi:providers:dockerbuild")
|
||||
public class Provider extends com.pulumi.resources.ProviderResource {
|
||||
/**
|
||||
* The build daemon's address.
|
||||
*
|
||||
*/
|
||||
@Export(name="host", refs={String.class}, tree="[0]")
|
||||
private Output</* @Nullable */ String> host;
|
||||
|
||||
/**
|
||||
* @return The build daemon's address.
|
||||
*
|
||||
*/
|
||||
public Output<Optional<String>> host() {
|
||||
return Codegen.optional(this.host);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
|
||||
@@ -3,16 +3,56 @@
|
||||
|
||||
package com.pulumi.dockerbuild;
|
||||
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Import;
|
||||
import com.pulumi.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.inputs.RegistryArgs;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class ProviderArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ProviderArgs Empty = new ProviderArgs();
|
||||
|
||||
/**
|
||||
* The build daemon's address.
|
||||
*
|
||||
*/
|
||||
@Import(name="host")
|
||||
private @Nullable Output<String> host;
|
||||
|
||||
/**
|
||||
* @return The build daemon's address.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> host() {
|
||||
return Optional.ofNullable(this.host);
|
||||
}
|
||||
|
||||
@Import(name="registries", json=true)
|
||||
private @Nullable Output<List<RegistryArgs>> registries;
|
||||
|
||||
public Optional<Output<List<RegistryArgs>>> registries() {
|
||||
return Optional.ofNullable(this.registries);
|
||||
}
|
||||
|
||||
private ProviderArgs() {}
|
||||
|
||||
private ProviderArgs(ProviderArgs $) {
|
||||
this.host = $.host;
|
||||
this.registries = $.registries;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ProviderArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ProviderArgs $;
|
||||
@@ -20,7 +60,47 @@ public final class ProviderArgs extends com.pulumi.resources.ResourceArgs {
|
||||
public Builder() {
|
||||
$ = new ProviderArgs();
|
||||
}
|
||||
|
||||
public Builder(ProviderArgs defaults) {
|
||||
$ = new ProviderArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param host The build daemon's address.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder host(@Nullable Output<String> host) {
|
||||
$.host = host;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param host The build daemon's address.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder host(String host) {
|
||||
return host(Output.of(host));
|
||||
}
|
||||
|
||||
public Builder registries(@Nullable Output<List<RegistryArgs>> registries) {
|
||||
$.registries = registries;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder registries(List<RegistryArgs> registries) {
|
||||
return registries(Output.of(registries));
|
||||
}
|
||||
|
||||
public Builder registries(RegistryArgs... registries) {
|
||||
return registries(List.of(registries));
|
||||
}
|
||||
|
||||
public ProviderArgs build() {
|
||||
$.host = Codegen.stringProp("host").output().arg($.host).env("DOCKER_HOST").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Export;
|
||||
import com.pulumi.core.annotations.ResourceType;
|
||||
import com.pulumi.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.RandomArgs;
|
||||
import com.pulumi.dockerbuild.Utilities;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@ResourceType(type="dockerbuild:index:Random")
|
||||
public class Random extends com.pulumi.resources.CustomResource {
|
||||
@Export(name="length", refs={Integer.class}, tree="[0]")
|
||||
private Output<Integer> length;
|
||||
|
||||
public Output<Integer> length() {
|
||||
return this.length;
|
||||
}
|
||||
@Export(name="result", refs={String.class}, tree="[0]")
|
||||
private Output<String> result;
|
||||
|
||||
public Output<String> result() {
|
||||
return this.result;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
*/
|
||||
public Random(String name) {
|
||||
this(name, RandomArgs.Empty);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
*/
|
||||
public Random(String name, RandomArgs args) {
|
||||
this(name, args, null);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
* @param options A bag of options that control this resource's behavior.
|
||||
*/
|
||||
public Random(String name, RandomArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
|
||||
super("dockerbuild:index:Random", name, args == null ? RandomArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
|
||||
}
|
||||
|
||||
private Random(String name, Output<String> id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
|
||||
super("dockerbuild:index:Random", name, null, makeResourceOptions(options, id));
|
||||
}
|
||||
|
||||
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output<String> id) {
|
||||
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
|
||||
.version(Utilities.getVersion())
|
||||
.build();
|
||||
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get an existing Host resource's state with the given name, ID, and optional extra
|
||||
* properties used to qualify the lookup.
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param id The _unique_ provider ID of the resource to lookup.
|
||||
* @param options Optional settings to control the behavior of the CustomResource.
|
||||
*/
|
||||
public static Random get(String name, Output<String> id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
|
||||
return new Random(name, id, options);
|
||||
}
|
||||
}
|
||||
@@ -1,65 +0,0 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Import;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Integer;
|
||||
import java.util.Objects;
|
||||
|
||||
|
||||
public final class RandomArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final RandomArgs Empty = new RandomArgs();
|
||||
|
||||
@Import(name="length", required=true)
|
||||
private Output<Integer> length;
|
||||
|
||||
public Output<Integer> length() {
|
||||
return this.length;
|
||||
}
|
||||
|
||||
private RandomArgs() {}
|
||||
|
||||
private RandomArgs(RandomArgs $) {
|
||||
this.length = $.length;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(RandomArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private RandomArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new RandomArgs();
|
||||
}
|
||||
|
||||
public Builder(RandomArgs defaults) {
|
||||
$ = new RandomArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
public Builder length(Output<Integer> length) {
|
||||
$.length = length;
|
||||
return this;
|
||||
}
|
||||
|
||||
public Builder length(Integer length) {
|
||||
return length(Output.of(length));
|
||||
}
|
||||
|
||||
public RandomArgs build() {
|
||||
if ($.length == null) {
|
||||
throw new MissingRequiredPropertyException("RandomArgs", "length");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
41
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/CacheMode.java
generated
Normal file
41
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/CacheMode.java
generated
Normal file
@@ -0,0 +1,41 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.enums;
|
||||
|
||||
import com.pulumi.core.annotations.EnumType;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.StringJoiner;
|
||||
|
||||
@EnumType
|
||||
public enum CacheMode {
|
||||
/**
|
||||
* Only layers that are exported into the resulting image are cached.
|
||||
*
|
||||
*/
|
||||
Min("min"),
|
||||
/**
|
||||
* All layers are cached, even those of intermediate steps.
|
||||
*
|
||||
*/
|
||||
Max("max");
|
||||
|
||||
private final String value;
|
||||
|
||||
CacheMode(String value) {
|
||||
this.value = Objects.requireNonNull(value);
|
||||
}
|
||||
|
||||
@EnumType.Converter
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new StringJoiner(", ", "CacheMode[", "]")
|
||||
.add("value='" + this.value + "'")
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
46
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/CompressionType.java
generated
Normal file
46
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/CompressionType.java
generated
Normal file
@@ -0,0 +1,46 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.enums;
|
||||
|
||||
import com.pulumi.core.annotations.EnumType;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.StringJoiner;
|
||||
|
||||
@EnumType
|
||||
public enum CompressionType {
|
||||
/**
|
||||
* Use `gzip` for compression.
|
||||
*
|
||||
*/
|
||||
Gzip("gzip"),
|
||||
/**
|
||||
* Use `estargz` for compression.
|
||||
*
|
||||
*/
|
||||
Estargz("estargz"),
|
||||
/**
|
||||
* Use `zstd` for compression.
|
||||
*
|
||||
*/
|
||||
Zstd("zstd");
|
||||
|
||||
private final String value;
|
||||
|
||||
CompressionType(String value) {
|
||||
this.value = Objects.requireNonNull(value);
|
||||
}
|
||||
|
||||
@EnumType.Converter
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new StringJoiner(", ", "CompressionType[", "]")
|
||||
.add("value='" + this.value + "'")
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
46
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/NetworkMode.java
generated
Normal file
46
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/NetworkMode.java
generated
Normal file
@@ -0,0 +1,46 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.enums;
|
||||
|
||||
import com.pulumi.core.annotations.EnumType;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.StringJoiner;
|
||||
|
||||
@EnumType
|
||||
public enum NetworkMode {
|
||||
/**
|
||||
* The default sandbox network mode.
|
||||
*
|
||||
*/
|
||||
Default_("default"),
|
||||
/**
|
||||
* Host network mode.
|
||||
*
|
||||
*/
|
||||
Host("host"),
|
||||
/**
|
||||
* Disable network access.
|
||||
*
|
||||
*/
|
||||
None("none");
|
||||
|
||||
private final String value;
|
||||
|
||||
NetworkMode(String value) {
|
||||
this.value = Objects.requireNonNull(value);
|
||||
}
|
||||
|
||||
@EnumType.Converter
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new StringJoiner(", ", "NetworkMode[", "]")
|
||||
.add("value='" + this.value + "'")
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
59
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/Platform.java
generated
Normal file
59
sdk/java/src/main/java/com/pulumi/dockerbuild/enums/Platform.java
generated
Normal file
@@ -0,0 +1,59 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.enums;
|
||||
|
||||
import com.pulumi.core.annotations.EnumType;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.StringJoiner;
|
||||
|
||||
@EnumType
|
||||
public enum Platform {
|
||||
Darwin_386("darwin/386"),
|
||||
Darwin_amd64("darwin/amd64"),
|
||||
Darwin_arm("darwin/arm"),
|
||||
Darwin_arm64("darwin/arm64"),
|
||||
Dragonfly_amd64("dragonfly/amd64"),
|
||||
Freebsd_386("freebsd/386"),
|
||||
Freebsd_amd64("freebsd/amd64"),
|
||||
Freebsd_arm("freebsd/arm"),
|
||||
Linux_386("linux/386"),
|
||||
Linux_amd64("linux/amd64"),
|
||||
Linux_arm("linux/arm"),
|
||||
Linux_arm64("linux/arm64"),
|
||||
Linux_mips64("linux/mips64"),
|
||||
Linux_mips64le("linux/mips64le"),
|
||||
Linux_ppc64le("linux/ppc64le"),
|
||||
Linux_riscv64("linux/riscv64"),
|
||||
Linux_s390x("linux/s390x"),
|
||||
Netbsd_386("netbsd/386"),
|
||||
Netbsd_amd64("netbsd/amd64"),
|
||||
Netbsd_arm("netbsd/arm"),
|
||||
Openbsd_386("openbsd/386"),
|
||||
Openbsd_amd64("openbsd/amd64"),
|
||||
Openbsd_arm("openbsd/arm"),
|
||||
Plan9_386("plan9/386"),
|
||||
Plan9_amd64("plan9/amd64"),
|
||||
Solaris_amd64("solaris/amd64"),
|
||||
Windows_386("windows/386"),
|
||||
Windows_amd64("windows/amd64");
|
||||
|
||||
private final String value;
|
||||
|
||||
Platform(String value) {
|
||||
this.value = Objects.requireNonNull(value);
|
||||
}
|
||||
|
||||
@EnumType.Converter
|
||||
public String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return new StringJoiner(", ", "Platform[", "]")
|
||||
.add("value='" + this.value + "'")
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
174
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/BuildContextArgs.java
generated
Normal file
174
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/BuildContextArgs.java
generated
Normal file
@@ -0,0 +1,174 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.inputs;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Import;
|
||||
import com.pulumi.dockerbuild.inputs.ContextArgs;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class BuildContextArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final BuildContextArgs Empty = new BuildContextArgs();
|
||||
|
||||
/**
|
||||
* Resources to use for build context.
|
||||
*
|
||||
* The location can be:
|
||||
* * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
* `/app`, etc.).
|
||||
* * A remote URL of a Git repository, tarball, or plain text file
|
||||
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
* etc.).
|
||||
*
|
||||
*/
|
||||
@Import(name="location", required=true)
|
||||
private Output<String> location;
|
||||
|
||||
/**
|
||||
* @return Resources to use for build context.
|
||||
*
|
||||
* The location can be:
|
||||
* * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
* `/app`, etc.).
|
||||
* * A remote URL of a Git repository, tarball, or plain text file
|
||||
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
* etc.).
|
||||
*
|
||||
*/
|
||||
public Output<String> location() {
|
||||
return this.location;
|
||||
}
|
||||
|
||||
/**
|
||||
* Additional build contexts to use.
|
||||
*
|
||||
* These contexts are accessed with `FROM name` or `--from=name`
|
||||
* statements when using Dockerfile 1.4+ syntax.
|
||||
*
|
||||
* Values can be local paths, HTTP URLs, or `docker-image://` images.
|
||||
*
|
||||
*/
|
||||
@Import(name="named")
|
||||
private @Nullable Output<Map<String,ContextArgs>> named;
|
||||
|
||||
/**
|
||||
* @return Additional build contexts to use.
|
||||
*
|
||||
* These contexts are accessed with `FROM name` or `--from=name`
|
||||
* statements when using Dockerfile 1.4+ syntax.
|
||||
*
|
||||
* Values can be local paths, HTTP URLs, or `docker-image://` images.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Map<String,ContextArgs>>> named() {
|
||||
return Optional.ofNullable(this.named);
|
||||
}
|
||||
|
||||
private BuildContextArgs() {}
|
||||
|
||||
private BuildContextArgs(BuildContextArgs $) {
|
||||
this.location = $.location;
|
||||
this.named = $.named;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(BuildContextArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private BuildContextArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new BuildContextArgs();
|
||||
}
|
||||
|
||||
public Builder(BuildContextArgs defaults) {
|
||||
$ = new BuildContextArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param location Resources to use for build context.
|
||||
*
|
||||
* The location can be:
|
||||
* * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
* `/app`, etc.).
|
||||
* * A remote URL of a Git repository, tarball, or plain text file
|
||||
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
* etc.).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder location(Output<String> location) {
|
||||
$.location = location;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param location Resources to use for build context.
|
||||
*
|
||||
* The location can be:
|
||||
* * A relative or absolute path to a local directory (`.`, `./app`,
|
||||
* `/app`, etc.).
|
||||
* * A remote URL of a Git repository, tarball, or plain text file
|
||||
* (`https://github.com/user/myrepo.git`, `http://server/context.tar.gz`,
|
||||
* etc.).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder location(String location) {
|
||||
return location(Output.of(location));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param named Additional build contexts to use.
|
||||
*
|
||||
* These contexts are accessed with `FROM name` or `--from=name`
|
||||
* statements when using Dockerfile 1.4+ syntax.
|
||||
*
|
||||
* Values can be local paths, HTTP URLs, or `docker-image://` images.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder named(@Nullable Output<Map<String,ContextArgs>> named) {
|
||||
$.named = named;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param named Additional build contexts to use.
|
||||
*
|
||||
* These contexts are accessed with `FROM name` or `--from=name`
|
||||
* statements when using Dockerfile 1.4+ syntax.
|
||||
*
|
||||
* Values can be local paths, HTTP URLs, or `docker-image://` images.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder named(Map<String,ContextArgs> named) {
|
||||
return named(Output.of(named));
|
||||
}
|
||||
|
||||
public BuildContextArgs build() {
|
||||
if ($.location == null) {
|
||||
throw new MissingRequiredPropertyException("BuildContextArgs", "location");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
103
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/BuilderConfigArgs.java
generated
Normal file
103
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/BuilderConfigArgs.java
generated
Normal file
@@ -0,0 +1,103 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.inputs;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Import;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class BuilderConfigArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final BuilderConfigArgs Empty = new BuilderConfigArgs();
|
||||
|
||||
/**
|
||||
* Name of an existing buildx builder to use.
|
||||
*
|
||||
* Only `docker-container`, `kubernetes`, or `remote` drivers are
|
||||
* supported. The legacy `docker` driver is not supported.
|
||||
*
|
||||
* Equivalent to Docker's `--builder` flag.
|
||||
*
|
||||
*/
|
||||
@Import(name="name")
|
||||
private @Nullable Output<String> name;
|
||||
|
||||
/**
|
||||
* @return Name of an existing buildx builder to use.
|
||||
*
|
||||
* Only `docker-container`, `kubernetes`, or `remote` drivers are
|
||||
* supported. The legacy `docker` driver is not supported.
|
||||
*
|
||||
* Equivalent to Docker's `--builder` flag.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> name() {
|
||||
return Optional.ofNullable(this.name);
|
||||
}
|
||||
|
||||
private BuilderConfigArgs() {}
|
||||
|
||||
private BuilderConfigArgs(BuilderConfigArgs $) {
|
||||
this.name = $.name;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(BuilderConfigArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private BuilderConfigArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new BuilderConfigArgs();
|
||||
}
|
||||
|
||||
public Builder(BuilderConfigArgs defaults) {
|
||||
$ = new BuilderConfigArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name Name of an existing buildx builder to use.
|
||||
*
|
||||
* Only `docker-container`, `kubernetes`, or `remote` drivers are
|
||||
* supported. The legacy `docker` driver is not supported.
|
||||
*
|
||||
* Equivalent to Docker's `--builder` flag.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(@Nullable Output<String> name) {
|
||||
$.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name Name of an existing buildx builder to use.
|
||||
*
|
||||
* Only `docker-container`, `kubernetes`, or `remote` drivers are
|
||||
* supported. The legacy `docker` driver is not supported.
|
||||
*
|
||||
* Equivalent to Docker's `--builder` flag.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(String name) {
|
||||
return name(Output.of(name));
|
||||
}
|
||||
|
||||
public BuilderConfigArgs build() {
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
331
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromArgs.java
generated
Normal file
331
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromArgs.java
generated
Normal file
@@ -0,0 +1,331 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.inputs;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Import;
|
||||
import com.pulumi.dockerbuild.inputs.CacheFromAzureBlobArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheFromGitHubActionsArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheFromLocalArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheFromRegistryArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheFromS3Args;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheFromArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheFromArgs Empty = new CacheFromArgs();
|
||||
|
||||
/**
|
||||
* Upload build caches to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
@Import(name="azblob")
|
||||
private @Nullable Output<CacheFromAzureBlobArgs> azblob;
|
||||
|
||||
/**
|
||||
* @return Upload build caches to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheFromAzureBlobArgs>> azblob() {
|
||||
return Optional.ofNullable(this.azblob);
|
||||
}
|
||||
|
||||
/**
|
||||
* When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
@Import(name="disabled")
|
||||
private @Nullable Output<Boolean> disabled;
|
||||
|
||||
/**
|
||||
* @return When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> disabled() {
|
||||
return Optional.ofNullable(this.disabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
* expose appropriate credentials to your GitHub workflow.
|
||||
*
|
||||
*/
|
||||
@Import(name="gha")
|
||||
private @Nullable Output<CacheFromGitHubActionsArgs> gha;
|
||||
|
||||
/**
|
||||
* @return Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
* expose appropriate credentials to your GitHub workflow.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheFromGitHubActionsArgs>> gha() {
|
||||
return Optional.ofNullable(this.gha);
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple backend which caches images on your local filesystem.
|
||||
*
|
||||
*/
|
||||
@Import(name="local")
|
||||
private @Nullable Output<CacheFromLocalArgs> local;
|
||||
|
||||
/**
|
||||
* @return A simple backend which caches images on your local filesystem.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheFromLocalArgs>> local() {
|
||||
return Optional.ofNullable(this.local);
|
||||
}
|
||||
|
||||
/**
|
||||
* A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`).
|
||||
*
|
||||
*/
|
||||
@Import(name="raw")
|
||||
private @Nullable Output<String> raw;
|
||||
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`).
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> raw() {
|
||||
return Optional.ofNullable(this.raw);
|
||||
}
|
||||
|
||||
/**
|
||||
* Upload build caches to remote registries.
|
||||
*
|
||||
*/
|
||||
@Import(name="registry")
|
||||
private @Nullable Output<CacheFromRegistryArgs> registry;
|
||||
|
||||
/**
|
||||
* @return Upload build caches to remote registries.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheFromRegistryArgs>> registry() {
|
||||
return Optional.ofNullable(this.registry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
* MinIO.
|
||||
*
|
||||
*/
|
||||
@Import(name="s3")
|
||||
private @Nullable Output<CacheFromS3Args> s3;
|
||||
|
||||
/**
|
||||
* @return Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
* MinIO.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheFromS3Args>> s3() {
|
||||
return Optional.ofNullable(this.s3);
|
||||
}
|
||||
|
||||
private CacheFromArgs() {}
|
||||
|
||||
private CacheFromArgs(CacheFromArgs $) {
|
||||
this.azblob = $.azblob;
|
||||
this.disabled = $.disabled;
|
||||
this.gha = $.gha;
|
||||
this.local = $.local;
|
||||
this.raw = $.raw;
|
||||
this.registry = $.registry;
|
||||
this.s3 = $.s3;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheFromArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheFromArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheFromArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheFromArgs defaults) {
|
||||
$ = new CacheFromArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param azblob Upload build caches to Azure's blob storage service.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder azblob(@Nullable Output<CacheFromAzureBlobArgs> azblob) {
|
||||
$.azblob = azblob;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param azblob Upload build caches to Azure's blob storage service.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder azblob(CacheFromAzureBlobArgs azblob) {
|
||||
return azblob(Output.of(azblob));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param disabled When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder disabled(@Nullable Output<Boolean> disabled) {
|
||||
$.disabled = disabled;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param disabled When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder disabled(Boolean disabled) {
|
||||
return disabled(Output.of(disabled));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param gha Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
* expose appropriate credentials to your GitHub workflow.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder gha(@Nullable Output<CacheFromGitHubActionsArgs> gha) {
|
||||
$.gha = gha;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param gha Recommended for use with GitHub Actions workflows.
|
||||
*
|
||||
* An action like `crazy-max/ghaction-github-runtime` is recommended to
|
||||
* expose appropriate credentials to your GitHub workflow.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder gha(CacheFromGitHubActionsArgs gha) {
|
||||
return gha(Output.of(gha));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param local A simple backend which caches images on your local filesystem.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder local(@Nullable Output<CacheFromLocalArgs> local) {
|
||||
$.local = local;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param local A simple backend which caches images on your local filesystem.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder local(CacheFromLocalArgs local) {
|
||||
return local(Output.of(local));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param raw A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder raw(@Nullable Output<String> raw) {
|
||||
$.raw = raw;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param raw A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder raw(String raw) {
|
||||
return raw(Output.of(raw));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param registry Upload build caches to remote registries.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(@Nullable Output<CacheFromRegistryArgs> registry) {
|
||||
$.registry = registry;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param registry Upload build caches to remote registries.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(CacheFromRegistryArgs registry) {
|
||||
return registry(Output.of(registry));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param s3 Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
* MinIO.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder s3(@Nullable Output<CacheFromS3Args> s3) {
|
||||
$.s3 = s3;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param s3 Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
* MinIO.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder s3(CacheFromS3Args s3) {
|
||||
return s3(Output.of(s3));
|
||||
}
|
||||
|
||||
public CacheFromArgs build() {
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
161
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromAzureBlobArgs.java
generated
Normal file
161
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromAzureBlobArgs.java
generated
Normal file
@@ -0,0 +1,161 @@
|
||||
// *** WARNING: this file was generated by pulumi. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package com.pulumi.dockerbuild.inputs;
|
||||
|
||||
import com.pulumi.core.Output;
|
||||
import com.pulumi.core.annotations.Import;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheFromAzureBlobArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheFromAzureBlobArgs Empty = new CacheFromAzureBlobArgs();
|
||||
|
||||
/**
|
||||
* Base URL of the storage account.
|
||||
*
|
||||
*/
|
||||
@Import(name="accountUrl")
|
||||
private @Nullable Output<String> accountUrl;
|
||||
|
||||
/**
|
||||
* @return Base URL of the storage account.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> accountUrl() {
|
||||
return Optional.ofNullable(this.accountUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* The name of the cache image.
|
||||
*
|
||||
*/
|
||||
@Import(name="name", required=true)
|
||||
private Output<String> name;
|
||||
|
||||
/**
|
||||
* @return The name of the cache image.
|
||||
*
|
||||
*/
|
||||
public Output<String> name() {
|
||||
return this.name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Blob storage account key.
|
||||
*
|
||||
*/
|
||||
@Import(name="secretAccessKey")
|
||||
private @Nullable Output<String> secretAccessKey;
|
||||
|
||||
/**
|
||||
* @return Blob storage account key.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> secretAccessKey() {
|
||||
return Optional.ofNullable(this.secretAccessKey);
|
||||
}
|
||||
|
||||
private CacheFromAzureBlobArgs() {}
|
||||
|
||||
private CacheFromAzureBlobArgs(CacheFromAzureBlobArgs $) {
|
||||
this.accountUrl = $.accountUrl;
|
||||
this.name = $.name;
|
||||
this.secretAccessKey = $.secretAccessKey;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheFromAzureBlobArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheFromAzureBlobArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheFromAzureBlobArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheFromAzureBlobArgs defaults) {
|
||||
$ = new CacheFromAzureBlobArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accountUrl Base URL of the storage account.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder accountUrl(@Nullable Output<String> accountUrl) {
|
||||
$.accountUrl = accountUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accountUrl Base URL of the storage account.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder accountUrl(String accountUrl) {
|
||||
return accountUrl(Output.of(accountUrl));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name The name of the cache image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(Output<String> name) {
|
||||
$.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name The name of the cache image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(String name) {
|
||||
return name(Output.of(name));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param secretAccessKey Blob storage account key.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder secretAccessKey(@Nullable Output<String> secretAccessKey) {
|
||||
$.secretAccessKey = secretAccessKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param secretAccessKey Blob storage account key.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder secretAccessKey(String secretAccessKey) {
|
||||
return secretAccessKey(Output.of(secretAccessKey));
|
||||
}
|
||||
|
||||
public CacheFromAzureBlobArgs build() {
|
||||
if ($.name == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromAzureBlobArgs", "name");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user