restore java sdk
This commit is contained in:
1
sdk/java/README.md
generated
Normal file
1
sdk/java/README.md
generated
Normal file
@@ -0,0 +1 @@
|
||||
A Pulumi provider for building modern Docker images with buildx and BuildKit.
|
||||
14
sdk/java/settings.gradle
generated
Normal file
14
sdk/java/settings.gradle
generated
Normal file
@@ -0,0 +1,14 @@
|
||||
// *** WARNING: this file was generated by pulumi-java-gen. ***
|
||||
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
pluginManagement {
|
||||
repositories {
|
||||
maven { // The google mirror is less flaky than mavenCentral()
|
||||
url("https://maven-central.storage-download.googleapis.com/maven2/")
|
||||
}
|
||||
gradlePluginPortal()
|
||||
}
|
||||
}
|
||||
|
||||
rootProject.name = "com.pulumi.docker-build"
|
||||
include("lib")
|
||||
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("docker-build");
|
||||
/**
|
||||
* 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();
|
||||
}
|
||||
}
|
||||
1281
sdk/java/src/main/java/com/pulumi/dockerbuild/Image.java
generated
Normal file
1281
sdk/java/src/main/java/com/pulumi/dockerbuild/Image.java
generated
Normal file
File diff suppressed because it is too large
Load Diff
1389
sdk/java/src/main/java/com/pulumi/dockerbuild/ImageArgs.java
generated
Normal file
1389
sdk/java/src/main/java/com/pulumi/dockerbuild/ImageArgs.java
generated
Normal file
File diff suppressed because it is too large
Load Diff
255
sdk/java/src/main/java/com/pulumi/dockerbuild/Index.java
generated
Normal file
255
sdk/java/src/main/java/com/pulumi/dockerbuild/Index.java
generated
Normal file
@@ -0,0 +1,255 @@
|
||||
// *** 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;
|
||||
|
||||
/**
|
||||
* A wrapper around `docker buildx imagetools create` to create an index
|
||||
* (or manifest list) referencing one or more existing images.
|
||||
*
|
||||
* In most cases you do not need an `Index` to build a multi-platform
|
||||
* image -- specifying multiple platforms on the `Image` will handle this
|
||||
* for you automatically.
|
||||
*
|
||||
* However, as of April 2024, building multi-platform images _with
|
||||
* caching_ will only export a cache for one platform at a time (see [this
|
||||
* discussion](https://github.com/docker/buildx/discussions/1382) for more
|
||||
* details).
|
||||
*
|
||||
* Therefore this resource can be helpful if you are building
|
||||
* multi-platform images with caching: each platform can be built and
|
||||
* cached separately, and an `Index` can join them all together. An
|
||||
* example of this is shown below.
|
||||
*
|
||||
* This resource 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
|
||||
* <pre>
|
||||
* {@code
|
||||
* package generated_program;
|
||||
*
|
||||
* import com.pulumi.Context;
|
||||
* import com.pulumi.Pulumi;
|
||||
* import com.pulumi.core.Output;
|
||||
* import com.pulumi.dockerbuild.Image;
|
||||
* import com.pulumi.dockerbuild.ImageArgs;
|
||||
* import com.pulumi.dockerbuild.inputs.CacheFromArgs;
|
||||
* import com.pulumi.dockerbuild.inputs.CacheFromRegistryArgs;
|
||||
* import com.pulumi.dockerbuild.inputs.CacheToArgs;
|
||||
* import com.pulumi.dockerbuild.inputs.CacheToRegistryArgs;
|
||||
* import com.pulumi.dockerbuild.inputs.BuildContextArgs;
|
||||
* import com.pulumi.dockerbuild.Index;
|
||||
* import com.pulumi.dockerbuild.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());
|
||||
* }
|
||||
* }
|
||||
* }
|
||||
* </pre>
|
||||
*
|
||||
*/
|
||||
@ResourceType(type="docker-build: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("docker-build: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("docker-build: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 $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
65
sdk/java/src/main/java/com/pulumi/dockerbuild/Provider.java
generated
Normal file
65
sdk/java/src/main/java/com/pulumi/dockerbuild/Provider.java
generated
Normal file
@@ -0,0 +1,65 @@
|
||||
// *** 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.ProviderArgs;
|
||||
import com.pulumi.dockerbuild.Utilities;
|
||||
import java.lang.String;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@ResourceType(type="pulumi:providers:docker-build")
|
||||
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.
|
||||
*/
|
||||
public Provider(String name) {
|
||||
this(name, ProviderArgs.Empty);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* @param name The _unique_ name of the resulting resource.
|
||||
* @param args The arguments to use to populate this resource's properties.
|
||||
*/
|
||||
public Provider(String name, @Nullable ProviderArgs 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 Provider(String name, @Nullable ProviderArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
|
||||
super("docker-build", name, args == null ? ProviderArgs.Empty : args, makeResourceOptions(options, Codegen.empty()));
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
108
sdk/java/src/main/java/com/pulumi/dockerbuild/ProviderArgs.java
generated
Normal file
108
sdk/java/src/main/java/com/pulumi/dockerbuild/ProviderArgs.java
generated
Normal file
@@ -0,0 +1,108 @@
|
||||
// *** 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 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 $;
|
||||
|
||||
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 $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
89
sdk/java/src/main/java/com/pulumi/dockerbuild/Utilities.java
generated
Normal file
89
sdk/java/src/main/java/com/pulumi/dockerbuild/Utilities.java
generated
Normal file
@@ -0,0 +1,89 @@
|
||||
// *** 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 java.io.BufferedReader;
|
||||
import java.io.InputStreamReader;
|
||||
import java.util.Optional;
|
||||
import java.util.stream.Collectors;
|
||||
import javax.annotation.Nullable;
|
||||
import com.pulumi.core.internal.Environment;
|
||||
import com.pulumi.deployment.InvokeOptions;
|
||||
|
||||
public class Utilities {
|
||||
|
||||
public static Optional<String> getEnv(String... names) {
|
||||
for (var n : names) {
|
||||
var value = Environment.getEnvironmentVariable(n);
|
||||
if (value.isValue()) {
|
||||
return Optional.of(value.value());
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
public static Optional<Boolean> getEnvBoolean(String... names) {
|
||||
for (var n : names) {
|
||||
var value = Environment.getBooleanEnvironmentVariable(n);
|
||||
if (value.isValue()) {
|
||||
return Optional.of(value.value());
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
public static Optional<Integer> getEnvInteger(String... names) {
|
||||
for (var n : names) {
|
||||
var value = Environment.getIntegerEnvironmentVariable(n);
|
||||
if (value.isValue()) {
|
||||
return Optional.of(value.value());
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
public static Optional<Double> getEnvDouble(String... names) {
|
||||
for (var n : names) {
|
||||
var value = Environment.getDoubleEnvironmentVariable(n);
|
||||
if (value.isValue()) {
|
||||
return Optional.of(value.value());
|
||||
}
|
||||
}
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
public static InvokeOptions withVersion(@Nullable InvokeOptions options) {
|
||||
if (options != null && options.getVersion().isPresent()) {
|
||||
return options;
|
||||
}
|
||||
return new InvokeOptions(
|
||||
options == null ? null : options.getParent().orElse(null),
|
||||
options == null ? null : options.getProvider().orElse(null),
|
||||
getVersion()
|
||||
);
|
||||
}
|
||||
|
||||
private static final String version;
|
||||
public static String getVersion() {
|
||||
return version;
|
||||
}
|
||||
|
||||
static {
|
||||
var resourceName = "com/pulumi/docker-build/version.txt";
|
||||
var versionFile = Utilities.class.getClassLoader().getResourceAsStream(resourceName);
|
||||
if (versionFile == null) {
|
||||
throw new IllegalStateException(
|
||||
String.format("expected resource '%s' on Classpath, not found", resourceName)
|
||||
);
|
||||
}
|
||||
version = new BufferedReader(new InputStreamReader(versionFile))
|
||||
.lines()
|
||||
.collect(Collectors.joining("\n"))
|
||||
.trim();
|
||||
}
|
||||
}
|
||||
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 $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
209
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromGitHubActionsArgs.java
generated
Normal file
209
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromGitHubActionsArgs.java
generated
Normal file
@@ -0,0 +1,209 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheFromGitHubActionsArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheFromGitHubActionsArgs Empty = new CacheFromGitHubActionsArgs();
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="scope")
|
||||
private @Nullable Output<String> scope;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> scope() {
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="token")
|
||||
private @Nullable Output<String> token;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
@Import(name="url")
|
||||
private @Nullable Output<String> url;
|
||||
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
private CacheFromGitHubActionsArgs() {}
|
||||
|
||||
private CacheFromGitHubActionsArgs(CacheFromGitHubActionsArgs $) {
|
||||
this.scope = $.scope;
|
||||
this.token = $.token;
|
||||
this.url = $.url;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheFromGitHubActionsArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheFromGitHubActionsArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheFromGitHubActionsArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheFromGitHubActionsArgs defaults) {
|
||||
$ = new CacheFromGitHubActionsArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param scope 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder scope(@Nullable Output<String> scope) {
|
||||
$.scope = scope;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param scope 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder scope(String scope) {
|
||||
return scope(Output.of(scope));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(@Nullable Output<String> token) {
|
||||
$.token = token;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(String token) {
|
||||
return token(Output.of(token));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(@Nullable Output<String> url) {
|
||||
$.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(String url) {
|
||||
return url(Output.of(url));
|
||||
}
|
||||
|
||||
public CacheFromGitHubActionsArgs build() {
|
||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).env("buildkit").def("").getNullable();
|
||||
$.token = Codegen.stringProp("token").secret().arg($.token).env("ACTIONS_RUNTIME_TOKEN").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_CACHE_URL").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
124
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromLocalArgs.java
generated
Normal file
124
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromLocalArgs.java
generated
Normal file
@@ -0,0 +1,124 @@
|
||||
// *** 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 CacheFromLocalArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheFromLocalArgs Empty = new CacheFromLocalArgs();
|
||||
|
||||
/**
|
||||
* Digest of manifest to import.
|
||||
*
|
||||
*/
|
||||
@Import(name="digest")
|
||||
private @Nullable Output<String> digest;
|
||||
|
||||
/**
|
||||
* @return Digest of manifest to import.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> digest() {
|
||||
return Optional.ofNullable(this.digest);
|
||||
}
|
||||
|
||||
/**
|
||||
* Path of the local directory where cache gets imported from.
|
||||
*
|
||||
*/
|
||||
@Import(name="src", required=true)
|
||||
private Output<String> src;
|
||||
|
||||
/**
|
||||
* @return Path of the local directory where cache gets imported from.
|
||||
*
|
||||
*/
|
||||
public Output<String> src() {
|
||||
return this.src;
|
||||
}
|
||||
|
||||
private CacheFromLocalArgs() {}
|
||||
|
||||
private CacheFromLocalArgs(CacheFromLocalArgs $) {
|
||||
this.digest = $.digest;
|
||||
this.src = $.src;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheFromLocalArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheFromLocalArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheFromLocalArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheFromLocalArgs defaults) {
|
||||
$ = new CacheFromLocalArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param digest Digest of manifest to import.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder digest(@Nullable Output<String> digest) {
|
||||
$.digest = digest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param digest Digest of manifest to import.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder digest(String digest) {
|
||||
return digest(Output.of(digest));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param src Path of the local directory where cache gets imported from.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder src(Output<String> src) {
|
||||
$.src = src;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param src Path of the local directory where cache gets imported from.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder src(String src) {
|
||||
return src(Output.of(src));
|
||||
}
|
||||
|
||||
public CacheFromLocalArgs build() {
|
||||
if ($.src == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromLocalArgs", "src");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
85
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromRegistryArgs.java
generated
Normal file
85
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromRegistryArgs.java
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! ***
|
||||
|
||||
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;
|
||||
|
||||
|
||||
public final class CacheFromRegistryArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheFromRegistryArgs Empty = new CacheFromRegistryArgs();
|
||||
|
||||
/**
|
||||
* Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
@Import(name="ref", required=true)
|
||||
private Output<String> ref;
|
||||
|
||||
/**
|
||||
* @return Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
public Output<String> ref() {
|
||||
return this.ref;
|
||||
}
|
||||
|
||||
private CacheFromRegistryArgs() {}
|
||||
|
||||
private CacheFromRegistryArgs(CacheFromRegistryArgs $) {
|
||||
this.ref = $.ref;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheFromRegistryArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheFromRegistryArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheFromRegistryArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheFromRegistryArgs defaults) {
|
||||
$ = new CacheFromRegistryArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ref Fully qualified name of the cache image to import.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ref(Output<String> ref) {
|
||||
$.ref = ref;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ref Fully qualified name of the cache image to import.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ref(String ref) {
|
||||
return ref(Output.of(ref));
|
||||
}
|
||||
|
||||
public CacheFromRegistryArgs build() {
|
||||
if ($.ref == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromRegistryArgs", "ref");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
426
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromS3Args.java
generated
Normal file
426
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheFromS3Args.java
generated
Normal file
@@ -0,0 +1,426 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheFromS3Args extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheFromS3Args Empty = new CacheFromS3Args();
|
||||
|
||||
/**
|
||||
* Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
@Import(name="accessKeyId")
|
||||
private @Nullable Output<String> accessKeyId;
|
||||
|
||||
/**
|
||||
* @return Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> accessKeyId() {
|
||||
return Optional.ofNullable(this.accessKeyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
@Import(name="blobsPrefix")
|
||||
private @Nullable Output<String> blobsPrefix;
|
||||
|
||||
/**
|
||||
* @return Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> blobsPrefix() {
|
||||
return Optional.ofNullable(this.blobsPrefix);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
@Import(name="bucket", required=true)
|
||||
private Output<String> bucket;
|
||||
|
||||
/**
|
||||
* @return Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public Output<String> bucket() {
|
||||
return this.bucket;
|
||||
}
|
||||
|
||||
/**
|
||||
* Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
@Import(name="endpointUrl")
|
||||
private @Nullable Output<String> endpointUrl;
|
||||
|
||||
/**
|
||||
* @return Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> endpointUrl() {
|
||||
return Optional.ofNullable(this.endpointUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
@Import(name="manifestsPrefix")
|
||||
private @Nullable Output<String> manifestsPrefix;
|
||||
|
||||
/**
|
||||
* @return Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> manifestsPrefix() {
|
||||
return Optional.ofNullable(this.manifestsPrefix);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the cache image.
|
||||
*
|
||||
*/
|
||||
@Import(name="name")
|
||||
private @Nullable Output<String> name;
|
||||
|
||||
/**
|
||||
* @return Name of the cache image.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> name() {
|
||||
return Optional.ofNullable(this.name);
|
||||
}
|
||||
|
||||
/**
|
||||
* The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
@Import(name="region", required=true)
|
||||
private Output<String> region;
|
||||
|
||||
/**
|
||||
* @return The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
public Output<String> region() {
|
||||
return this.region;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
@Import(name="secretAccessKey")
|
||||
private @Nullable Output<String> secretAccessKey;
|
||||
|
||||
/**
|
||||
* @return Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> secretAccessKey() {
|
||||
return Optional.ofNullable(this.secretAccessKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
@Import(name="sessionToken")
|
||||
private @Nullable Output<String> sessionToken;
|
||||
|
||||
/**
|
||||
* @return Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> sessionToken() {
|
||||
return Optional.ofNullable(this.sessionToken);
|
||||
}
|
||||
|
||||
/**
|
||||
* Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
@Import(name="usePathStyle")
|
||||
private @Nullable Output<Boolean> usePathStyle;
|
||||
|
||||
/**
|
||||
* @return Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> usePathStyle() {
|
||||
return Optional.ofNullable(this.usePathStyle);
|
||||
}
|
||||
|
||||
private CacheFromS3Args() {}
|
||||
|
||||
private CacheFromS3Args(CacheFromS3Args $) {
|
||||
this.accessKeyId = $.accessKeyId;
|
||||
this.blobsPrefix = $.blobsPrefix;
|
||||
this.bucket = $.bucket;
|
||||
this.endpointUrl = $.endpointUrl;
|
||||
this.manifestsPrefix = $.manifestsPrefix;
|
||||
this.name = $.name;
|
||||
this.region = $.region;
|
||||
this.secretAccessKey = $.secretAccessKey;
|
||||
this.sessionToken = $.sessionToken;
|
||||
this.usePathStyle = $.usePathStyle;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheFromS3Args defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheFromS3Args $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheFromS3Args();
|
||||
}
|
||||
|
||||
public Builder(CacheFromS3Args defaults) {
|
||||
$ = new CacheFromS3Args(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accessKeyId Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder accessKeyId(@Nullable Output<String> accessKeyId) {
|
||||
$.accessKeyId = accessKeyId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accessKeyId Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder accessKeyId(String accessKeyId) {
|
||||
return accessKeyId(Output.of(accessKeyId));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param blobsPrefix Prefix to prepend to blob filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder blobsPrefix(@Nullable Output<String> blobsPrefix) {
|
||||
$.blobsPrefix = blobsPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param blobsPrefix Prefix to prepend to blob filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder blobsPrefix(String blobsPrefix) {
|
||||
return blobsPrefix(Output.of(blobsPrefix));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bucket Name of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder bucket(Output<String> bucket) {
|
||||
$.bucket = bucket;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bucket Name of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder bucket(String bucket) {
|
||||
return bucket(Output.of(bucket));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param endpointUrl Endpoint of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder endpointUrl(@Nullable Output<String> endpointUrl) {
|
||||
$.endpointUrl = endpointUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param endpointUrl Endpoint of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder endpointUrl(String endpointUrl) {
|
||||
return endpointUrl(Output.of(endpointUrl));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param manifestsPrefix Prefix to prepend on manifest filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder manifestsPrefix(@Nullable Output<String> manifestsPrefix) {
|
||||
$.manifestsPrefix = manifestsPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param manifestsPrefix Prefix to prepend on manifest filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder manifestsPrefix(String manifestsPrefix) {
|
||||
return manifestsPrefix(Output.of(manifestsPrefix));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name Name of the cache image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(@Nullable Output<String> name) {
|
||||
$.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name Name of the cache image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(String name) {
|
||||
return name(Output.of(name));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param region The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder region(Output<String> region) {
|
||||
$.region = region;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param region The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder region(String region) {
|
||||
return region(Output.of(region));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param secretAccessKey Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder secretAccessKey(@Nullable Output<String> secretAccessKey) {
|
||||
$.secretAccessKey = secretAccessKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param secretAccessKey Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder secretAccessKey(String secretAccessKey) {
|
||||
return secretAccessKey(Output.of(secretAccessKey));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sessionToken Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder sessionToken(@Nullable Output<String> sessionToken) {
|
||||
$.sessionToken = sessionToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sessionToken Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder sessionToken(String sessionToken) {
|
||||
return sessionToken(Output.of(sessionToken));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param usePathStyle Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder usePathStyle(@Nullable Output<Boolean> usePathStyle) {
|
||||
$.usePathStyle = usePathStyle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param usePathStyle Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder usePathStyle(Boolean usePathStyle) {
|
||||
return usePathStyle(Output.of(usePathStyle));
|
||||
}
|
||||
|
||||
public CacheFromS3Args build() {
|
||||
$.accessKeyId = Codegen.stringProp("accessKeyId").output().arg($.accessKeyId).env("AWS_ACCESS_KEY_ID").def("").getNullable();
|
||||
if ($.bucket == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromS3Args", "bucket");
|
||||
}
|
||||
$.region = Codegen.stringProp("region").output().arg($.region).env("AWS_REGION").def("").require();
|
||||
$.secretAccessKey = Codegen.stringProp("secretAccessKey").secret().arg($.secretAccessKey).env("AWS_SECRET_ACCESS_KEY").def("").getNullable();
|
||||
$.sessionToken = Codegen.stringProp("sessionToken").secret().arg($.sessionToken).env("AWS_SESSION_TOKEN").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
377
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToArgs.java
generated
Normal file
377
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToArgs.java
generated
Normal file
@@ -0,0 +1,377 @@
|
||||
// *** 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.CacheToAzureBlobArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheToGitHubActionsArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheToInlineArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheToLocalArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheToRegistryArgs;
|
||||
import com.pulumi.dockerbuild.inputs.CacheToS3Args;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheToArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToArgs Empty = new CacheToArgs();
|
||||
|
||||
/**
|
||||
* Push cache to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
@Import(name="azblob")
|
||||
private @Nullable Output<CacheToAzureBlobArgs> azblob;
|
||||
|
||||
/**
|
||||
* @return Push cache to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheToAzureBlobArgs>> 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<CacheToGitHubActionsArgs> 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<CacheToGitHubActionsArgs>> gha() {
|
||||
return Optional.ofNullable(this.gha);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="inline")
|
||||
private @Nullable Output<CacheToInlineArgs> inline;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheToInlineArgs>> inline() {
|
||||
return Optional.ofNullable(this.inline);
|
||||
}
|
||||
|
||||
/**
|
||||
* A simple backend which caches imagines on your local filesystem.
|
||||
*
|
||||
*/
|
||||
@Import(name="local")
|
||||
private @Nullable Output<CacheToLocalArgs> local;
|
||||
|
||||
/**
|
||||
* @return A simple backend which caches imagines on your local filesystem.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheToLocalArgs>> 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Push caches to remote registries. Incompatible with the `docker` build
|
||||
* driver.
|
||||
*
|
||||
*/
|
||||
@Import(name="registry")
|
||||
private @Nullable Output<CacheToRegistryArgs> registry;
|
||||
|
||||
/**
|
||||
* @return Push caches to remote registries. Incompatible with the `docker` build
|
||||
* driver.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheToRegistryArgs>> registry() {
|
||||
return Optional.ofNullable(this.registry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
*
|
||||
*/
|
||||
@Import(name="s3")
|
||||
private @Nullable Output<CacheToS3Args> s3;
|
||||
|
||||
/**
|
||||
* @return Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheToS3Args>> s3() {
|
||||
return Optional.ofNullable(this.s3);
|
||||
}
|
||||
|
||||
private CacheToArgs() {}
|
||||
|
||||
private CacheToArgs(CacheToArgs $) {
|
||||
this.azblob = $.azblob;
|
||||
this.disabled = $.disabled;
|
||||
this.gha = $.gha;
|
||||
this.inline = $.inline;
|
||||
this.local = $.local;
|
||||
this.raw = $.raw;
|
||||
this.registry = $.registry;
|
||||
this.s3 = $.s3;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheToArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheToArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheToArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheToArgs defaults) {
|
||||
$ = new CacheToArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param azblob Push cache to Azure's blob storage service.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder azblob(@Nullable Output<CacheToAzureBlobArgs> azblob) {
|
||||
$.azblob = azblob;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param azblob Push cache to Azure's blob storage service.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder azblob(CacheToAzureBlobArgs 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<CacheToGitHubActionsArgs> 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(CacheToGitHubActionsArgs gha) {
|
||||
return gha(Output.of(gha));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param inline 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder inline(@Nullable Output<CacheToInlineArgs> inline) {
|
||||
$.inline = inline;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param inline 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder inline(CacheToInlineArgs inline) {
|
||||
return inline(Output.of(inline));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param local A simple backend which caches imagines on your local filesystem.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder local(@Nullable Output<CacheToLocalArgs> local) {
|
||||
$.local = local;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param local A simple backend which caches imagines on your local filesystem.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder local(CacheToLocalArgs 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 Push caches to remote registries. Incompatible with the `docker` build
|
||||
* driver.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(@Nullable Output<CacheToRegistryArgs> registry) {
|
||||
$.registry = registry;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param registry Push caches to remote registries. Incompatible with the `docker` build
|
||||
* driver.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(CacheToRegistryArgs registry) {
|
||||
return registry(Output.of(registry));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param s3 Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder s3(@Nullable Output<CacheToS3Args> s3) {
|
||||
$.s3 = s3;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param s3 Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder s3(CacheToS3Args s3) {
|
||||
return s3(Output.of(s3));
|
||||
}
|
||||
|
||||
public CacheToArgs build() {
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
240
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToAzureBlobArgs.java
generated
Normal file
240
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToAzureBlobArgs.java
generated
Normal file
@@ -0,0 +1,240 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheToAzureBlobArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToAzureBlobArgs Empty = new CacheToAzureBlobArgs();
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
@Import(name="ignoreError")
|
||||
private @Nullable Output<Boolean> ignoreError;
|
||||
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
@Import(name="mode")
|
||||
private @Nullable Output<CacheMode> mode;
|
||||
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheMode>> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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 CacheToAzureBlobArgs() {}
|
||||
|
||||
private CacheToAzureBlobArgs(CacheToAzureBlobArgs $) {
|
||||
this.accountUrl = $.accountUrl;
|
||||
this.ignoreError = $.ignoreError;
|
||||
this.mode = $.mode;
|
||||
this.name = $.name;
|
||||
this.secretAccessKey = $.secretAccessKey;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheToAzureBlobArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheToAzureBlobArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheToAzureBlobArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheToAzureBlobArgs defaults) {
|
||||
$ = new CacheToAzureBlobArgs(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 ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(@Nullable Output<Boolean> ignoreError) {
|
||||
$.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(Boolean ignoreError) {
|
||||
return ignoreError(Output.of(ignoreError));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(@Nullable Output<CacheMode> mode) {
|
||||
$.mode = mode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(CacheMode mode) {
|
||||
return mode(Output.of(mode));
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 CacheToAzureBlobArgs build() {
|
||||
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||
if ($.name == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToAzureBlobArgs", "name");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
287
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToGitHubActionsArgs.java
generated
Normal file
287
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToGitHubActionsArgs.java
generated
Normal file
@@ -0,0 +1,287 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheToGitHubActionsArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToGitHubActionsArgs Empty = new CacheToGitHubActionsArgs();
|
||||
|
||||
/**
|
||||
* Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
@Import(name="ignoreError")
|
||||
private @Nullable Output<Boolean> ignoreError;
|
||||
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
@Import(name="mode")
|
||||
private @Nullable Output<CacheMode> mode;
|
||||
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheMode>> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="scope")
|
||||
private @Nullable Output<String> scope;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> scope() {
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="token")
|
||||
private @Nullable Output<String> token;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
@Import(name="url")
|
||||
private @Nullable Output<String> url;
|
||||
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
private CacheToGitHubActionsArgs() {}
|
||||
|
||||
private CacheToGitHubActionsArgs(CacheToGitHubActionsArgs $) {
|
||||
this.ignoreError = $.ignoreError;
|
||||
this.mode = $.mode;
|
||||
this.scope = $.scope;
|
||||
this.token = $.token;
|
||||
this.url = $.url;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheToGitHubActionsArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheToGitHubActionsArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheToGitHubActionsArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheToGitHubActionsArgs defaults) {
|
||||
$ = new CacheToGitHubActionsArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(@Nullable Output<Boolean> ignoreError) {
|
||||
$.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(Boolean ignoreError) {
|
||||
return ignoreError(Output.of(ignoreError));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(@Nullable Output<CacheMode> mode) {
|
||||
$.mode = mode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(CacheMode mode) {
|
||||
return mode(Output.of(mode));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param scope 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder scope(@Nullable Output<String> scope) {
|
||||
$.scope = scope;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param scope 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder scope(String scope) {
|
||||
return scope(Output.of(scope));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(@Nullable Output<String> token) {
|
||||
$.token = token;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param token 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder token(String token) {
|
||||
return token(Output.of(token));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(@Nullable Output<String> url) {
|
||||
$.url = url;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param url The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder url(String url) {
|
||||
return url(Output.of(url));
|
||||
}
|
||||
|
||||
public CacheToGitHubActionsArgs build() {
|
||||
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||
$.scope = Codegen.stringProp("scope").output().arg($.scope).env("buildkit").def("").getNullable();
|
||||
$.token = Codegen.stringProp("token").secret().arg($.token).env("ACTIONS_RUNTIME_TOKEN").def("").getNullable();
|
||||
$.url = Codegen.stringProp("url").output().arg($.url).env("ACTIONS_CACHE_URL").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
32
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToInlineArgs.java
generated
Normal file
32
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToInlineArgs.java
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! ***
|
||||
|
||||
package com.pulumi.dockerbuild.inputs;
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Include an inline cache with the exported image.
|
||||
*
|
||||
*/
|
||||
public final class CacheToInlineArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToInlineArgs Empty = new CacheToInlineArgs();
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheToInlineArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheToInlineArgs();
|
||||
}
|
||||
public CacheToInlineArgs build() {
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
282
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToLocalArgs.java
generated
Normal file
282
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToLocalArgs.java
generated
Normal file
@@ -0,0 +1,282 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheToLocalArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToLocalArgs Empty = new CacheToLocalArgs();
|
||||
|
||||
/**
|
||||
* The compression type to use.
|
||||
*
|
||||
*/
|
||||
@Import(name="compression")
|
||||
private @Nullable Output<CompressionType> compression;
|
||||
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CompressionType>> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
@Import(name="compressionLevel")
|
||||
private @Nullable Output<Integer> compressionLevel;
|
||||
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Integer>> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Path of the local directory to export the cache.
|
||||
*
|
||||
*/
|
||||
@Import(name="dest", required=true)
|
||||
private Output<String> dest;
|
||||
|
||||
/**
|
||||
* @return Path of the local directory to export the cache.
|
||||
*
|
||||
*/
|
||||
public Output<String> dest() {
|
||||
return this.dest;
|
||||
}
|
||||
|
||||
/**
|
||||
* Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
@Import(name="forceCompression")
|
||||
private @Nullable Output<Boolean> forceCompression;
|
||||
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
@Import(name="ignoreError")
|
||||
private @Nullable Output<Boolean> ignoreError;
|
||||
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
@Import(name="mode")
|
||||
private @Nullable Output<CacheMode> mode;
|
||||
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheMode>> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
|
||||
private CacheToLocalArgs() {}
|
||||
|
||||
private CacheToLocalArgs(CacheToLocalArgs $) {
|
||||
this.compression = $.compression;
|
||||
this.compressionLevel = $.compressionLevel;
|
||||
this.dest = $.dest;
|
||||
this.forceCompression = $.forceCompression;
|
||||
this.ignoreError = $.ignoreError;
|
||||
this.mode = $.mode;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheToLocalArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheToLocalArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheToLocalArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheToLocalArgs defaults) {
|
||||
$ = new CacheToLocalArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(@Nullable Output<CompressionType> compression) {
|
||||
$.compression = compression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(CompressionType compression) {
|
||||
return compression(Output.of(compression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(@Nullable Output<Integer> compressionLevel) {
|
||||
$.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(Integer compressionLevel) {
|
||||
return compressionLevel(Output.of(compressionLevel));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest Path of the local directory to export the cache.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(Output<String> dest) {
|
||||
$.dest = dest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest Path of the local directory to export the cache.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(String dest) {
|
||||
return dest(Output.of(dest));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(@Nullable Output<Boolean> forceCompression) {
|
||||
$.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(Boolean forceCompression) {
|
||||
return forceCompression(Output.of(forceCompression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(@Nullable Output<Boolean> ignoreError) {
|
||||
$.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(Boolean ignoreError) {
|
||||
return ignoreError(Output.of(ignoreError));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(@Nullable Output<CacheMode> mode) {
|
||||
$.mode = mode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(CacheMode mode) {
|
||||
return mode(Output.of(mode));
|
||||
}
|
||||
|
||||
public CacheToLocalArgs build() {
|
||||
$.compression = Codegen.objectProp("compression", CompressionType.class).output().arg($.compression).def(CompressionType.Gzip).getNullable();
|
||||
$.compressionLevel = Codegen.integerProp("compressionLevel").output().arg($.compressionLevel).def(0).getNullable();
|
||||
if ($.dest == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToLocalArgs", "dest");
|
||||
}
|
||||
$.forceCompression = Codegen.booleanProp("forceCompression").output().arg($.forceCompression).def(false).getNullable();
|
||||
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
386
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToRegistryArgs.java
generated
Normal file
386
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToRegistryArgs.java
generated
Normal file
@@ -0,0 +1,386 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheToRegistryArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToRegistryArgs Empty = new CacheToRegistryArgs();
|
||||
|
||||
/**
|
||||
* The compression type to use.
|
||||
*
|
||||
*/
|
||||
@Import(name="compression")
|
||||
private @Nullable Output<CompressionType> compression;
|
||||
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CompressionType>> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
@Import(name="compressionLevel")
|
||||
private @Nullable Output<Integer> compressionLevel;
|
||||
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Integer>> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
@Import(name="forceCompression")
|
||||
private @Nullable Output<Boolean> forceCompression;
|
||||
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
@Import(name="ignoreError")
|
||||
private @Nullable Output<Boolean> ignoreError;
|
||||
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="imageManifest")
|
||||
private @Nullable Output<Boolean> imageManifest;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> imageManifest() {
|
||||
return Optional.ofNullable(this.imageManifest);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
@Import(name="mode")
|
||||
private @Nullable Output<CacheMode> mode;
|
||||
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheMode>> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether to use OCI media types in exported manifests. Defaults to
|
||||
* `true`.
|
||||
*
|
||||
*/
|
||||
@Import(name="ociMediaTypes")
|
||||
private @Nullable Output<Boolean> ociMediaTypes;
|
||||
|
||||
/**
|
||||
* @return Whether to use OCI media types in exported manifests. Defaults to
|
||||
* `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
@Import(name="ref", required=true)
|
||||
private Output<String> ref;
|
||||
|
||||
/**
|
||||
* @return Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
public Output<String> ref() {
|
||||
return this.ref;
|
||||
}
|
||||
|
||||
private CacheToRegistryArgs() {}
|
||||
|
||||
private CacheToRegistryArgs(CacheToRegistryArgs $) {
|
||||
this.compression = $.compression;
|
||||
this.compressionLevel = $.compressionLevel;
|
||||
this.forceCompression = $.forceCompression;
|
||||
this.ignoreError = $.ignoreError;
|
||||
this.imageManifest = $.imageManifest;
|
||||
this.mode = $.mode;
|
||||
this.ociMediaTypes = $.ociMediaTypes;
|
||||
this.ref = $.ref;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheToRegistryArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheToRegistryArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheToRegistryArgs();
|
||||
}
|
||||
|
||||
public Builder(CacheToRegistryArgs defaults) {
|
||||
$ = new CacheToRegistryArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(@Nullable Output<CompressionType> compression) {
|
||||
$.compression = compression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(CompressionType compression) {
|
||||
return compression(Output.of(compression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(@Nullable Output<Integer> compressionLevel) {
|
||||
$.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(Integer compressionLevel) {
|
||||
return compressionLevel(Output.of(compressionLevel));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(@Nullable Output<Boolean> forceCompression) {
|
||||
$.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(Boolean forceCompression) {
|
||||
return forceCompression(Output.of(forceCompression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(@Nullable Output<Boolean> ignoreError) {
|
||||
$.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(Boolean ignoreError) {
|
||||
return ignoreError(Output.of(ignoreError));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param imageManifest 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder imageManifest(@Nullable Output<Boolean> imageManifest) {
|
||||
$.imageManifest = imageManifest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param imageManifest 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder imageManifest(Boolean imageManifest) {
|
||||
return imageManifest(Output.of(imageManifest));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(@Nullable Output<CacheMode> mode) {
|
||||
$.mode = mode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(CacheMode mode) {
|
||||
return mode(Output.of(mode));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Whether to use OCI media types in exported manifests. Defaults to
|
||||
* `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(@Nullable Output<Boolean> ociMediaTypes) {
|
||||
$.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Whether to use OCI media types in exported manifests. Defaults to
|
||||
* `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(Boolean ociMediaTypes) {
|
||||
return ociMediaTypes(Output.of(ociMediaTypes));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ref Fully qualified name of the cache image to import.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ref(Output<String> ref) {
|
||||
$.ref = ref;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ref Fully qualified name of the cache image to import.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ref(String ref) {
|
||||
return ref(Output.of(ref));
|
||||
}
|
||||
|
||||
public CacheToRegistryArgs build() {
|
||||
$.compression = Codegen.objectProp("compression", CompressionType.class).output().arg($.compression).def(CompressionType.Gzip).getNullable();
|
||||
$.compressionLevel = Codegen.integerProp("compressionLevel").output().arg($.compressionLevel).def(0).getNullable();
|
||||
$.forceCompression = Codegen.booleanProp("forceCompression").output().arg($.forceCompression).def(false).getNullable();
|
||||
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
||||
$.imageManifest = Codegen.booleanProp("imageManifest").output().arg($.imageManifest).def(false).getNullable();
|
||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||
$.ociMediaTypes = Codegen.booleanProp("ociMediaTypes").output().arg($.ociMediaTypes).def(true).getNullable();
|
||||
if ($.ref == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToRegistryArgs", "ref");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
503
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToS3Args.java
generated
Normal file
503
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/CacheToS3Args.java
generated
Normal file
@@ -0,0 +1,503 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class CacheToS3Args extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final CacheToS3Args Empty = new CacheToS3Args();
|
||||
|
||||
/**
|
||||
* Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
@Import(name="accessKeyId")
|
||||
private @Nullable Output<String> accessKeyId;
|
||||
|
||||
/**
|
||||
* @return Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> accessKeyId() {
|
||||
return Optional.ofNullable(this.accessKeyId);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
@Import(name="blobsPrefix")
|
||||
private @Nullable Output<String> blobsPrefix;
|
||||
|
||||
/**
|
||||
* @return Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> blobsPrefix() {
|
||||
return Optional.ofNullable(this.blobsPrefix);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
@Import(name="bucket", required=true)
|
||||
private Output<String> bucket;
|
||||
|
||||
/**
|
||||
* @return Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public Output<String> bucket() {
|
||||
return this.bucket;
|
||||
}
|
||||
|
||||
/**
|
||||
* Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
@Import(name="endpointUrl")
|
||||
private @Nullable Output<String> endpointUrl;
|
||||
|
||||
/**
|
||||
* @return Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> endpointUrl() {
|
||||
return Optional.ofNullable(this.endpointUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
@Import(name="ignoreError")
|
||||
private @Nullable Output<Boolean> ignoreError;
|
||||
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
@Import(name="manifestsPrefix")
|
||||
private @Nullable Output<String> manifestsPrefix;
|
||||
|
||||
/**
|
||||
* @return Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> manifestsPrefix() {
|
||||
return Optional.ofNullable(this.manifestsPrefix);
|
||||
}
|
||||
|
||||
/**
|
||||
* The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
@Import(name="mode")
|
||||
private @Nullable Output<CacheMode> mode;
|
||||
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CacheMode>> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name of the cache image.
|
||||
*
|
||||
*/
|
||||
@Import(name="name")
|
||||
private @Nullable Output<String> name;
|
||||
|
||||
/**
|
||||
* @return Name of the cache image.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> name() {
|
||||
return Optional.ofNullable(this.name);
|
||||
}
|
||||
|
||||
/**
|
||||
* The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
@Import(name="region", required=true)
|
||||
private Output<String> region;
|
||||
|
||||
/**
|
||||
* @return The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
public Output<String> region() {
|
||||
return this.region;
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
@Import(name="secretAccessKey")
|
||||
private @Nullable Output<String> secretAccessKey;
|
||||
|
||||
/**
|
||||
* @return Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> secretAccessKey() {
|
||||
return Optional.ofNullable(this.secretAccessKey);
|
||||
}
|
||||
|
||||
/**
|
||||
* Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
@Import(name="sessionToken")
|
||||
private @Nullable Output<String> sessionToken;
|
||||
|
||||
/**
|
||||
* @return Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> sessionToken() {
|
||||
return Optional.ofNullable(this.sessionToken);
|
||||
}
|
||||
|
||||
/**
|
||||
* Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
@Import(name="usePathStyle")
|
||||
private @Nullable Output<Boolean> usePathStyle;
|
||||
|
||||
/**
|
||||
* @return Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> usePathStyle() {
|
||||
return Optional.ofNullable(this.usePathStyle);
|
||||
}
|
||||
|
||||
private CacheToS3Args() {}
|
||||
|
||||
private CacheToS3Args(CacheToS3Args $) {
|
||||
this.accessKeyId = $.accessKeyId;
|
||||
this.blobsPrefix = $.blobsPrefix;
|
||||
this.bucket = $.bucket;
|
||||
this.endpointUrl = $.endpointUrl;
|
||||
this.ignoreError = $.ignoreError;
|
||||
this.manifestsPrefix = $.manifestsPrefix;
|
||||
this.mode = $.mode;
|
||||
this.name = $.name;
|
||||
this.region = $.region;
|
||||
this.secretAccessKey = $.secretAccessKey;
|
||||
this.sessionToken = $.sessionToken;
|
||||
this.usePathStyle = $.usePathStyle;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(CacheToS3Args defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private CacheToS3Args $;
|
||||
|
||||
public Builder() {
|
||||
$ = new CacheToS3Args();
|
||||
}
|
||||
|
||||
public Builder(CacheToS3Args defaults) {
|
||||
$ = new CacheToS3Args(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accessKeyId Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder accessKeyId(@Nullable Output<String> accessKeyId) {
|
||||
$.accessKeyId = accessKeyId;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param accessKeyId Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder accessKeyId(String accessKeyId) {
|
||||
return accessKeyId(Output.of(accessKeyId));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param blobsPrefix Prefix to prepend to blob filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder blobsPrefix(@Nullable Output<String> blobsPrefix) {
|
||||
$.blobsPrefix = blobsPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param blobsPrefix Prefix to prepend to blob filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder blobsPrefix(String blobsPrefix) {
|
||||
return blobsPrefix(Output.of(blobsPrefix));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bucket Name of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder bucket(Output<String> bucket) {
|
||||
$.bucket = bucket;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param bucket Name of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder bucket(String bucket) {
|
||||
return bucket(Output.of(bucket));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param endpointUrl Endpoint of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder endpointUrl(@Nullable Output<String> endpointUrl) {
|
||||
$.endpointUrl = endpointUrl;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param endpointUrl Endpoint of the S3 bucket.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder endpointUrl(String endpointUrl) {
|
||||
return endpointUrl(Output.of(endpointUrl));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(@Nullable Output<Boolean> ignoreError) {
|
||||
$.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ignoreError Ignore errors caused by failed cache exports.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ignoreError(Boolean ignoreError) {
|
||||
return ignoreError(Output.of(ignoreError));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param manifestsPrefix Prefix to prepend on manifest filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder manifestsPrefix(@Nullable Output<String> manifestsPrefix) {
|
||||
$.manifestsPrefix = manifestsPrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param manifestsPrefix Prefix to prepend on manifest filenames.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder manifestsPrefix(String manifestsPrefix) {
|
||||
return manifestsPrefix(Output.of(manifestsPrefix));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(@Nullable Output<CacheMode> mode) {
|
||||
$.mode = mode;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param mode The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder mode(CacheMode mode) {
|
||||
return mode(Output.of(mode));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name Name of the cache image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(@Nullable Output<String> name) {
|
||||
$.name = name;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param name Name of the cache image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder name(String name) {
|
||||
return name(Output.of(name));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param region The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder region(Output<String> region) {
|
||||
$.region = region;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param region The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder region(String region) {
|
||||
return region(Output.of(region));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param secretAccessKey Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder secretAccessKey(@Nullable Output<String> secretAccessKey) {
|
||||
$.secretAccessKey = secretAccessKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param secretAccessKey Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder secretAccessKey(String secretAccessKey) {
|
||||
return secretAccessKey(Output.of(secretAccessKey));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sessionToken Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder sessionToken(@Nullable Output<String> sessionToken) {
|
||||
$.sessionToken = sessionToken;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param sessionToken Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder sessionToken(String sessionToken) {
|
||||
return sessionToken(Output.of(sessionToken));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param usePathStyle Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder usePathStyle(@Nullable Output<Boolean> usePathStyle) {
|
||||
$.usePathStyle = usePathStyle;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param usePathStyle Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder usePathStyle(Boolean usePathStyle) {
|
||||
return usePathStyle(Output.of(usePathStyle));
|
||||
}
|
||||
|
||||
public CacheToS3Args build() {
|
||||
$.accessKeyId = Codegen.stringProp("accessKeyId").output().arg($.accessKeyId).env("AWS_ACCESS_KEY_ID").def("").getNullable();
|
||||
if ($.bucket == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToS3Args", "bucket");
|
||||
}
|
||||
$.ignoreError = Codegen.booleanProp("ignoreError").output().arg($.ignoreError).def(false).getNullable();
|
||||
$.mode = Codegen.objectProp("mode", CacheMode.class).output().arg($.mode).def(CacheMode.Min).getNullable();
|
||||
$.region = Codegen.stringProp("region").output().arg($.region).env("AWS_REGION").def("").require();
|
||||
$.secretAccessKey = Codegen.stringProp("secretAccessKey").secret().arg($.secretAccessKey).env("AWS_SECRET_ACCESS_KEY").def("").getNullable();
|
||||
$.sessionToken = Codegen.stringProp("sessionToken").secret().arg($.sessionToken).env("AWS_SESSION_TOKEN").def("").getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
113
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ContextArgs.java
generated
Normal file
113
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ContextArgs.java
generated
Normal file
@@ -0,0 +1,113 @@
|
||||
// *** 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;
|
||||
|
||||
|
||||
public final class ContextArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ContextArgs Empty = new ContextArgs();
|
||||
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
|
||||
private ContextArgs() {}
|
||||
|
||||
private ContextArgs(ContextArgs $) {
|
||||
this.location = $.location;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ContextArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ContextArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ContextArgs();
|
||||
}
|
||||
|
||||
public Builder(ContextArgs defaults) {
|
||||
$ = new ContextArgs(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));
|
||||
}
|
||||
|
||||
public ContextArgs build() {
|
||||
if ($.location == null) {
|
||||
throw new MissingRequiredPropertyException("ContextArgs", "location");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
160
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/DockerfileArgs.java
generated
Normal file
160
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/DockerfileArgs.java
generated
Normal file
@@ -0,0 +1,160 @@
|
||||
// *** 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 DockerfileArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final DockerfileArgs Empty = new DockerfileArgs();
|
||||
|
||||
/**
|
||||
* Raw Dockerfile contents.
|
||||
*
|
||||
* Conflicts with `location`.
|
||||
*
|
||||
* Equivalent to invoking Docker with `-f -`.
|
||||
*
|
||||
*/
|
||||
@Import(name="inline")
|
||||
private @Nullable Output<String> inline;
|
||||
|
||||
/**
|
||||
* @return Raw Dockerfile contents.
|
||||
*
|
||||
* Conflicts with `location`.
|
||||
*
|
||||
* Equivalent to invoking Docker with `-f -`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> inline() {
|
||||
return Optional.ofNullable(this.inline);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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`.
|
||||
*
|
||||
*/
|
||||
@Import(name="location")
|
||||
private @Nullable Output<String> location;
|
||||
|
||||
/**
|
||||
* @return 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`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> location() {
|
||||
return Optional.ofNullable(this.location);
|
||||
}
|
||||
|
||||
private DockerfileArgs() {}
|
||||
|
||||
private DockerfileArgs(DockerfileArgs $) {
|
||||
this.inline = $.inline;
|
||||
this.location = $.location;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(DockerfileArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private DockerfileArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new DockerfileArgs();
|
||||
}
|
||||
|
||||
public Builder(DockerfileArgs defaults) {
|
||||
$ = new DockerfileArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param inline Raw Dockerfile contents.
|
||||
*
|
||||
* Conflicts with `location`.
|
||||
*
|
||||
* Equivalent to invoking Docker with `-f -`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder inline(@Nullable Output<String> inline) {
|
||||
$.inline = inline;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param inline Raw Dockerfile contents.
|
||||
*
|
||||
* Conflicts with `location`.
|
||||
*
|
||||
* Equivalent to invoking Docker with `-f -`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder inline(String inline) {
|
||||
return inline(Output.of(inline));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param location 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`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder location(@Nullable Output<String> location) {
|
||||
$.location = location;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param location 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`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder location(String location) {
|
||||
return location(Output.of(location));
|
||||
}
|
||||
|
||||
public DockerfileArgs build() {
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
395
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportArgs.java
generated
Normal file
395
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportArgs.java
generated
Normal file
@@ -0,0 +1,395 @@
|
||||
// *** 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.ExportCacheOnlyArgs;
|
||||
import com.pulumi.dockerbuild.inputs.ExportDockerArgs;
|
||||
import com.pulumi.dockerbuild.inputs.ExportImageArgs;
|
||||
import com.pulumi.dockerbuild.inputs.ExportLocalArgs;
|
||||
import com.pulumi.dockerbuild.inputs.ExportOCIArgs;
|
||||
import com.pulumi.dockerbuild.inputs.ExportRegistryArgs;
|
||||
import com.pulumi.dockerbuild.inputs.ExportTarArgs;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class ExportArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportArgs Empty = new ExportArgs();
|
||||
|
||||
/**
|
||||
* A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
* just want to populate caches.
|
||||
*
|
||||
*/
|
||||
@Import(name="cacheonly")
|
||||
private @Nullable Output<ExportCacheOnlyArgs> cacheonly;
|
||||
|
||||
/**
|
||||
* @return A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
* just want to populate caches.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<ExportCacheOnlyArgs>> cacheonly() {
|
||||
return Optional.ofNullable(this.cacheonly);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export as a Docker image layout.
|
||||
*
|
||||
*/
|
||||
@Import(name="docker")
|
||||
private @Nullable Output<ExportDockerArgs> docker;
|
||||
|
||||
/**
|
||||
* @return Export as a Docker image layout.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<ExportDockerArgs>> docker() {
|
||||
return Optional.ofNullable(this.docker);
|
||||
}
|
||||
|
||||
/**
|
||||
* Outputs the build result into a container image format.
|
||||
*
|
||||
*/
|
||||
@Import(name="image")
|
||||
private @Nullable Output<ExportImageArgs> image;
|
||||
|
||||
/**
|
||||
* @return Outputs the build result into a container image format.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<ExportImageArgs>> image() {
|
||||
return Optional.ofNullable(this.image);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export to a local directory as files and directories.
|
||||
*
|
||||
*/
|
||||
@Import(name="local")
|
||||
private @Nullable Output<ExportLocalArgs> local;
|
||||
|
||||
/**
|
||||
* @return Export to a local directory as files and directories.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<ExportLocalArgs>> local() {
|
||||
return Optional.ofNullable(this.local);
|
||||
}
|
||||
|
||||
/**
|
||||
* Identical to the Docker exporter but uses OCI media types by default.
|
||||
*
|
||||
*/
|
||||
@Import(name="oci")
|
||||
private @Nullable Output<ExportOCIArgs> oci;
|
||||
|
||||
/**
|
||||
* @return Identical to the Docker exporter but uses OCI media types by default.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<ExportOCIArgs>> oci() {
|
||||
return Optional.ofNullable(this.oci);
|
||||
}
|
||||
|
||||
/**
|
||||
* A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=docker`)
|
||||
*
|
||||
*/
|
||||
@Import(name="raw")
|
||||
private @Nullable Output<String> raw;
|
||||
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=docker`)
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> raw() {
|
||||
return Optional.ofNullable(this.raw);
|
||||
}
|
||||
|
||||
/**
|
||||
* Identical to the Image exporter, but pushes by default.
|
||||
*
|
||||
*/
|
||||
@Import(name="registry")
|
||||
private @Nullable Output<ExportRegistryArgs> registry;
|
||||
|
||||
/**
|
||||
* @return Identical to the Image exporter, but pushes by default.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<ExportRegistryArgs>> registry() {
|
||||
return Optional.ofNullable(this.registry);
|
||||
}
|
||||
|
||||
/**
|
||||
* Export to a local directory as a tarball.
|
||||
*
|
||||
*/
|
||||
@Import(name="tar")
|
||||
private @Nullable Output<ExportTarArgs> tar;
|
||||
|
||||
/**
|
||||
* @return Export to a local directory as a tarball.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<ExportTarArgs>> tar() {
|
||||
return Optional.ofNullable(this.tar);
|
||||
}
|
||||
|
||||
private ExportArgs() {}
|
||||
|
||||
private ExportArgs(ExportArgs $) {
|
||||
this.cacheonly = $.cacheonly;
|
||||
this.disabled = $.disabled;
|
||||
this.docker = $.docker;
|
||||
this.image = $.image;
|
||||
this.local = $.local;
|
||||
this.oci = $.oci;
|
||||
this.raw = $.raw;
|
||||
this.registry = $.registry;
|
||||
this.tar = $.tar;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ExportArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportArgs();
|
||||
}
|
||||
|
||||
public Builder(ExportArgs defaults) {
|
||||
$ = new ExportArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cacheonly A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
* just want to populate caches.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder cacheonly(@Nullable Output<ExportCacheOnlyArgs> cacheonly) {
|
||||
$.cacheonly = cacheonly;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param cacheonly A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
* just want to populate caches.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder cacheonly(ExportCacheOnlyArgs cacheonly) {
|
||||
return cacheonly(Output.of(cacheonly));
|
||||
}
|
||||
|
||||
/**
|
||||
* @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 docker Export as a Docker image layout.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder docker(@Nullable Output<ExportDockerArgs> docker) {
|
||||
$.docker = docker;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param docker Export as a Docker image layout.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder docker(ExportDockerArgs docker) {
|
||||
return docker(Output.of(docker));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param image Outputs the build result into a container image format.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder image(@Nullable Output<ExportImageArgs> image) {
|
||||
$.image = image;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param image Outputs the build result into a container image format.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder image(ExportImageArgs image) {
|
||||
return image(Output.of(image));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param local Export to a local directory as files and directories.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder local(@Nullable Output<ExportLocalArgs> local) {
|
||||
$.local = local;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param local Export to a local directory as files and directories.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder local(ExportLocalArgs local) {
|
||||
return local(Output.of(local));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param oci Identical to the Docker exporter but uses OCI media types by default.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder oci(@Nullable Output<ExportOCIArgs> oci) {
|
||||
$.oci = oci;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param oci Identical to the Docker exporter but uses OCI media types by default.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder oci(ExportOCIArgs oci) {
|
||||
return oci(Output.of(oci));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param raw A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=docker`)
|
||||
*
|
||||
* @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=docker`)
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder raw(String raw) {
|
||||
return raw(Output.of(raw));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param registry Identical to the Image exporter, but pushes by default.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(@Nullable Output<ExportRegistryArgs> registry) {
|
||||
$.registry = registry;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param registry Identical to the Image exporter, but pushes by default.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder registry(ExportRegistryArgs registry) {
|
||||
return registry(Output.of(registry));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tar Export to a local directory as a tarball.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tar(@Nullable Output<ExportTarArgs> tar) {
|
||||
$.tar = tar;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tar Export to a local directory as a tarball.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tar(ExportTarArgs tar) {
|
||||
return tar(Output.of(tar));
|
||||
}
|
||||
|
||||
public ExportArgs build() {
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
28
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportCacheOnlyArgs.java
generated
Normal file
28
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportCacheOnlyArgs.java
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
// *** 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;
|
||||
|
||||
|
||||
|
||||
|
||||
public final class ExportCacheOnlyArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportCacheOnlyArgs Empty = new ExportCacheOnlyArgs();
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportCacheOnlyArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportCacheOnlyArgs();
|
||||
}
|
||||
public ExportCacheOnlyArgs build() {
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
363
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportDockerArgs.java
generated
Normal file
363
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportDockerArgs.java
generated
Normal file
@@ -0,0 +1,363 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class ExportDockerArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportDockerArgs Empty = new ExportDockerArgs();
|
||||
|
||||
/**
|
||||
* Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
@Import(name="annotations")
|
||||
private @Nullable Output<Map<String,String>> annotations;
|
||||
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Map<String,String>>> annotations() {
|
||||
return Optional.ofNullable(this.annotations);
|
||||
}
|
||||
|
||||
/**
|
||||
* The compression type to use.
|
||||
*
|
||||
*/
|
||||
@Import(name="compression")
|
||||
private @Nullable Output<CompressionType> compression;
|
||||
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CompressionType>> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
@Import(name="compressionLevel")
|
||||
private @Nullable Output<Integer> compressionLevel;
|
||||
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Integer>> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* The local export path.
|
||||
*
|
||||
*/
|
||||
@Import(name="dest")
|
||||
private @Nullable Output<String> dest;
|
||||
|
||||
/**
|
||||
* @return The local export path.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> dest() {
|
||||
return Optional.ofNullable(this.dest);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
@Import(name="forceCompression")
|
||||
private @Nullable Output<Boolean> forceCompression;
|
||||
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
@Import(name="names")
|
||||
private @Nullable Output<List<String>> names;
|
||||
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<List<String>>> names() {
|
||||
return Optional.ofNullable(this.names);
|
||||
}
|
||||
|
||||
/**
|
||||
* Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
@Import(name="ociMediaTypes")
|
||||
private @Nullable Output<Boolean> ociMediaTypes;
|
||||
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
@Import(name="tar")
|
||||
private @Nullable Output<Boolean> tar;
|
||||
|
||||
/**
|
||||
* @return Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> tar() {
|
||||
return Optional.ofNullable(this.tar);
|
||||
}
|
||||
|
||||
private ExportDockerArgs() {}
|
||||
|
||||
private ExportDockerArgs(ExportDockerArgs $) {
|
||||
this.annotations = $.annotations;
|
||||
this.compression = $.compression;
|
||||
this.compressionLevel = $.compressionLevel;
|
||||
this.dest = $.dest;
|
||||
this.forceCompression = $.forceCompression;
|
||||
this.names = $.names;
|
||||
this.ociMediaTypes = $.ociMediaTypes;
|
||||
this.tar = $.tar;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ExportDockerArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportDockerArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportDockerArgs();
|
||||
}
|
||||
|
||||
public Builder(ExportDockerArgs defaults) {
|
||||
$ = new ExportDockerArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(@Nullable Output<Map<String,String>> annotations) {
|
||||
$.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(Map<String,String> annotations) {
|
||||
return annotations(Output.of(annotations));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(@Nullable Output<CompressionType> compression) {
|
||||
$.compression = compression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(CompressionType compression) {
|
||||
return compression(Output.of(compression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(@Nullable Output<Integer> compressionLevel) {
|
||||
$.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(Integer compressionLevel) {
|
||||
return compressionLevel(Output.of(compressionLevel));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest The local export path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(@Nullable Output<String> dest) {
|
||||
$.dest = dest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest The local export path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(String dest) {
|
||||
return dest(Output.of(dest));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(@Nullable Output<Boolean> forceCompression) {
|
||||
$.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(Boolean forceCompression) {
|
||||
return forceCompression(Output.of(forceCompression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(@Nullable Output<List<String>> names) {
|
||||
$.names = names;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(List<String> names) {
|
||||
return names(Output.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(@Nullable Output<Boolean> ociMediaTypes) {
|
||||
$.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(Boolean ociMediaTypes) {
|
||||
return ociMediaTypes(Output.of(ociMediaTypes));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tar Bundle the output into a tarball layout.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tar(@Nullable Output<Boolean> tar) {
|
||||
$.tar = tar;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tar Bundle the output into a tarball layout.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tar(Boolean tar) {
|
||||
return tar(Output.of(tar));
|
||||
}
|
||||
|
||||
public ExportDockerArgs build() {
|
||||
$.compression = Codegen.objectProp("compression", CompressionType.class).output().arg($.compression).def(CompressionType.Gzip).getNullable();
|
||||
$.compressionLevel = Codegen.integerProp("compressionLevel").output().arg($.compressionLevel).def(0).getNullable();
|
||||
$.forceCompression = Codegen.booleanProp("forceCompression").output().arg($.forceCompression).def(false).getNullable();
|
||||
$.ociMediaTypes = Codegen.booleanProp("ociMediaTypes").output().arg($.ociMediaTypes).def(false).getNullable();
|
||||
$.tar = Codegen.booleanProp("tar").output().arg($.tar).def(true).getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
576
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportImageArgs.java
generated
Normal file
576
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportImageArgs.java
generated
Normal file
@@ -0,0 +1,576 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class ExportImageArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportImageArgs Empty = new ExportImageArgs();
|
||||
|
||||
/**
|
||||
* Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
@Import(name="annotations")
|
||||
private @Nullable Output<Map<String,String>> annotations;
|
||||
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Map<String,String>>> annotations() {
|
||||
return Optional.ofNullable(this.annotations);
|
||||
}
|
||||
|
||||
/**
|
||||
* The compression type to use.
|
||||
*
|
||||
*/
|
||||
@Import(name="compression")
|
||||
private @Nullable Output<CompressionType> compression;
|
||||
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CompressionType>> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
@Import(name="compressionLevel")
|
||||
private @Nullable Output<Integer> compressionLevel;
|
||||
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Integer>> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
@Import(name="danglingNamePrefix")
|
||||
private @Nullable Output<String> danglingNamePrefix;
|
||||
|
||||
/**
|
||||
* @return Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> danglingNamePrefix() {
|
||||
return Optional.ofNullable(this.danglingNamePrefix);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
@Import(name="forceCompression")
|
||||
private @Nullable Output<Boolean> forceCompression;
|
||||
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
@Import(name="insecure")
|
||||
private @Nullable Output<Boolean> insecure;
|
||||
|
||||
/**
|
||||
* @return Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> insecure() {
|
||||
return Optional.ofNullable(this.insecure);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
@Import(name="nameCanonical")
|
||||
private @Nullable Output<Boolean> nameCanonical;
|
||||
|
||||
/**
|
||||
* @return Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> nameCanonical() {
|
||||
return Optional.ofNullable(this.nameCanonical);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
@Import(name="names")
|
||||
private @Nullable Output<List<String>> names;
|
||||
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<List<String>>> names() {
|
||||
return Optional.ofNullable(this.names);
|
||||
}
|
||||
|
||||
/**
|
||||
* Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
@Import(name="ociMediaTypes")
|
||||
private @Nullable Output<Boolean> ociMediaTypes;
|
||||
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Push after creating the image. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
@Import(name="push")
|
||||
private @Nullable Output<Boolean> push;
|
||||
|
||||
/**
|
||||
* @return Push after creating the image. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> push() {
|
||||
return Optional.ofNullable(this.push);
|
||||
}
|
||||
|
||||
/**
|
||||
* Push image without name.
|
||||
*
|
||||
*/
|
||||
@Import(name="pushByDigest")
|
||||
private @Nullable Output<Boolean> pushByDigest;
|
||||
|
||||
/**
|
||||
* @return Push image without name.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> pushByDigest() {
|
||||
return Optional.ofNullable(this.pushByDigest);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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).
|
||||
*
|
||||
*/
|
||||
@Import(name="store")
|
||||
private @Nullable Output<Boolean> store;
|
||||
|
||||
/**
|
||||
* @return 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).
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> store() {
|
||||
return Optional.ofNullable(this.store);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
@Import(name="unpack")
|
||||
private @Nullable Output<Boolean> unpack;
|
||||
|
||||
/**
|
||||
* @return Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> unpack() {
|
||||
return Optional.ofNullable(this.unpack);
|
||||
}
|
||||
|
||||
private ExportImageArgs() {}
|
||||
|
||||
private ExportImageArgs(ExportImageArgs $) {
|
||||
this.annotations = $.annotations;
|
||||
this.compression = $.compression;
|
||||
this.compressionLevel = $.compressionLevel;
|
||||
this.danglingNamePrefix = $.danglingNamePrefix;
|
||||
this.forceCompression = $.forceCompression;
|
||||
this.insecure = $.insecure;
|
||||
this.nameCanonical = $.nameCanonical;
|
||||
this.names = $.names;
|
||||
this.ociMediaTypes = $.ociMediaTypes;
|
||||
this.push = $.push;
|
||||
this.pushByDigest = $.pushByDigest;
|
||||
this.store = $.store;
|
||||
this.unpack = $.unpack;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ExportImageArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportImageArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportImageArgs();
|
||||
}
|
||||
|
||||
public Builder(ExportImageArgs defaults) {
|
||||
$ = new ExportImageArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(@Nullable Output<Map<String,String>> annotations) {
|
||||
$.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(Map<String,String> annotations) {
|
||||
return annotations(Output.of(annotations));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(@Nullable Output<CompressionType> compression) {
|
||||
$.compression = compression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(CompressionType compression) {
|
||||
return compression(Output.of(compression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(@Nullable Output<Integer> compressionLevel) {
|
||||
$.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(Integer compressionLevel) {
|
||||
return compressionLevel(Output.of(compressionLevel));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param danglingNamePrefix Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder danglingNamePrefix(@Nullable Output<String> danglingNamePrefix) {
|
||||
$.danglingNamePrefix = danglingNamePrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param danglingNamePrefix Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder danglingNamePrefix(String danglingNamePrefix) {
|
||||
return danglingNamePrefix(Output.of(danglingNamePrefix));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(@Nullable Output<Boolean> forceCompression) {
|
||||
$.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(Boolean forceCompression) {
|
||||
return forceCompression(Output.of(forceCompression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param insecure Allow pushing to an insecure registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder insecure(@Nullable Output<Boolean> insecure) {
|
||||
$.insecure = insecure;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param insecure Allow pushing to an insecure registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder insecure(Boolean insecure) {
|
||||
return insecure(Output.of(insecure));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nameCanonical Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder nameCanonical(@Nullable Output<Boolean> nameCanonical) {
|
||||
$.nameCanonical = nameCanonical;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nameCanonical Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder nameCanonical(Boolean nameCanonical) {
|
||||
return nameCanonical(Output.of(nameCanonical));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(@Nullable Output<List<String>> names) {
|
||||
$.names = names;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(List<String> names) {
|
||||
return names(Output.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(@Nullable Output<Boolean> ociMediaTypes) {
|
||||
$.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(Boolean ociMediaTypes) {
|
||||
return ociMediaTypes(Output.of(ociMediaTypes));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param push Push after creating the image. Defaults to `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder push(@Nullable Output<Boolean> push) {
|
||||
$.push = push;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param push Push after creating the image. Defaults to `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder push(Boolean push) {
|
||||
return push(Output.of(push));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pushByDigest Push image without name.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder pushByDigest(@Nullable Output<Boolean> pushByDigest) {
|
||||
$.pushByDigest = pushByDigest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pushByDigest Push image without name.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder pushByDigest(Boolean pushByDigest) {
|
||||
return pushByDigest(Output.of(pushByDigest));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param store 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).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder store(@Nullable Output<Boolean> store) {
|
||||
$.store = store;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param store 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).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder store(Boolean store) {
|
||||
return store(Output.of(store));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param unpack Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder unpack(@Nullable Output<Boolean> unpack) {
|
||||
$.unpack = unpack;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param unpack Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder unpack(Boolean unpack) {
|
||||
return unpack(Output.of(unpack));
|
||||
}
|
||||
|
||||
public ExportImageArgs build() {
|
||||
$.compression = Codegen.objectProp("compression", CompressionType.class).output().arg($.compression).def(CompressionType.Gzip).getNullable();
|
||||
$.compressionLevel = Codegen.integerProp("compressionLevel").output().arg($.compressionLevel).def(0).getNullable();
|
||||
$.forceCompression = Codegen.booleanProp("forceCompression").output().arg($.forceCompression).def(false).getNullable();
|
||||
$.ociMediaTypes = Codegen.booleanProp("ociMediaTypes").output().arg($.ociMediaTypes).def(false).getNullable();
|
||||
$.store = Codegen.booleanProp("store").output().arg($.store).def(true).getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
85
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportLocalArgs.java
generated
Normal file
85
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportLocalArgs.java
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! ***
|
||||
|
||||
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;
|
||||
|
||||
|
||||
public final class ExportLocalArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportLocalArgs Empty = new ExportLocalArgs();
|
||||
|
||||
/**
|
||||
* Output path.
|
||||
*
|
||||
*/
|
||||
@Import(name="dest", required=true)
|
||||
private Output<String> dest;
|
||||
|
||||
/**
|
||||
* @return Output path.
|
||||
*
|
||||
*/
|
||||
public Output<String> dest() {
|
||||
return this.dest;
|
||||
}
|
||||
|
||||
private ExportLocalArgs() {}
|
||||
|
||||
private ExportLocalArgs(ExportLocalArgs $) {
|
||||
this.dest = $.dest;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ExportLocalArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportLocalArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportLocalArgs();
|
||||
}
|
||||
|
||||
public Builder(ExportLocalArgs defaults) {
|
||||
$ = new ExportLocalArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest Output path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(Output<String> dest) {
|
||||
$.dest = dest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest Output path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(String dest) {
|
||||
return dest(Output.of(dest));
|
||||
}
|
||||
|
||||
public ExportLocalArgs build() {
|
||||
if ($.dest == null) {
|
||||
throw new MissingRequiredPropertyException("ExportLocalArgs", "dest");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
363
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportOCIArgs.java
generated
Normal file
363
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportOCIArgs.java
generated
Normal file
@@ -0,0 +1,363 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class ExportOCIArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportOCIArgs Empty = new ExportOCIArgs();
|
||||
|
||||
/**
|
||||
* Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
@Import(name="annotations")
|
||||
private @Nullable Output<Map<String,String>> annotations;
|
||||
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Map<String,String>>> annotations() {
|
||||
return Optional.ofNullable(this.annotations);
|
||||
}
|
||||
|
||||
/**
|
||||
* The compression type to use.
|
||||
*
|
||||
*/
|
||||
@Import(name="compression")
|
||||
private @Nullable Output<CompressionType> compression;
|
||||
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CompressionType>> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
@Import(name="compressionLevel")
|
||||
private @Nullable Output<Integer> compressionLevel;
|
||||
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Integer>> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* The local export path.
|
||||
*
|
||||
*/
|
||||
@Import(name="dest")
|
||||
private @Nullable Output<String> dest;
|
||||
|
||||
/**
|
||||
* @return The local export path.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> dest() {
|
||||
return Optional.ofNullable(this.dest);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
@Import(name="forceCompression")
|
||||
private @Nullable Output<Boolean> forceCompression;
|
||||
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
@Import(name="names")
|
||||
private @Nullable Output<List<String>> names;
|
||||
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<List<String>>> names() {
|
||||
return Optional.ofNullable(this.names);
|
||||
}
|
||||
|
||||
/**
|
||||
* Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
@Import(name="ociMediaTypes")
|
||||
private @Nullable Output<Boolean> ociMediaTypes;
|
||||
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
@Import(name="tar")
|
||||
private @Nullable Output<Boolean> tar;
|
||||
|
||||
/**
|
||||
* @return Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> tar() {
|
||||
return Optional.ofNullable(this.tar);
|
||||
}
|
||||
|
||||
private ExportOCIArgs() {}
|
||||
|
||||
private ExportOCIArgs(ExportOCIArgs $) {
|
||||
this.annotations = $.annotations;
|
||||
this.compression = $.compression;
|
||||
this.compressionLevel = $.compressionLevel;
|
||||
this.dest = $.dest;
|
||||
this.forceCompression = $.forceCompression;
|
||||
this.names = $.names;
|
||||
this.ociMediaTypes = $.ociMediaTypes;
|
||||
this.tar = $.tar;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ExportOCIArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportOCIArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportOCIArgs();
|
||||
}
|
||||
|
||||
public Builder(ExportOCIArgs defaults) {
|
||||
$ = new ExportOCIArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(@Nullable Output<Map<String,String>> annotations) {
|
||||
$.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(Map<String,String> annotations) {
|
||||
return annotations(Output.of(annotations));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(@Nullable Output<CompressionType> compression) {
|
||||
$.compression = compression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(CompressionType compression) {
|
||||
return compression(Output.of(compression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(@Nullable Output<Integer> compressionLevel) {
|
||||
$.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(Integer compressionLevel) {
|
||||
return compressionLevel(Output.of(compressionLevel));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest The local export path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(@Nullable Output<String> dest) {
|
||||
$.dest = dest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest The local export path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(String dest) {
|
||||
return dest(Output.of(dest));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(@Nullable Output<Boolean> forceCompression) {
|
||||
$.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(Boolean forceCompression) {
|
||||
return forceCompression(Output.of(forceCompression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(@Nullable Output<List<String>> names) {
|
||||
$.names = names;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(List<String> names) {
|
||||
return names(Output.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(@Nullable Output<Boolean> ociMediaTypes) {
|
||||
$.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(Boolean ociMediaTypes) {
|
||||
return ociMediaTypes(Output.of(ociMediaTypes));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tar Bundle the output into a tarball layout.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tar(@Nullable Output<Boolean> tar) {
|
||||
$.tar = tar;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param tar Bundle the output into a tarball layout.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder tar(Boolean tar) {
|
||||
return tar(Output.of(tar));
|
||||
}
|
||||
|
||||
public ExportOCIArgs build() {
|
||||
$.compression = Codegen.objectProp("compression", CompressionType.class).output().arg($.compression).def(CompressionType.Gzip).getNullable();
|
||||
$.compressionLevel = Codegen.integerProp("compressionLevel").output().arg($.compressionLevel).def(0).getNullable();
|
||||
$.forceCompression = Codegen.booleanProp("forceCompression").output().arg($.forceCompression).def(false).getNullable();
|
||||
$.ociMediaTypes = Codegen.booleanProp("ociMediaTypes").output().arg($.ociMediaTypes).def(true).getNullable();
|
||||
$.tar = Codegen.booleanProp("tar").output().arg($.tar).def(true).getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
577
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportRegistryArgs.java
generated
Normal file
577
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportRegistryArgs.java
generated
Normal file
@@ -0,0 +1,577 @@
|
||||
// *** 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.core.internal.Codegen;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class ExportRegistryArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportRegistryArgs Empty = new ExportRegistryArgs();
|
||||
|
||||
/**
|
||||
* Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
@Import(name="annotations")
|
||||
private @Nullable Output<Map<String,String>> annotations;
|
||||
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Map<String,String>>> annotations() {
|
||||
return Optional.ofNullable(this.annotations);
|
||||
}
|
||||
|
||||
/**
|
||||
* The compression type to use.
|
||||
*
|
||||
*/
|
||||
@Import(name="compression")
|
||||
private @Nullable Output<CompressionType> compression;
|
||||
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<CompressionType>> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
@Import(name="compressionLevel")
|
||||
private @Nullable Output<Integer> compressionLevel;
|
||||
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Integer>> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
|
||||
/**
|
||||
* Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
@Import(name="danglingNamePrefix")
|
||||
private @Nullable Output<String> danglingNamePrefix;
|
||||
|
||||
/**
|
||||
* @return Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> danglingNamePrefix() {
|
||||
return Optional.ofNullable(this.danglingNamePrefix);
|
||||
}
|
||||
|
||||
/**
|
||||
* Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
@Import(name="forceCompression")
|
||||
private @Nullable Output<Boolean> forceCompression;
|
||||
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
@Import(name="insecure")
|
||||
private @Nullable Output<Boolean> insecure;
|
||||
|
||||
/**
|
||||
* @return Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> insecure() {
|
||||
return Optional.ofNullable(this.insecure);
|
||||
}
|
||||
|
||||
/**
|
||||
* Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
@Import(name="nameCanonical")
|
||||
private @Nullable Output<Boolean> nameCanonical;
|
||||
|
||||
/**
|
||||
* @return Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> nameCanonical() {
|
||||
return Optional.ofNullable(this.nameCanonical);
|
||||
}
|
||||
|
||||
/**
|
||||
* Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
@Import(name="names")
|
||||
private @Nullable Output<List<String>> names;
|
||||
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<List<String>>> names() {
|
||||
return Optional.ofNullable(this.names);
|
||||
}
|
||||
|
||||
/**
|
||||
* Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
@Import(name="ociMediaTypes")
|
||||
private @Nullable Output<Boolean> ociMediaTypes;
|
||||
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
|
||||
/**
|
||||
* Push after creating the image. Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
@Import(name="push")
|
||||
private @Nullable Output<Boolean> push;
|
||||
|
||||
/**
|
||||
* @return Push after creating the image. Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> push() {
|
||||
return Optional.ofNullable(this.push);
|
||||
}
|
||||
|
||||
/**
|
||||
* Push image without name.
|
||||
*
|
||||
*/
|
||||
@Import(name="pushByDigest")
|
||||
private @Nullable Output<Boolean> pushByDigest;
|
||||
|
||||
/**
|
||||
* @return Push image without name.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> pushByDigest() {
|
||||
return Optional.ofNullable(this.pushByDigest);
|
||||
}
|
||||
|
||||
/**
|
||||
* 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).
|
||||
*
|
||||
*/
|
||||
@Import(name="store")
|
||||
private @Nullable Output<Boolean> store;
|
||||
|
||||
/**
|
||||
* @return 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).
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> store() {
|
||||
return Optional.ofNullable(this.store);
|
||||
}
|
||||
|
||||
/**
|
||||
* Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
@Import(name="unpack")
|
||||
private @Nullable Output<Boolean> unpack;
|
||||
|
||||
/**
|
||||
* @return Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<Boolean>> unpack() {
|
||||
return Optional.ofNullable(this.unpack);
|
||||
}
|
||||
|
||||
private ExportRegistryArgs() {}
|
||||
|
||||
private ExportRegistryArgs(ExportRegistryArgs $) {
|
||||
this.annotations = $.annotations;
|
||||
this.compression = $.compression;
|
||||
this.compressionLevel = $.compressionLevel;
|
||||
this.danglingNamePrefix = $.danglingNamePrefix;
|
||||
this.forceCompression = $.forceCompression;
|
||||
this.insecure = $.insecure;
|
||||
this.nameCanonical = $.nameCanonical;
|
||||
this.names = $.names;
|
||||
this.ociMediaTypes = $.ociMediaTypes;
|
||||
this.push = $.push;
|
||||
this.pushByDigest = $.pushByDigest;
|
||||
this.store = $.store;
|
||||
this.unpack = $.unpack;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ExportRegistryArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportRegistryArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportRegistryArgs();
|
||||
}
|
||||
|
||||
public Builder(ExportRegistryArgs defaults) {
|
||||
$ = new ExportRegistryArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(@Nullable Output<Map<String,String>> annotations) {
|
||||
$.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param annotations Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder annotations(Map<String,String> annotations) {
|
||||
return annotations(Output.of(annotations));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(@Nullable Output<CompressionType> compression) {
|
||||
$.compression = compression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compression The compression type to use.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compression(CompressionType compression) {
|
||||
return compression(Output.of(compression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(@Nullable Output<Integer> compressionLevel) {
|
||||
$.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param compressionLevel Compression level from 0 to 22.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder compressionLevel(Integer compressionLevel) {
|
||||
return compressionLevel(Output.of(compressionLevel));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param danglingNamePrefix Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder danglingNamePrefix(@Nullable Output<String> danglingNamePrefix) {
|
||||
$.danglingNamePrefix = danglingNamePrefix;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param danglingNamePrefix Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder danglingNamePrefix(String danglingNamePrefix) {
|
||||
return danglingNamePrefix(Output.of(danglingNamePrefix));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(@Nullable Output<Boolean> forceCompression) {
|
||||
$.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param forceCompression Forcefully apply compression.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder forceCompression(Boolean forceCompression) {
|
||||
return forceCompression(Output.of(forceCompression));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param insecure Allow pushing to an insecure registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder insecure(@Nullable Output<Boolean> insecure) {
|
||||
$.insecure = insecure;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param insecure Allow pushing to an insecure registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder insecure(Boolean insecure) {
|
||||
return insecure(Output.of(insecure));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nameCanonical Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder nameCanonical(@Nullable Output<Boolean> nameCanonical) {
|
||||
$.nameCanonical = nameCanonical;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param nameCanonical Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder nameCanonical(Boolean nameCanonical) {
|
||||
return nameCanonical(Output.of(nameCanonical));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(@Nullable Output<List<String>> names) {
|
||||
$.names = names;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(List<String> names) {
|
||||
return names(Output.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param names Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(@Nullable Output<Boolean> ociMediaTypes) {
|
||||
$.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param ociMediaTypes Use OCI media types in exporter manifests.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder ociMediaTypes(Boolean ociMediaTypes) {
|
||||
return ociMediaTypes(Output.of(ociMediaTypes));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param push Push after creating the image. Defaults to `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder push(@Nullable Output<Boolean> push) {
|
||||
$.push = push;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param push Push after creating the image. Defaults to `true`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder push(Boolean push) {
|
||||
return push(Output.of(push));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pushByDigest Push image without name.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder pushByDigest(@Nullable Output<Boolean> pushByDigest) {
|
||||
$.pushByDigest = pushByDigest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param pushByDigest Push image without name.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder pushByDigest(Boolean pushByDigest) {
|
||||
return pushByDigest(Output.of(pushByDigest));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param store 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).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder store(@Nullable Output<Boolean> store) {
|
||||
$.store = store;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param store 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).
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder store(Boolean store) {
|
||||
return store(Output.of(store));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param unpack Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder unpack(@Nullable Output<Boolean> unpack) {
|
||||
$.unpack = unpack;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param unpack Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder unpack(Boolean unpack) {
|
||||
return unpack(Output.of(unpack));
|
||||
}
|
||||
|
||||
public ExportRegistryArgs build() {
|
||||
$.compression = Codegen.objectProp("compression", CompressionType.class).output().arg($.compression).def(CompressionType.Gzip).getNullable();
|
||||
$.compressionLevel = Codegen.integerProp("compressionLevel").output().arg($.compressionLevel).def(0).getNullable();
|
||||
$.forceCompression = Codegen.booleanProp("forceCompression").output().arg($.forceCompression).def(false).getNullable();
|
||||
$.ociMediaTypes = Codegen.booleanProp("ociMediaTypes").output().arg($.ociMediaTypes).def(false).getNullable();
|
||||
$.push = Codegen.booleanProp("push").output().arg($.push).def(true).getNullable();
|
||||
$.store = Codegen.booleanProp("store").output().arg($.store).def(true).getNullable();
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
85
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportTarArgs.java
generated
Normal file
85
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/ExportTarArgs.java
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! ***
|
||||
|
||||
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;
|
||||
|
||||
|
||||
public final class ExportTarArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final ExportTarArgs Empty = new ExportTarArgs();
|
||||
|
||||
/**
|
||||
* Output path.
|
||||
*
|
||||
*/
|
||||
@Import(name="dest", required=true)
|
||||
private Output<String> dest;
|
||||
|
||||
/**
|
||||
* @return Output path.
|
||||
*
|
||||
*/
|
||||
public Output<String> dest() {
|
||||
return this.dest;
|
||||
}
|
||||
|
||||
private ExportTarArgs() {}
|
||||
|
||||
private ExportTarArgs(ExportTarArgs $) {
|
||||
this.dest = $.dest;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(ExportTarArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private ExportTarArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new ExportTarArgs();
|
||||
}
|
||||
|
||||
public Builder(ExportTarArgs defaults) {
|
||||
$ = new ExportTarArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest Output path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(Output<String> dest) {
|
||||
$.dest = dest;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param dest Output path.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder dest(String dest) {
|
||||
return dest(Output.of(dest));
|
||||
}
|
||||
|
||||
public ExportTarArgs build() {
|
||||
if ($.dest == null) {
|
||||
throw new MissingRequiredPropertyException("ExportTarArgs", "dest");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
102
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/Registry.java
generated
Normal file
102
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/Registry.java
generated
Normal file
@@ -0,0 +1,102 @@
|
||||
// *** 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.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class Registry {
|
||||
/**
|
||||
* @return The registry's address (e.g. "docker.io").
|
||||
*
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* @return Password or token for the registry.
|
||||
*
|
||||
*/
|
||||
private @Nullable String password;
|
||||
/**
|
||||
* @return Username for the registry.
|
||||
*
|
||||
*/
|
||||
private @Nullable String username;
|
||||
|
||||
private Registry() {}
|
||||
/**
|
||||
* @return The registry's address (e.g. "docker.io").
|
||||
*
|
||||
*/
|
||||
public String address() {
|
||||
return this.address;
|
||||
}
|
||||
/**
|
||||
* @return Password or token for the registry.
|
||||
*
|
||||
*/
|
||||
public Optional<String> password() {
|
||||
return Optional.ofNullable(this.password);
|
||||
}
|
||||
/**
|
||||
* @return Username for the registry.
|
||||
*
|
||||
*/
|
||||
public Optional<String> username() {
|
||||
return Optional.ofNullable(this.username);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(Registry defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String address;
|
||||
private @Nullable String password;
|
||||
private @Nullable String username;
|
||||
public Builder() {}
|
||||
public Builder(Registry defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.address = defaults.address;
|
||||
this.password = defaults.password;
|
||||
this.username = defaults.username;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder address(String address) {
|
||||
if (address == null) {
|
||||
throw new MissingRequiredPropertyException("Registry", "address");
|
||||
}
|
||||
this.address = address;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder password(@Nullable String password) {
|
||||
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder username(@Nullable String username) {
|
||||
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
public Registry build() {
|
||||
final var _resultValue = new Registry();
|
||||
_resultValue.address = address;
|
||||
_resultValue.password = password;
|
||||
_resultValue.username = username;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
161
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/RegistryArgs.java
generated
Normal file
161
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/RegistryArgs.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 RegistryArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final RegistryArgs Empty = new RegistryArgs();
|
||||
|
||||
/**
|
||||
* The registry's address (e.g. "docker.io").
|
||||
*
|
||||
*/
|
||||
@Import(name="address", required=true)
|
||||
private Output<String> address;
|
||||
|
||||
/**
|
||||
* @return The registry's address (e.g. "docker.io").
|
||||
*
|
||||
*/
|
||||
public Output<String> address() {
|
||||
return this.address;
|
||||
}
|
||||
|
||||
/**
|
||||
* Password or token for the registry.
|
||||
*
|
||||
*/
|
||||
@Import(name="password")
|
||||
private @Nullable Output<String> password;
|
||||
|
||||
/**
|
||||
* @return Password or token for the registry.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> password() {
|
||||
return Optional.ofNullable(this.password);
|
||||
}
|
||||
|
||||
/**
|
||||
* Username for the registry.
|
||||
*
|
||||
*/
|
||||
@Import(name="username")
|
||||
private @Nullable Output<String> username;
|
||||
|
||||
/**
|
||||
* @return Username for the registry.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<String>> username() {
|
||||
return Optional.ofNullable(this.username);
|
||||
}
|
||||
|
||||
private RegistryArgs() {}
|
||||
|
||||
private RegistryArgs(RegistryArgs $) {
|
||||
this.address = $.address;
|
||||
this.password = $.password;
|
||||
this.username = $.username;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(RegistryArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private RegistryArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new RegistryArgs();
|
||||
}
|
||||
|
||||
public Builder(RegistryArgs defaults) {
|
||||
$ = new RegistryArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param address The registry's address (e.g. "docker.io").
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder address(Output<String> address) {
|
||||
$.address = address;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param address The registry's address (e.g. "docker.io").
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder address(String address) {
|
||||
return address(Output.of(address));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param password Password or token for the registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder password(@Nullable Output<String> password) {
|
||||
$.password = password;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param password Password or token for the registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder password(String password) {
|
||||
return password(Output.of(password));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param username Username for the registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder username(@Nullable Output<String> username) {
|
||||
$.username = username;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param username Username for the registry.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder username(String username) {
|
||||
return username(Output.of(username));
|
||||
}
|
||||
|
||||
public RegistryArgs build() {
|
||||
if ($.address == null) {
|
||||
throw new MissingRequiredPropertyException("RegistryArgs", "address");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
182
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/SSHArgs.java
generated
Normal file
182
sdk/java/src/main/java/com/pulumi/dockerbuild/inputs/SSHArgs.java
generated
Normal file
@@ -0,0 +1,182 @@
|
||||
// *** 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.List;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
|
||||
public final class SSHArgs extends com.pulumi.resources.ResourceArgs {
|
||||
|
||||
public static final SSHArgs Empty = new SSHArgs();
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="id", required=true)
|
||||
private Output<String> id;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Output<String> id() {
|
||||
return this.id;
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*
|
||||
*/
|
||||
@Import(name="paths")
|
||||
private @Nullable Output<List<String>> paths;
|
||||
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Output<List<String>>> paths() {
|
||||
return Optional.ofNullable(this.paths);
|
||||
}
|
||||
|
||||
private SSHArgs() {}
|
||||
|
||||
private SSHArgs(SSHArgs $) {
|
||||
this.id = $.id;
|
||||
this.paths = $.paths;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
public static Builder builder(SSHArgs defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
|
||||
public static final class Builder {
|
||||
private SSHArgs $;
|
||||
|
||||
public Builder() {
|
||||
$ = new SSHArgs();
|
||||
}
|
||||
|
||||
public Builder(SSHArgs defaults) {
|
||||
$ = new SSHArgs(Objects.requireNonNull(defaults));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param id 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder id(Output<String> id) {
|
||||
$.id = id;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param id 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder id(String id) {
|
||||
return id(Output.of(id));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param paths 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder paths(@Nullable Output<List<String>> paths) {
|
||||
$.paths = paths;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param paths 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder paths(List<String> paths) {
|
||||
return paths(Output.of(paths));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param paths 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.
|
||||
*
|
||||
* @return builder
|
||||
*
|
||||
*/
|
||||
public Builder paths(String... paths) {
|
||||
return paths(List.of(paths));
|
||||
}
|
||||
|
||||
public SSHArgs build() {
|
||||
if ($.id == null) {
|
||||
throw new MissingRequiredPropertyException("SSHArgs", "id");
|
||||
}
|
||||
return $;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
106
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/BuildContext.java
generated
Normal file
106
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/BuildContext.java
generated
Normal file
@@ -0,0 +1,106 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.outputs.Context;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class BuildContext {
|
||||
/**
|
||||
* @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.).
|
||||
*
|
||||
*/
|
||||
private String location;
|
||||
/**
|
||||
* @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.
|
||||
*
|
||||
*/
|
||||
private @Nullable Map<String,Context> named;
|
||||
|
||||
private BuildContext() {}
|
||||
/**
|
||||
* @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 String location() {
|
||||
return this.location;
|
||||
}
|
||||
/**
|
||||
* @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 Map<String,Context> named() {
|
||||
return this.named == null ? Map.of() : this.named;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(BuildContext defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String location;
|
||||
private @Nullable Map<String,Context> named;
|
||||
public Builder() {}
|
||||
public Builder(BuildContext defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.location = defaults.location;
|
||||
this.named = defaults.named;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder location(String location) {
|
||||
if (location == null) {
|
||||
throw new MissingRequiredPropertyException("BuildContext", "location");
|
||||
}
|
||||
this.location = location;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder named(@Nullable Map<String,Context> named) {
|
||||
|
||||
this.named = named;
|
||||
return this;
|
||||
}
|
||||
public BuildContext build() {
|
||||
final var _resultValue = new BuildContext();
|
||||
_resultValue.location = location;
|
||||
_resultValue.named = named;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
67
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/BuilderConfig.java
generated
Normal file
67
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/BuilderConfig.java
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! ***
|
||||
|
||||
package com.pulumi.dockerbuild.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class BuilderConfig {
|
||||
/**
|
||||
* @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.
|
||||
*
|
||||
*/
|
||||
private @Nullable String name;
|
||||
|
||||
private BuilderConfig() {}
|
||||
/**
|
||||
* @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<String> name() {
|
||||
return Optional.ofNullable(this.name);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(BuilderConfig defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String name;
|
||||
public Builder() {}
|
||||
public Builder(BuilderConfig defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.name = defaults.name;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder name(@Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
public BuilderConfig build() {
|
||||
final var _resultValue = new BuilderConfig();
|
||||
_resultValue.name = name;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
199
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFrom.java
generated
Normal file
199
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFrom.java
generated
Normal file
@@ -0,0 +1,199 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.outputs.CacheFromAzureBlob;
|
||||
import com.pulumi.dockerbuild.outputs.CacheFromGitHubActions;
|
||||
import com.pulumi.dockerbuild.outputs.CacheFromLocal;
|
||||
import com.pulumi.dockerbuild.outputs.CacheFromRegistry;
|
||||
import com.pulumi.dockerbuild.outputs.CacheFromS3;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheFrom {
|
||||
/**
|
||||
* @return Upload build caches to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheFromAzureBlob azblob;
|
||||
/**
|
||||
* @return When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean disabled;
|
||||
/**
|
||||
* @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.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheFromGitHubActions gha;
|
||||
/**
|
||||
* @return A simple backend which caches images on your local filesystem.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheFromLocal local;
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`).
|
||||
*
|
||||
*/
|
||||
private @Nullable String raw;
|
||||
/**
|
||||
* @return Upload build caches to remote registries.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheFromRegistry registry;
|
||||
/**
|
||||
* @return Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
* MinIO.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheFromS3 s3;
|
||||
|
||||
private CacheFrom() {}
|
||||
/**
|
||||
* @return Upload build caches to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheFromAzureBlob> azblob() {
|
||||
return Optional.ofNullable(this.azblob);
|
||||
}
|
||||
/**
|
||||
* @return When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> disabled() {
|
||||
return Optional.ofNullable(this.disabled);
|
||||
}
|
||||
/**
|
||||
* @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<CacheFromGitHubActions> gha() {
|
||||
return Optional.ofNullable(this.gha);
|
||||
}
|
||||
/**
|
||||
* @return A simple backend which caches images on your local filesystem.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheFromLocal> local() {
|
||||
return Optional.ofNullable(this.local);
|
||||
}
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`).
|
||||
*
|
||||
*/
|
||||
public Optional<String> raw() {
|
||||
return Optional.ofNullable(this.raw);
|
||||
}
|
||||
/**
|
||||
* @return Upload build caches to remote registries.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheFromRegistry> registry() {
|
||||
return Optional.ofNullable(this.registry);
|
||||
}
|
||||
/**
|
||||
* @return Upload build caches to AWS S3 or an S3-compatible services such as
|
||||
* MinIO.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheFromS3> s3() {
|
||||
return Optional.ofNullable(this.s3);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheFrom defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable CacheFromAzureBlob azblob;
|
||||
private @Nullable Boolean disabled;
|
||||
private @Nullable CacheFromGitHubActions gha;
|
||||
private @Nullable CacheFromLocal local;
|
||||
private @Nullable String raw;
|
||||
private @Nullable CacheFromRegistry registry;
|
||||
private @Nullable CacheFromS3 s3;
|
||||
public Builder() {}
|
||||
public Builder(CacheFrom defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.azblob = defaults.azblob;
|
||||
this.disabled = defaults.disabled;
|
||||
this.gha = defaults.gha;
|
||||
this.local = defaults.local;
|
||||
this.raw = defaults.raw;
|
||||
this.registry = defaults.registry;
|
||||
this.s3 = defaults.s3;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder azblob(@Nullable CacheFromAzureBlob azblob) {
|
||||
|
||||
this.azblob = azblob;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder disabled(@Nullable Boolean disabled) {
|
||||
|
||||
this.disabled = disabled;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder gha(@Nullable CacheFromGitHubActions gha) {
|
||||
|
||||
this.gha = gha;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder local(@Nullable CacheFromLocal local) {
|
||||
|
||||
this.local = local;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder raw(@Nullable String raw) {
|
||||
|
||||
this.raw = raw;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder registry(@Nullable CacheFromRegistry registry) {
|
||||
|
||||
this.registry = registry;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder s3(@Nullable CacheFromS3 s3) {
|
||||
|
||||
this.s3 = s3;
|
||||
return this;
|
||||
}
|
||||
public CacheFrom build() {
|
||||
final var _resultValue = new CacheFrom();
|
||||
_resultValue.azblob = azblob;
|
||||
_resultValue.disabled = disabled;
|
||||
_resultValue.gha = gha;
|
||||
_resultValue.local = local;
|
||||
_resultValue.raw = raw;
|
||||
_resultValue.registry = registry;
|
||||
_resultValue.s3 = s3;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
102
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromAzureBlob.java
generated
Normal file
102
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromAzureBlob.java
generated
Normal file
@@ -0,0 +1,102 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheFromAzureBlob {
|
||||
/**
|
||||
* @return Base URL of the storage account.
|
||||
*
|
||||
*/
|
||||
private @Nullable String accountUrl;
|
||||
/**
|
||||
* @return The name of the cache image.
|
||||
*
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* @return Blob storage account key.
|
||||
*
|
||||
*/
|
||||
private @Nullable String secretAccessKey;
|
||||
|
||||
private CacheFromAzureBlob() {}
|
||||
/**
|
||||
* @return Base URL of the storage account.
|
||||
*
|
||||
*/
|
||||
public Optional<String> accountUrl() {
|
||||
return Optional.ofNullable(this.accountUrl);
|
||||
}
|
||||
/**
|
||||
* @return The name of the cache image.
|
||||
*
|
||||
*/
|
||||
public String name() {
|
||||
return this.name;
|
||||
}
|
||||
/**
|
||||
* @return Blob storage account key.
|
||||
*
|
||||
*/
|
||||
public Optional<String> secretAccessKey() {
|
||||
return Optional.ofNullable(this.secretAccessKey);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheFromAzureBlob defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String accountUrl;
|
||||
private String name;
|
||||
private @Nullable String secretAccessKey;
|
||||
public Builder() {}
|
||||
public Builder(CacheFromAzureBlob defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.accountUrl = defaults.accountUrl;
|
||||
this.name = defaults.name;
|
||||
this.secretAccessKey = defaults.secretAccessKey;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder accountUrl(@Nullable String accountUrl) {
|
||||
|
||||
this.accountUrl = accountUrl;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder name(String name) {
|
||||
if (name == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromAzureBlob", "name");
|
||||
}
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder secretAccessKey(@Nullable String secretAccessKey) {
|
||||
|
||||
this.secretAccessKey = secretAccessKey;
|
||||
return this;
|
||||
}
|
||||
public CacheFromAzureBlob build() {
|
||||
final var _resultValue = new CacheFromAzureBlob();
|
||||
_resultValue.accountUrl = accountUrl;
|
||||
_resultValue.name = name;
|
||||
_resultValue.secretAccessKey = secretAccessKey;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
123
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromGitHubActions.java
generated
Normal file
123
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromGitHubActions.java
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! ***
|
||||
|
||||
package com.pulumi.dockerbuild.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheFromGitHubActions {
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable String scope;
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable String token;
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
private @Nullable String url;
|
||||
|
||||
private CacheFromGitHubActions() {}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<String> scope() {
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<String> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<String> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheFromGitHubActions defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String scope;
|
||||
private @Nullable String token;
|
||||
private @Nullable String url;
|
||||
public Builder() {}
|
||||
public Builder(CacheFromGitHubActions defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.scope = defaults.scope;
|
||||
this.token = defaults.token;
|
||||
this.url = defaults.url;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder scope(@Nullable String scope) {
|
||||
|
||||
this.scope = scope;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder token(@Nullable String token) {
|
||||
|
||||
this.token = token;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder url(@Nullable String url) {
|
||||
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
public CacheFromGitHubActions build() {
|
||||
final var _resultValue = new CacheFromGitHubActions();
|
||||
_resultValue.scope = scope;
|
||||
_resultValue.token = token;
|
||||
_resultValue.url = url;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
81
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromLocal.java
generated
Normal file
81
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromLocal.java
generated
Normal file
@@ -0,0 +1,81 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheFromLocal {
|
||||
/**
|
||||
* @return Digest of manifest to import.
|
||||
*
|
||||
*/
|
||||
private @Nullable String digest;
|
||||
/**
|
||||
* @return Path of the local directory where cache gets imported from.
|
||||
*
|
||||
*/
|
||||
private String src;
|
||||
|
||||
private CacheFromLocal() {}
|
||||
/**
|
||||
* @return Digest of manifest to import.
|
||||
*
|
||||
*/
|
||||
public Optional<String> digest() {
|
||||
return Optional.ofNullable(this.digest);
|
||||
}
|
||||
/**
|
||||
* @return Path of the local directory where cache gets imported from.
|
||||
*
|
||||
*/
|
||||
public String src() {
|
||||
return this.src;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheFromLocal defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String digest;
|
||||
private String src;
|
||||
public Builder() {}
|
||||
public Builder(CacheFromLocal defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.digest = defaults.digest;
|
||||
this.src = defaults.src;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder digest(@Nullable String digest) {
|
||||
|
||||
this.digest = digest;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder src(String src) {
|
||||
if (src == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromLocal", "src");
|
||||
}
|
||||
this.src = src;
|
||||
return this;
|
||||
}
|
||||
public CacheFromLocal build() {
|
||||
final var _resultValue = new CacheFromLocal();
|
||||
_resultValue.digest = digest;
|
||||
_resultValue.src = src;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
58
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromRegistry.java
generated
Normal file
58
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromRegistry.java
generated
Normal file
@@ -0,0 +1,58 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
@CustomType
|
||||
public final class CacheFromRegistry {
|
||||
/**
|
||||
* @return Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
private String ref;
|
||||
|
||||
private CacheFromRegistry() {}
|
||||
/**
|
||||
* @return Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
public String ref() {
|
||||
return this.ref;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheFromRegistry defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String ref;
|
||||
public Builder() {}
|
||||
public Builder(CacheFromRegistry defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.ref = defaults.ref;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder ref(String ref) {
|
||||
if (ref == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromRegistry", "ref");
|
||||
}
|
||||
this.ref = ref;
|
||||
return this;
|
||||
}
|
||||
public CacheFromRegistry build() {
|
||||
final var _resultValue = new CacheFromRegistry();
|
||||
_resultValue.ref = ref;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
252
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromS3.java
generated
Normal file
252
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheFromS3.java
generated
Normal file
@@ -0,0 +1,252 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheFromS3 {
|
||||
/**
|
||||
* @return Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String accessKeyId;
|
||||
/**
|
||||
* @return Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
private @Nullable String blobsPrefix;
|
||||
/**
|
||||
* @return Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
private String bucket;
|
||||
/**
|
||||
* @return Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
private @Nullable String endpointUrl;
|
||||
/**
|
||||
* @return Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
private @Nullable String manifestsPrefix;
|
||||
/**
|
||||
* @return Name of the cache image.
|
||||
*
|
||||
*/
|
||||
private @Nullable String name;
|
||||
/**
|
||||
* @return The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
private String region;
|
||||
/**
|
||||
* @return Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String secretAccessKey;
|
||||
/**
|
||||
* @return Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String sessionToken;
|
||||
/**
|
||||
* @return Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean usePathStyle;
|
||||
|
||||
private CacheFromS3() {}
|
||||
/**
|
||||
* @return Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> accessKeyId() {
|
||||
return Optional.ofNullable(this.accessKeyId);
|
||||
}
|
||||
/**
|
||||
* @return Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<String> blobsPrefix() {
|
||||
return Optional.ofNullable(this.blobsPrefix);
|
||||
}
|
||||
/**
|
||||
* @return Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public String bucket() {
|
||||
return this.bucket;
|
||||
}
|
||||
/**
|
||||
* @return Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public Optional<String> endpointUrl() {
|
||||
return Optional.ofNullable(this.endpointUrl);
|
||||
}
|
||||
/**
|
||||
* @return Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<String> manifestsPrefix() {
|
||||
return Optional.ofNullable(this.manifestsPrefix);
|
||||
}
|
||||
/**
|
||||
* @return Name of the cache image.
|
||||
*
|
||||
*/
|
||||
public Optional<String> name() {
|
||||
return Optional.ofNullable(this.name);
|
||||
}
|
||||
/**
|
||||
* @return The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
public String region() {
|
||||
return this.region;
|
||||
}
|
||||
/**
|
||||
* @return Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> secretAccessKey() {
|
||||
return Optional.ofNullable(this.secretAccessKey);
|
||||
}
|
||||
/**
|
||||
* @return Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> sessionToken() {
|
||||
return Optional.ofNullable(this.sessionToken);
|
||||
}
|
||||
/**
|
||||
* @return Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> usePathStyle() {
|
||||
return Optional.ofNullable(this.usePathStyle);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheFromS3 defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String accessKeyId;
|
||||
private @Nullable String blobsPrefix;
|
||||
private String bucket;
|
||||
private @Nullable String endpointUrl;
|
||||
private @Nullable String manifestsPrefix;
|
||||
private @Nullable String name;
|
||||
private String region;
|
||||
private @Nullable String secretAccessKey;
|
||||
private @Nullable String sessionToken;
|
||||
private @Nullable Boolean usePathStyle;
|
||||
public Builder() {}
|
||||
public Builder(CacheFromS3 defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.accessKeyId = defaults.accessKeyId;
|
||||
this.blobsPrefix = defaults.blobsPrefix;
|
||||
this.bucket = defaults.bucket;
|
||||
this.endpointUrl = defaults.endpointUrl;
|
||||
this.manifestsPrefix = defaults.manifestsPrefix;
|
||||
this.name = defaults.name;
|
||||
this.region = defaults.region;
|
||||
this.secretAccessKey = defaults.secretAccessKey;
|
||||
this.sessionToken = defaults.sessionToken;
|
||||
this.usePathStyle = defaults.usePathStyle;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder accessKeyId(@Nullable String accessKeyId) {
|
||||
|
||||
this.accessKeyId = accessKeyId;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder blobsPrefix(@Nullable String blobsPrefix) {
|
||||
|
||||
this.blobsPrefix = blobsPrefix;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder bucket(String bucket) {
|
||||
if (bucket == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromS3", "bucket");
|
||||
}
|
||||
this.bucket = bucket;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder endpointUrl(@Nullable String endpointUrl) {
|
||||
|
||||
this.endpointUrl = endpointUrl;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder manifestsPrefix(@Nullable String manifestsPrefix) {
|
||||
|
||||
this.manifestsPrefix = manifestsPrefix;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder name(@Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder region(String region) {
|
||||
if (region == null) {
|
||||
throw new MissingRequiredPropertyException("CacheFromS3", "region");
|
||||
}
|
||||
this.region = region;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder secretAccessKey(@Nullable String secretAccessKey) {
|
||||
|
||||
this.secretAccessKey = secretAccessKey;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder sessionToken(@Nullable String sessionToken) {
|
||||
|
||||
this.sessionToken = sessionToken;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder usePathStyle(@Nullable Boolean usePathStyle) {
|
||||
|
||||
this.usePathStyle = usePathStyle;
|
||||
return this;
|
||||
}
|
||||
public CacheFromS3 build() {
|
||||
final var _resultValue = new CacheFromS3();
|
||||
_resultValue.accessKeyId = accessKeyId;
|
||||
_resultValue.blobsPrefix = blobsPrefix;
|
||||
_resultValue.bucket = bucket;
|
||||
_resultValue.endpointUrl = endpointUrl;
|
||||
_resultValue.manifestsPrefix = manifestsPrefix;
|
||||
_resultValue.name = name;
|
||||
_resultValue.region = region;
|
||||
_resultValue.secretAccessKey = secretAccessKey;
|
||||
_resultValue.sessionToken = sessionToken;
|
||||
_resultValue.usePathStyle = usePathStyle;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
225
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheTo.java
generated
Normal file
225
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheTo.java
generated
Normal file
@@ -0,0 +1,225 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.outputs.CacheToAzureBlob;
|
||||
import com.pulumi.dockerbuild.outputs.CacheToGitHubActions;
|
||||
import com.pulumi.dockerbuild.outputs.CacheToInline;
|
||||
import com.pulumi.dockerbuild.outputs.CacheToLocal;
|
||||
import com.pulumi.dockerbuild.outputs.CacheToRegistry;
|
||||
import com.pulumi.dockerbuild.outputs.CacheToS3;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheTo {
|
||||
/**
|
||||
* @return Push cache to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheToAzureBlob azblob;
|
||||
/**
|
||||
* @return When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean disabled;
|
||||
/**
|
||||
* @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.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheToGitHubActions gha;
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheToInline inline;
|
||||
/**
|
||||
* @return A simple backend which caches imagines on your local filesystem.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheToLocal local;
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`)
|
||||
*
|
||||
*/
|
||||
private @Nullable String raw;
|
||||
/**
|
||||
* @return Push caches to remote registries. Incompatible with the `docker` build
|
||||
* driver.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheToRegistry registry;
|
||||
/**
|
||||
* @return Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheToS3 s3;
|
||||
|
||||
private CacheTo() {}
|
||||
/**
|
||||
* @return Push cache to Azure's blob storage service.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheToAzureBlob> azblob() {
|
||||
return Optional.ofNullable(this.azblob);
|
||||
}
|
||||
/**
|
||||
* @return When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> disabled() {
|
||||
return Optional.ofNullable(this.disabled);
|
||||
}
|
||||
/**
|
||||
* @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<CacheToGitHubActions> gha() {
|
||||
return Optional.ofNullable(this.gha);
|
||||
}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheToInline> inline() {
|
||||
return Optional.ofNullable(this.inline);
|
||||
}
|
||||
/**
|
||||
* @return A simple backend which caches imagines on your local filesystem.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheToLocal> local() {
|
||||
return Optional.ofNullable(this.local);
|
||||
}
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=inline`)
|
||||
*
|
||||
*/
|
||||
public Optional<String> raw() {
|
||||
return Optional.ofNullable(this.raw);
|
||||
}
|
||||
/**
|
||||
* @return Push caches to remote registries. Incompatible with the `docker` build
|
||||
* driver.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheToRegistry> registry() {
|
||||
return Optional.ofNullable(this.registry);
|
||||
}
|
||||
/**
|
||||
* @return Push cache to AWS S3 or S3-compatible services such as MinIO.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheToS3> s3() {
|
||||
return Optional.ofNullable(this.s3);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheTo defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable CacheToAzureBlob azblob;
|
||||
private @Nullable Boolean disabled;
|
||||
private @Nullable CacheToGitHubActions gha;
|
||||
private @Nullable CacheToInline inline;
|
||||
private @Nullable CacheToLocal local;
|
||||
private @Nullable String raw;
|
||||
private @Nullable CacheToRegistry registry;
|
||||
private @Nullable CacheToS3 s3;
|
||||
public Builder() {}
|
||||
public Builder(CacheTo defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.azblob = defaults.azblob;
|
||||
this.disabled = defaults.disabled;
|
||||
this.gha = defaults.gha;
|
||||
this.inline = defaults.inline;
|
||||
this.local = defaults.local;
|
||||
this.raw = defaults.raw;
|
||||
this.registry = defaults.registry;
|
||||
this.s3 = defaults.s3;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder azblob(@Nullable CacheToAzureBlob azblob) {
|
||||
|
||||
this.azblob = azblob;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder disabled(@Nullable Boolean disabled) {
|
||||
|
||||
this.disabled = disabled;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder gha(@Nullable CacheToGitHubActions gha) {
|
||||
|
||||
this.gha = gha;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder inline(@Nullable CacheToInline inline) {
|
||||
|
||||
this.inline = inline;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder local(@Nullable CacheToLocal local) {
|
||||
|
||||
this.local = local;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder raw(@Nullable String raw) {
|
||||
|
||||
this.raw = raw;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder registry(@Nullable CacheToRegistry registry) {
|
||||
|
||||
this.registry = registry;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder s3(@Nullable CacheToS3 s3) {
|
||||
|
||||
this.s3 = s3;
|
||||
return this;
|
||||
}
|
||||
public CacheTo build() {
|
||||
final var _resultValue = new CacheTo();
|
||||
_resultValue.azblob = azblob;
|
||||
_resultValue.disabled = disabled;
|
||||
_resultValue.gha = gha;
|
||||
_resultValue.inline = inline;
|
||||
_resultValue.local = local;
|
||||
_resultValue.raw = raw;
|
||||
_resultValue.registry = registry;
|
||||
_resultValue.s3 = s3;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
146
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToAzureBlob.java
generated
Normal file
146
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToAzureBlob.java
generated
Normal file
@@ -0,0 +1,146 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheToAzureBlob {
|
||||
/**
|
||||
* @return Base URL of the storage account.
|
||||
*
|
||||
*/
|
||||
private @Nullable String accountUrl;
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ignoreError;
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheMode mode;
|
||||
/**
|
||||
* @return The name of the cache image.
|
||||
*
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* @return Blob storage account key.
|
||||
*
|
||||
*/
|
||||
private @Nullable String secretAccessKey;
|
||||
|
||||
private CacheToAzureBlob() {}
|
||||
/**
|
||||
* @return Base URL of the storage account.
|
||||
*
|
||||
*/
|
||||
public Optional<String> accountUrl() {
|
||||
return Optional.ofNullable(this.accountUrl);
|
||||
}
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheMode> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
/**
|
||||
* @return The name of the cache image.
|
||||
*
|
||||
*/
|
||||
public String name() {
|
||||
return this.name;
|
||||
}
|
||||
/**
|
||||
* @return Blob storage account key.
|
||||
*
|
||||
*/
|
||||
public Optional<String> secretAccessKey() {
|
||||
return Optional.ofNullable(this.secretAccessKey);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheToAzureBlob defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String accountUrl;
|
||||
private @Nullable Boolean ignoreError;
|
||||
private @Nullable CacheMode mode;
|
||||
private String name;
|
||||
private @Nullable String secretAccessKey;
|
||||
public Builder() {}
|
||||
public Builder(CacheToAzureBlob defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.accountUrl = defaults.accountUrl;
|
||||
this.ignoreError = defaults.ignoreError;
|
||||
this.mode = defaults.mode;
|
||||
this.name = defaults.name;
|
||||
this.secretAccessKey = defaults.secretAccessKey;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder accountUrl(@Nullable String accountUrl) {
|
||||
|
||||
this.accountUrl = accountUrl;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ignoreError(@Nullable Boolean ignoreError) {
|
||||
|
||||
this.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder mode(@Nullable CacheMode mode) {
|
||||
|
||||
this.mode = mode;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder name(String name) {
|
||||
if (name == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToAzureBlob", "name");
|
||||
}
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder secretAccessKey(@Nullable String secretAccessKey) {
|
||||
|
||||
this.secretAccessKey = secretAccessKey;
|
||||
return this;
|
||||
}
|
||||
public CacheToAzureBlob build() {
|
||||
final var _resultValue = new CacheToAzureBlob();
|
||||
_resultValue.accountUrl = accountUrl;
|
||||
_resultValue.ignoreError = ignoreError;
|
||||
_resultValue.mode = mode;
|
||||
_resultValue.name = name;
|
||||
_resultValue.secretAccessKey = secretAccessKey;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
167
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToGitHubActions.java
generated
Normal file
167
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToGitHubActions.java
generated
Normal file
@@ -0,0 +1,167 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheToGitHubActions {
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ignoreError;
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheMode mode;
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable String scope;
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable String token;
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
private @Nullable String url;
|
||||
|
||||
private CacheToGitHubActions() {}
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheMode> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<String> scope() {
|
||||
return Optional.ofNullable(this.scope);
|
||||
}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<String> token() {
|
||||
return Optional.ofNullable(this.token);
|
||||
}
|
||||
/**
|
||||
* @return The cache server URL to use for artifacts.
|
||||
*
|
||||
* Defaults to `$ACTIONS_CACHE_URL`, although a separate action like
|
||||
* `crazy-max/ghaction-github-runtime` is recommended to expose this
|
||||
* environment variable to your jobs.
|
||||
*
|
||||
*/
|
||||
public Optional<String> url() {
|
||||
return Optional.ofNullable(this.url);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheToGitHubActions defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable Boolean ignoreError;
|
||||
private @Nullable CacheMode mode;
|
||||
private @Nullable String scope;
|
||||
private @Nullable String token;
|
||||
private @Nullable String url;
|
||||
public Builder() {}
|
||||
public Builder(CacheToGitHubActions defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.ignoreError = defaults.ignoreError;
|
||||
this.mode = defaults.mode;
|
||||
this.scope = defaults.scope;
|
||||
this.token = defaults.token;
|
||||
this.url = defaults.url;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder ignoreError(@Nullable Boolean ignoreError) {
|
||||
|
||||
this.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder mode(@Nullable CacheMode mode) {
|
||||
|
||||
this.mode = mode;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder scope(@Nullable String scope) {
|
||||
|
||||
this.scope = scope;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder token(@Nullable String token) {
|
||||
|
||||
this.token = token;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder url(@Nullable String url) {
|
||||
|
||||
this.url = url;
|
||||
return this;
|
||||
}
|
||||
public CacheToGitHubActions build() {
|
||||
final var _resultValue = new CacheToGitHubActions();
|
||||
_resultValue.ignoreError = ignoreError;
|
||||
_resultValue.mode = mode;
|
||||
_resultValue.scope = scope;
|
||||
_resultValue.token = token;
|
||||
_resultValue.url = url;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
32
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToInline.java
generated
Normal file
32
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToInline.java
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! ***
|
||||
|
||||
package com.pulumi.dockerbuild.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import java.util.Objects;
|
||||
|
||||
@CustomType
|
||||
public final class CacheToInline {
|
||||
private CacheToInline() {}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheToInline defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
public Builder() {}
|
||||
public Builder(CacheToInline defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
}
|
||||
|
||||
public CacheToInline build() {
|
||||
final var _resultValue = new CacheToInline();
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
169
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToLocal.java
generated
Normal file
169
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToLocal.java
generated
Normal file
@@ -0,0 +1,169 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheToLocal {
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
private @Nullable CompressionType compression;
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
private @Nullable Integer compressionLevel;
|
||||
/**
|
||||
* @return Path of the local directory to export the cache.
|
||||
*
|
||||
*/
|
||||
private String dest;
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean forceCompression;
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ignoreError;
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheMode mode;
|
||||
|
||||
private CacheToLocal() {}
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<CompressionType> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Integer> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
/**
|
||||
* @return Path of the local directory to export the cache.
|
||||
*
|
||||
*/
|
||||
public String dest() {
|
||||
return this.dest;
|
||||
}
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheMode> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheToLocal defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable CompressionType compression;
|
||||
private @Nullable Integer compressionLevel;
|
||||
private String dest;
|
||||
private @Nullable Boolean forceCompression;
|
||||
private @Nullable Boolean ignoreError;
|
||||
private @Nullable CacheMode mode;
|
||||
public Builder() {}
|
||||
public Builder(CacheToLocal defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.compression = defaults.compression;
|
||||
this.compressionLevel = defaults.compressionLevel;
|
||||
this.dest = defaults.dest;
|
||||
this.forceCompression = defaults.forceCompression;
|
||||
this.ignoreError = defaults.ignoreError;
|
||||
this.mode = defaults.mode;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder compression(@Nullable CompressionType compression) {
|
||||
|
||||
this.compression = compression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compressionLevel(@Nullable Integer compressionLevel) {
|
||||
|
||||
this.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder dest(String dest) {
|
||||
if (dest == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToLocal", "dest");
|
||||
}
|
||||
this.dest = dest;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder forceCompression(@Nullable Boolean forceCompression) {
|
||||
|
||||
this.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ignoreError(@Nullable Boolean ignoreError) {
|
||||
|
||||
this.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder mode(@Nullable CacheMode mode) {
|
||||
|
||||
this.mode = mode;
|
||||
return this;
|
||||
}
|
||||
public CacheToLocal build() {
|
||||
final var _resultValue = new CacheToLocal();
|
||||
_resultValue.compression = compression;
|
||||
_resultValue.compressionLevel = compressionLevel;
|
||||
_resultValue.dest = dest;
|
||||
_resultValue.forceCompression = forceCompression;
|
||||
_resultValue.ignoreError = ignoreError;
|
||||
_resultValue.mode = mode;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
225
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToRegistry.java
generated
Normal file
225
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToRegistry.java
generated
Normal file
@@ -0,0 +1,225 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheToRegistry {
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
private @Nullable CompressionType compression;
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
private @Nullable Integer compressionLevel;
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean forceCompression;
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ignoreError;
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean imageManifest;
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheMode mode;
|
||||
/**
|
||||
* @return Whether to use OCI media types in exported manifests. Defaults to
|
||||
* `true`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
/**
|
||||
* @return Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
private String ref;
|
||||
|
||||
private CacheToRegistry() {}
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<CompressionType> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Integer> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> imageManifest() {
|
||||
return Optional.ofNullable(this.imageManifest);
|
||||
}
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheMode> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
/**
|
||||
* @return Whether to use OCI media types in exported manifests. Defaults to
|
||||
* `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
/**
|
||||
* @return Fully qualified name of the cache image to import.
|
||||
*
|
||||
*/
|
||||
public String ref() {
|
||||
return this.ref;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheToRegistry defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable CompressionType compression;
|
||||
private @Nullable Integer compressionLevel;
|
||||
private @Nullable Boolean forceCompression;
|
||||
private @Nullable Boolean ignoreError;
|
||||
private @Nullable Boolean imageManifest;
|
||||
private @Nullable CacheMode mode;
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
private String ref;
|
||||
public Builder() {}
|
||||
public Builder(CacheToRegistry defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.compression = defaults.compression;
|
||||
this.compressionLevel = defaults.compressionLevel;
|
||||
this.forceCompression = defaults.forceCompression;
|
||||
this.ignoreError = defaults.ignoreError;
|
||||
this.imageManifest = defaults.imageManifest;
|
||||
this.mode = defaults.mode;
|
||||
this.ociMediaTypes = defaults.ociMediaTypes;
|
||||
this.ref = defaults.ref;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder compression(@Nullable CompressionType compression) {
|
||||
|
||||
this.compression = compression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compressionLevel(@Nullable Integer compressionLevel) {
|
||||
|
||||
this.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder forceCompression(@Nullable Boolean forceCompression) {
|
||||
|
||||
this.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ignoreError(@Nullable Boolean ignoreError) {
|
||||
|
||||
this.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder imageManifest(@Nullable Boolean imageManifest) {
|
||||
|
||||
this.imageManifest = imageManifest;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder mode(@Nullable CacheMode mode) {
|
||||
|
||||
this.mode = mode;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ociMediaTypes(@Nullable Boolean ociMediaTypes) {
|
||||
|
||||
this.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ref(String ref) {
|
||||
if (ref == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToRegistry", "ref");
|
||||
}
|
||||
this.ref = ref;
|
||||
return this;
|
||||
}
|
||||
public CacheToRegistry build() {
|
||||
final var _resultValue = new CacheToRegistry();
|
||||
_resultValue.compression = compression;
|
||||
_resultValue.compressionLevel = compressionLevel;
|
||||
_resultValue.forceCompression = forceCompression;
|
||||
_resultValue.ignoreError = ignoreError;
|
||||
_resultValue.imageManifest = imageManifest;
|
||||
_resultValue.mode = mode;
|
||||
_resultValue.ociMediaTypes = ociMediaTypes;
|
||||
_resultValue.ref = ref;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
295
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToS3.java
generated
Normal file
295
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/CacheToS3.java
generated
Normal file
@@ -0,0 +1,295 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CacheMode;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class CacheToS3 {
|
||||
/**
|
||||
* @return Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String accessKeyId;
|
||||
/**
|
||||
* @return Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
private @Nullable String blobsPrefix;
|
||||
/**
|
||||
* @return Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
private String bucket;
|
||||
/**
|
||||
* @return Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
private @Nullable String endpointUrl;
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ignoreError;
|
||||
/**
|
||||
* @return Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
private @Nullable String manifestsPrefix;
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
private @Nullable CacheMode mode;
|
||||
/**
|
||||
* @return Name of the cache image.
|
||||
*
|
||||
*/
|
||||
private @Nullable String name;
|
||||
/**
|
||||
* @return The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
private String region;
|
||||
/**
|
||||
* @return Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String secretAccessKey;
|
||||
/**
|
||||
* @return Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String sessionToken;
|
||||
/**
|
||||
* @return Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean usePathStyle;
|
||||
|
||||
private CacheToS3() {}
|
||||
/**
|
||||
* @return Defaults to `$AWS_ACCESS_KEY_ID`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> accessKeyId() {
|
||||
return Optional.ofNullable(this.accessKeyId);
|
||||
}
|
||||
/**
|
||||
* @return Prefix to prepend to blob filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<String> blobsPrefix() {
|
||||
return Optional.ofNullable(this.blobsPrefix);
|
||||
}
|
||||
/**
|
||||
* @return Name of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public String bucket() {
|
||||
return this.bucket;
|
||||
}
|
||||
/**
|
||||
* @return Endpoint of the S3 bucket.
|
||||
*
|
||||
*/
|
||||
public Optional<String> endpointUrl() {
|
||||
return Optional.ofNullable(this.endpointUrl);
|
||||
}
|
||||
/**
|
||||
* @return Ignore errors caused by failed cache exports.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ignoreError() {
|
||||
return Optional.ofNullable(this.ignoreError);
|
||||
}
|
||||
/**
|
||||
* @return Prefix to prepend on manifest filenames.
|
||||
*
|
||||
*/
|
||||
public Optional<String> manifestsPrefix() {
|
||||
return Optional.ofNullable(this.manifestsPrefix);
|
||||
}
|
||||
/**
|
||||
* @return The cache mode to use. Defaults to `min`.
|
||||
*
|
||||
*/
|
||||
public Optional<CacheMode> mode() {
|
||||
return Optional.ofNullable(this.mode);
|
||||
}
|
||||
/**
|
||||
* @return Name of the cache image.
|
||||
*
|
||||
*/
|
||||
public Optional<String> name() {
|
||||
return Optional.ofNullable(this.name);
|
||||
}
|
||||
/**
|
||||
* @return The geographic location of the bucket. Defaults to `$AWS_REGION`.
|
||||
*
|
||||
*/
|
||||
public String region() {
|
||||
return this.region;
|
||||
}
|
||||
/**
|
||||
* @return Defaults to `$AWS_SECRET_ACCESS_KEY`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> secretAccessKey() {
|
||||
return Optional.ofNullable(this.secretAccessKey);
|
||||
}
|
||||
/**
|
||||
* @return Defaults to `$AWS_SESSION_TOKEN`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> sessionToken() {
|
||||
return Optional.ofNullable(this.sessionToken);
|
||||
}
|
||||
/**
|
||||
* @return Uses `bucket` in the URL instead of hostname when `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> usePathStyle() {
|
||||
return Optional.ofNullable(this.usePathStyle);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(CacheToS3 defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String accessKeyId;
|
||||
private @Nullable String blobsPrefix;
|
||||
private String bucket;
|
||||
private @Nullable String endpointUrl;
|
||||
private @Nullable Boolean ignoreError;
|
||||
private @Nullable String manifestsPrefix;
|
||||
private @Nullable CacheMode mode;
|
||||
private @Nullable String name;
|
||||
private String region;
|
||||
private @Nullable String secretAccessKey;
|
||||
private @Nullable String sessionToken;
|
||||
private @Nullable Boolean usePathStyle;
|
||||
public Builder() {}
|
||||
public Builder(CacheToS3 defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.accessKeyId = defaults.accessKeyId;
|
||||
this.blobsPrefix = defaults.blobsPrefix;
|
||||
this.bucket = defaults.bucket;
|
||||
this.endpointUrl = defaults.endpointUrl;
|
||||
this.ignoreError = defaults.ignoreError;
|
||||
this.manifestsPrefix = defaults.manifestsPrefix;
|
||||
this.mode = defaults.mode;
|
||||
this.name = defaults.name;
|
||||
this.region = defaults.region;
|
||||
this.secretAccessKey = defaults.secretAccessKey;
|
||||
this.sessionToken = defaults.sessionToken;
|
||||
this.usePathStyle = defaults.usePathStyle;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder accessKeyId(@Nullable String accessKeyId) {
|
||||
|
||||
this.accessKeyId = accessKeyId;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder blobsPrefix(@Nullable String blobsPrefix) {
|
||||
|
||||
this.blobsPrefix = blobsPrefix;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder bucket(String bucket) {
|
||||
if (bucket == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToS3", "bucket");
|
||||
}
|
||||
this.bucket = bucket;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder endpointUrl(@Nullable String endpointUrl) {
|
||||
|
||||
this.endpointUrl = endpointUrl;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ignoreError(@Nullable Boolean ignoreError) {
|
||||
|
||||
this.ignoreError = ignoreError;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder manifestsPrefix(@Nullable String manifestsPrefix) {
|
||||
|
||||
this.manifestsPrefix = manifestsPrefix;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder mode(@Nullable CacheMode mode) {
|
||||
|
||||
this.mode = mode;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder name(@Nullable String name) {
|
||||
|
||||
this.name = name;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder region(String region) {
|
||||
if (region == null) {
|
||||
throw new MissingRequiredPropertyException("CacheToS3", "region");
|
||||
}
|
||||
this.region = region;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder secretAccessKey(@Nullable String secretAccessKey) {
|
||||
|
||||
this.secretAccessKey = secretAccessKey;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder sessionToken(@Nullable String sessionToken) {
|
||||
|
||||
this.sessionToken = sessionToken;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder usePathStyle(@Nullable Boolean usePathStyle) {
|
||||
|
||||
this.usePathStyle = usePathStyle;
|
||||
return this;
|
||||
}
|
||||
public CacheToS3 build() {
|
||||
final var _resultValue = new CacheToS3();
|
||||
_resultValue.accessKeyId = accessKeyId;
|
||||
_resultValue.blobsPrefix = blobsPrefix;
|
||||
_resultValue.bucket = bucket;
|
||||
_resultValue.endpointUrl = endpointUrl;
|
||||
_resultValue.ignoreError = ignoreError;
|
||||
_resultValue.manifestsPrefix = manifestsPrefix;
|
||||
_resultValue.mode = mode;
|
||||
_resultValue.name = name;
|
||||
_resultValue.region = region;
|
||||
_resultValue.secretAccessKey = secretAccessKey;
|
||||
_resultValue.sessionToken = sessionToken;
|
||||
_resultValue.usePathStyle = usePathStyle;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
72
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Context.java
generated
Normal file
72
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Context.java
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! ***
|
||||
|
||||
package com.pulumi.dockerbuild.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
@CustomType
|
||||
public final class Context {
|
||||
/**
|
||||
* @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.).
|
||||
*
|
||||
*/
|
||||
private String location;
|
||||
|
||||
private Context() {}
|
||||
/**
|
||||
* @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 String location() {
|
||||
return this.location;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(Context defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String location;
|
||||
public Builder() {}
|
||||
public Builder(Context defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.location = defaults.location;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder location(String location) {
|
||||
if (location == null) {
|
||||
throw new MissingRequiredPropertyException("Context", "location");
|
||||
}
|
||||
this.location = location;
|
||||
return this;
|
||||
}
|
||||
public Context build() {
|
||||
final var _resultValue = new Context();
|
||||
_resultValue.location = location;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
98
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Dockerfile.java
generated
Normal file
98
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Dockerfile.java
generated
Normal file
@@ -0,0 +1,98 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class Dockerfile {
|
||||
/**
|
||||
* @return Raw Dockerfile contents.
|
||||
*
|
||||
* Conflicts with `location`.
|
||||
*
|
||||
* Equivalent to invoking Docker with `-f -`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String inline;
|
||||
/**
|
||||
* @return 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`.
|
||||
*
|
||||
*/
|
||||
private @Nullable String location;
|
||||
|
||||
private Dockerfile() {}
|
||||
/**
|
||||
* @return Raw Dockerfile contents.
|
||||
*
|
||||
* Conflicts with `location`.
|
||||
*
|
||||
* Equivalent to invoking Docker with `-f -`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> inline() {
|
||||
return Optional.ofNullable(this.inline);
|
||||
}
|
||||
/**
|
||||
* @return 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`.
|
||||
*
|
||||
*/
|
||||
public Optional<String> location() {
|
||||
return Optional.ofNullable(this.location);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(Dockerfile defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable String inline;
|
||||
private @Nullable String location;
|
||||
public Builder() {}
|
||||
public Builder(Dockerfile defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.inline = defaults.inline;
|
||||
this.location = defaults.location;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder inline(@Nullable String inline) {
|
||||
|
||||
this.inline = inline;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder location(@Nullable String location) {
|
||||
|
||||
this.location = location;
|
||||
return this;
|
||||
}
|
||||
public Dockerfile build() {
|
||||
final var _resultValue = new Dockerfile();
|
||||
_resultValue.inline = inline;
|
||||
_resultValue.location = location;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
237
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Export.java
generated
Normal file
237
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Export.java
generated
Normal file
@@ -0,0 +1,237 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.outputs.ExportCacheOnly;
|
||||
import com.pulumi.dockerbuild.outputs.ExportDocker;
|
||||
import com.pulumi.dockerbuild.outputs.ExportImage;
|
||||
import com.pulumi.dockerbuild.outputs.ExportLocal;
|
||||
import com.pulumi.dockerbuild.outputs.ExportOCI;
|
||||
import com.pulumi.dockerbuild.outputs.ExportRegistry;
|
||||
import com.pulumi.dockerbuild.outputs.ExportTar;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class Export {
|
||||
/**
|
||||
* @return A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
* just want to populate caches.
|
||||
*
|
||||
*/
|
||||
private @Nullable ExportCacheOnly cacheonly;
|
||||
/**
|
||||
* @return When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean disabled;
|
||||
/**
|
||||
* @return Export as a Docker image layout.
|
||||
*
|
||||
*/
|
||||
private @Nullable ExportDocker docker;
|
||||
/**
|
||||
* @return Outputs the build result into a container image format.
|
||||
*
|
||||
*/
|
||||
private @Nullable ExportImage image;
|
||||
/**
|
||||
* @return Export to a local directory as files and directories.
|
||||
*
|
||||
*/
|
||||
private @Nullable ExportLocal local;
|
||||
/**
|
||||
* @return Identical to the Docker exporter but uses OCI media types by default.
|
||||
*
|
||||
*/
|
||||
private @Nullable ExportOCI oci;
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=docker`)
|
||||
*
|
||||
*/
|
||||
private @Nullable String raw;
|
||||
/**
|
||||
* @return Identical to the Image exporter, but pushes by default.
|
||||
*
|
||||
*/
|
||||
private @Nullable ExportRegistry registry;
|
||||
/**
|
||||
* @return Export to a local directory as a tarball.
|
||||
*
|
||||
*/
|
||||
private @Nullable ExportTar tar;
|
||||
|
||||
private Export() {}
|
||||
/**
|
||||
* @return A no-op export. Helpful for silencing the 'no exports' warning if you
|
||||
* just want to populate caches.
|
||||
*
|
||||
*/
|
||||
public Optional<ExportCacheOnly> cacheonly() {
|
||||
return Optional.ofNullable(this.cacheonly);
|
||||
}
|
||||
/**
|
||||
* @return When `true` this entry will be excluded. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> disabled() {
|
||||
return Optional.ofNullable(this.disabled);
|
||||
}
|
||||
/**
|
||||
* @return Export as a Docker image layout.
|
||||
*
|
||||
*/
|
||||
public Optional<ExportDocker> docker() {
|
||||
return Optional.ofNullable(this.docker);
|
||||
}
|
||||
/**
|
||||
* @return Outputs the build result into a container image format.
|
||||
*
|
||||
*/
|
||||
public Optional<ExportImage> image() {
|
||||
return Optional.ofNullable(this.image);
|
||||
}
|
||||
/**
|
||||
* @return Export to a local directory as files and directories.
|
||||
*
|
||||
*/
|
||||
public Optional<ExportLocal> local() {
|
||||
return Optional.ofNullable(this.local);
|
||||
}
|
||||
/**
|
||||
* @return Identical to the Docker exporter but uses OCI media types by default.
|
||||
*
|
||||
*/
|
||||
public Optional<ExportOCI> oci() {
|
||||
return Optional.ofNullable(this.oci);
|
||||
}
|
||||
/**
|
||||
* @return A raw string as you would provide it to the Docker CLI (e.g.,
|
||||
* `type=docker`)
|
||||
*
|
||||
*/
|
||||
public Optional<String> raw() {
|
||||
return Optional.ofNullable(this.raw);
|
||||
}
|
||||
/**
|
||||
* @return Identical to the Image exporter, but pushes by default.
|
||||
*
|
||||
*/
|
||||
public Optional<ExportRegistry> registry() {
|
||||
return Optional.ofNullable(this.registry);
|
||||
}
|
||||
/**
|
||||
* @return Export to a local directory as a tarball.
|
||||
*
|
||||
*/
|
||||
public Optional<ExportTar> tar() {
|
||||
return Optional.ofNullable(this.tar);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(Export defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable ExportCacheOnly cacheonly;
|
||||
private @Nullable Boolean disabled;
|
||||
private @Nullable ExportDocker docker;
|
||||
private @Nullable ExportImage image;
|
||||
private @Nullable ExportLocal local;
|
||||
private @Nullable ExportOCI oci;
|
||||
private @Nullable String raw;
|
||||
private @Nullable ExportRegistry registry;
|
||||
private @Nullable ExportTar tar;
|
||||
public Builder() {}
|
||||
public Builder(Export defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.cacheonly = defaults.cacheonly;
|
||||
this.disabled = defaults.disabled;
|
||||
this.docker = defaults.docker;
|
||||
this.image = defaults.image;
|
||||
this.local = defaults.local;
|
||||
this.oci = defaults.oci;
|
||||
this.raw = defaults.raw;
|
||||
this.registry = defaults.registry;
|
||||
this.tar = defaults.tar;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder cacheonly(@Nullable ExportCacheOnly cacheonly) {
|
||||
|
||||
this.cacheonly = cacheonly;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder disabled(@Nullable Boolean disabled) {
|
||||
|
||||
this.disabled = disabled;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder docker(@Nullable ExportDocker docker) {
|
||||
|
||||
this.docker = docker;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder image(@Nullable ExportImage image) {
|
||||
|
||||
this.image = image;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder local(@Nullable ExportLocal local) {
|
||||
|
||||
this.local = local;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder oci(@Nullable ExportOCI oci) {
|
||||
|
||||
this.oci = oci;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder raw(@Nullable String raw) {
|
||||
|
||||
this.raw = raw;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder registry(@Nullable ExportRegistry registry) {
|
||||
|
||||
this.registry = registry;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder tar(@Nullable ExportTar tar) {
|
||||
|
||||
this.tar = tar;
|
||||
return this;
|
||||
}
|
||||
public Export build() {
|
||||
final var _resultValue = new Export();
|
||||
_resultValue.cacheonly = cacheonly;
|
||||
_resultValue.disabled = disabled;
|
||||
_resultValue.docker = docker;
|
||||
_resultValue.image = image;
|
||||
_resultValue.local = local;
|
||||
_resultValue.oci = oci;
|
||||
_resultValue.raw = raw;
|
||||
_resultValue.registry = registry;
|
||||
_resultValue.tar = tar;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
32
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportCacheOnly.java
generated
Normal file
32
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportCacheOnly.java
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! ***
|
||||
|
||||
package com.pulumi.dockerbuild.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import java.util.Objects;
|
||||
|
||||
@CustomType
|
||||
public final class ExportCacheOnly {
|
||||
private ExportCacheOnly() {}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(ExportCacheOnly defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
public Builder() {}
|
||||
public Builder(ExportCacheOnly defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
}
|
||||
|
||||
public ExportCacheOnly build() {
|
||||
final var _resultValue = new ExportCacheOnly();
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
212
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportDocker.java
generated
Normal file
212
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportDocker.java
generated
Normal file
@@ -0,0 +1,212 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class ExportDocker {
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
private @Nullable Map<String,String> annotations;
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
private @Nullable CompressionType compression;
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
private @Nullable Integer compressionLevel;
|
||||
/**
|
||||
* @return The local export path.
|
||||
*
|
||||
*/
|
||||
private @Nullable String dest;
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean forceCompression;
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
private @Nullable List<String> names;
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
/**
|
||||
* @return Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean tar;
|
||||
|
||||
private ExportDocker() {}
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Map<String,String> annotations() {
|
||||
return this.annotations == null ? Map.of() : this.annotations;
|
||||
}
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<CompressionType> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Integer> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
/**
|
||||
* @return The local export path.
|
||||
*
|
||||
*/
|
||||
public Optional<String> dest() {
|
||||
return Optional.ofNullable(this.dest);
|
||||
}
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public List<String> names() {
|
||||
return this.names == null ? List.of() : this.names;
|
||||
}
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
/**
|
||||
* @return Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> tar() {
|
||||
return Optional.ofNullable(this.tar);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(ExportDocker defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable Map<String,String> annotations;
|
||||
private @Nullable CompressionType compression;
|
||||
private @Nullable Integer compressionLevel;
|
||||
private @Nullable String dest;
|
||||
private @Nullable Boolean forceCompression;
|
||||
private @Nullable List<String> names;
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
private @Nullable Boolean tar;
|
||||
public Builder() {}
|
||||
public Builder(ExportDocker defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.annotations = defaults.annotations;
|
||||
this.compression = defaults.compression;
|
||||
this.compressionLevel = defaults.compressionLevel;
|
||||
this.dest = defaults.dest;
|
||||
this.forceCompression = defaults.forceCompression;
|
||||
this.names = defaults.names;
|
||||
this.ociMediaTypes = defaults.ociMediaTypes;
|
||||
this.tar = defaults.tar;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder annotations(@Nullable Map<String,String> annotations) {
|
||||
|
||||
this.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compression(@Nullable CompressionType compression) {
|
||||
|
||||
this.compression = compression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compressionLevel(@Nullable Integer compressionLevel) {
|
||||
|
||||
this.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder dest(@Nullable String dest) {
|
||||
|
||||
this.dest = dest;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder forceCompression(@Nullable Boolean forceCompression) {
|
||||
|
||||
this.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder names(@Nullable List<String> names) {
|
||||
|
||||
this.names = names;
|
||||
return this;
|
||||
}
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ociMediaTypes(@Nullable Boolean ociMediaTypes) {
|
||||
|
||||
this.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder tar(@Nullable Boolean tar) {
|
||||
|
||||
this.tar = tar;
|
||||
return this;
|
||||
}
|
||||
public ExportDocker build() {
|
||||
final var _resultValue = new ExportDocker();
|
||||
_resultValue.annotations = annotations;
|
||||
_resultValue.compression = compression;
|
||||
_resultValue.compressionLevel = compressionLevel;
|
||||
_resultValue.dest = dest;
|
||||
_resultValue.forceCompression = forceCompression;
|
||||
_resultValue.names = names;
|
||||
_resultValue.ociMediaTypes = ociMediaTypes;
|
||||
_resultValue.tar = tar;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
331
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportImage.java
generated
Normal file
331
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportImage.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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class ExportImage {
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
private @Nullable Map<String,String> annotations;
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
private @Nullable CompressionType compression;
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
private @Nullable Integer compressionLevel;
|
||||
/**
|
||||
* @return Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
private @Nullable String danglingNamePrefix;
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean forceCompression;
|
||||
/**
|
||||
* @return Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean insecure;
|
||||
/**
|
||||
* @return Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean nameCanonical;
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
private @Nullable List<String> names;
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
/**
|
||||
* @return Push after creating the image. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean push;
|
||||
/**
|
||||
* @return Push image without name.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean pushByDigest;
|
||||
/**
|
||||
* @return 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).
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean store;
|
||||
/**
|
||||
* @return Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean unpack;
|
||||
|
||||
private ExportImage() {}
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Map<String,String> annotations() {
|
||||
return this.annotations == null ? Map.of() : this.annotations;
|
||||
}
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<CompressionType> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Integer> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
/**
|
||||
* @return Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
public Optional<String> danglingNamePrefix() {
|
||||
return Optional.ofNullable(this.danglingNamePrefix);
|
||||
}
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
/**
|
||||
* @return Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> insecure() {
|
||||
return Optional.ofNullable(this.insecure);
|
||||
}
|
||||
/**
|
||||
* @return Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> nameCanonical() {
|
||||
return Optional.ofNullable(this.nameCanonical);
|
||||
}
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public List<String> names() {
|
||||
return this.names == null ? List.of() : this.names;
|
||||
}
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
/**
|
||||
* @return Push after creating the image. Defaults to `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> push() {
|
||||
return Optional.ofNullable(this.push);
|
||||
}
|
||||
/**
|
||||
* @return Push image without name.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> pushByDigest() {
|
||||
return Optional.ofNullable(this.pushByDigest);
|
||||
}
|
||||
/**
|
||||
* @return 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).
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> store() {
|
||||
return Optional.ofNullable(this.store);
|
||||
}
|
||||
/**
|
||||
* @return Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> unpack() {
|
||||
return Optional.ofNullable(this.unpack);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(ExportImage defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable Map<String,String> annotations;
|
||||
private @Nullable CompressionType compression;
|
||||
private @Nullable Integer compressionLevel;
|
||||
private @Nullable String danglingNamePrefix;
|
||||
private @Nullable Boolean forceCompression;
|
||||
private @Nullable Boolean insecure;
|
||||
private @Nullable Boolean nameCanonical;
|
||||
private @Nullable List<String> names;
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
private @Nullable Boolean push;
|
||||
private @Nullable Boolean pushByDigest;
|
||||
private @Nullable Boolean store;
|
||||
private @Nullable Boolean unpack;
|
||||
public Builder() {}
|
||||
public Builder(ExportImage defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.annotations = defaults.annotations;
|
||||
this.compression = defaults.compression;
|
||||
this.compressionLevel = defaults.compressionLevel;
|
||||
this.danglingNamePrefix = defaults.danglingNamePrefix;
|
||||
this.forceCompression = defaults.forceCompression;
|
||||
this.insecure = defaults.insecure;
|
||||
this.nameCanonical = defaults.nameCanonical;
|
||||
this.names = defaults.names;
|
||||
this.ociMediaTypes = defaults.ociMediaTypes;
|
||||
this.push = defaults.push;
|
||||
this.pushByDigest = defaults.pushByDigest;
|
||||
this.store = defaults.store;
|
||||
this.unpack = defaults.unpack;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder annotations(@Nullable Map<String,String> annotations) {
|
||||
|
||||
this.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compression(@Nullable CompressionType compression) {
|
||||
|
||||
this.compression = compression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compressionLevel(@Nullable Integer compressionLevel) {
|
||||
|
||||
this.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder danglingNamePrefix(@Nullable String danglingNamePrefix) {
|
||||
|
||||
this.danglingNamePrefix = danglingNamePrefix;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder forceCompression(@Nullable Boolean forceCompression) {
|
||||
|
||||
this.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder insecure(@Nullable Boolean insecure) {
|
||||
|
||||
this.insecure = insecure;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder nameCanonical(@Nullable Boolean nameCanonical) {
|
||||
|
||||
this.nameCanonical = nameCanonical;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder names(@Nullable List<String> names) {
|
||||
|
||||
this.names = names;
|
||||
return this;
|
||||
}
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ociMediaTypes(@Nullable Boolean ociMediaTypes) {
|
||||
|
||||
this.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder push(@Nullable Boolean push) {
|
||||
|
||||
this.push = push;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder pushByDigest(@Nullable Boolean pushByDigest) {
|
||||
|
||||
this.pushByDigest = pushByDigest;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder store(@Nullable Boolean store) {
|
||||
|
||||
this.store = store;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder unpack(@Nullable Boolean unpack) {
|
||||
|
||||
this.unpack = unpack;
|
||||
return this;
|
||||
}
|
||||
public ExportImage build() {
|
||||
final var _resultValue = new ExportImage();
|
||||
_resultValue.annotations = annotations;
|
||||
_resultValue.compression = compression;
|
||||
_resultValue.compressionLevel = compressionLevel;
|
||||
_resultValue.danglingNamePrefix = danglingNamePrefix;
|
||||
_resultValue.forceCompression = forceCompression;
|
||||
_resultValue.insecure = insecure;
|
||||
_resultValue.nameCanonical = nameCanonical;
|
||||
_resultValue.names = names;
|
||||
_resultValue.ociMediaTypes = ociMediaTypes;
|
||||
_resultValue.push = push;
|
||||
_resultValue.pushByDigest = pushByDigest;
|
||||
_resultValue.store = store;
|
||||
_resultValue.unpack = unpack;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
58
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportLocal.java
generated
Normal file
58
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportLocal.java
generated
Normal file
@@ -0,0 +1,58 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
@CustomType
|
||||
public final class ExportLocal {
|
||||
/**
|
||||
* @return Output path.
|
||||
*
|
||||
*/
|
||||
private String dest;
|
||||
|
||||
private ExportLocal() {}
|
||||
/**
|
||||
* @return Output path.
|
||||
*
|
||||
*/
|
||||
public String dest() {
|
||||
return this.dest;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(ExportLocal defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String dest;
|
||||
public Builder() {}
|
||||
public Builder(ExportLocal defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.dest = defaults.dest;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder dest(String dest) {
|
||||
if (dest == null) {
|
||||
throw new MissingRequiredPropertyException("ExportLocal", "dest");
|
||||
}
|
||||
this.dest = dest;
|
||||
return this;
|
||||
}
|
||||
public ExportLocal build() {
|
||||
final var _resultValue = new ExportLocal();
|
||||
_resultValue.dest = dest;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
212
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportOCI.java
generated
Normal file
212
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportOCI.java
generated
Normal file
@@ -0,0 +1,212 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class ExportOCI {
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
private @Nullable Map<String,String> annotations;
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
private @Nullable CompressionType compression;
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
private @Nullable Integer compressionLevel;
|
||||
/**
|
||||
* @return The local export path.
|
||||
*
|
||||
*/
|
||||
private @Nullable String dest;
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean forceCompression;
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
private @Nullable List<String> names;
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
/**
|
||||
* @return Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean tar;
|
||||
|
||||
private ExportOCI() {}
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Map<String,String> annotations() {
|
||||
return this.annotations == null ? Map.of() : this.annotations;
|
||||
}
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<CompressionType> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Integer> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
/**
|
||||
* @return The local export path.
|
||||
*
|
||||
*/
|
||||
public Optional<String> dest() {
|
||||
return Optional.ofNullable(this.dest);
|
||||
}
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public List<String> names() {
|
||||
return this.names == null ? List.of() : this.names;
|
||||
}
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
/**
|
||||
* @return Bundle the output into a tarball layout.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> tar() {
|
||||
return Optional.ofNullable(this.tar);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(ExportOCI defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable Map<String,String> annotations;
|
||||
private @Nullable CompressionType compression;
|
||||
private @Nullable Integer compressionLevel;
|
||||
private @Nullable String dest;
|
||||
private @Nullable Boolean forceCompression;
|
||||
private @Nullable List<String> names;
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
private @Nullable Boolean tar;
|
||||
public Builder() {}
|
||||
public Builder(ExportOCI defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.annotations = defaults.annotations;
|
||||
this.compression = defaults.compression;
|
||||
this.compressionLevel = defaults.compressionLevel;
|
||||
this.dest = defaults.dest;
|
||||
this.forceCompression = defaults.forceCompression;
|
||||
this.names = defaults.names;
|
||||
this.ociMediaTypes = defaults.ociMediaTypes;
|
||||
this.tar = defaults.tar;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder annotations(@Nullable Map<String,String> annotations) {
|
||||
|
||||
this.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compression(@Nullable CompressionType compression) {
|
||||
|
||||
this.compression = compression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compressionLevel(@Nullable Integer compressionLevel) {
|
||||
|
||||
this.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder dest(@Nullable String dest) {
|
||||
|
||||
this.dest = dest;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder forceCompression(@Nullable Boolean forceCompression) {
|
||||
|
||||
this.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder names(@Nullable List<String> names) {
|
||||
|
||||
this.names = names;
|
||||
return this;
|
||||
}
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ociMediaTypes(@Nullable Boolean ociMediaTypes) {
|
||||
|
||||
this.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder tar(@Nullable Boolean tar) {
|
||||
|
||||
this.tar = tar;
|
||||
return this;
|
||||
}
|
||||
public ExportOCI build() {
|
||||
final var _resultValue = new ExportOCI();
|
||||
_resultValue.annotations = annotations;
|
||||
_resultValue.compression = compression;
|
||||
_resultValue.compressionLevel = compressionLevel;
|
||||
_resultValue.dest = dest;
|
||||
_resultValue.forceCompression = forceCompression;
|
||||
_resultValue.names = names;
|
||||
_resultValue.ociMediaTypes = ociMediaTypes;
|
||||
_resultValue.tar = tar;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
331
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportRegistry.java
generated
Normal file
331
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportRegistry.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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.dockerbuild.enums.CompressionType;
|
||||
import java.lang.Boolean;
|
||||
import java.lang.Integer;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class ExportRegistry {
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
private @Nullable Map<String,String> annotations;
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
private @Nullable CompressionType compression;
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
private @Nullable Integer compressionLevel;
|
||||
/**
|
||||
* @return Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
private @Nullable String danglingNamePrefix;
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean forceCompression;
|
||||
/**
|
||||
* @return Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean insecure;
|
||||
/**
|
||||
* @return Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean nameCanonical;
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
private @Nullable List<String> names;
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
/**
|
||||
* @return Push after creating the image. Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean push;
|
||||
/**
|
||||
* @return Push image without name.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean pushByDigest;
|
||||
/**
|
||||
* @return 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).
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean store;
|
||||
/**
|
||||
* @return Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
private @Nullable Boolean unpack;
|
||||
|
||||
private ExportRegistry() {}
|
||||
/**
|
||||
* @return Attach an arbitrary key/value annotation to the image.
|
||||
*
|
||||
*/
|
||||
public Map<String,String> annotations() {
|
||||
return this.annotations == null ? Map.of() : this.annotations;
|
||||
}
|
||||
/**
|
||||
* @return The compression type to use.
|
||||
*
|
||||
*/
|
||||
public Optional<CompressionType> compression() {
|
||||
return Optional.ofNullable(this.compression);
|
||||
}
|
||||
/**
|
||||
* @return Compression level from 0 to 22.
|
||||
*
|
||||
*/
|
||||
public Optional<Integer> compressionLevel() {
|
||||
return Optional.ofNullable(this.compressionLevel);
|
||||
}
|
||||
/**
|
||||
* @return Name image with `prefix{@literal @}<digest>`, used for anonymous images.
|
||||
*
|
||||
*/
|
||||
public Optional<String> danglingNamePrefix() {
|
||||
return Optional.ofNullable(this.danglingNamePrefix);
|
||||
}
|
||||
/**
|
||||
* @return Forcefully apply compression.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> forceCompression() {
|
||||
return Optional.ofNullable(this.forceCompression);
|
||||
}
|
||||
/**
|
||||
* @return Allow pushing to an insecure registry.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> insecure() {
|
||||
return Optional.ofNullable(this.insecure);
|
||||
}
|
||||
/**
|
||||
* @return Add additional canonical name (`name{@literal @}<digest>`).
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> nameCanonical() {
|
||||
return Optional.ofNullable(this.nameCanonical);
|
||||
}
|
||||
/**
|
||||
* @return Specify images names to export. This is overridden if tags are already specified.
|
||||
*
|
||||
*/
|
||||
public List<String> names() {
|
||||
return this.names == null ? List.of() : this.names;
|
||||
}
|
||||
/**
|
||||
* @return Use OCI media types in exporter manifests.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> ociMediaTypes() {
|
||||
return Optional.ofNullable(this.ociMediaTypes);
|
||||
}
|
||||
/**
|
||||
* @return Push after creating the image. Defaults to `true`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> push() {
|
||||
return Optional.ofNullable(this.push);
|
||||
}
|
||||
/**
|
||||
* @return Push image without name.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> pushByDigest() {
|
||||
return Optional.ofNullable(this.pushByDigest);
|
||||
}
|
||||
/**
|
||||
* @return 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).
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> store() {
|
||||
return Optional.ofNullable(this.store);
|
||||
}
|
||||
/**
|
||||
* @return Unpack image after creation (for use with containerd). Defaults to
|
||||
* `false`.
|
||||
*
|
||||
*/
|
||||
public Optional<Boolean> unpack() {
|
||||
return Optional.ofNullable(this.unpack);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(ExportRegistry defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private @Nullable Map<String,String> annotations;
|
||||
private @Nullable CompressionType compression;
|
||||
private @Nullable Integer compressionLevel;
|
||||
private @Nullable String danglingNamePrefix;
|
||||
private @Nullable Boolean forceCompression;
|
||||
private @Nullable Boolean insecure;
|
||||
private @Nullable Boolean nameCanonical;
|
||||
private @Nullable List<String> names;
|
||||
private @Nullable Boolean ociMediaTypes;
|
||||
private @Nullable Boolean push;
|
||||
private @Nullable Boolean pushByDigest;
|
||||
private @Nullable Boolean store;
|
||||
private @Nullable Boolean unpack;
|
||||
public Builder() {}
|
||||
public Builder(ExportRegistry defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.annotations = defaults.annotations;
|
||||
this.compression = defaults.compression;
|
||||
this.compressionLevel = defaults.compressionLevel;
|
||||
this.danglingNamePrefix = defaults.danglingNamePrefix;
|
||||
this.forceCompression = defaults.forceCompression;
|
||||
this.insecure = defaults.insecure;
|
||||
this.nameCanonical = defaults.nameCanonical;
|
||||
this.names = defaults.names;
|
||||
this.ociMediaTypes = defaults.ociMediaTypes;
|
||||
this.push = defaults.push;
|
||||
this.pushByDigest = defaults.pushByDigest;
|
||||
this.store = defaults.store;
|
||||
this.unpack = defaults.unpack;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder annotations(@Nullable Map<String,String> annotations) {
|
||||
|
||||
this.annotations = annotations;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compression(@Nullable CompressionType compression) {
|
||||
|
||||
this.compression = compression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder compressionLevel(@Nullable Integer compressionLevel) {
|
||||
|
||||
this.compressionLevel = compressionLevel;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder danglingNamePrefix(@Nullable String danglingNamePrefix) {
|
||||
|
||||
this.danglingNamePrefix = danglingNamePrefix;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder forceCompression(@Nullable Boolean forceCompression) {
|
||||
|
||||
this.forceCompression = forceCompression;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder insecure(@Nullable Boolean insecure) {
|
||||
|
||||
this.insecure = insecure;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder nameCanonical(@Nullable Boolean nameCanonical) {
|
||||
|
||||
this.nameCanonical = nameCanonical;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder names(@Nullable List<String> names) {
|
||||
|
||||
this.names = names;
|
||||
return this;
|
||||
}
|
||||
public Builder names(String... names) {
|
||||
return names(List.of(names));
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder ociMediaTypes(@Nullable Boolean ociMediaTypes) {
|
||||
|
||||
this.ociMediaTypes = ociMediaTypes;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder push(@Nullable Boolean push) {
|
||||
|
||||
this.push = push;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder pushByDigest(@Nullable Boolean pushByDigest) {
|
||||
|
||||
this.pushByDigest = pushByDigest;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder store(@Nullable Boolean store) {
|
||||
|
||||
this.store = store;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder unpack(@Nullable Boolean unpack) {
|
||||
|
||||
this.unpack = unpack;
|
||||
return this;
|
||||
}
|
||||
public ExportRegistry build() {
|
||||
final var _resultValue = new ExportRegistry();
|
||||
_resultValue.annotations = annotations;
|
||||
_resultValue.compression = compression;
|
||||
_resultValue.compressionLevel = compressionLevel;
|
||||
_resultValue.danglingNamePrefix = danglingNamePrefix;
|
||||
_resultValue.forceCompression = forceCompression;
|
||||
_resultValue.insecure = insecure;
|
||||
_resultValue.nameCanonical = nameCanonical;
|
||||
_resultValue.names = names;
|
||||
_resultValue.ociMediaTypes = ociMediaTypes;
|
||||
_resultValue.push = push;
|
||||
_resultValue.pushByDigest = pushByDigest;
|
||||
_resultValue.store = store;
|
||||
_resultValue.unpack = unpack;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
58
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportTar.java
generated
Normal file
58
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/ExportTar.java
generated
Normal file
@@ -0,0 +1,58 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
|
||||
@CustomType
|
||||
public final class ExportTar {
|
||||
/**
|
||||
* @return Output path.
|
||||
*
|
||||
*/
|
||||
private String dest;
|
||||
|
||||
private ExportTar() {}
|
||||
/**
|
||||
* @return Output path.
|
||||
*
|
||||
*/
|
||||
public String dest() {
|
||||
return this.dest;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(ExportTar defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String dest;
|
||||
public Builder() {}
|
||||
public Builder(ExportTar defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.dest = defaults.dest;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder dest(String dest) {
|
||||
if (dest == null) {
|
||||
throw new MissingRequiredPropertyException("ExportTar", "dest");
|
||||
}
|
||||
this.dest = dest;
|
||||
return this;
|
||||
}
|
||||
public ExportTar build() {
|
||||
final var _resultValue = new ExportTar();
|
||||
_resultValue.dest = dest;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
102
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Registry.java
generated
Normal file
102
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/Registry.java
generated
Normal file
@@ -0,0 +1,102 @@
|
||||
// *** 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.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.Objects;
|
||||
import java.util.Optional;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class Registry {
|
||||
/**
|
||||
* @return The registry's address (e.g. "docker.io").
|
||||
*
|
||||
*/
|
||||
private String address;
|
||||
/**
|
||||
* @return Password or token for the registry.
|
||||
*
|
||||
*/
|
||||
private @Nullable String password;
|
||||
/**
|
||||
* @return Username for the registry.
|
||||
*
|
||||
*/
|
||||
private @Nullable String username;
|
||||
|
||||
private Registry() {}
|
||||
/**
|
||||
* @return The registry's address (e.g. "docker.io").
|
||||
*
|
||||
*/
|
||||
public String address() {
|
||||
return this.address;
|
||||
}
|
||||
/**
|
||||
* @return Password or token for the registry.
|
||||
*
|
||||
*/
|
||||
public Optional<String> password() {
|
||||
return Optional.ofNullable(this.password);
|
||||
}
|
||||
/**
|
||||
* @return Username for the registry.
|
||||
*
|
||||
*/
|
||||
public Optional<String> username() {
|
||||
return Optional.ofNullable(this.username);
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(Registry defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String address;
|
||||
private @Nullable String password;
|
||||
private @Nullable String username;
|
||||
public Builder() {}
|
||||
public Builder(Registry defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.address = defaults.address;
|
||||
this.password = defaults.password;
|
||||
this.username = defaults.username;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder address(String address) {
|
||||
if (address == null) {
|
||||
throw new MissingRequiredPropertyException("Registry", "address");
|
||||
}
|
||||
this.address = address;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder password(@Nullable String password) {
|
||||
|
||||
this.password = password;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder username(@Nullable String username) {
|
||||
|
||||
this.username = username;
|
||||
return this;
|
||||
}
|
||||
public Registry build() {
|
||||
final var _resultValue = new Registry();
|
||||
_resultValue.address = address;
|
||||
_resultValue.password = password;
|
||||
_resultValue.username = username;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
104
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/SSH.java
generated
Normal file
104
sdk/java/src/main/java/com/pulumi/dockerbuild/outputs/SSH.java
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! ***
|
||||
|
||||
package com.pulumi.dockerbuild.outputs;
|
||||
|
||||
import com.pulumi.core.annotations.CustomType;
|
||||
import com.pulumi.exceptions.MissingRequiredPropertyException;
|
||||
import java.lang.String;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
@CustomType
|
||||
public final class SSH {
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
private @Nullable List<String> paths;
|
||||
|
||||
private SSH() {}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public String id() {
|
||||
return this.id;
|
||||
}
|
||||
/**
|
||||
* @return 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.
|
||||
*
|
||||
*/
|
||||
public List<String> paths() {
|
||||
return this.paths == null ? List.of() : this.paths;
|
||||
}
|
||||
|
||||
public static Builder builder() {
|
||||
return new Builder();
|
||||
}
|
||||
|
||||
public static Builder builder(SSH defaults) {
|
||||
return new Builder(defaults);
|
||||
}
|
||||
@CustomType.Builder
|
||||
public static final class Builder {
|
||||
private String id;
|
||||
private @Nullable List<String> paths;
|
||||
public Builder() {}
|
||||
public Builder(SSH defaults) {
|
||||
Objects.requireNonNull(defaults);
|
||||
this.id = defaults.id;
|
||||
this.paths = defaults.paths;
|
||||
}
|
||||
|
||||
@CustomType.Setter
|
||||
public Builder id(String id) {
|
||||
if (id == null) {
|
||||
throw new MissingRequiredPropertyException("SSH", "id");
|
||||
}
|
||||
this.id = id;
|
||||
return this;
|
||||
}
|
||||
@CustomType.Setter
|
||||
public Builder paths(@Nullable List<String> paths) {
|
||||
|
||||
this.paths = paths;
|
||||
return this;
|
||||
}
|
||||
public Builder paths(String... paths) {
|
||||
return paths(List.of(paths));
|
||||
}
|
||||
public SSH build() {
|
||||
final var _resultValue = new SSH();
|
||||
_resultValue.id = id;
|
||||
_resultValue.paths = paths;
|
||||
return _resultValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user