diff --git a/go.mod b/go.mod index 4bdf11900..ced02b442 100644 --- a/go.mod +++ b/go.mod @@ -56,7 +56,6 @@ require ( github.com/leodido/go-urn v1.4.0 // indirect github.com/pgavlin/fx/v2 v2.0.12 // indirect github.com/pulumi/pulumi-azure-native-sdk/v3 v3.18.0 // indirect - github.com/pulumi/pulumi-docker/sdk/v4 v4.11.2 // indirect ) require ( @@ -173,6 +172,7 @@ require ( github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect github.com/pulumi/esc v0.24.0 // indirect github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.17 // indirect + github.com/pulumi/pulumi-docker/sdk/v4 v4.5.8 // indirect github.com/sagikazarmark/locafero v0.12.0 // indirect github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect github.com/skeema/knownhosts v1.3.2 // indirect diff --git a/go.sum b/go.sum index ab3742c7a..34163f0aa 100644 --- a/go.sum +++ b/go.sum @@ -434,8 +434,8 @@ github.com/pulumi/pulumi-command/sdk v1.2.1 h1:mAziZ91a/9U+5IjZH5Skcar80OSmpBSYl github.com/pulumi/pulumi-command/sdk v1.2.1/go.mod h1:hQxv9DXg6bFjcd9BEiNdMImQ/V1rnC9D115q5VXYNps= github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.17 h1:XSz9LZ4Q0267DW09I1DLoJhLXWzSeR0uH4/hD3owGT4= github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild v0.0.17/go.mod h1:QgbLZb1Cd1yiX9GsIaZCRuFL/0ortNfUgsp/vx5YTws= -github.com/pulumi/pulumi-docker/sdk/v4 v4.11.2 h1:mc9IbrRi1pWSg9HWEFT6EcQ274WnZ97nyP2pmUEvSp4= -github.com/pulumi/pulumi-docker/sdk/v4 v4.11.2/go.mod h1:gPNbbz+ywFqnRRQMDxQQbMp4nXJIk43QBUj0N+xWXbw= +github.com/pulumi/pulumi-docker/sdk/v4 v4.5.8 h1:rik9L2SIpsoDenY51MkogR6GWgu/0Sy/XmyQmKWNUqU= +github.com/pulumi/pulumi-docker/sdk/v4 v4.5.8/go.mod h1:eph7BPNPkEIIK882/Ll4dbeHl5wZEc/UvTcUW0CK1UY= github.com/pulumi/pulumi-gitlab/sdk/v8 v8.11.0 h1:nR406lhXeltZVfLXH8E4J5JetflNZePBgXz2eyHT7RM= github.com/pulumi/pulumi-gitlab/sdk/v8 v8.11.0/go.mod h1:TU9R5gbZHqe1iJ054UW3ygPU8PxQcOi4J2n/YsnTviE= github.com/pulumi/pulumi-kubernetes/sdk/v4 v4.31.1 h1:Hg9RK9zqIU9kFbD5KeiON06gPP7cLgS68jvsgMBmPgw= diff --git a/tools/go.mod b/tools/go.mod index 5277f53d0..f7e82eeee 100644 --- a/tools/go.mod +++ b/tools/go.mod @@ -11,33 +11,34 @@ replace ( require github.com/golangci/golangci-lint/v2 v2.12.2 require ( - github.com/denis-tingaikin/go-header v0.5.0 // indirect + dev.gaijin.team/go/exhaustruct/v4 v4.0.0 // indirect + github.com/bombsimon/wsl/v4 v4.7.0 // indirect + // github.com/denis-tingaikin/go-header v1.0.0 // indirect + github.com/dlclark/regexp2 v1.12.0 // indirect github.com/golangci/gofmt v0.0.0-20250106114630-d62b90e6713d // indirect - github.com/golangci/golines v0.15.0 // indirect + // github.com/golangci/golines v0.15.0 // indirect + github.com/ryancurrah/gomodguard v1.4.1 // indirect + go.yaml.in/yaml/v2 v2.4.3 // indirect ) require ( charm.land/lipgloss/v2 v2.0.3 // indirect github.com/ClickHouse/clickhouse-go-linter v1.2.1 // indirect - github.com/bombsimon/wsl/v4 v4.7.0 // indirect github.com/bombsimon/wsl/v5 v5.8.0 // indirect github.com/charmbracelet/ultraviolet v0.0.0-20260511121909-c840852527f3 // indirect github.com/charmbracelet/x/termios v0.1.1 // indirect github.com/charmbracelet/x/windows v0.2.2 // indirect github.com/clipperhouse/displaywidth v0.11.0 // indirect - // github.com/denis-tingaikin/go-header v1.0.0 // indirect - github.com/dlclark/regexp2 v1.12.0 // indirect + github.com/denis-tingaikin/go-header v0.5.0 // indirect + github.com/golangci/golines v0.15.0 // indirect github.com/golangci/rowserrcheck v0.0.0-20260430141503-8d53bbc4a7d3 // indirect github.com/muesli/cancelreader v0.2.2 // indirect - github.com/ryancurrah/gomodguard v1.4.1 // indirect github.com/ryancurrah/gomodguard/v2 v2.1.3 // indirect go-simpler.org/sloglint v0.12.0 // indirect - go.yaml.in/yaml/v2 v2.4.3 // indirect go.yaml.in/yaml/v3 v3.0.4 // indirect ) require ( - dev.gaijin.team/go/exhaustruct/v4 v4.0.0 // indirect dev.gaijin.team/go/golib v0.8.1 // indirect github.com/AdminBenni/iota-mixing v1.0.0 // indirect github.com/MirrexOne/unqueryvet v1.5.4 // indirect diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/buildxBuilder.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/buildxBuilder.go deleted file mode 100644 index d308a39a0..000000000 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/buildxBuilder.go +++ /dev/null @@ -1,410 +0,0 @@ -// Code generated by pulumi-language-go DO NOT EDIT. -// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** - -package docker - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -// Manages a Docker Buildx builder instance. This resource allows you to create a buildx builder with various configurations such as driver, nodes, and platform settings. Please see https://github.com/docker/buildx/blob/master/docs/reference/buildx_create.md for more documentation -type BuildxBuilder struct { - pulumi.CustomResourceState - - // Append a node to builder instead of changing it - Append pulumi.BoolPtrOutput `pulumi:"append"` - // Automatically boot the builder after creation. Defaults to `false` - Bootstrap pulumi.BoolPtrOutput `pulumi:"bootstrap"` - // BuildKit daemon config file - BuildkitConfig pulumi.StringPtrOutput `pulumi:"buildkitConfig"` - // BuildKit flags to set for the builder. - BuildkitFlags pulumi.StringPtrOutput `pulumi:"buildkitFlags"` - // Configuration block for the Docker-Container driver. - DockerContainer BuildxBuilderDockerContainerPtrOutput `pulumi:"dockerContainer"` - // The driver to use for the Buildx builder (e.g., docker-container, kubernetes). - Driver pulumi.StringPtrOutput `pulumi:"driver"` - // Additional options for the Buildx driver in the form of `key=value,...`. These options are driver-specific. - DriverOptions pulumi.StringMapOutput `pulumi:"driverOptions"` - // The endpoint or context to use for the Buildx builder, where context is the name of a context from docker context ls and endpoint is the address for Docker socket (eg. DOCKER_HOST value). By default, the current Docker configuration is used for determining the context/endpoint value. - Endpoint pulumi.StringPtrOutput `pulumi:"endpoint"` - // Configuration block for the Kubernetes driver. - Kubernetes BuildxBuilderKubernetesPtrOutput `pulumi:"kubernetes"` - // The name of the Buildx builder. IF not specified, a random name will be generated. - Name pulumi.StringOutput `pulumi:"name"` - // Create/modify node with given name - Node pulumi.StringPtrOutput `pulumi:"node"` - // Fixed platforms for current node - Platforms pulumi.StringArrayOutput `pulumi:"platforms"` - // Configuration block for the Remote driver. - Remote BuildxBuilderRemotePtrOutput `pulumi:"remote"` - // Set the current builder instance as the default for the current context. - Use pulumi.BoolPtrOutput `pulumi:"use"` -} - -// NewBuildxBuilder registers a new resource with the given unique name, arguments, and options. -func NewBuildxBuilder(ctx *pulumi.Context, - name string, args *BuildxBuilderArgs, opts ...pulumi.ResourceOption) (*BuildxBuilder, error) { - if args == nil { - args = &BuildxBuilderArgs{} - } - - opts = internal.PkgResourceDefaultOpts(opts) - var resource BuildxBuilder - err := ctx.RegisterResource("docker:index/buildxBuilder:BuildxBuilder", name, args, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// GetBuildxBuilder gets an existing BuildxBuilder resource's state with the given name, ID, and optional -// state properties that are used to uniquely qualify the lookup (nil if not required). -func GetBuildxBuilder(ctx *pulumi.Context, - name string, id pulumi.IDInput, state *BuildxBuilderState, opts ...pulumi.ResourceOption) (*BuildxBuilder, error) { - var resource BuildxBuilder - err := ctx.ReadResource("docker:index/buildxBuilder:BuildxBuilder", name, id, state, &resource, opts...) - if err != nil { - return nil, err - } - return &resource, nil -} - -// Input properties used for looking up and filtering BuildxBuilder resources. -type buildxBuilderState struct { - // Append a node to builder instead of changing it - Append *bool `pulumi:"append"` - // Automatically boot the builder after creation. Defaults to `false` - Bootstrap *bool `pulumi:"bootstrap"` - // BuildKit daemon config file - BuildkitConfig *string `pulumi:"buildkitConfig"` - // BuildKit flags to set for the builder. - BuildkitFlags *string `pulumi:"buildkitFlags"` - // Configuration block for the Docker-Container driver. - DockerContainer *BuildxBuilderDockerContainer `pulumi:"dockerContainer"` - // The driver to use for the Buildx builder (e.g., docker-container, kubernetes). - Driver *string `pulumi:"driver"` - // Additional options for the Buildx driver in the form of `key=value,...`. These options are driver-specific. - DriverOptions map[string]string `pulumi:"driverOptions"` - // The endpoint or context to use for the Buildx builder, where context is the name of a context from docker context ls and endpoint is the address for Docker socket (eg. DOCKER_HOST value). By default, the current Docker configuration is used for determining the context/endpoint value. - Endpoint *string `pulumi:"endpoint"` - // Configuration block for the Kubernetes driver. - Kubernetes *BuildxBuilderKubernetes `pulumi:"kubernetes"` - // The name of the Buildx builder. IF not specified, a random name will be generated. - Name *string `pulumi:"name"` - // Create/modify node with given name - Node *string `pulumi:"node"` - // Fixed platforms for current node - Platforms []string `pulumi:"platforms"` - // Configuration block for the Remote driver. - Remote *BuildxBuilderRemote `pulumi:"remote"` - // Set the current builder instance as the default for the current context. - Use *bool `pulumi:"use"` -} - -type BuildxBuilderState struct { - // Append a node to builder instead of changing it - Append pulumi.BoolPtrInput - // Automatically boot the builder after creation. Defaults to `false` - Bootstrap pulumi.BoolPtrInput - // BuildKit daemon config file - BuildkitConfig pulumi.StringPtrInput - // BuildKit flags to set for the builder. - BuildkitFlags pulumi.StringPtrInput - // Configuration block for the Docker-Container driver. - DockerContainer BuildxBuilderDockerContainerPtrInput - // The driver to use for the Buildx builder (e.g., docker-container, kubernetes). - Driver pulumi.StringPtrInput - // Additional options for the Buildx driver in the form of `key=value,...`. These options are driver-specific. - DriverOptions pulumi.StringMapInput - // The endpoint or context to use for the Buildx builder, where context is the name of a context from docker context ls and endpoint is the address for Docker socket (eg. DOCKER_HOST value). By default, the current Docker configuration is used for determining the context/endpoint value. - Endpoint pulumi.StringPtrInput - // Configuration block for the Kubernetes driver. - Kubernetes BuildxBuilderKubernetesPtrInput - // The name of the Buildx builder. IF not specified, a random name will be generated. - Name pulumi.StringPtrInput - // Create/modify node with given name - Node pulumi.StringPtrInput - // Fixed platforms for current node - Platforms pulumi.StringArrayInput - // Configuration block for the Remote driver. - Remote BuildxBuilderRemotePtrInput - // Set the current builder instance as the default for the current context. - Use pulumi.BoolPtrInput -} - -func (BuildxBuilderState) ElementType() reflect.Type { - return reflect.TypeOf((*buildxBuilderState)(nil)).Elem() -} - -type buildxBuilderArgs struct { - // Append a node to builder instead of changing it - Append *bool `pulumi:"append"` - // Automatically boot the builder after creation. Defaults to `false` - Bootstrap *bool `pulumi:"bootstrap"` - // BuildKit daemon config file - BuildkitConfig *string `pulumi:"buildkitConfig"` - // BuildKit flags to set for the builder. - BuildkitFlags *string `pulumi:"buildkitFlags"` - // Configuration block for the Docker-Container driver. - DockerContainer *BuildxBuilderDockerContainer `pulumi:"dockerContainer"` - // The driver to use for the Buildx builder (e.g., docker-container, kubernetes). - Driver *string `pulumi:"driver"` - // Additional options for the Buildx driver in the form of `key=value,...`. These options are driver-specific. - DriverOptions map[string]string `pulumi:"driverOptions"` - // The endpoint or context to use for the Buildx builder, where context is the name of a context from docker context ls and endpoint is the address for Docker socket (eg. DOCKER_HOST value). By default, the current Docker configuration is used for determining the context/endpoint value. - Endpoint *string `pulumi:"endpoint"` - // Configuration block for the Kubernetes driver. - Kubernetes *BuildxBuilderKubernetes `pulumi:"kubernetes"` - // The name of the Buildx builder. IF not specified, a random name will be generated. - Name *string `pulumi:"name"` - // Create/modify node with given name - Node *string `pulumi:"node"` - // Fixed platforms for current node - Platforms []string `pulumi:"platforms"` - // Configuration block for the Remote driver. - Remote *BuildxBuilderRemote `pulumi:"remote"` - // Set the current builder instance as the default for the current context. - Use *bool `pulumi:"use"` -} - -// The set of arguments for constructing a BuildxBuilder resource. -type BuildxBuilderArgs struct { - // Append a node to builder instead of changing it - Append pulumi.BoolPtrInput - // Automatically boot the builder after creation. Defaults to `false` - Bootstrap pulumi.BoolPtrInput - // BuildKit daemon config file - BuildkitConfig pulumi.StringPtrInput - // BuildKit flags to set for the builder. - BuildkitFlags pulumi.StringPtrInput - // Configuration block for the Docker-Container driver. - DockerContainer BuildxBuilderDockerContainerPtrInput - // The driver to use for the Buildx builder (e.g., docker-container, kubernetes). - Driver pulumi.StringPtrInput - // Additional options for the Buildx driver in the form of `key=value,...`. These options are driver-specific. - DriverOptions pulumi.StringMapInput - // The endpoint or context to use for the Buildx builder, where context is the name of a context from docker context ls and endpoint is the address for Docker socket (eg. DOCKER_HOST value). By default, the current Docker configuration is used for determining the context/endpoint value. - Endpoint pulumi.StringPtrInput - // Configuration block for the Kubernetes driver. - Kubernetes BuildxBuilderKubernetesPtrInput - // The name of the Buildx builder. IF not specified, a random name will be generated. - Name pulumi.StringPtrInput - // Create/modify node with given name - Node pulumi.StringPtrInput - // Fixed platforms for current node - Platforms pulumi.StringArrayInput - // Configuration block for the Remote driver. - Remote BuildxBuilderRemotePtrInput - // Set the current builder instance as the default for the current context. - Use pulumi.BoolPtrInput -} - -func (BuildxBuilderArgs) ElementType() reflect.Type { - return reflect.TypeOf((*buildxBuilderArgs)(nil)).Elem() -} - -type BuildxBuilderInput interface { - pulumi.Input - - ToBuildxBuilderOutput() BuildxBuilderOutput - ToBuildxBuilderOutputWithContext(ctx context.Context) BuildxBuilderOutput -} - -func (*BuildxBuilder) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilder)(nil)).Elem() -} - -func (i *BuildxBuilder) ToBuildxBuilderOutput() BuildxBuilderOutput { - return i.ToBuildxBuilderOutputWithContext(context.Background()) -} - -func (i *BuildxBuilder) ToBuildxBuilderOutputWithContext(ctx context.Context) BuildxBuilderOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderOutput) -} - -// BuildxBuilderArrayInput is an input type that accepts BuildxBuilderArray and BuildxBuilderArrayOutput values. -// You can construct a concrete instance of `BuildxBuilderArrayInput` via: -// -// BuildxBuilderArray{ BuildxBuilderArgs{...} } -type BuildxBuilderArrayInput interface { - pulumi.Input - - ToBuildxBuilderArrayOutput() BuildxBuilderArrayOutput - ToBuildxBuilderArrayOutputWithContext(context.Context) BuildxBuilderArrayOutput -} - -type BuildxBuilderArray []BuildxBuilderInput - -func (BuildxBuilderArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]*BuildxBuilder)(nil)).Elem() -} - -func (i BuildxBuilderArray) ToBuildxBuilderArrayOutput() BuildxBuilderArrayOutput { - return i.ToBuildxBuilderArrayOutputWithContext(context.Background()) -} - -func (i BuildxBuilderArray) ToBuildxBuilderArrayOutputWithContext(ctx context.Context) BuildxBuilderArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderArrayOutput) -} - -// BuildxBuilderMapInput is an input type that accepts BuildxBuilderMap and BuildxBuilderMapOutput values. -// You can construct a concrete instance of `BuildxBuilderMapInput` via: -// -// BuildxBuilderMap{ "key": BuildxBuilderArgs{...} } -type BuildxBuilderMapInput interface { - pulumi.Input - - ToBuildxBuilderMapOutput() BuildxBuilderMapOutput - ToBuildxBuilderMapOutputWithContext(context.Context) BuildxBuilderMapOutput -} - -type BuildxBuilderMap map[string]BuildxBuilderInput - -func (BuildxBuilderMap) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*BuildxBuilder)(nil)).Elem() -} - -func (i BuildxBuilderMap) ToBuildxBuilderMapOutput() BuildxBuilderMapOutput { - return i.ToBuildxBuilderMapOutputWithContext(context.Background()) -} - -func (i BuildxBuilderMap) ToBuildxBuilderMapOutputWithContext(ctx context.Context) BuildxBuilderMapOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderMapOutput) -} - -type BuildxBuilderOutput struct{ *pulumi.OutputState } - -func (BuildxBuilderOutput) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilder)(nil)).Elem() -} - -func (o BuildxBuilderOutput) ToBuildxBuilderOutput() BuildxBuilderOutput { - return o -} - -func (o BuildxBuilderOutput) ToBuildxBuilderOutputWithContext(ctx context.Context) BuildxBuilderOutput { - return o -} - -// Append a node to builder instead of changing it -func (o BuildxBuilderOutput) Append() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.BoolPtrOutput { return v.Append }).(pulumi.BoolPtrOutput) -} - -// Automatically boot the builder after creation. Defaults to `false` -func (o BuildxBuilderOutput) Bootstrap() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.BoolPtrOutput { return v.Bootstrap }).(pulumi.BoolPtrOutput) -} - -// BuildKit daemon config file -func (o BuildxBuilderOutput) BuildkitConfig() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringPtrOutput { return v.BuildkitConfig }).(pulumi.StringPtrOutput) -} - -// BuildKit flags to set for the builder. -func (o BuildxBuilderOutput) BuildkitFlags() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringPtrOutput { return v.BuildkitFlags }).(pulumi.StringPtrOutput) -} - -// Configuration block for the Docker-Container driver. -func (o BuildxBuilderOutput) DockerContainer() BuildxBuilderDockerContainerPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) BuildxBuilderDockerContainerPtrOutput { return v.DockerContainer }).(BuildxBuilderDockerContainerPtrOutput) -} - -// The driver to use for the Buildx builder (e.g., docker-container, kubernetes). -func (o BuildxBuilderOutput) Driver() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringPtrOutput { return v.Driver }).(pulumi.StringPtrOutput) -} - -// Additional options for the Buildx driver in the form of `key=value,...`. These options are driver-specific. -func (o BuildxBuilderOutput) DriverOptions() pulumi.StringMapOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringMapOutput { return v.DriverOptions }).(pulumi.StringMapOutput) -} - -// The endpoint or context to use for the Buildx builder, where context is the name of a context from docker context ls and endpoint is the address for Docker socket (eg. DOCKER_HOST value). By default, the current Docker configuration is used for determining the context/endpoint value. -func (o BuildxBuilderOutput) Endpoint() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringPtrOutput { return v.Endpoint }).(pulumi.StringPtrOutput) -} - -// Configuration block for the Kubernetes driver. -func (o BuildxBuilderOutput) Kubernetes() BuildxBuilderKubernetesPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) BuildxBuilderKubernetesPtrOutput { return v.Kubernetes }).(BuildxBuilderKubernetesPtrOutput) -} - -// The name of the Buildx builder. IF not specified, a random name will be generated. -func (o BuildxBuilderOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringOutput { return v.Name }).(pulumi.StringOutput) -} - -// Create/modify node with given name -func (o BuildxBuilderOutput) Node() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringPtrOutput { return v.Node }).(pulumi.StringPtrOutput) -} - -// Fixed platforms for current node -func (o BuildxBuilderOutput) Platforms() pulumi.StringArrayOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.StringArrayOutput { return v.Platforms }).(pulumi.StringArrayOutput) -} - -// Configuration block for the Remote driver. -func (o BuildxBuilderOutput) Remote() BuildxBuilderRemotePtrOutput { - return o.ApplyT(func(v *BuildxBuilder) BuildxBuilderRemotePtrOutput { return v.Remote }).(BuildxBuilderRemotePtrOutput) -} - -// Set the current builder instance as the default for the current context. -func (o BuildxBuilderOutput) Use() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilder) pulumi.BoolPtrOutput { return v.Use }).(pulumi.BoolPtrOutput) -} - -type BuildxBuilderArrayOutput struct{ *pulumi.OutputState } - -func (BuildxBuilderArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]*BuildxBuilder)(nil)).Elem() -} - -func (o BuildxBuilderArrayOutput) ToBuildxBuilderArrayOutput() BuildxBuilderArrayOutput { - return o -} - -func (o BuildxBuilderArrayOutput) ToBuildxBuilderArrayOutputWithContext(ctx context.Context) BuildxBuilderArrayOutput { - return o -} - -func (o BuildxBuilderArrayOutput) Index(i pulumi.IntInput) BuildxBuilderOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) *BuildxBuilder { - return vs[0].([]*BuildxBuilder)[vs[1].(int)] - }).(BuildxBuilderOutput) -} - -type BuildxBuilderMapOutput struct{ *pulumi.OutputState } - -func (BuildxBuilderMapOutput) ElementType() reflect.Type { - return reflect.TypeOf((*map[string]*BuildxBuilder)(nil)).Elem() -} - -func (o BuildxBuilderMapOutput) ToBuildxBuilderMapOutput() BuildxBuilderMapOutput { - return o -} - -func (o BuildxBuilderMapOutput) ToBuildxBuilderMapOutputWithContext(ctx context.Context) BuildxBuilderMapOutput { - return o -} - -func (o BuildxBuilderMapOutput) MapIndex(k pulumi.StringInput) BuildxBuilderOutput { - return pulumi.All(o, k).ApplyT(func(vs []interface{}) *BuildxBuilder { - return vs[0].(map[string]*BuildxBuilder)[vs[1].(string)] - }).(BuildxBuilderOutput) -} - -func init() { - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderInput)(nil)).Elem(), &BuildxBuilder{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderArrayInput)(nil)).Elem(), BuildxBuilderArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderMapInput)(nil)).Elem(), BuildxBuilderMap{}) - pulumi.RegisterOutputType(BuildxBuilderOutput{}) - pulumi.RegisterOutputType(BuildxBuilderArrayOutput{}) - pulumi.RegisterOutputType(BuildxBuilderMapOutput{}) -} diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/container.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/container.go index 002a1caad..a819bb4eb 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/container.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/container.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -52,59 +52,41 @@ import ( // // ## Import // -// !/bin/bash -// -// ```sh -// $ pulumi import docker:index/container:Container foo id -// ``` -// // ### Example // // # Assuming you created a `container` as follows // -// ```sh // #!/bin/bash +// // docker run --name foo -p8080:80 -d nginx -// # prints the container ID +// +// prints the container ID +// // 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd -// ``` // // you provide the definition for the resource as follows // -// ```go -// package main +// terraform // -// import ( +// resource "docker_container" "foo" { // -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// name = "foo" // -// ) +// image = "nginx" +// +// ports { +// +// internal = "80" +// +// external = "8080" // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := docker.NewContainer(ctx, "foo", &docker.ContainerArgs{ -// Name: pulumi.String("foo"), -// Image: pulumi.String("nginx"), -// Ports: docker.ContainerPortArray{ -// &docker.ContainerPortArgs{ -// Internal: pulumi.Int(80), -// External: pulumi.Int(8080), -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) // } // -// ``` +// } // // then the import command is as follows // -// !/bin/bash +// #!/bin/bash // // ```sh // $ pulumi import docker:index/container:Container foo 9a550c0f0163d39d77222d3efd58701b625d47676c25c686c95b5b92d1cba6fd @@ -118,26 +100,18 @@ type Container struct { Bridge pulumi.StringOutput `pulumi:"bridge"` // Add or drop certrain linux capabilities. Capabilities ContainerCapabilitiesPtrOutput `pulumi:"capabilities"` - // Optional parent cgroup for the container - CgroupParent pulumi.StringPtrOutput `pulumi:"cgroupParent"` // Cgroup namespace mode to use for the container. Possible values are: `private`, `host`. CgroupnsMode pulumi.StringPtrOutput `pulumi:"cgroupnsMode"` - // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`. + // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.con"]`. Command pulumi.StringArrayOutput `pulumi:"command"` // The logs of the container if its execution is done (`attach` must be disabled). ContainerLogs pulumi.StringOutput `pulumi:"containerLogs"` // The total number of milliseconds to wait for the container to reach status 'running' ContainerReadRefreshTimeoutMilliseconds pulumi.IntPtrOutput `pulumi:"containerReadRefreshTimeoutMilliseconds"` - // Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set. - CpuPeriod pulumi.IntPtrOutput `pulumi:"cpuPeriod"` - // Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set. - CpuQuota pulumi.IntPtrOutput `pulumi:"cpuQuota"` // A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`. CpuSet pulumi.StringPtrOutput `pulumi:"cpuSet"` // CPU shares (relative weight) for the container. CpuShares pulumi.IntPtrOutput `pulumi:"cpuShares"` - // Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpuPeriod` and `cpuQuota`. - Cpus pulumi.StringPtrOutput `pulumi:"cpus"` // If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop. DestroyGraceSeconds pulumi.IntPtrOutput `pulumi:"destroyGraceSeconds"` // Bind devices to the container. @@ -150,7 +124,7 @@ type Container struct { DnsSearches pulumi.StringArrayOutput `pulumi:"dnsSearches"` // Domain name of the container. Domainname pulumi.StringPtrOutput `pulumi:"domainname"` - // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`. + // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogra"]`. Entrypoints pulumi.StringArrayOutput `pulumi:"entrypoints"` // Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0` Envs pulumi.StringArrayOutput `pulumi:"envs"` @@ -166,7 +140,7 @@ type Container struct { Hostname pulumi.StringOutput `pulumi:"hostname"` // Additional hosts to add to the container. Hosts ContainerHostArrayOutput `pulumi:"hosts"` - // The ID of the image to back this container. The easiest way to get this value is to use the `imageId` attribute of the `RemoteImage` resource as is shown in the example. + // The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example. Image pulumi.StringOutput `pulumi:"image"` // Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults. Init pulumi.BoolOutput `pulumi:"init"` @@ -184,19 +158,16 @@ type Container struct { MaxRetryCount pulumi.IntPtrOutput `pulumi:"maxRetryCount"` // The memory limit for the container in MBs. Memory pulumi.IntPtrOutput `pulumi:"memory"` - // The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit. - MemoryReservation pulumi.IntPtrOutput `pulumi:"memoryReservation"` // The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation. MemorySwap pulumi.IntPtrOutput `pulumi:"memorySwap"` // Specification for mounts to be added to containers created as part of the service. - Mounts ContainerMountArrayOutput `pulumi:"mounts"` - // If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`. - MustRun pulumi.BoolPtrOutput `pulumi:"mustRun"` + Mounts ContainerMountArrayOutput `pulumi:"mounts"` + MustRun pulumi.BoolPtrOutput `pulumi:"mustRun"` // The name of the container. Name pulumi.StringOutput `pulumi:"name"` // The data of the networks the container is connected to. NetworkDatas ContainerNetworkDataArrayOutput `pulumi:"networkDatas"` - // Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information. + // Network mode of the container. NetworkMode pulumi.StringPtrOutput `pulumi:"networkMode"` // The networks the container is attached to NetworksAdvanced ContainerNetworksAdvancedArrayOutput `pulumi:"networksAdvanced"` @@ -248,7 +219,7 @@ type Container struct { UsernsMode pulumi.StringPtrOutput `pulumi:"usernsMode"` // Spec for mounting volumes in the container. Volumes ContainerVolumeArrayOutput `pulumi:"volumes"` - // If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`. + // If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`. Wait pulumi.BoolPtrOutput `pulumi:"wait"` // The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`. WaitTimeout pulumi.IntPtrOutput `pulumi:"waitTimeout"` @@ -295,26 +266,18 @@ type containerState struct { Bridge *string `pulumi:"bridge"` // Add or drop certrain linux capabilities. Capabilities *ContainerCapabilities `pulumi:"capabilities"` - // Optional parent cgroup for the container - CgroupParent *string `pulumi:"cgroupParent"` // Cgroup namespace mode to use for the container. Possible values are: `private`, `host`. CgroupnsMode *string `pulumi:"cgroupnsMode"` - // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`. + // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.con"]`. Command []string `pulumi:"command"` // The logs of the container if its execution is done (`attach` must be disabled). ContainerLogs *string `pulumi:"containerLogs"` // The total number of milliseconds to wait for the container to reach status 'running' ContainerReadRefreshTimeoutMilliseconds *int `pulumi:"containerReadRefreshTimeoutMilliseconds"` - // Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set. - CpuPeriod *int `pulumi:"cpuPeriod"` - // Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set. - CpuQuota *int `pulumi:"cpuQuota"` // A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`. CpuSet *string `pulumi:"cpuSet"` // CPU shares (relative weight) for the container. CpuShares *int `pulumi:"cpuShares"` - // Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpuPeriod` and `cpuQuota`. - Cpus *string `pulumi:"cpus"` // If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop. DestroyGraceSeconds *int `pulumi:"destroyGraceSeconds"` // Bind devices to the container. @@ -327,7 +290,7 @@ type containerState struct { DnsSearches []string `pulumi:"dnsSearches"` // Domain name of the container. Domainname *string `pulumi:"domainname"` - // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`. + // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogra"]`. Entrypoints []string `pulumi:"entrypoints"` // Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0` Envs []string `pulumi:"envs"` @@ -343,7 +306,7 @@ type containerState struct { Hostname *string `pulumi:"hostname"` // Additional hosts to add to the container. Hosts []ContainerHost `pulumi:"hosts"` - // The ID of the image to back this container. The easiest way to get this value is to use the `imageId` attribute of the `RemoteImage` resource as is shown in the example. + // The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example. Image *string `pulumi:"image"` // Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults. Init *bool `pulumi:"init"` @@ -361,19 +324,16 @@ type containerState struct { MaxRetryCount *int `pulumi:"maxRetryCount"` // The memory limit for the container in MBs. Memory *int `pulumi:"memory"` - // The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit. - MemoryReservation *int `pulumi:"memoryReservation"` // The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation. MemorySwap *int `pulumi:"memorySwap"` // Specification for mounts to be added to containers created as part of the service. - Mounts []ContainerMount `pulumi:"mounts"` - // If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`. - MustRun *bool `pulumi:"mustRun"` + Mounts []ContainerMount `pulumi:"mounts"` + MustRun *bool `pulumi:"mustRun"` // The name of the container. Name *string `pulumi:"name"` // The data of the networks the container is connected to. NetworkDatas []ContainerNetworkData `pulumi:"networkDatas"` - // Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information. + // Network mode of the container. NetworkMode *string `pulumi:"networkMode"` // The networks the container is attached to NetworksAdvanced []ContainerNetworksAdvanced `pulumi:"networksAdvanced"` @@ -425,7 +385,7 @@ type containerState struct { UsernsMode *string `pulumi:"usernsMode"` // Spec for mounting volumes in the container. Volumes []ContainerVolume `pulumi:"volumes"` - // If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`. + // If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`. Wait *bool `pulumi:"wait"` // The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`. WaitTimeout *int `pulumi:"waitTimeout"` @@ -440,26 +400,18 @@ type ContainerState struct { Bridge pulumi.StringPtrInput // Add or drop certrain linux capabilities. Capabilities ContainerCapabilitiesPtrInput - // Optional parent cgroup for the container - CgroupParent pulumi.StringPtrInput // Cgroup namespace mode to use for the container. Possible values are: `private`, `host`. CgroupnsMode pulumi.StringPtrInput - // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`. + // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.con"]`. Command pulumi.StringArrayInput // The logs of the container if its execution is done (`attach` must be disabled). ContainerLogs pulumi.StringPtrInput // The total number of milliseconds to wait for the container to reach status 'running' ContainerReadRefreshTimeoutMilliseconds pulumi.IntPtrInput - // Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set. - CpuPeriod pulumi.IntPtrInput - // Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set. - CpuQuota pulumi.IntPtrInput // A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`. CpuSet pulumi.StringPtrInput // CPU shares (relative weight) for the container. CpuShares pulumi.IntPtrInput - // Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpuPeriod` and `cpuQuota`. - Cpus pulumi.StringPtrInput // If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop. DestroyGraceSeconds pulumi.IntPtrInput // Bind devices to the container. @@ -472,7 +424,7 @@ type ContainerState struct { DnsSearches pulumi.StringArrayInput // Domain name of the container. Domainname pulumi.StringPtrInput - // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`. + // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogra"]`. Entrypoints pulumi.StringArrayInput // Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0` Envs pulumi.StringArrayInput @@ -488,7 +440,7 @@ type ContainerState struct { Hostname pulumi.StringPtrInput // Additional hosts to add to the container. Hosts ContainerHostArrayInput - // The ID of the image to back this container. The easiest way to get this value is to use the `imageId` attribute of the `RemoteImage` resource as is shown in the example. + // The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example. Image pulumi.StringPtrInput // Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults. Init pulumi.BoolPtrInput @@ -506,19 +458,16 @@ type ContainerState struct { MaxRetryCount pulumi.IntPtrInput // The memory limit for the container in MBs. Memory pulumi.IntPtrInput - // The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit. - MemoryReservation pulumi.IntPtrInput // The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation. MemorySwap pulumi.IntPtrInput // Specification for mounts to be added to containers created as part of the service. - Mounts ContainerMountArrayInput - // If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`. + Mounts ContainerMountArrayInput MustRun pulumi.BoolPtrInput // The name of the container. Name pulumi.StringPtrInput // The data of the networks the container is connected to. NetworkDatas ContainerNetworkDataArrayInput - // Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information. + // Network mode of the container. NetworkMode pulumi.StringPtrInput // The networks the container is attached to NetworksAdvanced ContainerNetworksAdvancedArrayInput @@ -570,7 +519,7 @@ type ContainerState struct { UsernsMode pulumi.StringPtrInput // Spec for mounting volumes in the container. Volumes ContainerVolumeArrayInput - // If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`. + // If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`. Wait pulumi.BoolPtrInput // The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`. WaitTimeout pulumi.IntPtrInput @@ -587,24 +536,16 @@ type containerArgs struct { Attach *bool `pulumi:"attach"` // Add or drop certrain linux capabilities. Capabilities *ContainerCapabilities `pulumi:"capabilities"` - // Optional parent cgroup for the container - CgroupParent *string `pulumi:"cgroupParent"` // Cgroup namespace mode to use for the container. Possible values are: `private`, `host`. CgroupnsMode *string `pulumi:"cgroupnsMode"` - // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`. + // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.con"]`. Command []string `pulumi:"command"` // The total number of milliseconds to wait for the container to reach status 'running' ContainerReadRefreshTimeoutMilliseconds *int `pulumi:"containerReadRefreshTimeoutMilliseconds"` - // Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set. - CpuPeriod *int `pulumi:"cpuPeriod"` - // Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set. - CpuQuota *int `pulumi:"cpuQuota"` // A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`. CpuSet *string `pulumi:"cpuSet"` // CPU shares (relative weight) for the container. CpuShares *int `pulumi:"cpuShares"` - // Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpuPeriod` and `cpuQuota`. - Cpus *string `pulumi:"cpus"` // If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop. DestroyGraceSeconds *int `pulumi:"destroyGraceSeconds"` // Bind devices to the container. @@ -617,7 +558,7 @@ type containerArgs struct { DnsSearches []string `pulumi:"dnsSearches"` // Domain name of the container. Domainname *string `pulumi:"domainname"` - // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`. + // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogra"]`. Entrypoints []string `pulumi:"entrypoints"` // Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0` Envs []string `pulumi:"envs"` @@ -631,7 +572,7 @@ type containerArgs struct { Hostname *string `pulumi:"hostname"` // Additional hosts to add to the container. Hosts []ContainerHost `pulumi:"hosts"` - // The ID of the image to back this container. The easiest way to get this value is to use the `imageId` attribute of the `RemoteImage` resource as is shown in the example. + // The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example. Image string `pulumi:"image"` // Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults. Init *bool `pulumi:"init"` @@ -649,17 +590,14 @@ type containerArgs struct { MaxRetryCount *int `pulumi:"maxRetryCount"` // The memory limit for the container in MBs. Memory *int `pulumi:"memory"` - // The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit. - MemoryReservation *int `pulumi:"memoryReservation"` // The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation. MemorySwap *int `pulumi:"memorySwap"` // Specification for mounts to be added to containers created as part of the service. - Mounts []ContainerMount `pulumi:"mounts"` - // If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`. - MustRun *bool `pulumi:"mustRun"` + Mounts []ContainerMount `pulumi:"mounts"` + MustRun *bool `pulumi:"mustRun"` // The name of the container. Name *string `pulumi:"name"` - // Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information. + // Network mode of the container. NetworkMode *string `pulumi:"networkMode"` // The networks the container is attached to NetworksAdvanced []ContainerNetworksAdvanced `pulumi:"networksAdvanced"` @@ -711,7 +649,7 @@ type containerArgs struct { UsernsMode *string `pulumi:"usernsMode"` // Spec for mounting volumes in the container. Volumes []ContainerVolume `pulumi:"volumes"` - // If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`. + // If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`. Wait *bool `pulumi:"wait"` // The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`. WaitTimeout *int `pulumi:"waitTimeout"` @@ -725,24 +663,16 @@ type ContainerArgs struct { Attach pulumi.BoolPtrInput // Add or drop certrain linux capabilities. Capabilities ContainerCapabilitiesPtrInput - // Optional parent cgroup for the container - CgroupParent pulumi.StringPtrInput // Cgroup namespace mode to use for the container. Possible values are: `private`, `host`. CgroupnsMode pulumi.StringPtrInput - // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`. + // The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.con"]`. Command pulumi.StringArrayInput // The total number of milliseconds to wait for the container to reach status 'running' ContainerReadRefreshTimeoutMilliseconds pulumi.IntPtrInput - // Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set. - CpuPeriod pulumi.IntPtrInput - // Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set. - CpuQuota pulumi.IntPtrInput // A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`. CpuSet pulumi.StringPtrInput // CPU shares (relative weight) for the container. CpuShares pulumi.IntPtrInput - // Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpuPeriod` and `cpuQuota`. - Cpus pulumi.StringPtrInput // If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop. DestroyGraceSeconds pulumi.IntPtrInput // Bind devices to the container. @@ -755,7 +685,7 @@ type ContainerArgs struct { DnsSearches pulumi.StringArrayInput // Domain name of the container. Domainname pulumi.StringPtrInput - // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`. + // The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogra"]`. Entrypoints pulumi.StringArrayInput // Environment variables to set in the form of `KEY=VALUE`, e.g. `DEBUG=0` Envs pulumi.StringArrayInput @@ -769,7 +699,7 @@ type ContainerArgs struct { Hostname pulumi.StringPtrInput // Additional hosts to add to the container. Hosts ContainerHostArrayInput - // The ID of the image to back this container. The easiest way to get this value is to use the `imageId` attribute of the `RemoteImage` resource as is shown in the example. + // The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example. Image pulumi.StringInput // Configured whether an init process should be injected for this container. If unset this will default to the `dockerd` defaults. Init pulumi.BoolPtrInput @@ -787,17 +717,14 @@ type ContainerArgs struct { MaxRetryCount pulumi.IntPtrInput // The memory limit for the container in MBs. Memory pulumi.IntPtrInput - // The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit. - MemoryReservation pulumi.IntPtrInput // The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation. MemorySwap pulumi.IntPtrInput // Specification for mounts to be added to containers created as part of the service. - Mounts ContainerMountArrayInput - // If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`. + Mounts ContainerMountArrayInput MustRun pulumi.BoolPtrInput // The name of the container. Name pulumi.StringPtrInput - // Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information. + // Network mode of the container. NetworkMode pulumi.StringPtrInput // The networks the container is attached to NetworksAdvanced ContainerNetworksAdvancedArrayInput @@ -849,7 +776,7 @@ type ContainerArgs struct { UsernsMode pulumi.StringPtrInput // Spec for mounting volumes in the container. Volumes ContainerVolumeArrayInput - // If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`. + // If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`. Wait pulumi.BoolPtrInput // The timeout in seconds to wait the container to be healthy after creation. Defaults to `60`. WaitTimeout pulumi.IntPtrInput @@ -959,17 +886,12 @@ func (o ContainerOutput) Capabilities() ContainerCapabilitiesPtrOutput { return o.ApplyT(func(v *Container) ContainerCapabilitiesPtrOutput { return v.Capabilities }).(ContainerCapabilitiesPtrOutput) } -// Optional parent cgroup for the container -func (o ContainerOutput) CgroupParent() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Container) pulumi.StringPtrOutput { return v.CgroupParent }).(pulumi.StringPtrOutput) -} - // Cgroup namespace mode to use for the container. Possible values are: `private`, `host`. func (o ContainerOutput) CgroupnsMode() pulumi.StringPtrOutput { return o.ApplyT(func(v *Container) pulumi.StringPtrOutput { return v.CgroupnsMode }).(pulumi.StringPtrOutput) } -// The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.conf"]`. +// The command to use to start the container. For example, to run `/usr/bin/myprogram -f baz.conf` set the command to be `["/usr/bin/myprogram","-f","baz.con"]`. func (o ContainerOutput) Command() pulumi.StringArrayOutput { return o.ApplyT(func(v *Container) pulumi.StringArrayOutput { return v.Command }).(pulumi.StringArrayOutput) } @@ -984,16 +906,6 @@ func (o ContainerOutput) ContainerReadRefreshTimeoutMilliseconds() pulumi.IntPtr return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.ContainerReadRefreshTimeoutMilliseconds }).(pulumi.IntPtrOutput) } -// Specify the CPU CFS scheduler period (in microseconds), which is used alongside `cpu-quota`. Is ignored if `cpus` is set. -func (o ContainerOutput) CpuPeriod() pulumi.IntPtrOutput { - return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.CpuPeriod }).(pulumi.IntPtrOutput) -} - -// Impose a CPU CFS quota on the container (in microseconds). The number of microseconds per `cpu-period` that the container is limited to before throttled. Is ignored if `cpus` is set. -func (o ContainerOutput) CpuQuota() pulumi.IntPtrOutput { - return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.CpuQuota }).(pulumi.IntPtrOutput) -} - // A comma-separated list or hyphen-separated range of CPUs a container can use, e.g. `0-1`. func (o ContainerOutput) CpuSet() pulumi.StringPtrOutput { return o.ApplyT(func(v *Container) pulumi.StringPtrOutput { return v.CpuSet }).(pulumi.StringPtrOutput) @@ -1004,11 +916,6 @@ func (o ContainerOutput) CpuShares() pulumi.IntPtrOutput { return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.CpuShares }).(pulumi.IntPtrOutput) } -// Specify how much of the available CPU resources a container can use. e.g a value of 1.5 means the container is guaranteed at most one and a half of the CPUs. Has precedence over `cpuPeriod` and `cpuQuota`. -func (o ContainerOutput) Cpus() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Container) pulumi.StringPtrOutput { return v.Cpus }).(pulumi.StringPtrOutput) -} - // If defined will attempt to stop the container before destroying. Container will be destroyed after `n` seconds or on successful stop. func (o ContainerOutput) DestroyGraceSeconds() pulumi.IntPtrOutput { return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.DestroyGraceSeconds }).(pulumi.IntPtrOutput) @@ -1039,7 +946,7 @@ func (o ContainerOutput) Domainname() pulumi.StringPtrOutput { return o.ApplyT(func(v *Container) pulumi.StringPtrOutput { return v.Domainname }).(pulumi.StringPtrOutput) } -// The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogram"]`. +// The command to use as the Entrypoint for the container. The Entrypoint allows you to configure a container to run as an executable. For example, to run `/usr/bin/myprogram` when starting a container, set the entrypoint to be `"/usr/bin/myprogra"]`. func (o ContainerOutput) Entrypoints() pulumi.StringArrayOutput { return o.ApplyT(func(v *Container) pulumi.StringArrayOutput { return v.Entrypoints }).(pulumi.StringArrayOutput) } @@ -1079,7 +986,7 @@ func (o ContainerOutput) Hosts() ContainerHostArrayOutput { return o.ApplyT(func(v *Container) ContainerHostArrayOutput { return v.Hosts }).(ContainerHostArrayOutput) } -// The ID of the image to back this container. The easiest way to get this value is to use the `imageId` attribute of the `RemoteImage` resource as is shown in the example. +// The ID of the image to back this container. The easiest way to get this value is to use the `RemoteImage` resource as is shown in the example. func (o ContainerOutput) Image() pulumi.StringOutput { return o.ApplyT(func(v *Container) pulumi.StringOutput { return v.Image }).(pulumi.StringOutput) } @@ -1124,11 +1031,6 @@ func (o ContainerOutput) Memory() pulumi.IntPtrOutput { return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.Memory }).(pulumi.IntPtrOutput) } -// The memory-resveration for the container in MBs. Defaults to 0. Allows you to specify a soft limit smaller than `memory` which is activated when Docker detects contention or low memory on the host machine. If you use `memory-reservation`, it must be set lower than `memory` for it to take precedence. Because it is a soft limit, it doesn't guarantee that the container doesn't exceed the limit. -func (o ContainerOutput) MemoryReservation() pulumi.IntPtrOutput { - return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.MemoryReservation }).(pulumi.IntPtrOutput) -} - // The total memory limit (memory + swap) for the container in MBs. This setting may compute to `-1` after `pulumi up` if the target host doesn't support memory swap, when that is the case docker will use a soft limitation. func (o ContainerOutput) MemorySwap() pulumi.IntPtrOutput { return o.ApplyT(func(v *Container) pulumi.IntPtrOutput { return v.MemorySwap }).(pulumi.IntPtrOutput) @@ -1139,7 +1041,6 @@ func (o ContainerOutput) Mounts() ContainerMountArrayOutput { return o.ApplyT(func(v *Container) ContainerMountArrayOutput { return v.Mounts }).(ContainerMountArrayOutput) } -// If `true`, then the Docker container will be kept running. If `false`, then as long as the container exists, Terraform assumes it is successful. Defaults to `true`. func (o ContainerOutput) MustRun() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Container) pulumi.BoolPtrOutput { return v.MustRun }).(pulumi.BoolPtrOutput) } @@ -1154,7 +1055,7 @@ func (o ContainerOutput) NetworkDatas() ContainerNetworkDataArrayOutput { return o.ApplyT(func(v *Container) ContainerNetworkDataArrayOutput { return v.NetworkDatas }).(ContainerNetworkDataArrayOutput) } -// Network mode of the container. Defaults to `bridge`. If your host OS is any other OS, you need to set this value explicitly, e.g. `nat` when your container will be running on an Windows host. See https://docs.docker.com/engine/network/ for more information. +// Network mode of the container. func (o ContainerOutput) NetworkMode() pulumi.StringPtrOutput { return o.ApplyT(func(v *Container) pulumi.StringPtrOutput { return v.NetworkMode }).(pulumi.StringPtrOutput) } @@ -1284,7 +1185,7 @@ func (o ContainerOutput) Volumes() ContainerVolumeArrayOutput { return o.ApplyT(func(v *Container) ContainerVolumeArrayOutput { return v.Volumes }).(ContainerVolumeArrayOutput) } -// If `true`, then the Docker container is waited for being healthy state after creation. This requires your container to have a healthcheck, otherwise this provider will error. If `false`, then the container health state is not checked. Defaults to `false`. +// If `true`, then the Docker container is waited for being healthy state after creation. If `false`, then the container health state is not checked. Defaults to `false`. func (o ContainerOutput) Wait() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Container) pulumi.BoolPtrOutput { return v.Wait }).(pulumi.BoolPtrOutput) } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getLogs.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getLogs.go index a21ba8e24..27f22b14b 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getLogs.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getLogs.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getNetwork.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getNetwork.go index e502f095a..149097396 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getNetwork.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getNetwork.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getPlugin.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getPlugin.go index 2c71a5443..6b690dc9f 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getPlugin.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getPlugin.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRegistryImage.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRegistryImage.go index 691278f21..1fe3080d1 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRegistryImage.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRegistryImage.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -34,9 +34,9 @@ import ( // return err // } // _, err = docker.NewRemoteImage(ctx, "ubuntu", &docker.RemoteImageArgs{ -// Name: pulumi.String(pulumi.String(ubuntu.Name)), +// Name: pulumi.String(ubuntu.Name), // PullTriggers: pulumi.StringArray{ -// pulumi.String(pulumi.String(ubuntu.Sha256Digest)), +// pulumi.String(ubuntu.Sha256Digest), // }, // }) // if err != nil { @@ -61,7 +61,7 @@ func LookupRegistryImage(ctx *pulumi.Context, args *LookupRegistryImageArgs, opt type LookupRegistryImageArgs struct { // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify *bool `pulumi:"insecureSkipVerify"` - // The name of the Docker image, including any tags. e.g. `alpine:latest`. You can also specify a digest, e.g. `nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f`. + // The name of the Docker image, including any tags. e.g. `alpine:latest` Name string `pulumi:"name"` } @@ -71,7 +71,7 @@ type LookupRegistryImageResult struct { Id string `pulumi:"id"` // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify *bool `pulumi:"insecureSkipVerify"` - // The name of the Docker image, including any tags. e.g. `alpine:latest`. You can also specify a digest, e.g. `nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f`. + // The name of the Docker image, including any tags. e.g. `alpine:latest` Name string `pulumi:"name"` // The content digest of the image, as stored in the registry. Sha256Digest string `pulumi:"sha256Digest"` @@ -90,7 +90,7 @@ func LookupRegistryImageOutput(ctx *pulumi.Context, args LookupRegistryImageOutp type LookupRegistryImageOutputArgs struct { // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify pulumi.BoolPtrInput `pulumi:"insecureSkipVerify"` - // The name of the Docker image, including any tags. e.g. `alpine:latest`. You can also specify a digest, e.g. `nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f`. + // The name of the Docker image, including any tags. e.g. `alpine:latest` Name pulumi.StringInput `pulumi:"name"` } @@ -123,7 +123,7 @@ func (o LookupRegistryImageResultOutput) InsecureSkipVerify() pulumi.BoolPtrOutp return o.ApplyT(func(v LookupRegistryImageResult) *bool { return v.InsecureSkipVerify }).(pulumi.BoolPtrOutput) } -// The name of the Docker image, including any tags. e.g. `alpine:latest`. You can also specify a digest, e.g. `nginx:1.28.0@sha256:eaa7e36decc3421fc04478c586dfea0d931cebe47d5bc0b15d758a32ba51126f`. +// The name of the Docker image, including any tags. e.g. `alpine:latest` func (o LookupRegistryImageResultOutput) Name() pulumi.StringOutput { return o.ApplyT(func(v LookupRegistryImageResult) string { return v.Name }).(pulumi.StringOutput) } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRegistryImageManifests.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRegistryImageManifests.go deleted file mode 100644 index 1a6d801e0..000000000 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRegistryImageManifests.go +++ /dev/null @@ -1,114 +0,0 @@ -// Code generated by pulumi-language-go DO NOT EDIT. -// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** - -package docker - -import ( - "context" - "reflect" - - "github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal" - "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -) - -// Reads the image metadata for each manifest in a Docker multi-arch image from a Docker Registry. -func GetRegistryImageManifests(ctx *pulumi.Context, args *GetRegistryImageManifestsArgs, opts ...pulumi.InvokeOption) (*GetRegistryImageManifestsResult, error) { - opts = internal.PkgInvokeDefaultOpts(opts) - var rv GetRegistryImageManifestsResult - err := ctx.Invoke("docker:index/getRegistryImageManifests:getRegistryImageManifests", args, &rv, opts...) - if err != nil { - return nil, err - } - return &rv, nil -} - -// A collection of arguments for invoking getRegistryImageManifests. -type GetRegistryImageManifestsArgs struct { - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig *GetRegistryImageManifestsAuthConfig `pulumi:"authConfig"` - // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` - InsecureSkipVerify *bool `pulumi:"insecureSkipVerify"` - // The name of the Docker image, including any tags. e.g. `alpine:latest` - Name string `pulumi:"name"` -} - -// A collection of values returned by getRegistryImageManifests. -type GetRegistryImageManifestsResult struct { - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig *GetRegistryImageManifestsAuthConfig `pulumi:"authConfig"` - // The provider-assigned unique ID for this managed resource. - Id string `pulumi:"id"` - // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` - InsecureSkipVerify *bool `pulumi:"insecureSkipVerify"` - // The metadata for each manifest in the image - Manifests []GetRegistryImageManifestsManifest `pulumi:"manifests"` - // The name of the Docker image, including any tags. e.g. `alpine:latest` - Name string `pulumi:"name"` -} - -func GetRegistryImageManifestsOutput(ctx *pulumi.Context, args GetRegistryImageManifestsOutputArgs, opts ...pulumi.InvokeOption) GetRegistryImageManifestsResultOutput { - return pulumi.ToOutputWithContext(ctx.Context(), args). - ApplyT(func(v interface{}) (GetRegistryImageManifestsResultOutput, error) { - args := v.(GetRegistryImageManifestsArgs) - options := pulumi.InvokeOutputOptions{InvokeOptions: internal.PkgInvokeDefaultOpts(opts)} - return ctx.InvokeOutput("docker:index/getRegistryImageManifests:getRegistryImageManifests", args, GetRegistryImageManifestsResultOutput{}, options).(GetRegistryImageManifestsResultOutput), nil - }).(GetRegistryImageManifestsResultOutput) -} - -// A collection of arguments for invoking getRegistryImageManifests. -type GetRegistryImageManifestsOutputArgs struct { - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig GetRegistryImageManifestsAuthConfigPtrInput `pulumi:"authConfig"` - // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` - InsecureSkipVerify pulumi.BoolPtrInput `pulumi:"insecureSkipVerify"` - // The name of the Docker image, including any tags. e.g. `alpine:latest` - Name pulumi.StringInput `pulumi:"name"` -} - -func (GetRegistryImageManifestsOutputArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetRegistryImageManifestsArgs)(nil)).Elem() -} - -// A collection of values returned by getRegistryImageManifests. -type GetRegistryImageManifestsResultOutput struct{ *pulumi.OutputState } - -func (GetRegistryImageManifestsResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetRegistryImageManifestsResult)(nil)).Elem() -} - -func (o GetRegistryImageManifestsResultOutput) ToGetRegistryImageManifestsResultOutput() GetRegistryImageManifestsResultOutput { - return o -} - -func (o GetRegistryImageManifestsResultOutput) ToGetRegistryImageManifestsResultOutputWithContext(ctx context.Context) GetRegistryImageManifestsResultOutput { - return o -} - -// Authentication configuration for the Docker registry. It is only used for this resource. -func (o GetRegistryImageManifestsResultOutput) AuthConfig() GetRegistryImageManifestsAuthConfigPtrOutput { - return o.ApplyT(func(v GetRegistryImageManifestsResult) *GetRegistryImageManifestsAuthConfig { return v.AuthConfig }).(GetRegistryImageManifestsAuthConfigPtrOutput) -} - -// The provider-assigned unique ID for this managed resource. -func (o GetRegistryImageManifestsResultOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsResult) string { return v.Id }).(pulumi.StringOutput) -} - -// If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` -func (o GetRegistryImageManifestsResultOutput) InsecureSkipVerify() pulumi.BoolPtrOutput { - return o.ApplyT(func(v GetRegistryImageManifestsResult) *bool { return v.InsecureSkipVerify }).(pulumi.BoolPtrOutput) -} - -// The metadata for each manifest in the image -func (o GetRegistryImageManifestsResultOutput) Manifests() GetRegistryImageManifestsManifestArrayOutput { - return o.ApplyT(func(v GetRegistryImageManifestsResult) []GetRegistryImageManifestsManifest { return v.Manifests }).(GetRegistryImageManifestsManifestArrayOutput) -} - -// The name of the Docker image, including any tags. e.g. `alpine:latest` -func (o GetRegistryImageManifestsResultOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsResult) string { return v.Name }).(pulumi.StringOutput) -} - -func init() { - pulumi.RegisterOutputType(GetRegistryImageManifestsResultOutput{}) -} diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRemoteImage.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRemoteImage.go index 7e0e69af2..2f5d6ad9e 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRemoteImage.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/getRemoteImage.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -11,7 +11,7 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// `RemoteImage` provides details about a specific Docker Image which need to be present on the Docker Host +// `RemoteImage` provides details about a specific Docker Image which needs to be present on the Docker Host // // ## Example Usage // diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/image.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/image.go index 6c4a7cb22..e5f4d6422 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/image.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/image.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -64,7 +64,7 @@ import ( // }, // ImageName: pulumi.String("username/image:tag1"), // SkipPush: pulumi.Bool(true), -// }, pulumi.Version("v4.4.0")) +// }) // if err != nil { // return err // } @@ -93,7 +93,7 @@ import ( // Dockerfile: pulumi.String("Dockerfile"), // }, // ImageName: pulumi.String("docker.io/username/push-image:tag1"), -// }, pulumi.Version("v4.4.0")) +// }) // if err != nil { // return err // } @@ -112,7 +112,7 @@ import ( // // "fmt" // -// "github.com/pulumi/pulumi-aws/sdk/v7/go/aws/ecr" +// "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/ecr" // "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" // @@ -156,7 +156,7 @@ import ( // return &authToken.UserName, nil // }).(pulumi.StringPtrOutput), // }, -// }, pulumi.Version("v4.1.2")) +// }) // if err != nil { // return err // } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/init.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/init.go index 5c4e5ab15..585c74841 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/init.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/init.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -21,8 +21,6 @@ func (m *module) Version() semver.Version { func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) { switch typ { - case "docker:index/buildxBuilder:BuildxBuilder": - r = &BuildxBuilder{} case "docker:index/container:Container": r = &Container{} case "docker:index/image:Image": @@ -76,11 +74,6 @@ func init() { if err != nil { version = semver.Version{Major: 1} } - pulumi.RegisterResourceModule( - "docker", - "index/buildxBuilder", - &module{version}, - ) pulumi.RegisterResourceModule( "docker", "index/container", diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiUtilities.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiUtilities.go index b7d3404c1..4bf4ee93b 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiUtilities.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiUtilities.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package internal @@ -165,7 +165,7 @@ func callPlainInner( func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption { defaults := []pulumi.ResourceOption{} - version := semver.MustParse("4.11.2") + version := semver.MustParse("4.5.8") if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) } @@ -176,7 +176,7 @@ func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOptio func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption { defaults := []pulumi.InvokeOption{} - version := semver.MustParse("4.11.2") + version := semver.MustParse("4.5.8") if !version.Equals(semver.Version{}) { defaults = append(defaults, pulumi.Version(version.String())) } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiVersion.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiVersion.go index 4ad7cb873..d59168766 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiVersion.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal/pulumiVersion.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package internal diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/network.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/network.go index 2eb4a58c0..d3a1600c9 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/network.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/network.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -42,52 +42,31 @@ import ( // // ## Import // -// !/bin/bash -// -// ```sh -// $ pulumi import docker:index/network:Network foo id -// ``` -// // ### Example // // # Assuming you created a `network` as follows // -// ```sh // #!/bin/bash +// // docker network create foo -// # prints the long ID +// +// prints the long ID +// // 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73 -// ``` // // you provide the definition for the resource as follows // -// ```go -// package main +// terraform // -// import ( +// resource "docker_network" "foo" { // -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// name = "foo" // -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := docker.NewNetwork(ctx, "foo", &docker.NetworkArgs{ -// Name: pulumi.String("foo"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` +// } // // then the import command is as follows // -// !/bin/bash +// #!/bin/bash // // ```sh // $ pulumi import docker:index/network:Network foo 87b57a9b91ecab2db2a6dbf38df74c67d7c7108cbe479d6576574ec2cd8c2d73 @@ -98,8 +77,6 @@ type Network struct { // Enable manual container attachment to the network. Attachable pulumi.BoolPtrOutput `pulumi:"attachable"` // Requests daemon to check for networks with same name. - // - // Deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks. CheckDuplicate pulumi.BoolPtrOutput `pulumi:"checkDuplicate"` // The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details. Driver pulumi.StringOutput `pulumi:"driver"` @@ -158,8 +135,6 @@ type networkState struct { // Enable manual container attachment to the network. Attachable *bool `pulumi:"attachable"` // Requests daemon to check for networks with same name. - // - // Deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks. CheckDuplicate *bool `pulumi:"checkDuplicate"` // The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details. Driver *string `pulumi:"driver"` @@ -189,8 +164,6 @@ type NetworkState struct { // Enable manual container attachment to the network. Attachable pulumi.BoolPtrInput // Requests daemon to check for networks with same name. - // - // Deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks. CheckDuplicate pulumi.BoolPtrInput // The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details. Driver pulumi.StringPtrInput @@ -224,8 +197,6 @@ type networkArgs struct { // Enable manual container attachment to the network. Attachable *bool `pulumi:"attachable"` // Requests daemon to check for networks with same name. - // - // Deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks. CheckDuplicate *bool `pulumi:"checkDuplicate"` // The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details. Driver *string `pulumi:"driver"` @@ -254,8 +225,6 @@ type NetworkArgs struct { // Enable manual container attachment to the network. Attachable pulumi.BoolPtrInput // Requests daemon to check for networks with same name. - // - // Deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks. CheckDuplicate pulumi.BoolPtrInput // The driver of the Docker network. Possible values are `bridge`, `host`, `overlay`, `macvlan`. See [network docs](https://docs.docker.com/network/#network-drivers) for more details. Driver pulumi.StringPtrInput @@ -372,8 +341,6 @@ func (o NetworkOutput) Attachable() pulumi.BoolPtrOutput { } // Requests daemon to check for networks with same name. -// -// Deprecated: This option is deprecated and will be removed in a future version. The Docker daemon will always check for duplicate networks. func (o NetworkOutput) CheckDuplicate() pulumi.BoolPtrOutput { return o.ApplyT(func(v *Network) pulumi.BoolPtrOutput { return v.CheckDuplicate }).(pulumi.BoolPtrOutput) } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/plugin.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/plugin.go index af4954c45..a20d980b1 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/plugin.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/plugin.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -16,9 +16,10 @@ import ( // // ## Import // -// ```sh // #!/bin/bash -// terraform import docker_plugin.sample-volume-plugin "$(docker plugin inspect -f {{.ID}} tiborvass/sample-volume-plugin:latest)" +// +// ```sh +// $ pulumi import docker:index/plugin:Plugin sample-volume-plugin "$(docker plugin inspect -f {{.ID}} tiborvass/sample-volume-plugin:latest)" // ``` type Plugin struct { pulumi.CustomResourceState diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/provider.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/provider.go index d2657f9b6..9b9e5b59a 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/provider.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/provider.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -24,8 +24,6 @@ type Provider struct { CertMaterial pulumi.StringPtrOutput `pulumi:"certMaterial"` // Path to directory with Docker TLS config CertPath pulumi.StringPtrOutput `pulumi:"certPath"` - // The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host` if set. - Context pulumi.StringPtrOutput `pulumi:"context"` // The Docker daemon address Host pulumi.StringPtrOutput `pulumi:"host"` // PEM-encoded content of Docker client private key @@ -60,10 +58,6 @@ type providerArgs struct { CertMaterial *string `pulumi:"certMaterial"` // Path to directory with Docker TLS config CertPath *string `pulumi:"certPath"` - // The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host` if set. - Context *string `pulumi:"context"` - // If set to `true`, the provider will not check if the Docker daemon is running. This is useful for resources/data_sourcess that do not require a running Docker daemon, such as the data source `RegistryImage`. - DisableDockerDaemonCheck *bool `pulumi:"disableDockerDaemonCheck"` // The Docker daemon address Host *string `pulumi:"host"` // PEM-encoded content of Docker client private key @@ -81,10 +75,6 @@ type ProviderArgs struct { CertMaterial pulumi.StringPtrInput // Path to directory with Docker TLS config CertPath pulumi.StringPtrInput - // The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host` if set. - Context pulumi.StringPtrInput - // If set to `true`, the provider will not check if the Docker daemon is running. This is useful for resources/data_sourcess that do not require a running Docker daemon, such as the data source `RegistryImage`. - DisableDockerDaemonCheck pulumi.BoolPtrInput // The Docker daemon address Host pulumi.StringPtrInput // PEM-encoded content of Docker client private key @@ -98,29 +88,6 @@ func (ProviderArgs) ElementType() reflect.Type { return reflect.TypeOf((*providerArgs)(nil)).Elem() } -// This function returns a Terraform config object with terraform-namecased keys,to be used with the Terraform Module Provider. -func (r *Provider) TerraformConfig(ctx *pulumi.Context) (ProviderTerraformConfigResultOutput, error) { - out, err := ctx.Call("pulumi:providers:docker/terraformConfig", nil, ProviderTerraformConfigResultOutput{}, r) - if err != nil { - return ProviderTerraformConfigResultOutput{}, err - } - return out.(ProviderTerraformConfigResultOutput), nil -} - -type ProviderTerraformConfigResult struct { - Result map[string]interface{} `pulumi:"result"` -} - -type ProviderTerraformConfigResultOutput struct{ *pulumi.OutputState } - -func (ProviderTerraformConfigResultOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ProviderTerraformConfigResult)(nil)).Elem() -} - -func (o ProviderTerraformConfigResultOutput) Result() pulumi.MapOutput { - return o.ApplyT(func(v ProviderTerraformConfigResult) map[string]interface{} { return v.Result }).(pulumi.MapOutput) -} - type ProviderInput interface { pulumi.Input @@ -169,11 +136,6 @@ func (o ProviderOutput) CertPath() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.CertPath }).(pulumi.StringPtrOutput) } -// The name of the Docker context to use. Can also be set via `DOCKER_CONTEXT` environment variable. Overrides the `host` if set. -func (o ProviderOutput) Context() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Context }).(pulumi.StringPtrOutput) -} - // The Docker daemon address func (o ProviderOutput) Host() pulumi.StringPtrOutput { return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Host }).(pulumi.StringPtrOutput) @@ -187,5 +149,4 @@ func (o ProviderOutput) KeyMaterial() pulumi.StringPtrOutput { func init() { pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{}) pulumi.RegisterOutputType(ProviderOutput{}) - pulumi.RegisterOutputType(ProviderTerraformConfigResultOutput{}) } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumi-plugin.json b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumi-plugin.json index 15832429c..c65fe7168 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumi-plugin.json +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumi-plugin.json @@ -1,5 +1,5 @@ { "resource": true, "name": "docker", - "version": "4.11.2" + "version": "4.5.8" } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiEnums.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiEnums.go index fc90d9ed3..7cd043ac0 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiEnums.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiEnums.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiTypes.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiTypes.go index 049723668..a8279b268 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiTypes.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/pulumiTypes.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -13,5728 +13,2733 @@ import ( var _ = internal.GetEnvOrDefault -type BuildxBuilderDockerContainer struct { - // Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. - CgroupParent *string `pulumi:"cgroupParent"` - // Sets the CPU CFS scheduler period for the container. - CpuPeriod *string `pulumi:"cpuPeriod"` - // Imposes a CPU CFS quota on the container. - CpuQuota *string `pulumi:"cpuQuota"` - // Configures CPU shares (relative weight) of the container. - CpuShares *string `pulumi:"cpuShares"` - // Limits the set of CPU cores the container can use. - CpusetCpus *string `pulumi:"cpusetCpus"` - // Limits the set of CPU memory nodes the container can use. - CpusetMems *string `pulumi:"cpusetMems"` - // Automatically load images to the Docker Engine image store. Defaults to `false` - DefaultLoad *bool `pulumi:"defaultLoad"` - // Sets environment variables in the container. - Env map[string]string `pulumi:"env"` - // Sets the BuildKit image to use for the container. - Image *string `pulumi:"image"` - // Sets the amount of memory the container can use. - Memory *string `pulumi:"memory"` - // Sets the memory swap limit for the container. - MemorySwap *string `pulumi:"memorySwap"` - // Sets the network mode for the container. - Network *string `pulumi:"network"` - // Sets the container's restart policy. - RestartPolicy *string `pulumi:"restartPolicy"` +type ContainerCapabilities struct { + // List of linux capabilities to add. + Adds []string `pulumi:"adds"` + // List of linux capabilities to drop. + Drops []string `pulumi:"drops"` } -// BuildxBuilderDockerContainerInput is an input type that accepts BuildxBuilderDockerContainerArgs and BuildxBuilderDockerContainerOutput values. -// You can construct a concrete instance of `BuildxBuilderDockerContainerInput` via: +// ContainerCapabilitiesInput is an input type that accepts ContainerCapabilitiesArgs and ContainerCapabilitiesOutput values. +// You can construct a concrete instance of `ContainerCapabilitiesInput` via: // -// BuildxBuilderDockerContainerArgs{...} -type BuildxBuilderDockerContainerInput interface { +// ContainerCapabilitiesArgs{...} +type ContainerCapabilitiesInput interface { pulumi.Input - ToBuildxBuilderDockerContainerOutput() BuildxBuilderDockerContainerOutput - ToBuildxBuilderDockerContainerOutputWithContext(context.Context) BuildxBuilderDockerContainerOutput + ToContainerCapabilitiesOutput() ContainerCapabilitiesOutput + ToContainerCapabilitiesOutputWithContext(context.Context) ContainerCapabilitiesOutput } -type BuildxBuilderDockerContainerArgs struct { - // Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. - CgroupParent pulumi.StringPtrInput `pulumi:"cgroupParent"` - // Sets the CPU CFS scheduler period for the container. - CpuPeriod pulumi.StringPtrInput `pulumi:"cpuPeriod"` - // Imposes a CPU CFS quota on the container. - CpuQuota pulumi.StringPtrInput `pulumi:"cpuQuota"` - // Configures CPU shares (relative weight) of the container. - CpuShares pulumi.StringPtrInput `pulumi:"cpuShares"` - // Limits the set of CPU cores the container can use. - CpusetCpus pulumi.StringPtrInput `pulumi:"cpusetCpus"` - // Limits the set of CPU memory nodes the container can use. - CpusetMems pulumi.StringPtrInput `pulumi:"cpusetMems"` - // Automatically load images to the Docker Engine image store. Defaults to `false` - DefaultLoad pulumi.BoolPtrInput `pulumi:"defaultLoad"` - // Sets environment variables in the container. - Env pulumi.StringMapInput `pulumi:"env"` - // Sets the BuildKit image to use for the container. - Image pulumi.StringPtrInput `pulumi:"image"` - // Sets the amount of memory the container can use. - Memory pulumi.StringPtrInput `pulumi:"memory"` - // Sets the memory swap limit for the container. - MemorySwap pulumi.StringPtrInput `pulumi:"memorySwap"` - // Sets the network mode for the container. - Network pulumi.StringPtrInput `pulumi:"network"` - // Sets the container's restart policy. - RestartPolicy pulumi.StringPtrInput `pulumi:"restartPolicy"` +type ContainerCapabilitiesArgs struct { + // List of linux capabilities to add. + Adds pulumi.StringArrayInput `pulumi:"adds"` + // List of linux capabilities to drop. + Drops pulumi.StringArrayInput `pulumi:"drops"` } -func (BuildxBuilderDockerContainerArgs) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderDockerContainer)(nil)).Elem() +func (ContainerCapabilitiesArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerCapabilities)(nil)).Elem() } -func (i BuildxBuilderDockerContainerArgs) ToBuildxBuilderDockerContainerOutput() BuildxBuilderDockerContainerOutput { - return i.ToBuildxBuilderDockerContainerOutputWithContext(context.Background()) +func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesOutput() ContainerCapabilitiesOutput { + return i.ToContainerCapabilitiesOutputWithContext(context.Background()) } -func (i BuildxBuilderDockerContainerArgs) ToBuildxBuilderDockerContainerOutputWithContext(ctx context.Context) BuildxBuilderDockerContainerOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderDockerContainerOutput) +func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesOutputWithContext(ctx context.Context) ContainerCapabilitiesOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerCapabilitiesOutput) } -func (i BuildxBuilderDockerContainerArgs) ToBuildxBuilderDockerContainerPtrOutput() BuildxBuilderDockerContainerPtrOutput { - return i.ToBuildxBuilderDockerContainerPtrOutputWithContext(context.Background()) +func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { + return i.ToContainerCapabilitiesPtrOutputWithContext(context.Background()) } -func (i BuildxBuilderDockerContainerArgs) ToBuildxBuilderDockerContainerPtrOutputWithContext(ctx context.Context) BuildxBuilderDockerContainerPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderDockerContainerOutput).ToBuildxBuilderDockerContainerPtrOutputWithContext(ctx) +func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerCapabilitiesOutput).ToContainerCapabilitiesPtrOutputWithContext(ctx) } -// BuildxBuilderDockerContainerPtrInput is an input type that accepts BuildxBuilderDockerContainerArgs, BuildxBuilderDockerContainerPtr and BuildxBuilderDockerContainerPtrOutput values. -// You can construct a concrete instance of `BuildxBuilderDockerContainerPtrInput` via: +// ContainerCapabilitiesPtrInput is an input type that accepts ContainerCapabilitiesArgs, ContainerCapabilitiesPtr and ContainerCapabilitiesPtrOutput values. +// You can construct a concrete instance of `ContainerCapabilitiesPtrInput` via: // -// BuildxBuilderDockerContainerArgs{...} +// ContainerCapabilitiesArgs{...} // // or: // // nil -type BuildxBuilderDockerContainerPtrInput interface { +type ContainerCapabilitiesPtrInput interface { pulumi.Input - ToBuildxBuilderDockerContainerPtrOutput() BuildxBuilderDockerContainerPtrOutput - ToBuildxBuilderDockerContainerPtrOutputWithContext(context.Context) BuildxBuilderDockerContainerPtrOutput + ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput + ToContainerCapabilitiesPtrOutputWithContext(context.Context) ContainerCapabilitiesPtrOutput } -type buildxBuilderDockerContainerPtrType BuildxBuilderDockerContainerArgs +type containerCapabilitiesPtrType ContainerCapabilitiesArgs -func BuildxBuilderDockerContainerPtr(v *BuildxBuilderDockerContainerArgs) BuildxBuilderDockerContainerPtrInput { - return (*buildxBuilderDockerContainerPtrType)(v) +func ContainerCapabilitiesPtr(v *ContainerCapabilitiesArgs) ContainerCapabilitiesPtrInput { + return (*containerCapabilitiesPtrType)(v) } -func (*buildxBuilderDockerContainerPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderDockerContainer)(nil)).Elem() +func (*containerCapabilitiesPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerCapabilities)(nil)).Elem() } -func (i *buildxBuilderDockerContainerPtrType) ToBuildxBuilderDockerContainerPtrOutput() BuildxBuilderDockerContainerPtrOutput { - return i.ToBuildxBuilderDockerContainerPtrOutputWithContext(context.Background()) +func (i *containerCapabilitiesPtrType) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { + return i.ToContainerCapabilitiesPtrOutputWithContext(context.Background()) } -func (i *buildxBuilderDockerContainerPtrType) ToBuildxBuilderDockerContainerPtrOutputWithContext(ctx context.Context) BuildxBuilderDockerContainerPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderDockerContainerPtrOutput) +func (i *containerCapabilitiesPtrType) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerCapabilitiesPtrOutput) } -type BuildxBuilderDockerContainerOutput struct{ *pulumi.OutputState } +type ContainerCapabilitiesOutput struct{ *pulumi.OutputState } -func (BuildxBuilderDockerContainerOutput) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderDockerContainer)(nil)).Elem() +func (ContainerCapabilitiesOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerCapabilities)(nil)).Elem() } -func (o BuildxBuilderDockerContainerOutput) ToBuildxBuilderDockerContainerOutput() BuildxBuilderDockerContainerOutput { +func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesOutput() ContainerCapabilitiesOutput { return o } -func (o BuildxBuilderDockerContainerOutput) ToBuildxBuilderDockerContainerOutputWithContext(ctx context.Context) BuildxBuilderDockerContainerOutput { +func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesOutputWithContext(ctx context.Context) ContainerCapabilitiesOutput { return o } -func (o BuildxBuilderDockerContainerOutput) ToBuildxBuilderDockerContainerPtrOutput() BuildxBuilderDockerContainerPtrOutput { - return o.ToBuildxBuilderDockerContainerPtrOutputWithContext(context.Background()) +func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { + return o.ToContainerCapabilitiesPtrOutputWithContext(context.Background()) } -func (o BuildxBuilderDockerContainerOutput) ToBuildxBuilderDockerContainerPtrOutputWithContext(ctx context.Context) BuildxBuilderDockerContainerPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v BuildxBuilderDockerContainer) *BuildxBuilderDockerContainer { +func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerCapabilities) *ContainerCapabilities { return &v - }).(BuildxBuilderDockerContainerPtrOutput) -} - -// Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. -func (o BuildxBuilderDockerContainerOutput) CgroupParent() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.CgroupParent }).(pulumi.StringPtrOutput) -} - -// Sets the CPU CFS scheduler period for the container. -func (o BuildxBuilderDockerContainerOutput) CpuPeriod() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.CpuPeriod }).(pulumi.StringPtrOutput) -} - -// Imposes a CPU CFS quota on the container. -func (o BuildxBuilderDockerContainerOutput) CpuQuota() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.CpuQuota }).(pulumi.StringPtrOutput) -} - -// Configures CPU shares (relative weight) of the container. -func (o BuildxBuilderDockerContainerOutput) CpuShares() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.CpuShares }).(pulumi.StringPtrOutput) -} - -// Limits the set of CPU cores the container can use. -func (o BuildxBuilderDockerContainerOutput) CpusetCpus() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.CpusetCpus }).(pulumi.StringPtrOutput) -} - -// Limits the set of CPU memory nodes the container can use. -func (o BuildxBuilderDockerContainerOutput) CpusetMems() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.CpusetMems }).(pulumi.StringPtrOutput) -} - -// Automatically load images to the Docker Engine image store. Defaults to `false` -func (o BuildxBuilderDockerContainerOutput) DefaultLoad() pulumi.BoolPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *bool { return v.DefaultLoad }).(pulumi.BoolPtrOutput) -} - -// Sets environment variables in the container. -func (o BuildxBuilderDockerContainerOutput) Env() pulumi.StringMapOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) map[string]string { return v.Env }).(pulumi.StringMapOutput) -} - -// Sets the BuildKit image to use for the container. -func (o BuildxBuilderDockerContainerOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.Image }).(pulumi.StringPtrOutput) -} - -// Sets the amount of memory the container can use. -func (o BuildxBuilderDockerContainerOutput) Memory() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.Memory }).(pulumi.StringPtrOutput) -} - -// Sets the memory swap limit for the container. -func (o BuildxBuilderDockerContainerOutput) MemorySwap() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.MemorySwap }).(pulumi.StringPtrOutput) + }).(ContainerCapabilitiesPtrOutput) } -// Sets the network mode for the container. -func (o BuildxBuilderDockerContainerOutput) Network() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.Network }).(pulumi.StringPtrOutput) +// List of linux capabilities to add. +func (o ContainerCapabilitiesOutput) Adds() pulumi.StringArrayOutput { + return o.ApplyT(func(v ContainerCapabilities) []string { return v.Adds }).(pulumi.StringArrayOutput) } -// Sets the container's restart policy. -func (o BuildxBuilderDockerContainerOutput) RestartPolicy() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderDockerContainer) *string { return v.RestartPolicy }).(pulumi.StringPtrOutput) +// List of linux capabilities to drop. +func (o ContainerCapabilitiesOutput) Drops() pulumi.StringArrayOutput { + return o.ApplyT(func(v ContainerCapabilities) []string { return v.Drops }).(pulumi.StringArrayOutput) } -type BuildxBuilderDockerContainerPtrOutput struct{ *pulumi.OutputState } +type ContainerCapabilitiesPtrOutput struct{ *pulumi.OutputState } -func (BuildxBuilderDockerContainerPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderDockerContainer)(nil)).Elem() +func (ContainerCapabilitiesPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerCapabilities)(nil)).Elem() } -func (o BuildxBuilderDockerContainerPtrOutput) ToBuildxBuilderDockerContainerPtrOutput() BuildxBuilderDockerContainerPtrOutput { +func (o ContainerCapabilitiesPtrOutput) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { return o } -func (o BuildxBuilderDockerContainerPtrOutput) ToBuildxBuilderDockerContainerPtrOutputWithContext(ctx context.Context) BuildxBuilderDockerContainerPtrOutput { +func (o ContainerCapabilitiesPtrOutput) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { return o } -func (o BuildxBuilderDockerContainerPtrOutput) Elem() BuildxBuilderDockerContainerOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) BuildxBuilderDockerContainer { +func (o ContainerCapabilitiesPtrOutput) Elem() ContainerCapabilitiesOutput { + return o.ApplyT(func(v *ContainerCapabilities) ContainerCapabilities { if v != nil { return *v } - var ret BuildxBuilderDockerContainer + var ret ContainerCapabilities return ret - }).(BuildxBuilderDockerContainerOutput) -} - -// Sets the cgroup parent of the container if Docker is using the "cgroupfs" driver. -func (o BuildxBuilderDockerContainerPtrOutput) CgroupParent() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.CgroupParent - }).(pulumi.StringPtrOutput) -} - -// Sets the CPU CFS scheduler period for the container. -func (o BuildxBuilderDockerContainerPtrOutput) CpuPeriod() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.CpuPeriod - }).(pulumi.StringPtrOutput) -} - -// Imposes a CPU CFS quota on the container. -func (o BuildxBuilderDockerContainerPtrOutput) CpuQuota() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.CpuQuota - }).(pulumi.StringPtrOutput) -} - -// Configures CPU shares (relative weight) of the container. -func (o BuildxBuilderDockerContainerPtrOutput) CpuShares() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.CpuShares - }).(pulumi.StringPtrOutput) -} - -// Limits the set of CPU cores the container can use. -func (o BuildxBuilderDockerContainerPtrOutput) CpusetCpus() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.CpusetCpus - }).(pulumi.StringPtrOutput) -} - -// Limits the set of CPU memory nodes the container can use. -func (o BuildxBuilderDockerContainerPtrOutput) CpusetMems() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.CpusetMems - }).(pulumi.StringPtrOutput) -} - -// Automatically load images to the Docker Engine image store. Defaults to `false` -func (o BuildxBuilderDockerContainerPtrOutput) DefaultLoad() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *bool { - if v == nil { - return nil - } - return v.DefaultLoad - }).(pulumi.BoolPtrOutput) -} - -// Sets environment variables in the container. -func (o BuildxBuilderDockerContainerPtrOutput) Env() pulumi.StringMapOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) map[string]string { - if v == nil { - return nil - } - return v.Env - }).(pulumi.StringMapOutput) -} - -// Sets the BuildKit image to use for the container. -func (o BuildxBuilderDockerContainerPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.Image - }).(pulumi.StringPtrOutput) -} - -// Sets the amount of memory the container can use. -func (o BuildxBuilderDockerContainerPtrOutput) Memory() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.Memory - }).(pulumi.StringPtrOutput) -} - -// Sets the memory swap limit for the container. -func (o BuildxBuilderDockerContainerPtrOutput) MemorySwap() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { - if v == nil { - return nil - } - return v.MemorySwap - }).(pulumi.StringPtrOutput) + }).(ContainerCapabilitiesOutput) } -// Sets the network mode for the container. -func (o BuildxBuilderDockerContainerPtrOutput) Network() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { +// List of linux capabilities to add. +func (o ContainerCapabilitiesPtrOutput) Adds() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ContainerCapabilities) []string { if v == nil { return nil } - return v.Network - }).(pulumi.StringPtrOutput) + return v.Adds + }).(pulumi.StringArrayOutput) } -// Sets the container's restart policy. -func (o BuildxBuilderDockerContainerPtrOutput) RestartPolicy() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderDockerContainer) *string { +// List of linux capabilities to drop. +func (o ContainerCapabilitiesPtrOutput) Drops() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ContainerCapabilities) []string { if v == nil { return nil } - return v.RestartPolicy - }).(pulumi.StringPtrOutput) + return v.Drops + }).(pulumi.StringArrayOutput) } -type BuildxBuilderKubernetes struct { - // Sets additional annotations on the deployments and pods. - Annotations *string `pulumi:"annotations"` - // Automatically load images to the Docker Engine image store. Defaults to `false` - DefaultLoad *bool `pulumi:"defaultLoad"` - // Sets the image to use for running BuildKit. - Image *string `pulumi:"image"` - // Sets additional labels on the deployments and pods. - Labels *string `pulumi:"labels"` - // Resource limits for CPU, memory, and ephemeral storage. - Limits *BuildxBuilderKubernetesLimits `pulumi:"limits"` - // Load-balancing strategy (sticky or random). - Loadbalance *string `pulumi:"loadbalance"` - // Sets the Kubernetes namespace. - Namespace *string `pulumi:"namespace"` - // Sets the pod's nodeSelector label(s). - Nodeselector *string `pulumi:"nodeselector"` - // QEMU emulation configuration. - Qemu *BuildxBuilderKubernetesQemu `pulumi:"qemu"` - // Sets the number of Pod replicas to create. - Replicas *int `pulumi:"replicas"` - // Resource requests for CPU, memory, and ephemeral storage. - Requests *BuildxBuilderKubernetesRequests `pulumi:"requests"` - // Run the container as a non-root user. - Rootless *bool `pulumi:"rootless"` - // Sets the scheduler responsible for scheduling the pod. - Schedulername *string `pulumi:"schedulername"` - // Sets the pod's serviceAccountName. - Serviceaccount *string `pulumi:"serviceaccount"` - // Set the timeout limit for pod provisioning. - Timeout *string `pulumi:"timeout"` - // Configures the pod's taint toleration. - Tolerations *string `pulumi:"tolerations"` +type ContainerDevice struct { + // The path in the container where the device will be bound. + ContainerPath *string `pulumi:"containerPath"` + // The path on the host where the device is located. + HostPath string `pulumi:"hostPath"` + // The cgroup permissions given to the container to access the device. Defaults to `rwm`. + Permissions *string `pulumi:"permissions"` } -// BuildxBuilderKubernetesInput is an input type that accepts BuildxBuilderKubernetesArgs and BuildxBuilderKubernetesOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesInput` via: +// ContainerDeviceInput is an input type that accepts ContainerDeviceArgs and ContainerDeviceOutput values. +// You can construct a concrete instance of `ContainerDeviceInput` via: // -// BuildxBuilderKubernetesArgs{...} -type BuildxBuilderKubernetesInput interface { +// ContainerDeviceArgs{...} +type ContainerDeviceInput interface { pulumi.Input - ToBuildxBuilderKubernetesOutput() BuildxBuilderKubernetesOutput - ToBuildxBuilderKubernetesOutputWithContext(context.Context) BuildxBuilderKubernetesOutput -} - -type BuildxBuilderKubernetesArgs struct { - // Sets additional annotations on the deployments and pods. - Annotations pulumi.StringPtrInput `pulumi:"annotations"` - // Automatically load images to the Docker Engine image store. Defaults to `false` - DefaultLoad pulumi.BoolPtrInput `pulumi:"defaultLoad"` - // Sets the image to use for running BuildKit. - Image pulumi.StringPtrInput `pulumi:"image"` - // Sets additional labels on the deployments and pods. - Labels pulumi.StringPtrInput `pulumi:"labels"` - // Resource limits for CPU, memory, and ephemeral storage. - Limits BuildxBuilderKubernetesLimitsPtrInput `pulumi:"limits"` - // Load-balancing strategy (sticky or random). - Loadbalance pulumi.StringPtrInput `pulumi:"loadbalance"` - // Sets the Kubernetes namespace. - Namespace pulumi.StringPtrInput `pulumi:"namespace"` - // Sets the pod's nodeSelector label(s). - Nodeselector pulumi.StringPtrInput `pulumi:"nodeselector"` - // QEMU emulation configuration. - Qemu BuildxBuilderKubernetesQemuPtrInput `pulumi:"qemu"` - // Sets the number of Pod replicas to create. - Replicas pulumi.IntPtrInput `pulumi:"replicas"` - // Resource requests for CPU, memory, and ephemeral storage. - Requests BuildxBuilderKubernetesRequestsPtrInput `pulumi:"requests"` - // Run the container as a non-root user. - Rootless pulumi.BoolPtrInput `pulumi:"rootless"` - // Sets the scheduler responsible for scheduling the pod. - Schedulername pulumi.StringPtrInput `pulumi:"schedulername"` - // Sets the pod's serviceAccountName. - Serviceaccount pulumi.StringPtrInput `pulumi:"serviceaccount"` - // Set the timeout limit for pod provisioning. - Timeout pulumi.StringPtrInput `pulumi:"timeout"` - // Configures the pod's taint toleration. - Tolerations pulumi.StringPtrInput `pulumi:"tolerations"` -} - -func (BuildxBuilderKubernetesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetes)(nil)).Elem() + ToContainerDeviceOutput() ContainerDeviceOutput + ToContainerDeviceOutputWithContext(context.Context) ContainerDeviceOutput } -func (i BuildxBuilderKubernetesArgs) ToBuildxBuilderKubernetesOutput() BuildxBuilderKubernetesOutput { - return i.ToBuildxBuilderKubernetesOutputWithContext(context.Background()) +type ContainerDeviceArgs struct { + // The path in the container where the device will be bound. + ContainerPath pulumi.StringPtrInput `pulumi:"containerPath"` + // The path on the host where the device is located. + HostPath pulumi.StringInput `pulumi:"hostPath"` + // The cgroup permissions given to the container to access the device. Defaults to `rwm`. + Permissions pulumi.StringPtrInput `pulumi:"permissions"` } -func (i BuildxBuilderKubernetesArgs) ToBuildxBuilderKubernetesOutputWithContext(ctx context.Context) BuildxBuilderKubernetesOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesOutput) +func (ContainerDeviceArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerDevice)(nil)).Elem() } -func (i BuildxBuilderKubernetesArgs) ToBuildxBuilderKubernetesPtrOutput() BuildxBuilderKubernetesPtrOutput { - return i.ToBuildxBuilderKubernetesPtrOutputWithContext(context.Background()) +func (i ContainerDeviceArgs) ToContainerDeviceOutput() ContainerDeviceOutput { + return i.ToContainerDeviceOutputWithContext(context.Background()) } -func (i BuildxBuilderKubernetesArgs) ToBuildxBuilderKubernetesPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesOutput).ToBuildxBuilderKubernetesPtrOutputWithContext(ctx) +func (i ContainerDeviceArgs) ToContainerDeviceOutputWithContext(ctx context.Context) ContainerDeviceOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerDeviceOutput) } -// BuildxBuilderKubernetesPtrInput is an input type that accepts BuildxBuilderKubernetesArgs, BuildxBuilderKubernetesPtr and BuildxBuilderKubernetesPtrOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesPtrInput` via: -// -// BuildxBuilderKubernetesArgs{...} -// -// or: +// ContainerDeviceArrayInput is an input type that accepts ContainerDeviceArray and ContainerDeviceArrayOutput values. +// You can construct a concrete instance of `ContainerDeviceArrayInput` via: // -// nil -type BuildxBuilderKubernetesPtrInput interface { +// ContainerDeviceArray{ ContainerDeviceArgs{...} } +type ContainerDeviceArrayInput interface { pulumi.Input - ToBuildxBuilderKubernetesPtrOutput() BuildxBuilderKubernetesPtrOutput - ToBuildxBuilderKubernetesPtrOutputWithContext(context.Context) BuildxBuilderKubernetesPtrOutput + ToContainerDeviceArrayOutput() ContainerDeviceArrayOutput + ToContainerDeviceArrayOutputWithContext(context.Context) ContainerDeviceArrayOutput } -type buildxBuilderKubernetesPtrType BuildxBuilderKubernetesArgs - -func BuildxBuilderKubernetesPtr(v *BuildxBuilderKubernetesArgs) BuildxBuilderKubernetesPtrInput { - return (*buildxBuilderKubernetesPtrType)(v) -} +type ContainerDeviceArray []ContainerDeviceInput -func (*buildxBuilderKubernetesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetes)(nil)).Elem() +func (ContainerDeviceArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerDevice)(nil)).Elem() } -func (i *buildxBuilderKubernetesPtrType) ToBuildxBuilderKubernetesPtrOutput() BuildxBuilderKubernetesPtrOutput { - return i.ToBuildxBuilderKubernetesPtrOutputWithContext(context.Background()) +func (i ContainerDeviceArray) ToContainerDeviceArrayOutput() ContainerDeviceArrayOutput { + return i.ToContainerDeviceArrayOutputWithContext(context.Background()) } -func (i *buildxBuilderKubernetesPtrType) ToBuildxBuilderKubernetesPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesPtrOutput) +func (i ContainerDeviceArray) ToContainerDeviceArrayOutputWithContext(ctx context.Context) ContainerDeviceArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerDeviceArrayOutput) } -type BuildxBuilderKubernetesOutput struct{ *pulumi.OutputState } +type ContainerDeviceOutput struct{ *pulumi.OutputState } -func (BuildxBuilderKubernetesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetes)(nil)).Elem() +func (ContainerDeviceOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerDevice)(nil)).Elem() } -func (o BuildxBuilderKubernetesOutput) ToBuildxBuilderKubernetesOutput() BuildxBuilderKubernetesOutput { +func (o ContainerDeviceOutput) ToContainerDeviceOutput() ContainerDeviceOutput { return o } -func (o BuildxBuilderKubernetesOutput) ToBuildxBuilderKubernetesOutputWithContext(ctx context.Context) BuildxBuilderKubernetesOutput { +func (o ContainerDeviceOutput) ToContainerDeviceOutputWithContext(ctx context.Context) ContainerDeviceOutput { return o } -func (o BuildxBuilderKubernetesOutput) ToBuildxBuilderKubernetesPtrOutput() BuildxBuilderKubernetesPtrOutput { - return o.ToBuildxBuilderKubernetesPtrOutputWithContext(context.Background()) +// The path in the container where the device will be bound. +func (o ContainerDeviceOutput) ContainerPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerDevice) *string { return v.ContainerPath }).(pulumi.StringPtrOutput) } -func (o BuildxBuilderKubernetesOutput) ToBuildxBuilderKubernetesPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v BuildxBuilderKubernetes) *BuildxBuilderKubernetes { - return &v - }).(BuildxBuilderKubernetesPtrOutput) +// The path on the host where the device is located. +func (o ContainerDeviceOutput) HostPath() pulumi.StringOutput { + return o.ApplyT(func(v ContainerDevice) string { return v.HostPath }).(pulumi.StringOutput) } -// Sets additional annotations on the deployments and pods. -func (o BuildxBuilderKubernetesOutput) Annotations() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Annotations }).(pulumi.StringPtrOutput) +// The cgroup permissions given to the container to access the device. Defaults to `rwm`. +func (o ContainerDeviceOutput) Permissions() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerDevice) *string { return v.Permissions }).(pulumi.StringPtrOutput) } -// Automatically load images to the Docker Engine image store. Defaults to `false` -func (o BuildxBuilderKubernetesOutput) DefaultLoad() pulumi.BoolPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *bool { return v.DefaultLoad }).(pulumi.BoolPtrOutput) -} +type ContainerDeviceArrayOutput struct{ *pulumi.OutputState } -// Sets the image to use for running BuildKit. -func (o BuildxBuilderKubernetesOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Image }).(pulumi.StringPtrOutput) +func (ContainerDeviceArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerDevice)(nil)).Elem() } -// Sets additional labels on the deployments and pods. -func (o BuildxBuilderKubernetesOutput) Labels() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Labels }).(pulumi.StringPtrOutput) +func (o ContainerDeviceArrayOutput) ToContainerDeviceArrayOutput() ContainerDeviceArrayOutput { + return o } -// Resource limits for CPU, memory, and ephemeral storage. -func (o BuildxBuilderKubernetesOutput) Limits() BuildxBuilderKubernetesLimitsPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *BuildxBuilderKubernetesLimits { return v.Limits }).(BuildxBuilderKubernetesLimitsPtrOutput) +func (o ContainerDeviceArrayOutput) ToContainerDeviceArrayOutputWithContext(ctx context.Context) ContainerDeviceArrayOutput { + return o } -// Load-balancing strategy (sticky or random). -func (o BuildxBuilderKubernetesOutput) Loadbalance() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Loadbalance }).(pulumi.StringPtrOutput) -} +func (o ContainerDeviceArrayOutput) Index(i pulumi.IntInput) ContainerDeviceOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerDevice { + return vs[0].([]ContainerDevice)[vs[1].(int)] + }).(ContainerDeviceOutput) +} + +type ContainerHealthcheck struct { + // Time between running the check (ms|s|m|h). Defaults to `0s`. + Interval *string `pulumi:"interval"` + // Consecutive failures needed to report unhealthy. Defaults to `0`. + Retries *int `pulumi:"retries"` + // Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. + StartPeriod *string `pulumi:"startPeriod"` + // Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. + Tests []string `pulumi:"tests"` + // Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. + Timeout *string `pulumi:"timeout"` +} + +// ContainerHealthcheckInput is an input type that accepts ContainerHealthcheckArgs and ContainerHealthcheckOutput values. +// You can construct a concrete instance of `ContainerHealthcheckInput` via: +// +// ContainerHealthcheckArgs{...} +type ContainerHealthcheckInput interface { + pulumi.Input -// Sets the Kubernetes namespace. -func (o BuildxBuilderKubernetesOutput) Namespace() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Namespace }).(pulumi.StringPtrOutput) + ToContainerHealthcheckOutput() ContainerHealthcheckOutput + ToContainerHealthcheckOutputWithContext(context.Context) ContainerHealthcheckOutput } -// Sets the pod's nodeSelector label(s). -func (o BuildxBuilderKubernetesOutput) Nodeselector() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Nodeselector }).(pulumi.StringPtrOutput) +type ContainerHealthcheckArgs struct { + // Time between running the check (ms|s|m|h). Defaults to `0s`. + Interval pulumi.StringPtrInput `pulumi:"interval"` + // Consecutive failures needed to report unhealthy. Defaults to `0`. + Retries pulumi.IntPtrInput `pulumi:"retries"` + // Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. + StartPeriod pulumi.StringPtrInput `pulumi:"startPeriod"` + // Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. + Tests pulumi.StringArrayInput `pulumi:"tests"` + // Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. + Timeout pulumi.StringPtrInput `pulumi:"timeout"` } -// QEMU emulation configuration. -func (o BuildxBuilderKubernetesOutput) Qemu() BuildxBuilderKubernetesQemuPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *BuildxBuilderKubernetesQemu { return v.Qemu }).(BuildxBuilderKubernetesQemuPtrOutput) +func (ContainerHealthcheckArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerHealthcheck)(nil)).Elem() } -// Sets the number of Pod replicas to create. -func (o BuildxBuilderKubernetesOutput) Replicas() pulumi.IntPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *int { return v.Replicas }).(pulumi.IntPtrOutput) +func (i ContainerHealthcheckArgs) ToContainerHealthcheckOutput() ContainerHealthcheckOutput { + return i.ToContainerHealthcheckOutputWithContext(context.Background()) } -// Resource requests for CPU, memory, and ephemeral storage. -func (o BuildxBuilderKubernetesOutput) Requests() BuildxBuilderKubernetesRequestsPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *BuildxBuilderKubernetesRequests { return v.Requests }).(BuildxBuilderKubernetesRequestsPtrOutput) +func (i ContainerHealthcheckArgs) ToContainerHealthcheckOutputWithContext(ctx context.Context) ContainerHealthcheckOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerHealthcheckOutput) } -// Run the container as a non-root user. -func (o BuildxBuilderKubernetesOutput) Rootless() pulumi.BoolPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *bool { return v.Rootless }).(pulumi.BoolPtrOutput) +func (i ContainerHealthcheckArgs) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { + return i.ToContainerHealthcheckPtrOutputWithContext(context.Background()) } -// Sets the scheduler responsible for scheduling the pod. -func (o BuildxBuilderKubernetesOutput) Schedulername() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Schedulername }).(pulumi.StringPtrOutput) +func (i ContainerHealthcheckArgs) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerHealthcheckOutput).ToContainerHealthcheckPtrOutputWithContext(ctx) } -// Sets the pod's serviceAccountName. -func (o BuildxBuilderKubernetesOutput) Serviceaccount() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Serviceaccount }).(pulumi.StringPtrOutput) +// ContainerHealthcheckPtrInput is an input type that accepts ContainerHealthcheckArgs, ContainerHealthcheckPtr and ContainerHealthcheckPtrOutput values. +// You can construct a concrete instance of `ContainerHealthcheckPtrInput` via: +// +// ContainerHealthcheckArgs{...} +// +// or: +// +// nil +type ContainerHealthcheckPtrInput interface { + pulumi.Input + + ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput + ToContainerHealthcheckPtrOutputWithContext(context.Context) ContainerHealthcheckPtrOutput } -// Set the timeout limit for pod provisioning. -func (o BuildxBuilderKubernetesOutput) Timeout() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Timeout }).(pulumi.StringPtrOutput) +type containerHealthcheckPtrType ContainerHealthcheckArgs + +func ContainerHealthcheckPtr(v *ContainerHealthcheckArgs) ContainerHealthcheckPtrInput { + return (*containerHealthcheckPtrType)(v) } -// Configures the pod's taint toleration. -func (o BuildxBuilderKubernetesOutput) Tolerations() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetes) *string { return v.Tolerations }).(pulumi.StringPtrOutput) +func (*containerHealthcheckPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerHealthcheck)(nil)).Elem() } -type BuildxBuilderKubernetesPtrOutput struct{ *pulumi.OutputState } +func (i *containerHealthcheckPtrType) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { + return i.ToContainerHealthcheckPtrOutputWithContext(context.Background()) +} -func (BuildxBuilderKubernetesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetes)(nil)).Elem() +func (i *containerHealthcheckPtrType) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerHealthcheckPtrOutput) } -func (o BuildxBuilderKubernetesPtrOutput) ToBuildxBuilderKubernetesPtrOutput() BuildxBuilderKubernetesPtrOutput { - return o +type ContainerHealthcheckOutput struct{ *pulumi.OutputState } + +func (ContainerHealthcheckOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerHealthcheck)(nil)).Elem() } -func (o BuildxBuilderKubernetesPtrOutput) ToBuildxBuilderKubernetesPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesPtrOutput { +func (o ContainerHealthcheckOutput) ToContainerHealthcheckOutput() ContainerHealthcheckOutput { return o } -func (o BuildxBuilderKubernetesPtrOutput) Elem() BuildxBuilderKubernetesOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) BuildxBuilderKubernetes { - if v != nil { - return *v - } - var ret BuildxBuilderKubernetes - return ret - }).(BuildxBuilderKubernetesOutput) +func (o ContainerHealthcheckOutput) ToContainerHealthcheckOutputWithContext(ctx context.Context) ContainerHealthcheckOutput { + return o } -// Sets additional annotations on the deployments and pods. -func (o BuildxBuilderKubernetesPtrOutput) Annotations() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { - if v == nil { - return nil - } - return v.Annotations - }).(pulumi.StringPtrOutput) +func (o ContainerHealthcheckOutput) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { + return o.ToContainerHealthcheckPtrOutputWithContext(context.Background()) } -// Automatically load images to the Docker Engine image store. Defaults to `false` -func (o BuildxBuilderKubernetesPtrOutput) DefaultLoad() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *bool { - if v == nil { - return nil - } - return v.DefaultLoad - }).(pulumi.BoolPtrOutput) +func (o ContainerHealthcheckOutput) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerHealthcheck) *ContainerHealthcheck { + return &v + }).(ContainerHealthcheckPtrOutput) } -// Sets the image to use for running BuildKit. -func (o BuildxBuilderKubernetesPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { - if v == nil { - return nil - } - return v.Image - }).(pulumi.StringPtrOutput) +// Time between running the check (ms|s|m|h). Defaults to `0s`. +func (o ContainerHealthcheckOutput) Interval() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerHealthcheck) *string { return v.Interval }).(pulumi.StringPtrOutput) } -// Sets additional labels on the deployments and pods. -func (o BuildxBuilderKubernetesPtrOutput) Labels() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { - if v == nil { - return nil - } - return v.Labels - }).(pulumi.StringPtrOutput) +// Consecutive failures needed to report unhealthy. Defaults to `0`. +func (o ContainerHealthcheckOutput) Retries() pulumi.IntPtrOutput { + return o.ApplyT(func(v ContainerHealthcheck) *int { return v.Retries }).(pulumi.IntPtrOutput) } -// Resource limits for CPU, memory, and ephemeral storage. -func (o BuildxBuilderKubernetesPtrOutput) Limits() BuildxBuilderKubernetesLimitsPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *BuildxBuilderKubernetesLimits { - if v == nil { - return nil - } - return v.Limits - }).(BuildxBuilderKubernetesLimitsPtrOutput) +// Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. +func (o ContainerHealthcheckOutput) StartPeriod() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerHealthcheck) *string { return v.StartPeriod }).(pulumi.StringPtrOutput) } -// Load-balancing strategy (sticky or random). -func (o BuildxBuilderKubernetesPtrOutput) Loadbalance() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { - if v == nil { - return nil - } - return v.Loadbalance - }).(pulumi.StringPtrOutput) +// Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. +func (o ContainerHealthcheckOutput) Tests() pulumi.StringArrayOutput { + return o.ApplyT(func(v ContainerHealthcheck) []string { return v.Tests }).(pulumi.StringArrayOutput) } -// Sets the Kubernetes namespace. -func (o BuildxBuilderKubernetesPtrOutput) Namespace() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { - if v == nil { - return nil - } - return v.Namespace - }).(pulumi.StringPtrOutput) +// Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. +func (o ContainerHealthcheckOutput) Timeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerHealthcheck) *string { return v.Timeout }).(pulumi.StringPtrOutput) } -// Sets the pod's nodeSelector label(s). -func (o BuildxBuilderKubernetesPtrOutput) Nodeselector() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { - if v == nil { - return nil - } - return v.Nodeselector - }).(pulumi.StringPtrOutput) +type ContainerHealthcheckPtrOutput struct{ *pulumi.OutputState } + +func (ContainerHealthcheckPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerHealthcheck)(nil)).Elem() } -// QEMU emulation configuration. -func (o BuildxBuilderKubernetesPtrOutput) Qemu() BuildxBuilderKubernetesQemuPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *BuildxBuilderKubernetesQemu { - if v == nil { - return nil - } - return v.Qemu - }).(BuildxBuilderKubernetesQemuPtrOutput) +func (o ContainerHealthcheckPtrOutput) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { + return o } -// Sets the number of Pod replicas to create. -func (o BuildxBuilderKubernetesPtrOutput) Replicas() pulumi.IntPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *int { - if v == nil { - return nil - } - return v.Replicas - }).(pulumi.IntPtrOutput) +func (o ContainerHealthcheckPtrOutput) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { + return o } -// Resource requests for CPU, memory, and ephemeral storage. -func (o BuildxBuilderKubernetesPtrOutput) Requests() BuildxBuilderKubernetesRequestsPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *BuildxBuilderKubernetesRequests { - if v == nil { - return nil +func (o ContainerHealthcheckPtrOutput) Elem() ContainerHealthcheckOutput { + return o.ApplyT(func(v *ContainerHealthcheck) ContainerHealthcheck { + if v != nil { + return *v } - return v.Requests - }).(BuildxBuilderKubernetesRequestsPtrOutput) + var ret ContainerHealthcheck + return ret + }).(ContainerHealthcheckOutput) } -// Run the container as a non-root user. -func (o BuildxBuilderKubernetesPtrOutput) Rootless() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *bool { +// Time between running the check (ms|s|m|h). Defaults to `0s`. +func (o ContainerHealthcheckPtrOutput) Interval() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ContainerHealthcheck) *string { if v == nil { return nil } - return v.Rootless - }).(pulumi.BoolPtrOutput) + return v.Interval + }).(pulumi.StringPtrOutput) } -// Sets the scheduler responsible for scheduling the pod. -func (o BuildxBuilderKubernetesPtrOutput) Schedulername() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { +// Consecutive failures needed to report unhealthy. Defaults to `0`. +func (o ContainerHealthcheckPtrOutput) Retries() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ContainerHealthcheck) *int { if v == nil { return nil } - return v.Schedulername - }).(pulumi.StringPtrOutput) + return v.Retries + }).(pulumi.IntPtrOutput) } -// Sets the pod's serviceAccountName. -func (o BuildxBuilderKubernetesPtrOutput) Serviceaccount() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { +// Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. +func (o ContainerHealthcheckPtrOutput) StartPeriod() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ContainerHealthcheck) *string { if v == nil { return nil } - return v.Serviceaccount + return v.StartPeriod }).(pulumi.StringPtrOutput) } -// Set the timeout limit for pod provisioning. -func (o BuildxBuilderKubernetesPtrOutput) Timeout() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { +// Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. +func (o ContainerHealthcheckPtrOutput) Tests() pulumi.StringArrayOutput { + return o.ApplyT(func(v *ContainerHealthcheck) []string { if v == nil { return nil } - return v.Timeout - }).(pulumi.StringPtrOutput) + return v.Tests + }).(pulumi.StringArrayOutput) } -// Configures the pod's taint toleration. -func (o BuildxBuilderKubernetesPtrOutput) Tolerations() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetes) *string { +// Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. +func (o ContainerHealthcheckPtrOutput) Timeout() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ContainerHealthcheck) *string { if v == nil { return nil } - return v.Tolerations + return v.Timeout }).(pulumi.StringPtrOutput) } -type BuildxBuilderKubernetesLimits struct { - // CPU limit for the Kubernetes pod. - Cpu *string `pulumi:"cpu"` - // Ephemeral storage limit for the Kubernetes pod. - EphemeralStorage *string `pulumi:"ephemeralStorage"` - // Memory limit for the Kubernetes pod. - Memory *string `pulumi:"memory"` +type ContainerHost struct { + // Hostname to add + Host string `pulumi:"host"` + // IP address this hostname should resolve to. + Ip string `pulumi:"ip"` } -// BuildxBuilderKubernetesLimitsInput is an input type that accepts BuildxBuilderKubernetesLimitsArgs and BuildxBuilderKubernetesLimitsOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesLimitsInput` via: +// ContainerHostInput is an input type that accepts ContainerHostArgs and ContainerHostOutput values. +// You can construct a concrete instance of `ContainerHostInput` via: // -// BuildxBuilderKubernetesLimitsArgs{...} -type BuildxBuilderKubernetesLimitsInput interface { +// ContainerHostArgs{...} +type ContainerHostInput interface { pulumi.Input - ToBuildxBuilderKubernetesLimitsOutput() BuildxBuilderKubernetesLimitsOutput - ToBuildxBuilderKubernetesLimitsOutputWithContext(context.Context) BuildxBuilderKubernetesLimitsOutput -} - -type BuildxBuilderKubernetesLimitsArgs struct { - // CPU limit for the Kubernetes pod. - Cpu pulumi.StringPtrInput `pulumi:"cpu"` - // Ephemeral storage limit for the Kubernetes pod. - EphemeralStorage pulumi.StringPtrInput `pulumi:"ephemeralStorage"` - // Memory limit for the Kubernetes pod. - Memory pulumi.StringPtrInput `pulumi:"memory"` -} - -func (BuildxBuilderKubernetesLimitsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetesLimits)(nil)).Elem() + ToContainerHostOutput() ContainerHostOutput + ToContainerHostOutputWithContext(context.Context) ContainerHostOutput } -func (i BuildxBuilderKubernetesLimitsArgs) ToBuildxBuilderKubernetesLimitsOutput() BuildxBuilderKubernetesLimitsOutput { - return i.ToBuildxBuilderKubernetesLimitsOutputWithContext(context.Background()) +type ContainerHostArgs struct { + // Hostname to add + Host pulumi.StringInput `pulumi:"host"` + // IP address this hostname should resolve to. + Ip pulumi.StringInput `pulumi:"ip"` } -func (i BuildxBuilderKubernetesLimitsArgs) ToBuildxBuilderKubernetesLimitsOutputWithContext(ctx context.Context) BuildxBuilderKubernetesLimitsOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesLimitsOutput) +func (ContainerHostArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerHost)(nil)).Elem() } -func (i BuildxBuilderKubernetesLimitsArgs) ToBuildxBuilderKubernetesLimitsPtrOutput() BuildxBuilderKubernetesLimitsPtrOutput { - return i.ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(context.Background()) +func (i ContainerHostArgs) ToContainerHostOutput() ContainerHostOutput { + return i.ToContainerHostOutputWithContext(context.Background()) } -func (i BuildxBuilderKubernetesLimitsArgs) ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesLimitsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesLimitsOutput).ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(ctx) +func (i ContainerHostArgs) ToContainerHostOutputWithContext(ctx context.Context) ContainerHostOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerHostOutput) } -// BuildxBuilderKubernetesLimitsPtrInput is an input type that accepts BuildxBuilderKubernetesLimitsArgs, BuildxBuilderKubernetesLimitsPtr and BuildxBuilderKubernetesLimitsPtrOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesLimitsPtrInput` via: -// -// BuildxBuilderKubernetesLimitsArgs{...} -// -// or: +// ContainerHostArrayInput is an input type that accepts ContainerHostArray and ContainerHostArrayOutput values. +// You can construct a concrete instance of `ContainerHostArrayInput` via: // -// nil -type BuildxBuilderKubernetesLimitsPtrInput interface { +// ContainerHostArray{ ContainerHostArgs{...} } +type ContainerHostArrayInput interface { pulumi.Input - ToBuildxBuilderKubernetesLimitsPtrOutput() BuildxBuilderKubernetesLimitsPtrOutput - ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(context.Context) BuildxBuilderKubernetesLimitsPtrOutput + ToContainerHostArrayOutput() ContainerHostArrayOutput + ToContainerHostArrayOutputWithContext(context.Context) ContainerHostArrayOutput } -type buildxBuilderKubernetesLimitsPtrType BuildxBuilderKubernetesLimitsArgs - -func BuildxBuilderKubernetesLimitsPtr(v *BuildxBuilderKubernetesLimitsArgs) BuildxBuilderKubernetesLimitsPtrInput { - return (*buildxBuilderKubernetesLimitsPtrType)(v) -} +type ContainerHostArray []ContainerHostInput -func (*buildxBuilderKubernetesLimitsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetesLimits)(nil)).Elem() +func (ContainerHostArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerHost)(nil)).Elem() } -func (i *buildxBuilderKubernetesLimitsPtrType) ToBuildxBuilderKubernetesLimitsPtrOutput() BuildxBuilderKubernetesLimitsPtrOutput { - return i.ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(context.Background()) +func (i ContainerHostArray) ToContainerHostArrayOutput() ContainerHostArrayOutput { + return i.ToContainerHostArrayOutputWithContext(context.Background()) } -func (i *buildxBuilderKubernetesLimitsPtrType) ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesLimitsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesLimitsPtrOutput) +func (i ContainerHostArray) ToContainerHostArrayOutputWithContext(ctx context.Context) ContainerHostArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerHostArrayOutput) } -type BuildxBuilderKubernetesLimitsOutput struct{ *pulumi.OutputState } +type ContainerHostOutput struct{ *pulumi.OutputState } -func (BuildxBuilderKubernetesLimitsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetesLimits)(nil)).Elem() +func (ContainerHostOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerHost)(nil)).Elem() } -func (o BuildxBuilderKubernetesLimitsOutput) ToBuildxBuilderKubernetesLimitsOutput() BuildxBuilderKubernetesLimitsOutput { +func (o ContainerHostOutput) ToContainerHostOutput() ContainerHostOutput { return o } -func (o BuildxBuilderKubernetesLimitsOutput) ToBuildxBuilderKubernetesLimitsOutputWithContext(ctx context.Context) BuildxBuilderKubernetesLimitsOutput { +func (o ContainerHostOutput) ToContainerHostOutputWithContext(ctx context.Context) ContainerHostOutput { return o } -func (o BuildxBuilderKubernetesLimitsOutput) ToBuildxBuilderKubernetesLimitsPtrOutput() BuildxBuilderKubernetesLimitsPtrOutput { - return o.ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(context.Background()) +// Hostname to add +func (o ContainerHostOutput) Host() pulumi.StringOutput { + return o.ApplyT(func(v ContainerHost) string { return v.Host }).(pulumi.StringOutput) } -func (o BuildxBuilderKubernetesLimitsOutput) ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesLimitsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v BuildxBuilderKubernetesLimits) *BuildxBuilderKubernetesLimits { - return &v - }).(BuildxBuilderKubernetesLimitsPtrOutput) +// IP address this hostname should resolve to. +func (o ContainerHostOutput) Ip() pulumi.StringOutput { + return o.ApplyT(func(v ContainerHost) string { return v.Ip }).(pulumi.StringOutput) } -// CPU limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesLimitsOutput) Cpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesLimits) *string { return v.Cpu }).(pulumi.StringPtrOutput) -} +type ContainerHostArrayOutput struct{ *pulumi.OutputState } -// Ephemeral storage limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesLimitsOutput) EphemeralStorage() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesLimits) *string { return v.EphemeralStorage }).(pulumi.StringPtrOutput) +func (ContainerHostArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerHost)(nil)).Elem() } -// Memory limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesLimitsOutput) Memory() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesLimits) *string { return v.Memory }).(pulumi.StringPtrOutput) +func (o ContainerHostArrayOutput) ToContainerHostArrayOutput() ContainerHostArrayOutput { + return o } -type BuildxBuilderKubernetesLimitsPtrOutput struct{ *pulumi.OutputState } - -func (BuildxBuilderKubernetesLimitsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetesLimits)(nil)).Elem() +func (o ContainerHostArrayOutput) ToContainerHostArrayOutputWithContext(ctx context.Context) ContainerHostArrayOutput { + return o } -func (o BuildxBuilderKubernetesLimitsPtrOutput) ToBuildxBuilderKubernetesLimitsPtrOutput() BuildxBuilderKubernetesLimitsPtrOutput { - return o -} - -func (o BuildxBuilderKubernetesLimitsPtrOutput) ToBuildxBuilderKubernetesLimitsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesLimitsPtrOutput { - return o -} - -func (o BuildxBuilderKubernetesLimitsPtrOutput) Elem() BuildxBuilderKubernetesLimitsOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesLimits) BuildxBuilderKubernetesLimits { - if v != nil { - return *v - } - var ret BuildxBuilderKubernetesLimits - return ret - }).(BuildxBuilderKubernetesLimitsOutput) -} - -// CPU limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesLimitsPtrOutput) Cpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesLimits) *string { - if v == nil { - return nil - } - return v.Cpu - }).(pulumi.StringPtrOutput) -} - -// Ephemeral storage limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesLimitsPtrOutput) EphemeralStorage() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesLimits) *string { - if v == nil { - return nil - } - return v.EphemeralStorage - }).(pulumi.StringPtrOutput) -} - -// Memory limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesLimitsPtrOutput) Memory() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesLimits) *string { - if v == nil { - return nil - } - return v.Memory - }).(pulumi.StringPtrOutput) +func (o ContainerHostArrayOutput) Index(i pulumi.IntInput) ContainerHostOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerHost { + return vs[0].([]ContainerHost)[vs[1].(int)] + }).(ContainerHostOutput) } -type BuildxBuilderKubernetesQemu struct { - // Sets the QEMU emulation image. - Image *string `pulumi:"image"` - // Install QEMU emulation for multi-platform support. - Install *bool `pulumi:"install"` +type ContainerLabel struct { + // Name of the label + Label string `pulumi:"label"` + // Value of the label + Value string `pulumi:"value"` } -// BuildxBuilderKubernetesQemuInput is an input type that accepts BuildxBuilderKubernetesQemuArgs and BuildxBuilderKubernetesQemuOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesQemuInput` via: +// ContainerLabelInput is an input type that accepts ContainerLabelArgs and ContainerLabelOutput values. +// You can construct a concrete instance of `ContainerLabelInput` via: // -// BuildxBuilderKubernetesQemuArgs{...} -type BuildxBuilderKubernetesQemuInput interface { +// ContainerLabelArgs{...} +type ContainerLabelInput interface { pulumi.Input - ToBuildxBuilderKubernetesQemuOutput() BuildxBuilderKubernetesQemuOutput - ToBuildxBuilderKubernetesQemuOutputWithContext(context.Context) BuildxBuilderKubernetesQemuOutput -} - -type BuildxBuilderKubernetesQemuArgs struct { - // Sets the QEMU emulation image. - Image pulumi.StringPtrInput `pulumi:"image"` - // Install QEMU emulation for multi-platform support. - Install pulumi.BoolPtrInput `pulumi:"install"` -} - -func (BuildxBuilderKubernetesQemuArgs) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetesQemu)(nil)).Elem() + ToContainerLabelOutput() ContainerLabelOutput + ToContainerLabelOutputWithContext(context.Context) ContainerLabelOutput } -func (i BuildxBuilderKubernetesQemuArgs) ToBuildxBuilderKubernetesQemuOutput() BuildxBuilderKubernetesQemuOutput { - return i.ToBuildxBuilderKubernetesQemuOutputWithContext(context.Background()) +type ContainerLabelArgs struct { + // Name of the label + Label pulumi.StringInput `pulumi:"label"` + // Value of the label + Value pulumi.StringInput `pulumi:"value"` } -func (i BuildxBuilderKubernetesQemuArgs) ToBuildxBuilderKubernetesQemuOutputWithContext(ctx context.Context) BuildxBuilderKubernetesQemuOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesQemuOutput) +func (ContainerLabelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerLabel)(nil)).Elem() } -func (i BuildxBuilderKubernetesQemuArgs) ToBuildxBuilderKubernetesQemuPtrOutput() BuildxBuilderKubernetesQemuPtrOutput { - return i.ToBuildxBuilderKubernetesQemuPtrOutputWithContext(context.Background()) +func (i ContainerLabelArgs) ToContainerLabelOutput() ContainerLabelOutput { + return i.ToContainerLabelOutputWithContext(context.Background()) } -func (i BuildxBuilderKubernetesQemuArgs) ToBuildxBuilderKubernetesQemuPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesQemuPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesQemuOutput).ToBuildxBuilderKubernetesQemuPtrOutputWithContext(ctx) +func (i ContainerLabelArgs) ToContainerLabelOutputWithContext(ctx context.Context) ContainerLabelOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerLabelOutput) } -// BuildxBuilderKubernetesQemuPtrInput is an input type that accepts BuildxBuilderKubernetesQemuArgs, BuildxBuilderKubernetesQemuPtr and BuildxBuilderKubernetesQemuPtrOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesQemuPtrInput` via: -// -// BuildxBuilderKubernetesQemuArgs{...} -// -// or: +// ContainerLabelArrayInput is an input type that accepts ContainerLabelArray and ContainerLabelArrayOutput values. +// You can construct a concrete instance of `ContainerLabelArrayInput` via: // -// nil -type BuildxBuilderKubernetesQemuPtrInput interface { +// ContainerLabelArray{ ContainerLabelArgs{...} } +type ContainerLabelArrayInput interface { pulumi.Input - ToBuildxBuilderKubernetesQemuPtrOutput() BuildxBuilderKubernetesQemuPtrOutput - ToBuildxBuilderKubernetesQemuPtrOutputWithContext(context.Context) BuildxBuilderKubernetesQemuPtrOutput + ToContainerLabelArrayOutput() ContainerLabelArrayOutput + ToContainerLabelArrayOutputWithContext(context.Context) ContainerLabelArrayOutput } -type buildxBuilderKubernetesQemuPtrType BuildxBuilderKubernetesQemuArgs - -func BuildxBuilderKubernetesQemuPtr(v *BuildxBuilderKubernetesQemuArgs) BuildxBuilderKubernetesQemuPtrInput { - return (*buildxBuilderKubernetesQemuPtrType)(v) -} +type ContainerLabelArray []ContainerLabelInput -func (*buildxBuilderKubernetesQemuPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetesQemu)(nil)).Elem() +func (ContainerLabelArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerLabel)(nil)).Elem() } -func (i *buildxBuilderKubernetesQemuPtrType) ToBuildxBuilderKubernetesQemuPtrOutput() BuildxBuilderKubernetesQemuPtrOutput { - return i.ToBuildxBuilderKubernetesQemuPtrOutputWithContext(context.Background()) +func (i ContainerLabelArray) ToContainerLabelArrayOutput() ContainerLabelArrayOutput { + return i.ToContainerLabelArrayOutputWithContext(context.Background()) } -func (i *buildxBuilderKubernetesQemuPtrType) ToBuildxBuilderKubernetesQemuPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesQemuPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesQemuPtrOutput) +func (i ContainerLabelArray) ToContainerLabelArrayOutputWithContext(ctx context.Context) ContainerLabelArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerLabelArrayOutput) } -type BuildxBuilderKubernetesQemuOutput struct{ *pulumi.OutputState } +type ContainerLabelOutput struct{ *pulumi.OutputState } -func (BuildxBuilderKubernetesQemuOutput) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetesQemu)(nil)).Elem() +func (ContainerLabelOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerLabel)(nil)).Elem() } -func (o BuildxBuilderKubernetesQemuOutput) ToBuildxBuilderKubernetesQemuOutput() BuildxBuilderKubernetesQemuOutput { +func (o ContainerLabelOutput) ToContainerLabelOutput() ContainerLabelOutput { return o } -func (o BuildxBuilderKubernetesQemuOutput) ToBuildxBuilderKubernetesQemuOutputWithContext(ctx context.Context) BuildxBuilderKubernetesQemuOutput { +func (o ContainerLabelOutput) ToContainerLabelOutputWithContext(ctx context.Context) ContainerLabelOutput { return o } -func (o BuildxBuilderKubernetesQemuOutput) ToBuildxBuilderKubernetesQemuPtrOutput() BuildxBuilderKubernetesQemuPtrOutput { - return o.ToBuildxBuilderKubernetesQemuPtrOutputWithContext(context.Background()) -} - -func (o BuildxBuilderKubernetesQemuOutput) ToBuildxBuilderKubernetesQemuPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesQemuPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v BuildxBuilderKubernetesQemu) *BuildxBuilderKubernetesQemu { - return &v - }).(BuildxBuilderKubernetesQemuPtrOutput) -} - -// Sets the QEMU emulation image. -func (o BuildxBuilderKubernetesQemuOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesQemu) *string { return v.Image }).(pulumi.StringPtrOutput) +// Name of the label +func (o ContainerLabelOutput) Label() pulumi.StringOutput { + return o.ApplyT(func(v ContainerLabel) string { return v.Label }).(pulumi.StringOutput) } -// Install QEMU emulation for multi-platform support. -func (o BuildxBuilderKubernetesQemuOutput) Install() pulumi.BoolPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesQemu) *bool { return v.Install }).(pulumi.BoolPtrOutput) +// Value of the label +func (o ContainerLabelOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v ContainerLabel) string { return v.Value }).(pulumi.StringOutput) } -type BuildxBuilderKubernetesQemuPtrOutput struct{ *pulumi.OutputState } +type ContainerLabelArrayOutput struct{ *pulumi.OutputState } -func (BuildxBuilderKubernetesQemuPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetesQemu)(nil)).Elem() +func (ContainerLabelArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerLabel)(nil)).Elem() } -func (o BuildxBuilderKubernetesQemuPtrOutput) ToBuildxBuilderKubernetesQemuPtrOutput() BuildxBuilderKubernetesQemuPtrOutput { +func (o ContainerLabelArrayOutput) ToContainerLabelArrayOutput() ContainerLabelArrayOutput { return o } -func (o BuildxBuilderKubernetesQemuPtrOutput) ToBuildxBuilderKubernetesQemuPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesQemuPtrOutput { +func (o ContainerLabelArrayOutput) ToContainerLabelArrayOutputWithContext(ctx context.Context) ContainerLabelArrayOutput { return o } -func (o BuildxBuilderKubernetesQemuPtrOutput) Elem() BuildxBuilderKubernetesQemuOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesQemu) BuildxBuilderKubernetesQemu { - if v != nil { - return *v - } - var ret BuildxBuilderKubernetesQemu - return ret - }).(BuildxBuilderKubernetesQemuOutput) -} - -// Sets the QEMU emulation image. -func (o BuildxBuilderKubernetesQemuPtrOutput) Image() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesQemu) *string { - if v == nil { - return nil - } - return v.Image - }).(pulumi.StringPtrOutput) -} - -// Install QEMU emulation for multi-platform support. -func (o BuildxBuilderKubernetesQemuPtrOutput) Install() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesQemu) *bool { - if v == nil { - return nil - } - return v.Install - }).(pulumi.BoolPtrOutput) +func (o ContainerLabelArrayOutput) Index(i pulumi.IntInput) ContainerLabelOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerLabel { + return vs[0].([]ContainerLabel)[vs[1].(int)] + }).(ContainerLabelOutput) } -type BuildxBuilderKubernetesRequests struct { - // CPU limit for the Kubernetes pod. - Cpu *string `pulumi:"cpu"` - // Ephemeral storage limit for the Kubernetes pod. - EphemeralStorage *string `pulumi:"ephemeralStorage"` - // Memory limit for the Kubernetes pod. - Memory *string `pulumi:"memory"` +type ContainerMount struct { + // Optional configuration for the bind type. + BindOptions *ContainerMountBindOptions `pulumi:"bindOptions"` + // Whether the mount should be read-only. + ReadOnly *bool `pulumi:"readOnly"` + // Mount source (e.g. a volume name, a host path). + Source *string `pulumi:"source"` + // Container path + Target string `pulumi:"target"` + // Optional configuration for the tmpfs type. + TmpfsOptions *ContainerMountTmpfsOptions `pulumi:"tmpfsOptions"` + // The mount type + Type string `pulumi:"type"` + // Optional configuration for the volume type. + VolumeOptions *ContainerMountVolumeOptions `pulumi:"volumeOptions"` } -// BuildxBuilderKubernetesRequestsInput is an input type that accepts BuildxBuilderKubernetesRequestsArgs and BuildxBuilderKubernetesRequestsOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesRequestsInput` via: +// ContainerMountInput is an input type that accepts ContainerMountArgs and ContainerMountOutput values. +// You can construct a concrete instance of `ContainerMountInput` via: // -// BuildxBuilderKubernetesRequestsArgs{...} -type BuildxBuilderKubernetesRequestsInput interface { +// ContainerMountArgs{...} +type ContainerMountInput interface { pulumi.Input - ToBuildxBuilderKubernetesRequestsOutput() BuildxBuilderKubernetesRequestsOutput - ToBuildxBuilderKubernetesRequestsOutputWithContext(context.Context) BuildxBuilderKubernetesRequestsOutput -} - -type BuildxBuilderKubernetesRequestsArgs struct { - // CPU limit for the Kubernetes pod. - Cpu pulumi.StringPtrInput `pulumi:"cpu"` - // Ephemeral storage limit for the Kubernetes pod. - EphemeralStorage pulumi.StringPtrInput `pulumi:"ephemeralStorage"` - // Memory limit for the Kubernetes pod. - Memory pulumi.StringPtrInput `pulumi:"memory"` -} - -func (BuildxBuilderKubernetesRequestsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetesRequests)(nil)).Elem() + ToContainerMountOutput() ContainerMountOutput + ToContainerMountOutputWithContext(context.Context) ContainerMountOutput } -func (i BuildxBuilderKubernetesRequestsArgs) ToBuildxBuilderKubernetesRequestsOutput() BuildxBuilderKubernetesRequestsOutput { - return i.ToBuildxBuilderKubernetesRequestsOutputWithContext(context.Background()) +type ContainerMountArgs struct { + // Optional configuration for the bind type. + BindOptions ContainerMountBindOptionsPtrInput `pulumi:"bindOptions"` + // Whether the mount should be read-only. + ReadOnly pulumi.BoolPtrInput `pulumi:"readOnly"` + // Mount source (e.g. a volume name, a host path). + Source pulumi.StringPtrInput `pulumi:"source"` + // Container path + Target pulumi.StringInput `pulumi:"target"` + // Optional configuration for the tmpfs type. + TmpfsOptions ContainerMountTmpfsOptionsPtrInput `pulumi:"tmpfsOptions"` + // The mount type + Type pulumi.StringInput `pulumi:"type"` + // Optional configuration for the volume type. + VolumeOptions ContainerMountVolumeOptionsPtrInput `pulumi:"volumeOptions"` } -func (i BuildxBuilderKubernetesRequestsArgs) ToBuildxBuilderKubernetesRequestsOutputWithContext(ctx context.Context) BuildxBuilderKubernetesRequestsOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesRequestsOutput) +func (ContainerMountArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMount)(nil)).Elem() } -func (i BuildxBuilderKubernetesRequestsArgs) ToBuildxBuilderKubernetesRequestsPtrOutput() BuildxBuilderKubernetesRequestsPtrOutput { - return i.ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(context.Background()) +func (i ContainerMountArgs) ToContainerMountOutput() ContainerMountOutput { + return i.ToContainerMountOutputWithContext(context.Background()) } -func (i BuildxBuilderKubernetesRequestsArgs) ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesRequestsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesRequestsOutput).ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(ctx) +func (i ContainerMountArgs) ToContainerMountOutputWithContext(ctx context.Context) ContainerMountOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountOutput) } -// BuildxBuilderKubernetesRequestsPtrInput is an input type that accepts BuildxBuilderKubernetesRequestsArgs, BuildxBuilderKubernetesRequestsPtr and BuildxBuilderKubernetesRequestsPtrOutput values. -// You can construct a concrete instance of `BuildxBuilderKubernetesRequestsPtrInput` via: -// -// BuildxBuilderKubernetesRequestsArgs{...} -// -// or: +// ContainerMountArrayInput is an input type that accepts ContainerMountArray and ContainerMountArrayOutput values. +// You can construct a concrete instance of `ContainerMountArrayInput` via: // -// nil -type BuildxBuilderKubernetesRequestsPtrInput interface { +// ContainerMountArray{ ContainerMountArgs{...} } +type ContainerMountArrayInput interface { pulumi.Input - ToBuildxBuilderKubernetesRequestsPtrOutput() BuildxBuilderKubernetesRequestsPtrOutput - ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(context.Context) BuildxBuilderKubernetesRequestsPtrOutput + ToContainerMountArrayOutput() ContainerMountArrayOutput + ToContainerMountArrayOutputWithContext(context.Context) ContainerMountArrayOutput } -type buildxBuilderKubernetesRequestsPtrType BuildxBuilderKubernetesRequestsArgs - -func BuildxBuilderKubernetesRequestsPtr(v *BuildxBuilderKubernetesRequestsArgs) BuildxBuilderKubernetesRequestsPtrInput { - return (*buildxBuilderKubernetesRequestsPtrType)(v) -} +type ContainerMountArray []ContainerMountInput -func (*buildxBuilderKubernetesRequestsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetesRequests)(nil)).Elem() +func (ContainerMountArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerMount)(nil)).Elem() } -func (i *buildxBuilderKubernetesRequestsPtrType) ToBuildxBuilderKubernetesRequestsPtrOutput() BuildxBuilderKubernetesRequestsPtrOutput { - return i.ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(context.Background()) +func (i ContainerMountArray) ToContainerMountArrayOutput() ContainerMountArrayOutput { + return i.ToContainerMountArrayOutputWithContext(context.Background()) } -func (i *buildxBuilderKubernetesRequestsPtrType) ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesRequestsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderKubernetesRequestsPtrOutput) +func (i ContainerMountArray) ToContainerMountArrayOutputWithContext(ctx context.Context) ContainerMountArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountArrayOutput) } -type BuildxBuilderKubernetesRequestsOutput struct{ *pulumi.OutputState } +type ContainerMountOutput struct{ *pulumi.OutputState } -func (BuildxBuilderKubernetesRequestsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderKubernetesRequests)(nil)).Elem() +func (ContainerMountOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMount)(nil)).Elem() } -func (o BuildxBuilderKubernetesRequestsOutput) ToBuildxBuilderKubernetesRequestsOutput() BuildxBuilderKubernetesRequestsOutput { +func (o ContainerMountOutput) ToContainerMountOutput() ContainerMountOutput { return o } -func (o BuildxBuilderKubernetesRequestsOutput) ToBuildxBuilderKubernetesRequestsOutputWithContext(ctx context.Context) BuildxBuilderKubernetesRequestsOutput { +func (o ContainerMountOutput) ToContainerMountOutputWithContext(ctx context.Context) ContainerMountOutput { return o } -func (o BuildxBuilderKubernetesRequestsOutput) ToBuildxBuilderKubernetesRequestsPtrOutput() BuildxBuilderKubernetesRequestsPtrOutput { - return o.ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(context.Background()) +// Optional configuration for the bind type. +func (o ContainerMountOutput) BindOptions() ContainerMountBindOptionsPtrOutput { + return o.ApplyT(func(v ContainerMount) *ContainerMountBindOptions { return v.BindOptions }).(ContainerMountBindOptionsPtrOutput) } -func (o BuildxBuilderKubernetesRequestsOutput) ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesRequestsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v BuildxBuilderKubernetesRequests) *BuildxBuilderKubernetesRequests { - return &v - }).(BuildxBuilderKubernetesRequestsPtrOutput) +// Whether the mount should be read-only. +func (o ContainerMountOutput) ReadOnly() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ContainerMount) *bool { return v.ReadOnly }).(pulumi.BoolPtrOutput) } -// CPU limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesRequestsOutput) Cpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesRequests) *string { return v.Cpu }).(pulumi.StringPtrOutput) +// Mount source (e.g. a volume name, a host path). +func (o ContainerMountOutput) Source() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerMount) *string { return v.Source }).(pulumi.StringPtrOutput) } -// Ephemeral storage limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesRequestsOutput) EphemeralStorage() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesRequests) *string { return v.EphemeralStorage }).(pulumi.StringPtrOutput) +// Container path +func (o ContainerMountOutput) Target() pulumi.StringOutput { + return o.ApplyT(func(v ContainerMount) string { return v.Target }).(pulumi.StringOutput) } -// Memory limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesRequestsOutput) Memory() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderKubernetesRequests) *string { return v.Memory }).(pulumi.StringPtrOutput) +// Optional configuration for the tmpfs type. +func (o ContainerMountOutput) TmpfsOptions() ContainerMountTmpfsOptionsPtrOutput { + return o.ApplyT(func(v ContainerMount) *ContainerMountTmpfsOptions { return v.TmpfsOptions }).(ContainerMountTmpfsOptionsPtrOutput) } -type BuildxBuilderKubernetesRequestsPtrOutput struct{ *pulumi.OutputState } - -func (BuildxBuilderKubernetesRequestsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderKubernetesRequests)(nil)).Elem() +// The mount type +func (o ContainerMountOutput) Type() pulumi.StringOutput { + return o.ApplyT(func(v ContainerMount) string { return v.Type }).(pulumi.StringOutput) } -func (o BuildxBuilderKubernetesRequestsPtrOutput) ToBuildxBuilderKubernetesRequestsPtrOutput() BuildxBuilderKubernetesRequestsPtrOutput { - return o +// Optional configuration for the volume type. +func (o ContainerMountOutput) VolumeOptions() ContainerMountVolumeOptionsPtrOutput { + return o.ApplyT(func(v ContainerMount) *ContainerMountVolumeOptions { return v.VolumeOptions }).(ContainerMountVolumeOptionsPtrOutput) } -func (o BuildxBuilderKubernetesRequestsPtrOutput) ToBuildxBuilderKubernetesRequestsPtrOutputWithContext(ctx context.Context) BuildxBuilderKubernetesRequestsPtrOutput { - return o -} +type ContainerMountArrayOutput struct{ *pulumi.OutputState } -func (o BuildxBuilderKubernetesRequestsPtrOutput) Elem() BuildxBuilderKubernetesRequestsOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesRequests) BuildxBuilderKubernetesRequests { - if v != nil { - return *v - } - var ret BuildxBuilderKubernetesRequests - return ret - }).(BuildxBuilderKubernetesRequestsOutput) +func (ContainerMountArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerMount)(nil)).Elem() } -// CPU limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesRequestsPtrOutput) Cpu() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesRequests) *string { - if v == nil { - return nil - } - return v.Cpu - }).(pulumi.StringPtrOutput) +func (o ContainerMountArrayOutput) ToContainerMountArrayOutput() ContainerMountArrayOutput { + return o } -// Ephemeral storage limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesRequestsPtrOutput) EphemeralStorage() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesRequests) *string { - if v == nil { - return nil - } - return v.EphemeralStorage - }).(pulumi.StringPtrOutput) +func (o ContainerMountArrayOutput) ToContainerMountArrayOutputWithContext(ctx context.Context) ContainerMountArrayOutput { + return o } -// Memory limit for the Kubernetes pod. -func (o BuildxBuilderKubernetesRequestsPtrOutput) Memory() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderKubernetesRequests) *string { - if v == nil { - return nil - } - return v.Memory - }).(pulumi.StringPtrOutput) +func (o ContainerMountArrayOutput) Index(i pulumi.IntInput) ContainerMountOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerMount { + return vs[0].([]ContainerMount)[vs[1].(int)] + }).(ContainerMountOutput) } -type BuildxBuilderRemote struct { - // Absolute path to the TLS certificate authority used for validation. - Cacert *string `pulumi:"cacert"` - // Absolute path to the TLS client certificate to present to buildkitd. - Cert *string `pulumi:"cert"` - // Automatically load images to the Docker Engine image store. Defaults to `false` - DefaultLoad *bool `pulumi:"defaultLoad"` - // Sets the TLS client key. - Key *string `pulumi:"key"` - // TLS server name used in requests. - Servername *string `pulumi:"servername"` +type ContainerMountBindOptions struct { + // A propagation mode with the value. + Propagation *string `pulumi:"propagation"` } -// BuildxBuilderRemoteInput is an input type that accepts BuildxBuilderRemoteArgs and BuildxBuilderRemoteOutput values. -// You can construct a concrete instance of `BuildxBuilderRemoteInput` via: +// ContainerMountBindOptionsInput is an input type that accepts ContainerMountBindOptionsArgs and ContainerMountBindOptionsOutput values. +// You can construct a concrete instance of `ContainerMountBindOptionsInput` via: // -// BuildxBuilderRemoteArgs{...} -type BuildxBuilderRemoteInput interface { +// ContainerMountBindOptionsArgs{...} +type ContainerMountBindOptionsInput interface { pulumi.Input - ToBuildxBuilderRemoteOutput() BuildxBuilderRemoteOutput - ToBuildxBuilderRemoteOutputWithContext(context.Context) BuildxBuilderRemoteOutput + ToContainerMountBindOptionsOutput() ContainerMountBindOptionsOutput + ToContainerMountBindOptionsOutputWithContext(context.Context) ContainerMountBindOptionsOutput } -type BuildxBuilderRemoteArgs struct { - // Absolute path to the TLS certificate authority used for validation. - Cacert pulumi.StringPtrInput `pulumi:"cacert"` - // Absolute path to the TLS client certificate to present to buildkitd. - Cert pulumi.StringPtrInput `pulumi:"cert"` - // Automatically load images to the Docker Engine image store. Defaults to `false` - DefaultLoad pulumi.BoolPtrInput `pulumi:"defaultLoad"` - // Sets the TLS client key. - Key pulumi.StringPtrInput `pulumi:"key"` - // TLS server name used in requests. - Servername pulumi.StringPtrInput `pulumi:"servername"` +type ContainerMountBindOptionsArgs struct { + // A propagation mode with the value. + Propagation pulumi.StringPtrInput `pulumi:"propagation"` } -func (BuildxBuilderRemoteArgs) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderRemote)(nil)).Elem() -} +func (ContainerMountBindOptionsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountBindOptions)(nil)).Elem() +} -func (i BuildxBuilderRemoteArgs) ToBuildxBuilderRemoteOutput() BuildxBuilderRemoteOutput { - return i.ToBuildxBuilderRemoteOutputWithContext(context.Background()) +func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsOutput() ContainerMountBindOptionsOutput { + return i.ToContainerMountBindOptionsOutputWithContext(context.Background()) } -func (i BuildxBuilderRemoteArgs) ToBuildxBuilderRemoteOutputWithContext(ctx context.Context) BuildxBuilderRemoteOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderRemoteOutput) +func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsOutputWithContext(ctx context.Context) ContainerMountBindOptionsOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountBindOptionsOutput) } -func (i BuildxBuilderRemoteArgs) ToBuildxBuilderRemotePtrOutput() BuildxBuilderRemotePtrOutput { - return i.ToBuildxBuilderRemotePtrOutputWithContext(context.Background()) +func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { + return i.ToContainerMountBindOptionsPtrOutputWithContext(context.Background()) } -func (i BuildxBuilderRemoteArgs) ToBuildxBuilderRemotePtrOutputWithContext(ctx context.Context) BuildxBuilderRemotePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderRemoteOutput).ToBuildxBuilderRemotePtrOutputWithContext(ctx) +func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountBindOptionsOutput).ToContainerMountBindOptionsPtrOutputWithContext(ctx) } -// BuildxBuilderRemotePtrInput is an input type that accepts BuildxBuilderRemoteArgs, BuildxBuilderRemotePtr and BuildxBuilderRemotePtrOutput values. -// You can construct a concrete instance of `BuildxBuilderRemotePtrInput` via: +// ContainerMountBindOptionsPtrInput is an input type that accepts ContainerMountBindOptionsArgs, ContainerMountBindOptionsPtr and ContainerMountBindOptionsPtrOutput values. +// You can construct a concrete instance of `ContainerMountBindOptionsPtrInput` via: // -// BuildxBuilderRemoteArgs{...} +// ContainerMountBindOptionsArgs{...} // // or: // // nil -type BuildxBuilderRemotePtrInput interface { +type ContainerMountBindOptionsPtrInput interface { pulumi.Input - ToBuildxBuilderRemotePtrOutput() BuildxBuilderRemotePtrOutput - ToBuildxBuilderRemotePtrOutputWithContext(context.Context) BuildxBuilderRemotePtrOutput + ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput + ToContainerMountBindOptionsPtrOutputWithContext(context.Context) ContainerMountBindOptionsPtrOutput } -type buildxBuilderRemotePtrType BuildxBuilderRemoteArgs +type containerMountBindOptionsPtrType ContainerMountBindOptionsArgs -func BuildxBuilderRemotePtr(v *BuildxBuilderRemoteArgs) BuildxBuilderRemotePtrInput { - return (*buildxBuilderRemotePtrType)(v) +func ContainerMountBindOptionsPtr(v *ContainerMountBindOptionsArgs) ContainerMountBindOptionsPtrInput { + return (*containerMountBindOptionsPtrType)(v) } -func (*buildxBuilderRemotePtrType) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderRemote)(nil)).Elem() +func (*containerMountBindOptionsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerMountBindOptions)(nil)).Elem() } -func (i *buildxBuilderRemotePtrType) ToBuildxBuilderRemotePtrOutput() BuildxBuilderRemotePtrOutput { - return i.ToBuildxBuilderRemotePtrOutputWithContext(context.Background()) +func (i *containerMountBindOptionsPtrType) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { + return i.ToContainerMountBindOptionsPtrOutputWithContext(context.Background()) } -func (i *buildxBuilderRemotePtrType) ToBuildxBuilderRemotePtrOutputWithContext(ctx context.Context) BuildxBuilderRemotePtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(BuildxBuilderRemotePtrOutput) +func (i *containerMountBindOptionsPtrType) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountBindOptionsPtrOutput) } -type BuildxBuilderRemoteOutput struct{ *pulumi.OutputState } +type ContainerMountBindOptionsOutput struct{ *pulumi.OutputState } -func (BuildxBuilderRemoteOutput) ElementType() reflect.Type { - return reflect.TypeOf((*BuildxBuilderRemote)(nil)).Elem() +func (ContainerMountBindOptionsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountBindOptions)(nil)).Elem() } -func (o BuildxBuilderRemoteOutput) ToBuildxBuilderRemoteOutput() BuildxBuilderRemoteOutput { +func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsOutput() ContainerMountBindOptionsOutput { return o } -func (o BuildxBuilderRemoteOutput) ToBuildxBuilderRemoteOutputWithContext(ctx context.Context) BuildxBuilderRemoteOutput { +func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsOutputWithContext(ctx context.Context) ContainerMountBindOptionsOutput { return o } -func (o BuildxBuilderRemoteOutput) ToBuildxBuilderRemotePtrOutput() BuildxBuilderRemotePtrOutput { - return o.ToBuildxBuilderRemotePtrOutputWithContext(context.Background()) +func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { + return o.ToContainerMountBindOptionsPtrOutputWithContext(context.Background()) } -func (o BuildxBuilderRemoteOutput) ToBuildxBuilderRemotePtrOutputWithContext(ctx context.Context) BuildxBuilderRemotePtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v BuildxBuilderRemote) *BuildxBuilderRemote { +func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerMountBindOptions) *ContainerMountBindOptions { return &v - }).(BuildxBuilderRemotePtrOutput) -} - -// Absolute path to the TLS certificate authority used for validation. -func (o BuildxBuilderRemoteOutput) Cacert() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderRemote) *string { return v.Cacert }).(pulumi.StringPtrOutput) -} - -// Absolute path to the TLS client certificate to present to buildkitd. -func (o BuildxBuilderRemoteOutput) Cert() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderRemote) *string { return v.Cert }).(pulumi.StringPtrOutput) -} - -// Automatically load images to the Docker Engine image store. Defaults to `false` -func (o BuildxBuilderRemoteOutput) DefaultLoad() pulumi.BoolPtrOutput { - return o.ApplyT(func(v BuildxBuilderRemote) *bool { return v.DefaultLoad }).(pulumi.BoolPtrOutput) -} - -// Sets the TLS client key. -func (o BuildxBuilderRemoteOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderRemote) *string { return v.Key }).(pulumi.StringPtrOutput) + }).(ContainerMountBindOptionsPtrOutput) } -// TLS server name used in requests. -func (o BuildxBuilderRemoteOutput) Servername() pulumi.StringPtrOutput { - return o.ApplyT(func(v BuildxBuilderRemote) *string { return v.Servername }).(pulumi.StringPtrOutput) +// A propagation mode with the value. +func (o ContainerMountBindOptionsOutput) Propagation() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerMountBindOptions) *string { return v.Propagation }).(pulumi.StringPtrOutput) } -type BuildxBuilderRemotePtrOutput struct{ *pulumi.OutputState } +type ContainerMountBindOptionsPtrOutput struct{ *pulumi.OutputState } -func (BuildxBuilderRemotePtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**BuildxBuilderRemote)(nil)).Elem() +func (ContainerMountBindOptionsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerMountBindOptions)(nil)).Elem() } -func (o BuildxBuilderRemotePtrOutput) ToBuildxBuilderRemotePtrOutput() BuildxBuilderRemotePtrOutput { +func (o ContainerMountBindOptionsPtrOutput) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { return o } -func (o BuildxBuilderRemotePtrOutput) ToBuildxBuilderRemotePtrOutputWithContext(ctx context.Context) BuildxBuilderRemotePtrOutput { +func (o ContainerMountBindOptionsPtrOutput) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { return o } -func (o BuildxBuilderRemotePtrOutput) Elem() BuildxBuilderRemoteOutput { - return o.ApplyT(func(v *BuildxBuilderRemote) BuildxBuilderRemote { +func (o ContainerMountBindOptionsPtrOutput) Elem() ContainerMountBindOptionsOutput { + return o.ApplyT(func(v *ContainerMountBindOptions) ContainerMountBindOptions { if v != nil { return *v } - var ret BuildxBuilderRemote + var ret ContainerMountBindOptions return ret - }).(BuildxBuilderRemoteOutput) -} - -// Absolute path to the TLS certificate authority used for validation. -func (o BuildxBuilderRemotePtrOutput) Cacert() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderRemote) *string { - if v == nil { - return nil - } - return v.Cacert - }).(pulumi.StringPtrOutput) -} - -// Absolute path to the TLS client certificate to present to buildkitd. -func (o BuildxBuilderRemotePtrOutput) Cert() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderRemote) *string { - if v == nil { - return nil - } - return v.Cert - }).(pulumi.StringPtrOutput) -} - -// Automatically load images to the Docker Engine image store. Defaults to `false` -func (o BuildxBuilderRemotePtrOutput) DefaultLoad() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *BuildxBuilderRemote) *bool { - if v == nil { - return nil - } - return v.DefaultLoad - }).(pulumi.BoolPtrOutput) -} - -// Sets the TLS client key. -func (o BuildxBuilderRemotePtrOutput) Key() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderRemote) *string { - if v == nil { - return nil - } - return v.Key - }).(pulumi.StringPtrOutput) + }).(ContainerMountBindOptionsOutput) } -// TLS server name used in requests. -func (o BuildxBuilderRemotePtrOutput) Servername() pulumi.StringPtrOutput { - return o.ApplyT(func(v *BuildxBuilderRemote) *string { +// A propagation mode with the value. +func (o ContainerMountBindOptionsPtrOutput) Propagation() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ContainerMountBindOptions) *string { if v == nil { return nil } - return v.Servername + return v.Propagation }).(pulumi.StringPtrOutput) } -type ContainerCapabilities struct { - // List of linux capabilities to add. - Adds []string `pulumi:"adds"` - // List of linux capabilities to drop. - Drops []string `pulumi:"drops"` +type ContainerMountTmpfsOptions struct { + // The permission mode for the tmpfs mount in an integer. + Mode *int `pulumi:"mode"` + // The size for the tmpfs mount in bytes. + SizeBytes *int `pulumi:"sizeBytes"` } -// ContainerCapabilitiesInput is an input type that accepts ContainerCapabilitiesArgs and ContainerCapabilitiesOutput values. -// You can construct a concrete instance of `ContainerCapabilitiesInput` via: +// ContainerMountTmpfsOptionsInput is an input type that accepts ContainerMountTmpfsOptionsArgs and ContainerMountTmpfsOptionsOutput values. +// You can construct a concrete instance of `ContainerMountTmpfsOptionsInput` via: // -// ContainerCapabilitiesArgs{...} -type ContainerCapabilitiesInput interface { +// ContainerMountTmpfsOptionsArgs{...} +type ContainerMountTmpfsOptionsInput interface { pulumi.Input - ToContainerCapabilitiesOutput() ContainerCapabilitiesOutput - ToContainerCapabilitiesOutputWithContext(context.Context) ContainerCapabilitiesOutput + ToContainerMountTmpfsOptionsOutput() ContainerMountTmpfsOptionsOutput + ToContainerMountTmpfsOptionsOutputWithContext(context.Context) ContainerMountTmpfsOptionsOutput } -type ContainerCapabilitiesArgs struct { - // List of linux capabilities to add. - Adds pulumi.StringArrayInput `pulumi:"adds"` - // List of linux capabilities to drop. - Drops pulumi.StringArrayInput `pulumi:"drops"` +type ContainerMountTmpfsOptionsArgs struct { + // The permission mode for the tmpfs mount in an integer. + Mode pulumi.IntPtrInput `pulumi:"mode"` + // The size for the tmpfs mount in bytes. + SizeBytes pulumi.IntPtrInput `pulumi:"sizeBytes"` } -func (ContainerCapabilitiesArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerCapabilities)(nil)).Elem() +func (ContainerMountTmpfsOptionsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountTmpfsOptions)(nil)).Elem() } -func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesOutput() ContainerCapabilitiesOutput { - return i.ToContainerCapabilitiesOutputWithContext(context.Background()) +func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsOutput() ContainerMountTmpfsOptionsOutput { + return i.ToContainerMountTmpfsOptionsOutputWithContext(context.Background()) } -func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesOutputWithContext(ctx context.Context) ContainerCapabilitiesOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerCapabilitiesOutput) +func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountTmpfsOptionsOutput) } -func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { - return i.ToContainerCapabilitiesPtrOutputWithContext(context.Background()) +func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { + return i.ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Background()) } -func (i ContainerCapabilitiesArgs) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerCapabilitiesOutput).ToContainerCapabilitiesPtrOutputWithContext(ctx) +func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountTmpfsOptionsOutput).ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx) } -// ContainerCapabilitiesPtrInput is an input type that accepts ContainerCapabilitiesArgs, ContainerCapabilitiesPtr and ContainerCapabilitiesPtrOutput values. -// You can construct a concrete instance of `ContainerCapabilitiesPtrInput` via: +// ContainerMountTmpfsOptionsPtrInput is an input type that accepts ContainerMountTmpfsOptionsArgs, ContainerMountTmpfsOptionsPtr and ContainerMountTmpfsOptionsPtrOutput values. +// You can construct a concrete instance of `ContainerMountTmpfsOptionsPtrInput` via: // -// ContainerCapabilitiesArgs{...} +// ContainerMountTmpfsOptionsArgs{...} // // or: // // nil -type ContainerCapabilitiesPtrInput interface { +type ContainerMountTmpfsOptionsPtrInput interface { pulumi.Input - ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput - ToContainerCapabilitiesPtrOutputWithContext(context.Context) ContainerCapabilitiesPtrOutput + ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput + ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Context) ContainerMountTmpfsOptionsPtrOutput } -type containerCapabilitiesPtrType ContainerCapabilitiesArgs +type containerMountTmpfsOptionsPtrType ContainerMountTmpfsOptionsArgs -func ContainerCapabilitiesPtr(v *ContainerCapabilitiesArgs) ContainerCapabilitiesPtrInput { - return (*containerCapabilitiesPtrType)(v) +func ContainerMountTmpfsOptionsPtr(v *ContainerMountTmpfsOptionsArgs) ContainerMountTmpfsOptionsPtrInput { + return (*containerMountTmpfsOptionsPtrType)(v) } -func (*containerCapabilitiesPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerCapabilities)(nil)).Elem() +func (*containerMountTmpfsOptionsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerMountTmpfsOptions)(nil)).Elem() } -func (i *containerCapabilitiesPtrType) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { - return i.ToContainerCapabilitiesPtrOutputWithContext(context.Background()) +func (i *containerMountTmpfsOptionsPtrType) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { + return i.ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Background()) } -func (i *containerCapabilitiesPtrType) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerCapabilitiesPtrOutput) +func (i *containerMountTmpfsOptionsPtrType) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountTmpfsOptionsPtrOutput) } -type ContainerCapabilitiesOutput struct{ *pulumi.OutputState } +type ContainerMountTmpfsOptionsOutput struct{ *pulumi.OutputState } -func (ContainerCapabilitiesOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerCapabilities)(nil)).Elem() +func (ContainerMountTmpfsOptionsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountTmpfsOptions)(nil)).Elem() } -func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesOutput() ContainerCapabilitiesOutput { +func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsOutput() ContainerMountTmpfsOptionsOutput { return o } -func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesOutputWithContext(ctx context.Context) ContainerCapabilitiesOutput { +func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsOutput { return o } -func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { - return o.ToContainerCapabilitiesPtrOutputWithContext(context.Background()) +func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { + return o.ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Background()) } -func (o ContainerCapabilitiesOutput) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerCapabilities) *ContainerCapabilities { +func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerMountTmpfsOptions) *ContainerMountTmpfsOptions { return &v - }).(ContainerCapabilitiesPtrOutput) + }).(ContainerMountTmpfsOptionsPtrOutput) } -// List of linux capabilities to add. -func (o ContainerCapabilitiesOutput) Adds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ContainerCapabilities) []string { return v.Adds }).(pulumi.StringArrayOutput) +// The permission mode for the tmpfs mount in an integer. +func (o ContainerMountTmpfsOptionsOutput) Mode() pulumi.IntPtrOutput { + return o.ApplyT(func(v ContainerMountTmpfsOptions) *int { return v.Mode }).(pulumi.IntPtrOutput) } -// List of linux capabilities to drop. -func (o ContainerCapabilitiesOutput) Drops() pulumi.StringArrayOutput { - return o.ApplyT(func(v ContainerCapabilities) []string { return v.Drops }).(pulumi.StringArrayOutput) +// The size for the tmpfs mount in bytes. +func (o ContainerMountTmpfsOptionsOutput) SizeBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v ContainerMountTmpfsOptions) *int { return v.SizeBytes }).(pulumi.IntPtrOutput) } -type ContainerCapabilitiesPtrOutput struct{ *pulumi.OutputState } +type ContainerMountTmpfsOptionsPtrOutput struct{ *pulumi.OutputState } -func (ContainerCapabilitiesPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerCapabilities)(nil)).Elem() +func (ContainerMountTmpfsOptionsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerMountTmpfsOptions)(nil)).Elem() } -func (o ContainerCapabilitiesPtrOutput) ToContainerCapabilitiesPtrOutput() ContainerCapabilitiesPtrOutput { +func (o ContainerMountTmpfsOptionsPtrOutput) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { return o } -func (o ContainerCapabilitiesPtrOutput) ToContainerCapabilitiesPtrOutputWithContext(ctx context.Context) ContainerCapabilitiesPtrOutput { +func (o ContainerMountTmpfsOptionsPtrOutput) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { return o } -func (o ContainerCapabilitiesPtrOutput) Elem() ContainerCapabilitiesOutput { - return o.ApplyT(func(v *ContainerCapabilities) ContainerCapabilities { +func (o ContainerMountTmpfsOptionsPtrOutput) Elem() ContainerMountTmpfsOptionsOutput { + return o.ApplyT(func(v *ContainerMountTmpfsOptions) ContainerMountTmpfsOptions { if v != nil { return *v } - var ret ContainerCapabilities + var ret ContainerMountTmpfsOptions return ret - }).(ContainerCapabilitiesOutput) + }).(ContainerMountTmpfsOptionsOutput) } -// List of linux capabilities to add. -func (o ContainerCapabilitiesPtrOutput) Adds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ContainerCapabilities) []string { +// The permission mode for the tmpfs mount in an integer. +func (o ContainerMountTmpfsOptionsPtrOutput) Mode() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ContainerMountTmpfsOptions) *int { if v == nil { return nil } - return v.Adds - }).(pulumi.StringArrayOutput) + return v.Mode + }).(pulumi.IntPtrOutput) } -// List of linux capabilities to drop. -func (o ContainerCapabilitiesPtrOutput) Drops() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ContainerCapabilities) []string { +// The size for the tmpfs mount in bytes. +func (o ContainerMountTmpfsOptionsPtrOutput) SizeBytes() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ContainerMountTmpfsOptions) *int { if v == nil { return nil } - return v.Drops - }).(pulumi.StringArrayOutput) + return v.SizeBytes + }).(pulumi.IntPtrOutput) } -type ContainerDevice struct { - // The path in the container where the device will be bound. - ContainerPath *string `pulumi:"containerPath"` - // The path on the host where the device is located. - HostPath string `pulumi:"hostPath"` - // The cgroup permissions given to the container to access the device. Defaults to `rwm`. - Permissions *string `pulumi:"permissions"` +type ContainerMountVolumeOptions struct { + // Name of the driver to use to create the volume. + DriverName *string `pulumi:"driverName"` + // key/value map of driver specific options. + DriverOptions map[string]string `pulumi:"driverOptions"` + // User-defined key/value metadata. + Labels []ContainerMountVolumeOptionsLabel `pulumi:"labels"` + // Populate volume with data from the target. + NoCopy *bool `pulumi:"noCopy"` } -// ContainerDeviceInput is an input type that accepts ContainerDeviceArgs and ContainerDeviceOutput values. -// You can construct a concrete instance of `ContainerDeviceInput` via: +// ContainerMountVolumeOptionsInput is an input type that accepts ContainerMountVolumeOptionsArgs and ContainerMountVolumeOptionsOutput values. +// You can construct a concrete instance of `ContainerMountVolumeOptionsInput` via: // -// ContainerDeviceArgs{...} -type ContainerDeviceInput interface { +// ContainerMountVolumeOptionsArgs{...} +type ContainerMountVolumeOptionsInput interface { pulumi.Input - ToContainerDeviceOutput() ContainerDeviceOutput - ToContainerDeviceOutputWithContext(context.Context) ContainerDeviceOutput + ToContainerMountVolumeOptionsOutput() ContainerMountVolumeOptionsOutput + ToContainerMountVolumeOptionsOutputWithContext(context.Context) ContainerMountVolumeOptionsOutput } -type ContainerDeviceArgs struct { - // The path in the container where the device will be bound. - ContainerPath pulumi.StringPtrInput `pulumi:"containerPath"` - // The path on the host where the device is located. - HostPath pulumi.StringInput `pulumi:"hostPath"` - // The cgroup permissions given to the container to access the device. Defaults to `rwm`. - Permissions pulumi.StringPtrInput `pulumi:"permissions"` +type ContainerMountVolumeOptionsArgs struct { + // Name of the driver to use to create the volume. + DriverName pulumi.StringPtrInput `pulumi:"driverName"` + // key/value map of driver specific options. + DriverOptions pulumi.StringMapInput `pulumi:"driverOptions"` + // User-defined key/value metadata. + Labels ContainerMountVolumeOptionsLabelArrayInput `pulumi:"labels"` + // Populate volume with data from the target. + NoCopy pulumi.BoolPtrInput `pulumi:"noCopy"` } -func (ContainerDeviceArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerDevice)(nil)).Elem() +func (ContainerMountVolumeOptionsArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountVolumeOptions)(nil)).Elem() } -func (i ContainerDeviceArgs) ToContainerDeviceOutput() ContainerDeviceOutput { - return i.ToContainerDeviceOutputWithContext(context.Background()) +func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsOutput() ContainerMountVolumeOptionsOutput { + return i.ToContainerMountVolumeOptionsOutputWithContext(context.Background()) } -func (i ContainerDeviceArgs) ToContainerDeviceOutputWithContext(ctx context.Context) ContainerDeviceOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerDeviceOutput) +func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsOutput) } -// ContainerDeviceArrayInput is an input type that accepts ContainerDeviceArray and ContainerDeviceArrayOutput values. -// You can construct a concrete instance of `ContainerDeviceArrayInput` via: +func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { + return i.ToContainerMountVolumeOptionsPtrOutputWithContext(context.Background()) +} + +func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsOutput).ToContainerMountVolumeOptionsPtrOutputWithContext(ctx) +} + +// ContainerMountVolumeOptionsPtrInput is an input type that accepts ContainerMountVolumeOptionsArgs, ContainerMountVolumeOptionsPtr and ContainerMountVolumeOptionsPtrOutput values. +// You can construct a concrete instance of `ContainerMountVolumeOptionsPtrInput` via: // -// ContainerDeviceArray{ ContainerDeviceArgs{...} } -type ContainerDeviceArrayInput interface { +// ContainerMountVolumeOptionsArgs{...} +// +// or: +// +// nil +type ContainerMountVolumeOptionsPtrInput interface { pulumi.Input - ToContainerDeviceArrayOutput() ContainerDeviceArrayOutput - ToContainerDeviceArrayOutputWithContext(context.Context) ContainerDeviceArrayOutput + ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput + ToContainerMountVolumeOptionsPtrOutputWithContext(context.Context) ContainerMountVolumeOptionsPtrOutput } -type ContainerDeviceArray []ContainerDeviceInput +type containerMountVolumeOptionsPtrType ContainerMountVolumeOptionsArgs -func (ContainerDeviceArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerDevice)(nil)).Elem() +func ContainerMountVolumeOptionsPtr(v *ContainerMountVolumeOptionsArgs) ContainerMountVolumeOptionsPtrInput { + return (*containerMountVolumeOptionsPtrType)(v) } -func (i ContainerDeviceArray) ToContainerDeviceArrayOutput() ContainerDeviceArrayOutput { - return i.ToContainerDeviceArrayOutputWithContext(context.Background()) +func (*containerMountVolumeOptionsPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerMountVolumeOptions)(nil)).Elem() } -func (i ContainerDeviceArray) ToContainerDeviceArrayOutputWithContext(ctx context.Context) ContainerDeviceArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerDeviceArrayOutput) +func (i *containerMountVolumeOptionsPtrType) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { + return i.ToContainerMountVolumeOptionsPtrOutputWithContext(context.Background()) } -type ContainerDeviceOutput struct{ *pulumi.OutputState } +func (i *containerMountVolumeOptionsPtrType) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsPtrOutput) +} -func (ContainerDeviceOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerDevice)(nil)).Elem() +type ContainerMountVolumeOptionsOutput struct{ *pulumi.OutputState } + +func (ContainerMountVolumeOptionsOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountVolumeOptions)(nil)).Elem() } -func (o ContainerDeviceOutput) ToContainerDeviceOutput() ContainerDeviceOutput { +func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsOutput() ContainerMountVolumeOptionsOutput { return o } -func (o ContainerDeviceOutput) ToContainerDeviceOutputWithContext(ctx context.Context) ContainerDeviceOutput { +func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsOutput { return o } -// The path in the container where the device will be bound. -func (o ContainerDeviceOutput) ContainerPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerDevice) *string { return v.ContainerPath }).(pulumi.StringPtrOutput) +func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { + return o.ToContainerMountVolumeOptionsPtrOutputWithContext(context.Background()) } -// The path on the host where the device is located. -func (o ContainerDeviceOutput) HostPath() pulumi.StringOutput { - return o.ApplyT(func(v ContainerDevice) string { return v.HostPath }).(pulumi.StringOutput) +func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerMountVolumeOptions) *ContainerMountVolumeOptions { + return &v + }).(ContainerMountVolumeOptionsPtrOutput) } -// The cgroup permissions given to the container to access the device. Defaults to `rwm`. -func (o ContainerDeviceOutput) Permissions() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerDevice) *string { return v.Permissions }).(pulumi.StringPtrOutput) +// Name of the driver to use to create the volume. +func (o ContainerMountVolumeOptionsOutput) DriverName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerMountVolumeOptions) *string { return v.DriverName }).(pulumi.StringPtrOutput) } -type ContainerDeviceArrayOutput struct{ *pulumi.OutputState } - -func (ContainerDeviceArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerDevice)(nil)).Elem() +// key/value map of driver specific options. +func (o ContainerMountVolumeOptionsOutput) DriverOptions() pulumi.StringMapOutput { + return o.ApplyT(func(v ContainerMountVolumeOptions) map[string]string { return v.DriverOptions }).(pulumi.StringMapOutput) } -func (o ContainerDeviceArrayOutput) ToContainerDeviceArrayOutput() ContainerDeviceArrayOutput { - return o +// User-defined key/value metadata. +func (o ContainerMountVolumeOptionsOutput) Labels() ContainerMountVolumeOptionsLabelArrayOutput { + return o.ApplyT(func(v ContainerMountVolumeOptions) []ContainerMountVolumeOptionsLabel { return v.Labels }).(ContainerMountVolumeOptionsLabelArrayOutput) } -func (o ContainerDeviceArrayOutput) ToContainerDeviceArrayOutputWithContext(ctx context.Context) ContainerDeviceArrayOutput { - return o +// Populate volume with data from the target. +func (o ContainerMountVolumeOptionsOutput) NoCopy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ContainerMountVolumeOptions) *bool { return v.NoCopy }).(pulumi.BoolPtrOutput) } -func (o ContainerDeviceArrayOutput) Index(i pulumi.IntInput) ContainerDeviceOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerDevice { - return vs[0].([]ContainerDevice)[vs[1].(int)] - }).(ContainerDeviceOutput) -} +type ContainerMountVolumeOptionsPtrOutput struct{ *pulumi.OutputState } -type ContainerHealthcheck struct { - // Time between running the check (ms|s|m|h). Defaults to `0s`. - Interval *string `pulumi:"interval"` - // Consecutive failures needed to report unhealthy. Defaults to `0`. - Retries *int `pulumi:"retries"` - // Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`. - StartInterval *string `pulumi:"startInterval"` - // Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. - StartPeriod *string `pulumi:"startPeriod"` - // Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. - Tests []string `pulumi:"tests"` - // Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. - Timeout *string `pulumi:"timeout"` +func (ContainerMountVolumeOptionsPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ContainerMountVolumeOptions)(nil)).Elem() } -// ContainerHealthcheckInput is an input type that accepts ContainerHealthcheckArgs and ContainerHealthcheckOutput values. -// You can construct a concrete instance of `ContainerHealthcheckInput` via: -// -// ContainerHealthcheckArgs{...} -type ContainerHealthcheckInput interface { - pulumi.Input +func (o ContainerMountVolumeOptionsPtrOutput) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { + return o +} - ToContainerHealthcheckOutput() ContainerHealthcheckOutput - ToContainerHealthcheckOutputWithContext(context.Context) ContainerHealthcheckOutput +func (o ContainerMountVolumeOptionsPtrOutput) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { + return o } -type ContainerHealthcheckArgs struct { - // Time between running the check (ms|s|m|h). Defaults to `0s`. - Interval pulumi.StringPtrInput `pulumi:"interval"` - // Consecutive failures needed to report unhealthy. Defaults to `0`. - Retries pulumi.IntPtrInput `pulumi:"retries"` - // Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`. - StartInterval pulumi.StringPtrInput `pulumi:"startInterval"` - // Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. - StartPeriod pulumi.StringPtrInput `pulumi:"startPeriod"` - // Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. - Tests pulumi.StringArrayInput `pulumi:"tests"` - // Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. - Timeout pulumi.StringPtrInput `pulumi:"timeout"` +func (o ContainerMountVolumeOptionsPtrOutput) Elem() ContainerMountVolumeOptionsOutput { + return o.ApplyT(func(v *ContainerMountVolumeOptions) ContainerMountVolumeOptions { + if v != nil { + return *v + } + var ret ContainerMountVolumeOptions + return ret + }).(ContainerMountVolumeOptionsOutput) } -func (ContainerHealthcheckArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerHealthcheck)(nil)).Elem() +// Name of the driver to use to create the volume. +func (o ContainerMountVolumeOptionsPtrOutput) DriverName() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ContainerMountVolumeOptions) *string { + if v == nil { + return nil + } + return v.DriverName + }).(pulumi.StringPtrOutput) } -func (i ContainerHealthcheckArgs) ToContainerHealthcheckOutput() ContainerHealthcheckOutput { - return i.ToContainerHealthcheckOutputWithContext(context.Background()) +// key/value map of driver specific options. +func (o ContainerMountVolumeOptionsPtrOutput) DriverOptions() pulumi.StringMapOutput { + return o.ApplyT(func(v *ContainerMountVolumeOptions) map[string]string { + if v == nil { + return nil + } + return v.DriverOptions + }).(pulumi.StringMapOutput) } -func (i ContainerHealthcheckArgs) ToContainerHealthcheckOutputWithContext(ctx context.Context) ContainerHealthcheckOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerHealthcheckOutput) +// User-defined key/value metadata. +func (o ContainerMountVolumeOptionsPtrOutput) Labels() ContainerMountVolumeOptionsLabelArrayOutput { + return o.ApplyT(func(v *ContainerMountVolumeOptions) []ContainerMountVolumeOptionsLabel { + if v == nil { + return nil + } + return v.Labels + }).(ContainerMountVolumeOptionsLabelArrayOutput) } -func (i ContainerHealthcheckArgs) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { - return i.ToContainerHealthcheckPtrOutputWithContext(context.Background()) +// Populate volume with data from the target. +func (o ContainerMountVolumeOptionsPtrOutput) NoCopy() pulumi.BoolPtrOutput { + return o.ApplyT(func(v *ContainerMountVolumeOptions) *bool { + if v == nil { + return nil + } + return v.NoCopy + }).(pulumi.BoolPtrOutput) } -func (i ContainerHealthcheckArgs) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerHealthcheckOutput).ToContainerHealthcheckPtrOutputWithContext(ctx) +type ContainerMountVolumeOptionsLabel struct { + // Name of the label + Label string `pulumi:"label"` + // Value of the label + Value string `pulumi:"value"` } -// ContainerHealthcheckPtrInput is an input type that accepts ContainerHealthcheckArgs, ContainerHealthcheckPtr and ContainerHealthcheckPtrOutput values. -// You can construct a concrete instance of `ContainerHealthcheckPtrInput` via: -// -// ContainerHealthcheckArgs{...} -// -// or: +// ContainerMountVolumeOptionsLabelInput is an input type that accepts ContainerMountVolumeOptionsLabelArgs and ContainerMountVolumeOptionsLabelOutput values. +// You can construct a concrete instance of `ContainerMountVolumeOptionsLabelInput` via: // -// nil -type ContainerHealthcheckPtrInput interface { +// ContainerMountVolumeOptionsLabelArgs{...} +type ContainerMountVolumeOptionsLabelInput interface { pulumi.Input - ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput - ToContainerHealthcheckPtrOutputWithContext(context.Context) ContainerHealthcheckPtrOutput + ToContainerMountVolumeOptionsLabelOutput() ContainerMountVolumeOptionsLabelOutput + ToContainerMountVolumeOptionsLabelOutputWithContext(context.Context) ContainerMountVolumeOptionsLabelOutput } -type containerHealthcheckPtrType ContainerHealthcheckArgs +type ContainerMountVolumeOptionsLabelArgs struct { + // Name of the label + Label pulumi.StringInput `pulumi:"label"` + // Value of the label + Value pulumi.StringInput `pulumi:"value"` +} -func ContainerHealthcheckPtr(v *ContainerHealthcheckArgs) ContainerHealthcheckPtrInput { - return (*containerHealthcheckPtrType)(v) +func (ContainerMountVolumeOptionsLabelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountVolumeOptionsLabel)(nil)).Elem() } -func (*containerHealthcheckPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerHealthcheck)(nil)).Elem() +func (i ContainerMountVolumeOptionsLabelArgs) ToContainerMountVolumeOptionsLabelOutput() ContainerMountVolumeOptionsLabelOutput { + return i.ToContainerMountVolumeOptionsLabelOutputWithContext(context.Background()) } -func (i *containerHealthcheckPtrType) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { - return i.ToContainerHealthcheckPtrOutputWithContext(context.Background()) +func (i ContainerMountVolumeOptionsLabelArgs) ToContainerMountVolumeOptionsLabelOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsLabelOutput) } -func (i *containerHealthcheckPtrType) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerHealthcheckPtrOutput) -} - -type ContainerHealthcheckOutput struct{ *pulumi.OutputState } +// ContainerMountVolumeOptionsLabelArrayInput is an input type that accepts ContainerMountVolumeOptionsLabelArray and ContainerMountVolumeOptionsLabelArrayOutput values. +// You can construct a concrete instance of `ContainerMountVolumeOptionsLabelArrayInput` via: +// +// ContainerMountVolumeOptionsLabelArray{ ContainerMountVolumeOptionsLabelArgs{...} } +type ContainerMountVolumeOptionsLabelArrayInput interface { + pulumi.Input -func (ContainerHealthcheckOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerHealthcheck)(nil)).Elem() + ToContainerMountVolumeOptionsLabelArrayOutput() ContainerMountVolumeOptionsLabelArrayOutput + ToContainerMountVolumeOptionsLabelArrayOutputWithContext(context.Context) ContainerMountVolumeOptionsLabelArrayOutput } -func (o ContainerHealthcheckOutput) ToContainerHealthcheckOutput() ContainerHealthcheckOutput { - return o -} +type ContainerMountVolumeOptionsLabelArray []ContainerMountVolumeOptionsLabelInput -func (o ContainerHealthcheckOutput) ToContainerHealthcheckOutputWithContext(ctx context.Context) ContainerHealthcheckOutput { - return o +func (ContainerMountVolumeOptionsLabelArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerMountVolumeOptionsLabel)(nil)).Elem() } -func (o ContainerHealthcheckOutput) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { - return o.ToContainerHealthcheckPtrOutputWithContext(context.Background()) +func (i ContainerMountVolumeOptionsLabelArray) ToContainerMountVolumeOptionsLabelArrayOutput() ContainerMountVolumeOptionsLabelArrayOutput { + return i.ToContainerMountVolumeOptionsLabelArrayOutputWithContext(context.Background()) } -func (o ContainerHealthcheckOutput) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerHealthcheck) *ContainerHealthcheck { - return &v - }).(ContainerHealthcheckPtrOutput) +func (i ContainerMountVolumeOptionsLabelArray) ToContainerMountVolumeOptionsLabelArrayOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsLabelArrayOutput) } -// Time between running the check (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckOutput) Interval() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerHealthcheck) *string { return v.Interval }).(pulumi.StringPtrOutput) -} +type ContainerMountVolumeOptionsLabelOutput struct{ *pulumi.OutputState } -// Consecutive failures needed to report unhealthy. Defaults to `0`. -func (o ContainerHealthcheckOutput) Retries() pulumi.IntPtrOutput { - return o.ApplyT(func(v ContainerHealthcheck) *int { return v.Retries }).(pulumi.IntPtrOutput) +func (ContainerMountVolumeOptionsLabelOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerMountVolumeOptionsLabel)(nil)).Elem() } -// Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckOutput) StartInterval() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerHealthcheck) *string { return v.StartInterval }).(pulumi.StringPtrOutput) +func (o ContainerMountVolumeOptionsLabelOutput) ToContainerMountVolumeOptionsLabelOutput() ContainerMountVolumeOptionsLabelOutput { + return o } -// Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckOutput) StartPeriod() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerHealthcheck) *string { return v.StartPeriod }).(pulumi.StringPtrOutput) +func (o ContainerMountVolumeOptionsLabelOutput) ToContainerMountVolumeOptionsLabelOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelOutput { + return o } -// Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. -func (o ContainerHealthcheckOutput) Tests() pulumi.StringArrayOutput { - return o.ApplyT(func(v ContainerHealthcheck) []string { return v.Tests }).(pulumi.StringArrayOutput) +// Name of the label +func (o ContainerMountVolumeOptionsLabelOutput) Label() pulumi.StringOutput { + return o.ApplyT(func(v ContainerMountVolumeOptionsLabel) string { return v.Label }).(pulumi.StringOutput) } -// Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckOutput) Timeout() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerHealthcheck) *string { return v.Timeout }).(pulumi.StringPtrOutput) +// Value of the label +func (o ContainerMountVolumeOptionsLabelOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v ContainerMountVolumeOptionsLabel) string { return v.Value }).(pulumi.StringOutput) } -type ContainerHealthcheckPtrOutput struct{ *pulumi.OutputState } +type ContainerMountVolumeOptionsLabelArrayOutput struct{ *pulumi.OutputState } -func (ContainerHealthcheckPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerHealthcheck)(nil)).Elem() +func (ContainerMountVolumeOptionsLabelArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerMountVolumeOptionsLabel)(nil)).Elem() } -func (o ContainerHealthcheckPtrOutput) ToContainerHealthcheckPtrOutput() ContainerHealthcheckPtrOutput { +func (o ContainerMountVolumeOptionsLabelArrayOutput) ToContainerMountVolumeOptionsLabelArrayOutput() ContainerMountVolumeOptionsLabelArrayOutput { return o } -func (o ContainerHealthcheckPtrOutput) ToContainerHealthcheckPtrOutputWithContext(ctx context.Context) ContainerHealthcheckPtrOutput { +func (o ContainerMountVolumeOptionsLabelArrayOutput) ToContainerMountVolumeOptionsLabelArrayOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelArrayOutput { return o } -func (o ContainerHealthcheckPtrOutput) Elem() ContainerHealthcheckOutput { - return o.ApplyT(func(v *ContainerHealthcheck) ContainerHealthcheck { - if v != nil { - return *v - } - var ret ContainerHealthcheck - return ret - }).(ContainerHealthcheckOutput) +func (o ContainerMountVolumeOptionsLabelArrayOutput) Index(i pulumi.IntInput) ContainerMountVolumeOptionsLabelOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerMountVolumeOptionsLabel { + return vs[0].([]ContainerMountVolumeOptionsLabel)[vs[1].(int)] + }).(ContainerMountVolumeOptionsLabelOutput) } -// Time between running the check (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckPtrOutput) Interval() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ContainerHealthcheck) *string { - if v == nil { - return nil - } - return v.Interval - }).(pulumi.StringPtrOutput) +type ContainerNetworkData struct { + // The network gateway of the container. + Gateway *string `pulumi:"gateway"` + // The IPV6 address of the container. + GlobalIpv6Address *string `pulumi:"globalIpv6Address"` + // The IPV6 prefix length address of the container. + GlobalIpv6PrefixLength *int `pulumi:"globalIpv6PrefixLength"` + // The IP address of the container. + IpAddress *string `pulumi:"ipAddress"` + // The IP prefix length of the container. + IpPrefixLength *int `pulumi:"ipPrefixLength"` + // The IPV6 gateway of the container. + Ipv6Gateway *string `pulumi:"ipv6Gateway"` + // The MAC address of the container. + MacAddress *string `pulumi:"macAddress"` + // The name of the network + NetworkName *string `pulumi:"networkName"` } -// Consecutive failures needed to report unhealthy. Defaults to `0`. -func (o ContainerHealthcheckPtrOutput) Retries() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ContainerHealthcheck) *int { - if v == nil { - return nil - } - return v.Retries - }).(pulumi.IntPtrOutput) -} +// ContainerNetworkDataInput is an input type that accepts ContainerNetworkDataArgs and ContainerNetworkDataOutput values. +// You can construct a concrete instance of `ContainerNetworkDataInput` via: +// +// ContainerNetworkDataArgs{...} +type ContainerNetworkDataInput interface { + pulumi.Input -// Interval before the healthcheck starts (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckPtrOutput) StartInterval() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ContainerHealthcheck) *string { - if v == nil { - return nil - } - return v.StartInterval - }).(pulumi.StringPtrOutput) + ToContainerNetworkDataOutput() ContainerNetworkDataOutput + ToContainerNetworkDataOutputWithContext(context.Context) ContainerNetworkDataOutput } -// Start period for the container to initialize before counting retries towards unstable (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckPtrOutput) StartPeriod() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ContainerHealthcheck) *string { - if v == nil { - return nil - } - return v.StartPeriod - }).(pulumi.StringPtrOutput) +type ContainerNetworkDataArgs struct { + // The network gateway of the container. + Gateway pulumi.StringPtrInput `pulumi:"gateway"` + // The IPV6 address of the container. + GlobalIpv6Address pulumi.StringPtrInput `pulumi:"globalIpv6Address"` + // The IPV6 prefix length address of the container. + GlobalIpv6PrefixLength pulumi.IntPtrInput `pulumi:"globalIpv6PrefixLength"` + // The IP address of the container. + IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` + // The IP prefix length of the container. + IpPrefixLength pulumi.IntPtrInput `pulumi:"ipPrefixLength"` + // The IPV6 gateway of the container. + Ipv6Gateway pulumi.StringPtrInput `pulumi:"ipv6Gateway"` + // The MAC address of the container. + MacAddress pulumi.StringPtrInput `pulumi:"macAddress"` + // The name of the network + NetworkName pulumi.StringPtrInput `pulumi:"networkName"` } -// Command to run to check health. For example, to run `curl -f localhost/health` set the command to be `["CMD", "curl", "-f", "localhost/health"]`. -func (o ContainerHealthcheckPtrOutput) Tests() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ContainerHealthcheck) []string { - if v == nil { - return nil - } - return v.Tests - }).(pulumi.StringArrayOutput) +func (ContainerNetworkDataArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerNetworkData)(nil)).Elem() } -// Maximum time to allow one check to run (ms|s|m|h). Defaults to `0s`. -func (o ContainerHealthcheckPtrOutput) Timeout() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ContainerHealthcheck) *string { - if v == nil { - return nil - } - return v.Timeout - }).(pulumi.StringPtrOutput) +func (i ContainerNetworkDataArgs) ToContainerNetworkDataOutput() ContainerNetworkDataOutput { + return i.ToContainerNetworkDataOutputWithContext(context.Background()) } -type ContainerHost struct { - // Hostname to add - Host string `pulumi:"host"` - // IP address this hostname should resolve to. - Ip string `pulumi:"ip"` +func (i ContainerNetworkDataArgs) ToContainerNetworkDataOutputWithContext(ctx context.Context) ContainerNetworkDataOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworkDataOutput) } -// ContainerHostInput is an input type that accepts ContainerHostArgs and ContainerHostOutput values. -// You can construct a concrete instance of `ContainerHostInput` via: +// ContainerNetworkDataArrayInput is an input type that accepts ContainerNetworkDataArray and ContainerNetworkDataArrayOutput values. +// You can construct a concrete instance of `ContainerNetworkDataArrayInput` via: // -// ContainerHostArgs{...} -type ContainerHostInput interface { +// ContainerNetworkDataArray{ ContainerNetworkDataArgs{...} } +type ContainerNetworkDataArrayInput interface { pulumi.Input - ToContainerHostOutput() ContainerHostOutput - ToContainerHostOutputWithContext(context.Context) ContainerHostOutput + ToContainerNetworkDataArrayOutput() ContainerNetworkDataArrayOutput + ToContainerNetworkDataArrayOutputWithContext(context.Context) ContainerNetworkDataArrayOutput } -type ContainerHostArgs struct { - // Hostname to add - Host pulumi.StringInput `pulumi:"host"` - // IP address this hostname should resolve to. - Ip pulumi.StringInput `pulumi:"ip"` -} +type ContainerNetworkDataArray []ContainerNetworkDataInput -func (ContainerHostArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerHost)(nil)).Elem() +func (ContainerNetworkDataArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerNetworkData)(nil)).Elem() } -func (i ContainerHostArgs) ToContainerHostOutput() ContainerHostOutput { - return i.ToContainerHostOutputWithContext(context.Background()) +func (i ContainerNetworkDataArray) ToContainerNetworkDataArrayOutput() ContainerNetworkDataArrayOutput { + return i.ToContainerNetworkDataArrayOutputWithContext(context.Background()) } -func (i ContainerHostArgs) ToContainerHostOutputWithContext(ctx context.Context) ContainerHostOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerHostOutput) +func (i ContainerNetworkDataArray) ToContainerNetworkDataArrayOutputWithContext(ctx context.Context) ContainerNetworkDataArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworkDataArrayOutput) } -// ContainerHostArrayInput is an input type that accepts ContainerHostArray and ContainerHostArrayOutput values. -// You can construct a concrete instance of `ContainerHostArrayInput` via: -// -// ContainerHostArray{ ContainerHostArgs{...} } -type ContainerHostArrayInput interface { - pulumi.Input +type ContainerNetworkDataOutput struct{ *pulumi.OutputState } - ToContainerHostArrayOutput() ContainerHostArrayOutput - ToContainerHostArrayOutputWithContext(context.Context) ContainerHostArrayOutput +func (ContainerNetworkDataOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerNetworkData)(nil)).Elem() } -type ContainerHostArray []ContainerHostInput - -func (ContainerHostArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerHost)(nil)).Elem() +func (o ContainerNetworkDataOutput) ToContainerNetworkDataOutput() ContainerNetworkDataOutput { + return o } -func (i ContainerHostArray) ToContainerHostArrayOutput() ContainerHostArrayOutput { - return i.ToContainerHostArrayOutputWithContext(context.Background()) +func (o ContainerNetworkDataOutput) ToContainerNetworkDataOutputWithContext(ctx context.Context) ContainerNetworkDataOutput { + return o } -func (i ContainerHostArray) ToContainerHostArrayOutputWithContext(ctx context.Context) ContainerHostArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerHostArrayOutput) +// The network gateway of the container. +func (o ContainerNetworkDataOutput) Gateway() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *string { return v.Gateway }).(pulumi.StringPtrOutput) } -type ContainerHostOutput struct{ *pulumi.OutputState } +// The IPV6 address of the container. +func (o ContainerNetworkDataOutput) GlobalIpv6Address() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *string { return v.GlobalIpv6Address }).(pulumi.StringPtrOutput) +} -func (ContainerHostOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerHost)(nil)).Elem() +// The IPV6 prefix length address of the container. +func (o ContainerNetworkDataOutput) GlobalIpv6PrefixLength() pulumi.IntPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *int { return v.GlobalIpv6PrefixLength }).(pulumi.IntPtrOutput) } -func (o ContainerHostOutput) ToContainerHostOutput() ContainerHostOutput { - return o +// The IP address of the container. +func (o ContainerNetworkDataOutput) IpAddress() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *string { return v.IpAddress }).(pulumi.StringPtrOutput) } -func (o ContainerHostOutput) ToContainerHostOutputWithContext(ctx context.Context) ContainerHostOutput { - return o +// The IP prefix length of the container. +func (o ContainerNetworkDataOutput) IpPrefixLength() pulumi.IntPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *int { return v.IpPrefixLength }).(pulumi.IntPtrOutput) } -// Hostname to add -func (o ContainerHostOutput) Host() pulumi.StringOutput { - return o.ApplyT(func(v ContainerHost) string { return v.Host }).(pulumi.StringOutput) +// The IPV6 gateway of the container. +func (o ContainerNetworkDataOutput) Ipv6Gateway() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *string { return v.Ipv6Gateway }).(pulumi.StringPtrOutput) } -// IP address this hostname should resolve to. -func (o ContainerHostOutput) Ip() pulumi.StringOutput { - return o.ApplyT(func(v ContainerHost) string { return v.Ip }).(pulumi.StringOutput) +// The MAC address of the container. +func (o ContainerNetworkDataOutput) MacAddress() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *string { return v.MacAddress }).(pulumi.StringPtrOutput) } -type ContainerHostArrayOutput struct{ *pulumi.OutputState } +// The name of the network +func (o ContainerNetworkDataOutput) NetworkName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworkData) *string { return v.NetworkName }).(pulumi.StringPtrOutput) +} -func (ContainerHostArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerHost)(nil)).Elem() +type ContainerNetworkDataArrayOutput struct{ *pulumi.OutputState } + +func (ContainerNetworkDataArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerNetworkData)(nil)).Elem() } -func (o ContainerHostArrayOutput) ToContainerHostArrayOutput() ContainerHostArrayOutput { +func (o ContainerNetworkDataArrayOutput) ToContainerNetworkDataArrayOutput() ContainerNetworkDataArrayOutput { return o } -func (o ContainerHostArrayOutput) ToContainerHostArrayOutputWithContext(ctx context.Context) ContainerHostArrayOutput { +func (o ContainerNetworkDataArrayOutput) ToContainerNetworkDataArrayOutputWithContext(ctx context.Context) ContainerNetworkDataArrayOutput { return o } -func (o ContainerHostArrayOutput) Index(i pulumi.IntInput) ContainerHostOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerHost { - return vs[0].([]ContainerHost)[vs[1].(int)] - }).(ContainerHostOutput) +func (o ContainerNetworkDataArrayOutput) Index(i pulumi.IntInput) ContainerNetworkDataOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerNetworkData { + return vs[0].([]ContainerNetworkData)[vs[1].(int)] + }).(ContainerNetworkDataOutput) } -type ContainerLabel struct { - // Name of the label - Label string `pulumi:"label"` - // Value of the label - Value string `pulumi:"value"` +type ContainerNetworksAdvanced struct { + // The network aliases of the container in the specific network. + Aliases []string `pulumi:"aliases"` + // The IPV4 address of the container in the specific network. + Ipv4Address *string `pulumi:"ipv4Address"` + // The IPV6 address of the container in the specific network. + Ipv6Address *string `pulumi:"ipv6Address"` + // The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource. + Name string `pulumi:"name"` } -// ContainerLabelInput is an input type that accepts ContainerLabelArgs and ContainerLabelOutput values. -// You can construct a concrete instance of `ContainerLabelInput` via: +// ContainerNetworksAdvancedInput is an input type that accepts ContainerNetworksAdvancedArgs and ContainerNetworksAdvancedOutput values. +// You can construct a concrete instance of `ContainerNetworksAdvancedInput` via: // -// ContainerLabelArgs{...} -type ContainerLabelInput interface { +// ContainerNetworksAdvancedArgs{...} +type ContainerNetworksAdvancedInput interface { pulumi.Input - ToContainerLabelOutput() ContainerLabelOutput - ToContainerLabelOutputWithContext(context.Context) ContainerLabelOutput + ToContainerNetworksAdvancedOutput() ContainerNetworksAdvancedOutput + ToContainerNetworksAdvancedOutputWithContext(context.Context) ContainerNetworksAdvancedOutput } -type ContainerLabelArgs struct { - // Name of the label - Label pulumi.StringInput `pulumi:"label"` - // Value of the label - Value pulumi.StringInput `pulumi:"value"` +type ContainerNetworksAdvancedArgs struct { + // The network aliases of the container in the specific network. + Aliases pulumi.StringArrayInput `pulumi:"aliases"` + // The IPV4 address of the container in the specific network. + Ipv4Address pulumi.StringPtrInput `pulumi:"ipv4Address"` + // The IPV6 address of the container in the specific network. + Ipv6Address pulumi.StringPtrInput `pulumi:"ipv6Address"` + // The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource. + Name pulumi.StringInput `pulumi:"name"` } -func (ContainerLabelArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerLabel)(nil)).Elem() +func (ContainerNetworksAdvancedArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerNetworksAdvanced)(nil)).Elem() } -func (i ContainerLabelArgs) ToContainerLabelOutput() ContainerLabelOutput { - return i.ToContainerLabelOutputWithContext(context.Background()) +func (i ContainerNetworksAdvancedArgs) ToContainerNetworksAdvancedOutput() ContainerNetworksAdvancedOutput { + return i.ToContainerNetworksAdvancedOutputWithContext(context.Background()) } -func (i ContainerLabelArgs) ToContainerLabelOutputWithContext(ctx context.Context) ContainerLabelOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerLabelOutput) +func (i ContainerNetworksAdvancedArgs) ToContainerNetworksAdvancedOutputWithContext(ctx context.Context) ContainerNetworksAdvancedOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworksAdvancedOutput) } -// ContainerLabelArrayInput is an input type that accepts ContainerLabelArray and ContainerLabelArrayOutput values. -// You can construct a concrete instance of `ContainerLabelArrayInput` via: +// ContainerNetworksAdvancedArrayInput is an input type that accepts ContainerNetworksAdvancedArray and ContainerNetworksAdvancedArrayOutput values. +// You can construct a concrete instance of `ContainerNetworksAdvancedArrayInput` via: // -// ContainerLabelArray{ ContainerLabelArgs{...} } -type ContainerLabelArrayInput interface { +// ContainerNetworksAdvancedArray{ ContainerNetworksAdvancedArgs{...} } +type ContainerNetworksAdvancedArrayInput interface { pulumi.Input - ToContainerLabelArrayOutput() ContainerLabelArrayOutput - ToContainerLabelArrayOutputWithContext(context.Context) ContainerLabelArrayOutput + ToContainerNetworksAdvancedArrayOutput() ContainerNetworksAdvancedArrayOutput + ToContainerNetworksAdvancedArrayOutputWithContext(context.Context) ContainerNetworksAdvancedArrayOutput } -type ContainerLabelArray []ContainerLabelInput +type ContainerNetworksAdvancedArray []ContainerNetworksAdvancedInput -func (ContainerLabelArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerLabel)(nil)).Elem() +func (ContainerNetworksAdvancedArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerNetworksAdvanced)(nil)).Elem() } -func (i ContainerLabelArray) ToContainerLabelArrayOutput() ContainerLabelArrayOutput { - return i.ToContainerLabelArrayOutputWithContext(context.Background()) +func (i ContainerNetworksAdvancedArray) ToContainerNetworksAdvancedArrayOutput() ContainerNetworksAdvancedArrayOutput { + return i.ToContainerNetworksAdvancedArrayOutputWithContext(context.Background()) } -func (i ContainerLabelArray) ToContainerLabelArrayOutputWithContext(ctx context.Context) ContainerLabelArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerLabelArrayOutput) +func (i ContainerNetworksAdvancedArray) ToContainerNetworksAdvancedArrayOutputWithContext(ctx context.Context) ContainerNetworksAdvancedArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworksAdvancedArrayOutput) } -type ContainerLabelOutput struct{ *pulumi.OutputState } +type ContainerNetworksAdvancedOutput struct{ *pulumi.OutputState } -func (ContainerLabelOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerLabel)(nil)).Elem() +func (ContainerNetworksAdvancedOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerNetworksAdvanced)(nil)).Elem() } -func (o ContainerLabelOutput) ToContainerLabelOutput() ContainerLabelOutput { +func (o ContainerNetworksAdvancedOutput) ToContainerNetworksAdvancedOutput() ContainerNetworksAdvancedOutput { return o } -func (o ContainerLabelOutput) ToContainerLabelOutputWithContext(ctx context.Context) ContainerLabelOutput { +func (o ContainerNetworksAdvancedOutput) ToContainerNetworksAdvancedOutputWithContext(ctx context.Context) ContainerNetworksAdvancedOutput { return o } -// Name of the label -func (o ContainerLabelOutput) Label() pulumi.StringOutput { - return o.ApplyT(func(v ContainerLabel) string { return v.Label }).(pulumi.StringOutput) +// The network aliases of the container in the specific network. +func (o ContainerNetworksAdvancedOutput) Aliases() pulumi.StringArrayOutput { + return o.ApplyT(func(v ContainerNetworksAdvanced) []string { return v.Aliases }).(pulumi.StringArrayOutput) } -// Value of the label -func (o ContainerLabelOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v ContainerLabel) string { return v.Value }).(pulumi.StringOutput) +// The IPV4 address of the container in the specific network. +func (o ContainerNetworksAdvancedOutput) Ipv4Address() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworksAdvanced) *string { return v.Ipv4Address }).(pulumi.StringPtrOutput) } -type ContainerLabelArrayOutput struct{ *pulumi.OutputState } +// The IPV6 address of the container in the specific network. +func (o ContainerNetworksAdvancedOutput) Ipv6Address() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerNetworksAdvanced) *string { return v.Ipv6Address }).(pulumi.StringPtrOutput) +} -func (ContainerLabelArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerLabel)(nil)).Elem() +// The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource. +func (o ContainerNetworksAdvancedOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ContainerNetworksAdvanced) string { return v.Name }).(pulumi.StringOutput) } -func (o ContainerLabelArrayOutput) ToContainerLabelArrayOutput() ContainerLabelArrayOutput { +type ContainerNetworksAdvancedArrayOutput struct{ *pulumi.OutputState } + +func (ContainerNetworksAdvancedArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerNetworksAdvanced)(nil)).Elem() +} + +func (o ContainerNetworksAdvancedArrayOutput) ToContainerNetworksAdvancedArrayOutput() ContainerNetworksAdvancedArrayOutput { return o } -func (o ContainerLabelArrayOutput) ToContainerLabelArrayOutputWithContext(ctx context.Context) ContainerLabelArrayOutput { +func (o ContainerNetworksAdvancedArrayOutput) ToContainerNetworksAdvancedArrayOutputWithContext(ctx context.Context) ContainerNetworksAdvancedArrayOutput { return o } -func (o ContainerLabelArrayOutput) Index(i pulumi.IntInput) ContainerLabelOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerLabel { - return vs[0].([]ContainerLabel)[vs[1].(int)] - }).(ContainerLabelOutput) +func (o ContainerNetworksAdvancedArrayOutput) Index(i pulumi.IntInput) ContainerNetworksAdvancedOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerNetworksAdvanced { + return vs[0].([]ContainerNetworksAdvanced)[vs[1].(int)] + }).(ContainerNetworksAdvancedOutput) } -type ContainerMount struct { - // Optional configuration for the bind type. - BindOptions *ContainerMountBindOptions `pulumi:"bindOptions"` - // Whether the mount should be read-only. - ReadOnly *bool `pulumi:"readOnly"` - // Mount source (e.g. a volume name, a host path). - Source *string `pulumi:"source"` - // Container path - Target string `pulumi:"target"` - // Optional configuration for the tmpfs type. - TmpfsOptions *ContainerMountTmpfsOptions `pulumi:"tmpfsOptions"` - // The mount type - Type string `pulumi:"type"` - // Optional configuration for the volume type. - VolumeOptions *ContainerMountVolumeOptions `pulumi:"volumeOptions"` +type ContainerPort struct { + // Port exposed out of the container. If not given a free random port `>= 32768` will be used. + External *int `pulumi:"external"` + // Port within the container. + Internal int `pulumi:"internal"` + // IP address/mask that can access this port. Defaults to `0.0.0.0`. + Ip *string `pulumi:"ip"` + // Protocol that can be used over this port. Defaults to `tcp`. + Protocol *string `pulumi:"protocol"` } -// ContainerMountInput is an input type that accepts ContainerMountArgs and ContainerMountOutput values. -// You can construct a concrete instance of `ContainerMountInput` via: +// ContainerPortInput is an input type that accepts ContainerPortArgs and ContainerPortOutput values. +// You can construct a concrete instance of `ContainerPortInput` via: // -// ContainerMountArgs{...} -type ContainerMountInput interface { +// ContainerPortArgs{...} +type ContainerPortInput interface { pulumi.Input - ToContainerMountOutput() ContainerMountOutput - ToContainerMountOutputWithContext(context.Context) ContainerMountOutput + ToContainerPortOutput() ContainerPortOutput + ToContainerPortOutputWithContext(context.Context) ContainerPortOutput } -type ContainerMountArgs struct { - // Optional configuration for the bind type. - BindOptions ContainerMountBindOptionsPtrInput `pulumi:"bindOptions"` - // Whether the mount should be read-only. - ReadOnly pulumi.BoolPtrInput `pulumi:"readOnly"` - // Mount source (e.g. a volume name, a host path). - Source pulumi.StringPtrInput `pulumi:"source"` - // Container path - Target pulumi.StringInput `pulumi:"target"` - // Optional configuration for the tmpfs type. - TmpfsOptions ContainerMountTmpfsOptionsPtrInput `pulumi:"tmpfsOptions"` - // The mount type - Type pulumi.StringInput `pulumi:"type"` - // Optional configuration for the volume type. - VolumeOptions ContainerMountVolumeOptionsPtrInput `pulumi:"volumeOptions"` +type ContainerPortArgs struct { + // Port exposed out of the container. If not given a free random port `>= 32768` will be used. + External pulumi.IntPtrInput `pulumi:"external"` + // Port within the container. + Internal pulumi.IntInput `pulumi:"internal"` + // IP address/mask that can access this port. Defaults to `0.0.0.0`. + Ip pulumi.StringPtrInput `pulumi:"ip"` + // Protocol that can be used over this port. Defaults to `tcp`. + Protocol pulumi.StringPtrInput `pulumi:"protocol"` } -func (ContainerMountArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMount)(nil)).Elem() +func (ContainerPortArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerPort)(nil)).Elem() } -func (i ContainerMountArgs) ToContainerMountOutput() ContainerMountOutput { - return i.ToContainerMountOutputWithContext(context.Background()) +func (i ContainerPortArgs) ToContainerPortOutput() ContainerPortOutput { + return i.ToContainerPortOutputWithContext(context.Background()) } -func (i ContainerMountArgs) ToContainerMountOutputWithContext(ctx context.Context) ContainerMountOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountOutput) +func (i ContainerPortArgs) ToContainerPortOutputWithContext(ctx context.Context) ContainerPortOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerPortOutput) } -// ContainerMountArrayInput is an input type that accepts ContainerMountArray and ContainerMountArrayOutput values. -// You can construct a concrete instance of `ContainerMountArrayInput` via: +// ContainerPortArrayInput is an input type that accepts ContainerPortArray and ContainerPortArrayOutput values. +// You can construct a concrete instance of `ContainerPortArrayInput` via: // -// ContainerMountArray{ ContainerMountArgs{...} } -type ContainerMountArrayInput interface { +// ContainerPortArray{ ContainerPortArgs{...} } +type ContainerPortArrayInput interface { pulumi.Input - ToContainerMountArrayOutput() ContainerMountArrayOutput - ToContainerMountArrayOutputWithContext(context.Context) ContainerMountArrayOutput + ToContainerPortArrayOutput() ContainerPortArrayOutput + ToContainerPortArrayOutputWithContext(context.Context) ContainerPortArrayOutput } -type ContainerMountArray []ContainerMountInput +type ContainerPortArray []ContainerPortInput -func (ContainerMountArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerMount)(nil)).Elem() -} +func (ContainerPortArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerPort)(nil)).Elem() +} -func (i ContainerMountArray) ToContainerMountArrayOutput() ContainerMountArrayOutput { - return i.ToContainerMountArrayOutputWithContext(context.Background()) +func (i ContainerPortArray) ToContainerPortArrayOutput() ContainerPortArrayOutput { + return i.ToContainerPortArrayOutputWithContext(context.Background()) } -func (i ContainerMountArray) ToContainerMountArrayOutputWithContext(ctx context.Context) ContainerMountArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountArrayOutput) +func (i ContainerPortArray) ToContainerPortArrayOutputWithContext(ctx context.Context) ContainerPortArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerPortArrayOutput) } -type ContainerMountOutput struct{ *pulumi.OutputState } +type ContainerPortOutput struct{ *pulumi.OutputState } -func (ContainerMountOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMount)(nil)).Elem() +func (ContainerPortOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerPort)(nil)).Elem() } -func (o ContainerMountOutput) ToContainerMountOutput() ContainerMountOutput { +func (o ContainerPortOutput) ToContainerPortOutput() ContainerPortOutput { return o } -func (o ContainerMountOutput) ToContainerMountOutputWithContext(ctx context.Context) ContainerMountOutput { +func (o ContainerPortOutput) ToContainerPortOutputWithContext(ctx context.Context) ContainerPortOutput { return o } -// Optional configuration for the bind type. -func (o ContainerMountOutput) BindOptions() ContainerMountBindOptionsPtrOutput { - return o.ApplyT(func(v ContainerMount) *ContainerMountBindOptions { return v.BindOptions }).(ContainerMountBindOptionsPtrOutput) -} - -// Whether the mount should be read-only. -func (o ContainerMountOutput) ReadOnly() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ContainerMount) *bool { return v.ReadOnly }).(pulumi.BoolPtrOutput) -} - -// Mount source (e.g. a volume name, a host path). -func (o ContainerMountOutput) Source() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerMount) *string { return v.Source }).(pulumi.StringPtrOutput) -} - -// Container path -func (o ContainerMountOutput) Target() pulumi.StringOutput { - return o.ApplyT(func(v ContainerMount) string { return v.Target }).(pulumi.StringOutput) +// Port exposed out of the container. If not given a free random port `>= 32768` will be used. +func (o ContainerPortOutput) External() pulumi.IntPtrOutput { + return o.ApplyT(func(v ContainerPort) *int { return v.External }).(pulumi.IntPtrOutput) } -// Optional configuration for the tmpfs type. -func (o ContainerMountOutput) TmpfsOptions() ContainerMountTmpfsOptionsPtrOutput { - return o.ApplyT(func(v ContainerMount) *ContainerMountTmpfsOptions { return v.TmpfsOptions }).(ContainerMountTmpfsOptionsPtrOutput) +// Port within the container. +func (o ContainerPortOutput) Internal() pulumi.IntOutput { + return o.ApplyT(func(v ContainerPort) int { return v.Internal }).(pulumi.IntOutput) } -// The mount type -func (o ContainerMountOutput) Type() pulumi.StringOutput { - return o.ApplyT(func(v ContainerMount) string { return v.Type }).(pulumi.StringOutput) +// IP address/mask that can access this port. Defaults to `0.0.0.0`. +func (o ContainerPortOutput) Ip() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerPort) *string { return v.Ip }).(pulumi.StringPtrOutput) } -// Optional configuration for the volume type. -func (o ContainerMountOutput) VolumeOptions() ContainerMountVolumeOptionsPtrOutput { - return o.ApplyT(func(v ContainerMount) *ContainerMountVolumeOptions { return v.VolumeOptions }).(ContainerMountVolumeOptionsPtrOutput) +// Protocol that can be used over this port. Defaults to `tcp`. +func (o ContainerPortOutput) Protocol() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerPort) *string { return v.Protocol }).(pulumi.StringPtrOutput) } -type ContainerMountArrayOutput struct{ *pulumi.OutputState } +type ContainerPortArrayOutput struct{ *pulumi.OutputState } -func (ContainerMountArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerMount)(nil)).Elem() +func (ContainerPortArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerPort)(nil)).Elem() } -func (o ContainerMountArrayOutput) ToContainerMountArrayOutput() ContainerMountArrayOutput { +func (o ContainerPortArrayOutput) ToContainerPortArrayOutput() ContainerPortArrayOutput { return o } -func (o ContainerMountArrayOutput) ToContainerMountArrayOutputWithContext(ctx context.Context) ContainerMountArrayOutput { +func (o ContainerPortArrayOutput) ToContainerPortArrayOutputWithContext(ctx context.Context) ContainerPortArrayOutput { return o } -func (o ContainerMountArrayOutput) Index(i pulumi.IntInput) ContainerMountOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerMount { - return vs[0].([]ContainerMount)[vs[1].(int)] - }).(ContainerMountOutput) +func (o ContainerPortArrayOutput) Index(i pulumi.IntInput) ContainerPortOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerPort { + return vs[0].([]ContainerPort)[vs[1].(int)] + }).(ContainerPortOutput) } -type ContainerMountBindOptions struct { - // A propagation mode with the value. - Propagation *string `pulumi:"propagation"` +type ContainerUlimit struct { + // The hard limit + Hard int `pulumi:"hard"` + // The name of the ulimit + Name string `pulumi:"name"` + // The soft limit + Soft int `pulumi:"soft"` } -// ContainerMountBindOptionsInput is an input type that accepts ContainerMountBindOptionsArgs and ContainerMountBindOptionsOutput values. -// You can construct a concrete instance of `ContainerMountBindOptionsInput` via: +// ContainerUlimitInput is an input type that accepts ContainerUlimitArgs and ContainerUlimitOutput values. +// You can construct a concrete instance of `ContainerUlimitInput` via: // -// ContainerMountBindOptionsArgs{...} -type ContainerMountBindOptionsInput interface { +// ContainerUlimitArgs{...} +type ContainerUlimitInput interface { pulumi.Input - ToContainerMountBindOptionsOutput() ContainerMountBindOptionsOutput - ToContainerMountBindOptionsOutputWithContext(context.Context) ContainerMountBindOptionsOutput -} - -type ContainerMountBindOptionsArgs struct { - // A propagation mode with the value. - Propagation pulumi.StringPtrInput `pulumi:"propagation"` -} - -func (ContainerMountBindOptionsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountBindOptions)(nil)).Elem() + ToContainerUlimitOutput() ContainerUlimitOutput + ToContainerUlimitOutputWithContext(context.Context) ContainerUlimitOutput } -func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsOutput() ContainerMountBindOptionsOutput { - return i.ToContainerMountBindOptionsOutputWithContext(context.Background()) +type ContainerUlimitArgs struct { + // The hard limit + Hard pulumi.IntInput `pulumi:"hard"` + // The name of the ulimit + Name pulumi.StringInput `pulumi:"name"` + // The soft limit + Soft pulumi.IntInput `pulumi:"soft"` } -func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsOutputWithContext(ctx context.Context) ContainerMountBindOptionsOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountBindOptionsOutput) +func (ContainerUlimitArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerUlimit)(nil)).Elem() } -func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { - return i.ToContainerMountBindOptionsPtrOutputWithContext(context.Background()) +func (i ContainerUlimitArgs) ToContainerUlimitOutput() ContainerUlimitOutput { + return i.ToContainerUlimitOutputWithContext(context.Background()) } -func (i ContainerMountBindOptionsArgs) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountBindOptionsOutput).ToContainerMountBindOptionsPtrOutputWithContext(ctx) +func (i ContainerUlimitArgs) ToContainerUlimitOutputWithContext(ctx context.Context) ContainerUlimitOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerUlimitOutput) } -// ContainerMountBindOptionsPtrInput is an input type that accepts ContainerMountBindOptionsArgs, ContainerMountBindOptionsPtr and ContainerMountBindOptionsPtrOutput values. -// You can construct a concrete instance of `ContainerMountBindOptionsPtrInput` via: -// -// ContainerMountBindOptionsArgs{...} -// -// or: +// ContainerUlimitArrayInput is an input type that accepts ContainerUlimitArray and ContainerUlimitArrayOutput values. +// You can construct a concrete instance of `ContainerUlimitArrayInput` via: // -// nil -type ContainerMountBindOptionsPtrInput interface { +// ContainerUlimitArray{ ContainerUlimitArgs{...} } +type ContainerUlimitArrayInput interface { pulumi.Input - ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput - ToContainerMountBindOptionsPtrOutputWithContext(context.Context) ContainerMountBindOptionsPtrOutput + ToContainerUlimitArrayOutput() ContainerUlimitArrayOutput + ToContainerUlimitArrayOutputWithContext(context.Context) ContainerUlimitArrayOutput } -type containerMountBindOptionsPtrType ContainerMountBindOptionsArgs - -func ContainerMountBindOptionsPtr(v *ContainerMountBindOptionsArgs) ContainerMountBindOptionsPtrInput { - return (*containerMountBindOptionsPtrType)(v) -} +type ContainerUlimitArray []ContainerUlimitInput -func (*containerMountBindOptionsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerMountBindOptions)(nil)).Elem() +func (ContainerUlimitArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerUlimit)(nil)).Elem() } -func (i *containerMountBindOptionsPtrType) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { - return i.ToContainerMountBindOptionsPtrOutputWithContext(context.Background()) +func (i ContainerUlimitArray) ToContainerUlimitArrayOutput() ContainerUlimitArrayOutput { + return i.ToContainerUlimitArrayOutputWithContext(context.Background()) } -func (i *containerMountBindOptionsPtrType) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountBindOptionsPtrOutput) +func (i ContainerUlimitArray) ToContainerUlimitArrayOutputWithContext(ctx context.Context) ContainerUlimitArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerUlimitArrayOutput) } -type ContainerMountBindOptionsOutput struct{ *pulumi.OutputState } +type ContainerUlimitOutput struct{ *pulumi.OutputState } -func (ContainerMountBindOptionsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountBindOptions)(nil)).Elem() +func (ContainerUlimitOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerUlimit)(nil)).Elem() } -func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsOutput() ContainerMountBindOptionsOutput { +func (o ContainerUlimitOutput) ToContainerUlimitOutput() ContainerUlimitOutput { return o } -func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsOutputWithContext(ctx context.Context) ContainerMountBindOptionsOutput { +func (o ContainerUlimitOutput) ToContainerUlimitOutputWithContext(ctx context.Context) ContainerUlimitOutput { return o } -func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { - return o.ToContainerMountBindOptionsPtrOutputWithContext(context.Background()) +// The hard limit +func (o ContainerUlimitOutput) Hard() pulumi.IntOutput { + return o.ApplyT(func(v ContainerUlimit) int { return v.Hard }).(pulumi.IntOutput) } -func (o ContainerMountBindOptionsOutput) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerMountBindOptions) *ContainerMountBindOptions { - return &v - }).(ContainerMountBindOptionsPtrOutput) +// The name of the ulimit +func (o ContainerUlimitOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v ContainerUlimit) string { return v.Name }).(pulumi.StringOutput) } -// A propagation mode with the value. -func (o ContainerMountBindOptionsOutput) Propagation() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerMountBindOptions) *string { return v.Propagation }).(pulumi.StringPtrOutput) +// The soft limit +func (o ContainerUlimitOutput) Soft() pulumi.IntOutput { + return o.ApplyT(func(v ContainerUlimit) int { return v.Soft }).(pulumi.IntOutput) } -type ContainerMountBindOptionsPtrOutput struct{ *pulumi.OutputState } +type ContainerUlimitArrayOutput struct{ *pulumi.OutputState } -func (ContainerMountBindOptionsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerMountBindOptions)(nil)).Elem() +func (ContainerUlimitArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerUlimit)(nil)).Elem() } -func (o ContainerMountBindOptionsPtrOutput) ToContainerMountBindOptionsPtrOutput() ContainerMountBindOptionsPtrOutput { +func (o ContainerUlimitArrayOutput) ToContainerUlimitArrayOutput() ContainerUlimitArrayOutput { return o } -func (o ContainerMountBindOptionsPtrOutput) ToContainerMountBindOptionsPtrOutputWithContext(ctx context.Context) ContainerMountBindOptionsPtrOutput { +func (o ContainerUlimitArrayOutput) ToContainerUlimitArrayOutputWithContext(ctx context.Context) ContainerUlimitArrayOutput { return o } -func (o ContainerMountBindOptionsPtrOutput) Elem() ContainerMountBindOptionsOutput { - return o.ApplyT(func(v *ContainerMountBindOptions) ContainerMountBindOptions { - if v != nil { - return *v - } - var ret ContainerMountBindOptions - return ret - }).(ContainerMountBindOptionsOutput) -} - -// A propagation mode with the value. -func (o ContainerMountBindOptionsPtrOutput) Propagation() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ContainerMountBindOptions) *string { - if v == nil { - return nil - } - return v.Propagation - }).(pulumi.StringPtrOutput) +func (o ContainerUlimitArrayOutput) Index(i pulumi.IntInput) ContainerUlimitOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerUlimit { + return vs[0].([]ContainerUlimit)[vs[1].(int)] + }).(ContainerUlimitOutput) } -type ContainerMountTmpfsOptions struct { - // The permission mode for the tmpfs mount in an integer. - Mode *int `pulumi:"mode"` - // The size for the tmpfs mount in bytes. - SizeBytes *int `pulumi:"sizeBytes"` +type ContainerUpload struct { + // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source` + Content *string `pulumi:"content"` + // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source` + ContentBase64 *string `pulumi:"contentBase64"` + // If `true`, the file will be uploaded with user executable permission. Defaults to `false`. + Executable *bool `pulumi:"executable"` + // Path to the file in the container where is upload goes to + File string `pulumi:"file"` + // A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `contentBase64` + Source *string `pulumi:"source"` + // If using `source`, this will force an update if the file content has updated but the filename has not. + SourceHash *string `pulumi:"sourceHash"` } -// ContainerMountTmpfsOptionsInput is an input type that accepts ContainerMountTmpfsOptionsArgs and ContainerMountTmpfsOptionsOutput values. -// You can construct a concrete instance of `ContainerMountTmpfsOptionsInput` via: +// ContainerUploadInput is an input type that accepts ContainerUploadArgs and ContainerUploadOutput values. +// You can construct a concrete instance of `ContainerUploadInput` via: // -// ContainerMountTmpfsOptionsArgs{...} -type ContainerMountTmpfsOptionsInput interface { +// ContainerUploadArgs{...} +type ContainerUploadInput interface { pulumi.Input - ToContainerMountTmpfsOptionsOutput() ContainerMountTmpfsOptionsOutput - ToContainerMountTmpfsOptionsOutputWithContext(context.Context) ContainerMountTmpfsOptionsOutput + ToContainerUploadOutput() ContainerUploadOutput + ToContainerUploadOutputWithContext(context.Context) ContainerUploadOutput } -type ContainerMountTmpfsOptionsArgs struct { - // The permission mode for the tmpfs mount in an integer. - Mode pulumi.IntPtrInput `pulumi:"mode"` - // The size for the tmpfs mount in bytes. - SizeBytes pulumi.IntPtrInput `pulumi:"sizeBytes"` -} - -func (ContainerMountTmpfsOptionsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountTmpfsOptions)(nil)).Elem() -} - -func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsOutput() ContainerMountTmpfsOptionsOutput { - return i.ToContainerMountTmpfsOptionsOutputWithContext(context.Background()) +type ContainerUploadArgs struct { + // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source` + Content pulumi.StringPtrInput `pulumi:"content"` + // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source` + ContentBase64 pulumi.StringPtrInput `pulumi:"contentBase64"` + // If `true`, the file will be uploaded with user executable permission. Defaults to `false`. + Executable pulumi.BoolPtrInput `pulumi:"executable"` + // Path to the file in the container where is upload goes to + File pulumi.StringInput `pulumi:"file"` + // A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `contentBase64` + Source pulumi.StringPtrInput `pulumi:"source"` + // If using `source`, this will force an update if the file content has updated but the filename has not. + SourceHash pulumi.StringPtrInput `pulumi:"sourceHash"` } -func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountTmpfsOptionsOutput) +func (ContainerUploadArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerUpload)(nil)).Elem() } -func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { - return i.ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Background()) +func (i ContainerUploadArgs) ToContainerUploadOutput() ContainerUploadOutput { + return i.ToContainerUploadOutputWithContext(context.Background()) } -func (i ContainerMountTmpfsOptionsArgs) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountTmpfsOptionsOutput).ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx) +func (i ContainerUploadArgs) ToContainerUploadOutputWithContext(ctx context.Context) ContainerUploadOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerUploadOutput) } -// ContainerMountTmpfsOptionsPtrInput is an input type that accepts ContainerMountTmpfsOptionsArgs, ContainerMountTmpfsOptionsPtr and ContainerMountTmpfsOptionsPtrOutput values. -// You can construct a concrete instance of `ContainerMountTmpfsOptionsPtrInput` via: -// -// ContainerMountTmpfsOptionsArgs{...} -// -// or: +// ContainerUploadArrayInput is an input type that accepts ContainerUploadArray and ContainerUploadArrayOutput values. +// You can construct a concrete instance of `ContainerUploadArrayInput` via: // -// nil -type ContainerMountTmpfsOptionsPtrInput interface { +// ContainerUploadArray{ ContainerUploadArgs{...} } +type ContainerUploadArrayInput interface { pulumi.Input - ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput - ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Context) ContainerMountTmpfsOptionsPtrOutput + ToContainerUploadArrayOutput() ContainerUploadArrayOutput + ToContainerUploadArrayOutputWithContext(context.Context) ContainerUploadArrayOutput } -type containerMountTmpfsOptionsPtrType ContainerMountTmpfsOptionsArgs - -func ContainerMountTmpfsOptionsPtr(v *ContainerMountTmpfsOptionsArgs) ContainerMountTmpfsOptionsPtrInput { - return (*containerMountTmpfsOptionsPtrType)(v) -} +type ContainerUploadArray []ContainerUploadInput -func (*containerMountTmpfsOptionsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerMountTmpfsOptions)(nil)).Elem() +func (ContainerUploadArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerUpload)(nil)).Elem() } -func (i *containerMountTmpfsOptionsPtrType) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { - return i.ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Background()) +func (i ContainerUploadArray) ToContainerUploadArrayOutput() ContainerUploadArrayOutput { + return i.ToContainerUploadArrayOutputWithContext(context.Background()) } -func (i *containerMountTmpfsOptionsPtrType) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountTmpfsOptionsPtrOutput) +func (i ContainerUploadArray) ToContainerUploadArrayOutputWithContext(ctx context.Context) ContainerUploadArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerUploadArrayOutput) } -type ContainerMountTmpfsOptionsOutput struct{ *pulumi.OutputState } +type ContainerUploadOutput struct{ *pulumi.OutputState } -func (ContainerMountTmpfsOptionsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountTmpfsOptions)(nil)).Elem() +func (ContainerUploadOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerUpload)(nil)).Elem() } -func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsOutput() ContainerMountTmpfsOptionsOutput { +func (o ContainerUploadOutput) ToContainerUploadOutput() ContainerUploadOutput { return o } -func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsOutput { +func (o ContainerUploadOutput) ToContainerUploadOutputWithContext(ctx context.Context) ContainerUploadOutput { return o } -func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { - return o.ToContainerMountTmpfsOptionsPtrOutputWithContext(context.Background()) +// Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source` +func (o ContainerUploadOutput) Content() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerUpload) *string { return v.Content }).(pulumi.StringPtrOutput) } -func (o ContainerMountTmpfsOptionsOutput) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerMountTmpfsOptions) *ContainerMountTmpfsOptions { - return &v - }).(ContainerMountTmpfsOptionsPtrOutput) +// Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source` +func (o ContainerUploadOutput) ContentBase64() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerUpload) *string { return v.ContentBase64 }).(pulumi.StringPtrOutput) } -// The permission mode for the tmpfs mount in an integer. -func (o ContainerMountTmpfsOptionsOutput) Mode() pulumi.IntPtrOutput { - return o.ApplyT(func(v ContainerMountTmpfsOptions) *int { return v.Mode }).(pulumi.IntPtrOutput) +// If `true`, the file will be uploaded with user executable permission. Defaults to `false`. +func (o ContainerUploadOutput) Executable() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ContainerUpload) *bool { return v.Executable }).(pulumi.BoolPtrOutput) } -// The size for the tmpfs mount in bytes. -func (o ContainerMountTmpfsOptionsOutput) SizeBytes() pulumi.IntPtrOutput { - return o.ApplyT(func(v ContainerMountTmpfsOptions) *int { return v.SizeBytes }).(pulumi.IntPtrOutput) +// Path to the file in the container where is upload goes to +func (o ContainerUploadOutput) File() pulumi.StringOutput { + return o.ApplyT(func(v ContainerUpload) string { return v.File }).(pulumi.StringOutput) } -type ContainerMountTmpfsOptionsPtrOutput struct{ *pulumi.OutputState } - -func (ContainerMountTmpfsOptionsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerMountTmpfsOptions)(nil)).Elem() +// A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `contentBase64` +func (o ContainerUploadOutput) Source() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerUpload) *string { return v.Source }).(pulumi.StringPtrOutput) } -func (o ContainerMountTmpfsOptionsPtrOutput) ToContainerMountTmpfsOptionsPtrOutput() ContainerMountTmpfsOptionsPtrOutput { - return o +// If using `source`, this will force an update if the file content has updated but the filename has not. +func (o ContainerUploadOutput) SourceHash() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerUpload) *string { return v.SourceHash }).(pulumi.StringPtrOutput) } -func (o ContainerMountTmpfsOptionsPtrOutput) ToContainerMountTmpfsOptionsPtrOutputWithContext(ctx context.Context) ContainerMountTmpfsOptionsPtrOutput { - return o +type ContainerUploadArrayOutput struct{ *pulumi.OutputState } + +func (ContainerUploadArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerUpload)(nil)).Elem() } -func (o ContainerMountTmpfsOptionsPtrOutput) Elem() ContainerMountTmpfsOptionsOutput { - return o.ApplyT(func(v *ContainerMountTmpfsOptions) ContainerMountTmpfsOptions { - if v != nil { - return *v - } - var ret ContainerMountTmpfsOptions - return ret - }).(ContainerMountTmpfsOptionsOutput) +func (o ContainerUploadArrayOutput) ToContainerUploadArrayOutput() ContainerUploadArrayOutput { + return o } -// The permission mode for the tmpfs mount in an integer. -func (o ContainerMountTmpfsOptionsPtrOutput) Mode() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ContainerMountTmpfsOptions) *int { - if v == nil { - return nil - } - return v.Mode - }).(pulumi.IntPtrOutput) +func (o ContainerUploadArrayOutput) ToContainerUploadArrayOutputWithContext(ctx context.Context) ContainerUploadArrayOutput { + return o } -// The size for the tmpfs mount in bytes. -func (o ContainerMountTmpfsOptionsPtrOutput) SizeBytes() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ContainerMountTmpfsOptions) *int { - if v == nil { - return nil - } - return v.SizeBytes - }).(pulumi.IntPtrOutput) +func (o ContainerUploadArrayOutput) Index(i pulumi.IntInput) ContainerUploadOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerUpload { + return vs[0].([]ContainerUpload)[vs[1].(int)] + }).(ContainerUploadOutput) } -type ContainerMountVolumeOptions struct { - // Name of the driver to use to create the volume. - DriverName *string `pulumi:"driverName"` - // key/value map of driver specific options. - DriverOptions map[string]string `pulumi:"driverOptions"` - // User-defined key/value metadata. - Labels []ContainerMountVolumeOptionsLabel `pulumi:"labels"` - // Populate volume with data from the target. - NoCopy *bool `pulumi:"noCopy"` - // Path within the volume to mount. Requires docker server version 1.45 or higher. - Subpath *string `pulumi:"subpath"` +type ContainerVolume struct { + // The path in the container where the volume will be mounted. + ContainerPath *string `pulumi:"containerPath"` + // The container where the volume is coming from. + FromContainer *string `pulumi:"fromContainer"` + // The path on the host where the volume is coming from. + HostPath *string `pulumi:"hostPath"` + // If `true`, this volume will be readonly. Defaults to `false`. + ReadOnly *bool `pulumi:"readOnly"` + // The name of the docker volume which should be mounted. + VolumeName *string `pulumi:"volumeName"` } -// ContainerMountVolumeOptionsInput is an input type that accepts ContainerMountVolumeOptionsArgs and ContainerMountVolumeOptionsOutput values. -// You can construct a concrete instance of `ContainerMountVolumeOptionsInput` via: +// ContainerVolumeInput is an input type that accepts ContainerVolumeArgs and ContainerVolumeOutput values. +// You can construct a concrete instance of `ContainerVolumeInput` via: // -// ContainerMountVolumeOptionsArgs{...} -type ContainerMountVolumeOptionsInput interface { +// ContainerVolumeArgs{...} +type ContainerVolumeInput interface { pulumi.Input - ToContainerMountVolumeOptionsOutput() ContainerMountVolumeOptionsOutput - ToContainerMountVolumeOptionsOutputWithContext(context.Context) ContainerMountVolumeOptionsOutput -} - -type ContainerMountVolumeOptionsArgs struct { - // Name of the driver to use to create the volume. - DriverName pulumi.StringPtrInput `pulumi:"driverName"` - // key/value map of driver specific options. - DriverOptions pulumi.StringMapInput `pulumi:"driverOptions"` - // User-defined key/value metadata. - Labels ContainerMountVolumeOptionsLabelArrayInput `pulumi:"labels"` - // Populate volume with data from the target. - NoCopy pulumi.BoolPtrInput `pulumi:"noCopy"` - // Path within the volume to mount. Requires docker server version 1.45 or higher. - Subpath pulumi.StringPtrInput `pulumi:"subpath"` -} - -func (ContainerMountVolumeOptionsArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountVolumeOptions)(nil)).Elem() + ToContainerVolumeOutput() ContainerVolumeOutput + ToContainerVolumeOutputWithContext(context.Context) ContainerVolumeOutput } -func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsOutput() ContainerMountVolumeOptionsOutput { - return i.ToContainerMountVolumeOptionsOutputWithContext(context.Background()) +type ContainerVolumeArgs struct { + // The path in the container where the volume will be mounted. + ContainerPath pulumi.StringPtrInput `pulumi:"containerPath"` + // The container where the volume is coming from. + FromContainer pulumi.StringPtrInput `pulumi:"fromContainer"` + // The path on the host where the volume is coming from. + HostPath pulumi.StringPtrInput `pulumi:"hostPath"` + // If `true`, this volume will be readonly. Defaults to `false`. + ReadOnly pulumi.BoolPtrInput `pulumi:"readOnly"` + // The name of the docker volume which should be mounted. + VolumeName pulumi.StringPtrInput `pulumi:"volumeName"` } -func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsOutput) +func (ContainerVolumeArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerVolume)(nil)).Elem() } -func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { - return i.ToContainerMountVolumeOptionsPtrOutputWithContext(context.Background()) +func (i ContainerVolumeArgs) ToContainerVolumeOutput() ContainerVolumeOutput { + return i.ToContainerVolumeOutputWithContext(context.Background()) } -func (i ContainerMountVolumeOptionsArgs) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsOutput).ToContainerMountVolumeOptionsPtrOutputWithContext(ctx) +func (i ContainerVolumeArgs) ToContainerVolumeOutputWithContext(ctx context.Context) ContainerVolumeOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerVolumeOutput) } -// ContainerMountVolumeOptionsPtrInput is an input type that accepts ContainerMountVolumeOptionsArgs, ContainerMountVolumeOptionsPtr and ContainerMountVolumeOptionsPtrOutput values. -// You can construct a concrete instance of `ContainerMountVolumeOptionsPtrInput` via: -// -// ContainerMountVolumeOptionsArgs{...} -// -// or: +// ContainerVolumeArrayInput is an input type that accepts ContainerVolumeArray and ContainerVolumeArrayOutput values. +// You can construct a concrete instance of `ContainerVolumeArrayInput` via: // -// nil -type ContainerMountVolumeOptionsPtrInput interface { +// ContainerVolumeArray{ ContainerVolumeArgs{...} } +type ContainerVolumeArrayInput interface { pulumi.Input - ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput - ToContainerMountVolumeOptionsPtrOutputWithContext(context.Context) ContainerMountVolumeOptionsPtrOutput + ToContainerVolumeArrayOutput() ContainerVolumeArrayOutput + ToContainerVolumeArrayOutputWithContext(context.Context) ContainerVolumeArrayOutput } -type containerMountVolumeOptionsPtrType ContainerMountVolumeOptionsArgs +type ContainerVolumeArray []ContainerVolumeInput -func ContainerMountVolumeOptionsPtr(v *ContainerMountVolumeOptionsArgs) ContainerMountVolumeOptionsPtrInput { - return (*containerMountVolumeOptionsPtrType)(v) +func (ContainerVolumeArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerVolume)(nil)).Elem() } -func (*containerMountVolumeOptionsPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerMountVolumeOptions)(nil)).Elem() +func (i ContainerVolumeArray) ToContainerVolumeArrayOutput() ContainerVolumeArrayOutput { + return i.ToContainerVolumeArrayOutputWithContext(context.Background()) } -func (i *containerMountVolumeOptionsPtrType) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { - return i.ToContainerMountVolumeOptionsPtrOutputWithContext(context.Background()) +func (i ContainerVolumeArray) ToContainerVolumeArrayOutputWithContext(ctx context.Context) ContainerVolumeArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ContainerVolumeArrayOutput) } -func (i *containerMountVolumeOptionsPtrType) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsPtrOutput) -} - -type ContainerMountVolumeOptionsOutput struct{ *pulumi.OutputState } +type ContainerVolumeOutput struct{ *pulumi.OutputState } -func (ContainerMountVolumeOptionsOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountVolumeOptions)(nil)).Elem() +func (ContainerVolumeOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ContainerVolume)(nil)).Elem() } -func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsOutput() ContainerMountVolumeOptionsOutput { +func (o ContainerVolumeOutput) ToContainerVolumeOutput() ContainerVolumeOutput { return o } -func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsOutput { +func (o ContainerVolumeOutput) ToContainerVolumeOutputWithContext(ctx context.Context) ContainerVolumeOutput { return o } -func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { - return o.ToContainerMountVolumeOptionsPtrOutputWithContext(context.Background()) -} - -func (o ContainerMountVolumeOptionsOutput) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ContainerMountVolumeOptions) *ContainerMountVolumeOptions { - return &v - }).(ContainerMountVolumeOptionsPtrOutput) -} - -// Name of the driver to use to create the volume. -func (o ContainerMountVolumeOptionsOutput) DriverName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerMountVolumeOptions) *string { return v.DriverName }).(pulumi.StringPtrOutput) +// The path in the container where the volume will be mounted. +func (o ContainerVolumeOutput) ContainerPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerVolume) *string { return v.ContainerPath }).(pulumi.StringPtrOutput) } -// key/value map of driver specific options. -func (o ContainerMountVolumeOptionsOutput) DriverOptions() pulumi.StringMapOutput { - return o.ApplyT(func(v ContainerMountVolumeOptions) map[string]string { return v.DriverOptions }).(pulumi.StringMapOutput) +// The container where the volume is coming from. +func (o ContainerVolumeOutput) FromContainer() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerVolume) *string { return v.FromContainer }).(pulumi.StringPtrOutput) } -// User-defined key/value metadata. -func (o ContainerMountVolumeOptionsOutput) Labels() ContainerMountVolumeOptionsLabelArrayOutput { - return o.ApplyT(func(v ContainerMountVolumeOptions) []ContainerMountVolumeOptionsLabel { return v.Labels }).(ContainerMountVolumeOptionsLabelArrayOutput) +// The path on the host where the volume is coming from. +func (o ContainerVolumeOutput) HostPath() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerVolume) *string { return v.HostPath }).(pulumi.StringPtrOutput) } -// Populate volume with data from the target. -func (o ContainerMountVolumeOptionsOutput) NoCopy() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ContainerMountVolumeOptions) *bool { return v.NoCopy }).(pulumi.BoolPtrOutput) +// If `true`, this volume will be readonly. Defaults to `false`. +func (o ContainerVolumeOutput) ReadOnly() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ContainerVolume) *bool { return v.ReadOnly }).(pulumi.BoolPtrOutput) } -// Path within the volume to mount. Requires docker server version 1.45 or higher. -func (o ContainerMountVolumeOptionsOutput) Subpath() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerMountVolumeOptions) *string { return v.Subpath }).(pulumi.StringPtrOutput) +// The name of the docker volume which should be mounted. +func (o ContainerVolumeOutput) VolumeName() pulumi.StringPtrOutput { + return o.ApplyT(func(v ContainerVolume) *string { return v.VolumeName }).(pulumi.StringPtrOutput) } -type ContainerMountVolumeOptionsPtrOutput struct{ *pulumi.OutputState } +type ContainerVolumeArrayOutput struct{ *pulumi.OutputState } -func (ContainerMountVolumeOptionsPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ContainerMountVolumeOptions)(nil)).Elem() +func (ContainerVolumeArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ContainerVolume)(nil)).Elem() } -func (o ContainerMountVolumeOptionsPtrOutput) ToContainerMountVolumeOptionsPtrOutput() ContainerMountVolumeOptionsPtrOutput { +func (o ContainerVolumeArrayOutput) ToContainerVolumeArrayOutput() ContainerVolumeArrayOutput { return o } -func (o ContainerMountVolumeOptionsPtrOutput) ToContainerMountVolumeOptionsPtrOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsPtrOutput { +func (o ContainerVolumeArrayOutput) ToContainerVolumeArrayOutputWithContext(ctx context.Context) ContainerVolumeArrayOutput { return o } -func (o ContainerMountVolumeOptionsPtrOutput) Elem() ContainerMountVolumeOptionsOutput { - return o.ApplyT(func(v *ContainerMountVolumeOptions) ContainerMountVolumeOptions { - if v != nil { - return *v - } - var ret ContainerMountVolumeOptions - return ret - }).(ContainerMountVolumeOptionsOutput) -} - -// Name of the driver to use to create the volume. -func (o ContainerMountVolumeOptionsPtrOutput) DriverName() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ContainerMountVolumeOptions) *string { - if v == nil { - return nil - } - return v.DriverName - }).(pulumi.StringPtrOutput) -} - -// key/value map of driver specific options. -func (o ContainerMountVolumeOptionsPtrOutput) DriverOptions() pulumi.StringMapOutput { - return o.ApplyT(func(v *ContainerMountVolumeOptions) map[string]string { - if v == nil { - return nil - } - return v.DriverOptions - }).(pulumi.StringMapOutput) -} - -// User-defined key/value metadata. -func (o ContainerMountVolumeOptionsPtrOutput) Labels() ContainerMountVolumeOptionsLabelArrayOutput { - return o.ApplyT(func(v *ContainerMountVolumeOptions) []ContainerMountVolumeOptionsLabel { - if v == nil { - return nil - } - return v.Labels - }).(ContainerMountVolumeOptionsLabelArrayOutput) -} - -// Populate volume with data from the target. -func (o ContainerMountVolumeOptionsPtrOutput) NoCopy() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *ContainerMountVolumeOptions) *bool { - if v == nil { - return nil - } - return v.NoCopy - }).(pulumi.BoolPtrOutput) -} - -// Path within the volume to mount. Requires docker server version 1.45 or higher. -func (o ContainerMountVolumeOptionsPtrOutput) Subpath() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ContainerMountVolumeOptions) *string { - if v == nil { - return nil - } - return v.Subpath - }).(pulumi.StringPtrOutput) +func (o ContainerVolumeArrayOutput) Index(i pulumi.IntInput) ContainerVolumeOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerVolume { + return vs[0].([]ContainerVolume)[vs[1].(int)] + }).(ContainerVolumeOutput) } -type ContainerMountVolumeOptionsLabel struct { - // Name of the label - Label string `pulumi:"label"` - // Value of the label - Value string `pulumi:"value"` +type NetworkIpamConfig struct { + // Auxiliary IPv4 or IPv6 addresses used by Network driver + AuxAddress map[string]string `pulumi:"auxAddress"` + // The IP address of the gateway + Gateway *string `pulumi:"gateway"` + // The ip range in CIDR form + IpRange *string `pulumi:"ipRange"` + // The subnet in CIDR form + Subnet *string `pulumi:"subnet"` } -// ContainerMountVolumeOptionsLabelInput is an input type that accepts ContainerMountVolumeOptionsLabelArgs and ContainerMountVolumeOptionsLabelOutput values. -// You can construct a concrete instance of `ContainerMountVolumeOptionsLabelInput` via: +// NetworkIpamConfigInput is an input type that accepts NetworkIpamConfigArgs and NetworkIpamConfigOutput values. +// You can construct a concrete instance of `NetworkIpamConfigInput` via: // -// ContainerMountVolumeOptionsLabelArgs{...} -type ContainerMountVolumeOptionsLabelInput interface { +// NetworkIpamConfigArgs{...} +type NetworkIpamConfigInput interface { pulumi.Input - ToContainerMountVolumeOptionsLabelOutput() ContainerMountVolumeOptionsLabelOutput - ToContainerMountVolumeOptionsLabelOutputWithContext(context.Context) ContainerMountVolumeOptionsLabelOutput + ToNetworkIpamConfigOutput() NetworkIpamConfigOutput + ToNetworkIpamConfigOutputWithContext(context.Context) NetworkIpamConfigOutput } -type ContainerMountVolumeOptionsLabelArgs struct { - // Name of the label - Label pulumi.StringInput `pulumi:"label"` - // Value of the label - Value pulumi.StringInput `pulumi:"value"` +type NetworkIpamConfigArgs struct { + // Auxiliary IPv4 or IPv6 addresses used by Network driver + AuxAddress pulumi.StringMapInput `pulumi:"auxAddress"` + // The IP address of the gateway + Gateway pulumi.StringPtrInput `pulumi:"gateway"` + // The ip range in CIDR form + IpRange pulumi.StringPtrInput `pulumi:"ipRange"` + // The subnet in CIDR form + Subnet pulumi.StringPtrInput `pulumi:"subnet"` } -func (ContainerMountVolumeOptionsLabelArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountVolumeOptionsLabel)(nil)).Elem() +func (NetworkIpamConfigArgs) ElementType() reflect.Type { + return reflect.TypeOf((*NetworkIpamConfig)(nil)).Elem() } -func (i ContainerMountVolumeOptionsLabelArgs) ToContainerMountVolumeOptionsLabelOutput() ContainerMountVolumeOptionsLabelOutput { - return i.ToContainerMountVolumeOptionsLabelOutputWithContext(context.Background()) +func (i NetworkIpamConfigArgs) ToNetworkIpamConfigOutput() NetworkIpamConfigOutput { + return i.ToNetworkIpamConfigOutputWithContext(context.Background()) } -func (i ContainerMountVolumeOptionsLabelArgs) ToContainerMountVolumeOptionsLabelOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsLabelOutput) +func (i NetworkIpamConfigArgs) ToNetworkIpamConfigOutputWithContext(ctx context.Context) NetworkIpamConfigOutput { + return pulumi.ToOutputWithContext(ctx, i).(NetworkIpamConfigOutput) } -// ContainerMountVolumeOptionsLabelArrayInput is an input type that accepts ContainerMountVolumeOptionsLabelArray and ContainerMountVolumeOptionsLabelArrayOutput values. -// You can construct a concrete instance of `ContainerMountVolumeOptionsLabelArrayInput` via: +// NetworkIpamConfigArrayInput is an input type that accepts NetworkIpamConfigArray and NetworkIpamConfigArrayOutput values. +// You can construct a concrete instance of `NetworkIpamConfigArrayInput` via: // -// ContainerMountVolumeOptionsLabelArray{ ContainerMountVolumeOptionsLabelArgs{...} } -type ContainerMountVolumeOptionsLabelArrayInput interface { +// NetworkIpamConfigArray{ NetworkIpamConfigArgs{...} } +type NetworkIpamConfigArrayInput interface { pulumi.Input - ToContainerMountVolumeOptionsLabelArrayOutput() ContainerMountVolumeOptionsLabelArrayOutput - ToContainerMountVolumeOptionsLabelArrayOutputWithContext(context.Context) ContainerMountVolumeOptionsLabelArrayOutput -} - -type ContainerMountVolumeOptionsLabelArray []ContainerMountVolumeOptionsLabelInput - -func (ContainerMountVolumeOptionsLabelArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerMountVolumeOptionsLabel)(nil)).Elem() -} - -func (i ContainerMountVolumeOptionsLabelArray) ToContainerMountVolumeOptionsLabelArrayOutput() ContainerMountVolumeOptionsLabelArrayOutput { - return i.ToContainerMountVolumeOptionsLabelArrayOutputWithContext(context.Background()) -} - -func (i ContainerMountVolumeOptionsLabelArray) ToContainerMountVolumeOptionsLabelArrayOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerMountVolumeOptionsLabelArrayOutput) -} - -type ContainerMountVolumeOptionsLabelOutput struct{ *pulumi.OutputState } - -func (ContainerMountVolumeOptionsLabelOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerMountVolumeOptionsLabel)(nil)).Elem() -} - -func (o ContainerMountVolumeOptionsLabelOutput) ToContainerMountVolumeOptionsLabelOutput() ContainerMountVolumeOptionsLabelOutput { - return o -} - -func (o ContainerMountVolumeOptionsLabelOutput) ToContainerMountVolumeOptionsLabelOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelOutput { - return o -} - -// Name of the label -func (o ContainerMountVolumeOptionsLabelOutput) Label() pulumi.StringOutput { - return o.ApplyT(func(v ContainerMountVolumeOptionsLabel) string { return v.Label }).(pulumi.StringOutput) -} - -// Value of the label -func (o ContainerMountVolumeOptionsLabelOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v ContainerMountVolumeOptionsLabel) string { return v.Value }).(pulumi.StringOutput) -} - -type ContainerMountVolumeOptionsLabelArrayOutput struct{ *pulumi.OutputState } - -func (ContainerMountVolumeOptionsLabelArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerMountVolumeOptionsLabel)(nil)).Elem() -} - -func (o ContainerMountVolumeOptionsLabelArrayOutput) ToContainerMountVolumeOptionsLabelArrayOutput() ContainerMountVolumeOptionsLabelArrayOutput { - return o -} - -func (o ContainerMountVolumeOptionsLabelArrayOutput) ToContainerMountVolumeOptionsLabelArrayOutputWithContext(ctx context.Context) ContainerMountVolumeOptionsLabelArrayOutput { - return o -} - -func (o ContainerMountVolumeOptionsLabelArrayOutput) Index(i pulumi.IntInput) ContainerMountVolumeOptionsLabelOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerMountVolumeOptionsLabel { - return vs[0].([]ContainerMountVolumeOptionsLabel)[vs[1].(int)] - }).(ContainerMountVolumeOptionsLabelOutput) -} - -type ContainerNetworkData struct { - // The network gateway of the container. - Gateway *string `pulumi:"gateway"` - // The IPV6 address of the container. - GlobalIpv6Address *string `pulumi:"globalIpv6Address"` - // The IPV6 prefix length address of the container. - GlobalIpv6PrefixLength *int `pulumi:"globalIpv6PrefixLength"` - // The IP address of the container. - IpAddress *string `pulumi:"ipAddress"` - // The IP prefix length of the container. - IpPrefixLength *int `pulumi:"ipPrefixLength"` - // The IPV6 gateway of the container. - Ipv6Gateway *string `pulumi:"ipv6Gateway"` - // The MAC address of the container. - MacAddress *string `pulumi:"macAddress"` - // The name of the network - NetworkName *string `pulumi:"networkName"` -} - -// ContainerNetworkDataInput is an input type that accepts ContainerNetworkDataArgs and ContainerNetworkDataOutput values. -// You can construct a concrete instance of `ContainerNetworkDataInput` via: -// -// ContainerNetworkDataArgs{...} -type ContainerNetworkDataInput interface { - pulumi.Input - - ToContainerNetworkDataOutput() ContainerNetworkDataOutput - ToContainerNetworkDataOutputWithContext(context.Context) ContainerNetworkDataOutput -} - -type ContainerNetworkDataArgs struct { - // The network gateway of the container. - Gateway pulumi.StringPtrInput `pulumi:"gateway"` - // The IPV6 address of the container. - GlobalIpv6Address pulumi.StringPtrInput `pulumi:"globalIpv6Address"` - // The IPV6 prefix length address of the container. - GlobalIpv6PrefixLength pulumi.IntPtrInput `pulumi:"globalIpv6PrefixLength"` - // The IP address of the container. - IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` - // The IP prefix length of the container. - IpPrefixLength pulumi.IntPtrInput `pulumi:"ipPrefixLength"` - // The IPV6 gateway of the container. - Ipv6Gateway pulumi.StringPtrInput `pulumi:"ipv6Gateway"` - // The MAC address of the container. - MacAddress pulumi.StringPtrInput `pulumi:"macAddress"` - // The name of the network - NetworkName pulumi.StringPtrInput `pulumi:"networkName"` -} - -func (ContainerNetworkDataArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerNetworkData)(nil)).Elem() -} - -func (i ContainerNetworkDataArgs) ToContainerNetworkDataOutput() ContainerNetworkDataOutput { - return i.ToContainerNetworkDataOutputWithContext(context.Background()) -} - -func (i ContainerNetworkDataArgs) ToContainerNetworkDataOutputWithContext(ctx context.Context) ContainerNetworkDataOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworkDataOutput) -} - -// ContainerNetworkDataArrayInput is an input type that accepts ContainerNetworkDataArray and ContainerNetworkDataArrayOutput values. -// You can construct a concrete instance of `ContainerNetworkDataArrayInput` via: -// -// ContainerNetworkDataArray{ ContainerNetworkDataArgs{...} } -type ContainerNetworkDataArrayInput interface { - pulumi.Input - - ToContainerNetworkDataArrayOutput() ContainerNetworkDataArrayOutput - ToContainerNetworkDataArrayOutputWithContext(context.Context) ContainerNetworkDataArrayOutput -} - -type ContainerNetworkDataArray []ContainerNetworkDataInput - -func (ContainerNetworkDataArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerNetworkData)(nil)).Elem() -} - -func (i ContainerNetworkDataArray) ToContainerNetworkDataArrayOutput() ContainerNetworkDataArrayOutput { - return i.ToContainerNetworkDataArrayOutputWithContext(context.Background()) -} - -func (i ContainerNetworkDataArray) ToContainerNetworkDataArrayOutputWithContext(ctx context.Context) ContainerNetworkDataArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworkDataArrayOutput) -} - -type ContainerNetworkDataOutput struct{ *pulumi.OutputState } - -func (ContainerNetworkDataOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerNetworkData)(nil)).Elem() -} - -func (o ContainerNetworkDataOutput) ToContainerNetworkDataOutput() ContainerNetworkDataOutput { - return o -} - -func (o ContainerNetworkDataOutput) ToContainerNetworkDataOutputWithContext(ctx context.Context) ContainerNetworkDataOutput { - return o -} - -// The network gateway of the container. -func (o ContainerNetworkDataOutput) Gateway() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *string { return v.Gateway }).(pulumi.StringPtrOutput) -} - -// The IPV6 address of the container. -func (o ContainerNetworkDataOutput) GlobalIpv6Address() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *string { return v.GlobalIpv6Address }).(pulumi.StringPtrOutput) -} - -// The IPV6 prefix length address of the container. -func (o ContainerNetworkDataOutput) GlobalIpv6PrefixLength() pulumi.IntPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *int { return v.GlobalIpv6PrefixLength }).(pulumi.IntPtrOutput) -} - -// The IP address of the container. -func (o ContainerNetworkDataOutput) IpAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *string { return v.IpAddress }).(pulumi.StringPtrOutput) -} - -// The IP prefix length of the container. -func (o ContainerNetworkDataOutput) IpPrefixLength() pulumi.IntPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *int { return v.IpPrefixLength }).(pulumi.IntPtrOutput) -} - -// The IPV6 gateway of the container. -func (o ContainerNetworkDataOutput) Ipv6Gateway() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *string { return v.Ipv6Gateway }).(pulumi.StringPtrOutput) -} - -// The MAC address of the container. -func (o ContainerNetworkDataOutput) MacAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *string { return v.MacAddress }).(pulumi.StringPtrOutput) -} - -// The name of the network -func (o ContainerNetworkDataOutput) NetworkName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworkData) *string { return v.NetworkName }).(pulumi.StringPtrOutput) -} - -type ContainerNetworkDataArrayOutput struct{ *pulumi.OutputState } - -func (ContainerNetworkDataArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerNetworkData)(nil)).Elem() -} - -func (o ContainerNetworkDataArrayOutput) ToContainerNetworkDataArrayOutput() ContainerNetworkDataArrayOutput { - return o -} - -func (o ContainerNetworkDataArrayOutput) ToContainerNetworkDataArrayOutputWithContext(ctx context.Context) ContainerNetworkDataArrayOutput { - return o -} - -func (o ContainerNetworkDataArrayOutput) Index(i pulumi.IntInput) ContainerNetworkDataOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerNetworkData { - return vs[0].([]ContainerNetworkData)[vs[1].(int)] - }).(ContainerNetworkDataOutput) -} - -type ContainerNetworksAdvanced struct { - // The network aliases of the container in the specific network. - Aliases []string `pulumi:"aliases"` - // The IPV4 address of the container in the specific network. - Ipv4Address *string `pulumi:"ipv4Address"` - // The IPV6 address of the container in the specific network. - Ipv6Address *string `pulumi:"ipv6Address"` - // The MAC address of the container in the specific network. - MacAddress *string `pulumi:"macAddress"` - // The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource. - Name string `pulumi:"name"` -} - -// ContainerNetworksAdvancedInput is an input type that accepts ContainerNetworksAdvancedArgs and ContainerNetworksAdvancedOutput values. -// You can construct a concrete instance of `ContainerNetworksAdvancedInput` via: -// -// ContainerNetworksAdvancedArgs{...} -type ContainerNetworksAdvancedInput interface { - pulumi.Input - - ToContainerNetworksAdvancedOutput() ContainerNetworksAdvancedOutput - ToContainerNetworksAdvancedOutputWithContext(context.Context) ContainerNetworksAdvancedOutput -} - -type ContainerNetworksAdvancedArgs struct { - // The network aliases of the container in the specific network. - Aliases pulumi.StringArrayInput `pulumi:"aliases"` - // The IPV4 address of the container in the specific network. - Ipv4Address pulumi.StringPtrInput `pulumi:"ipv4Address"` - // The IPV6 address of the container in the specific network. - Ipv6Address pulumi.StringPtrInput `pulumi:"ipv6Address"` - // The MAC address of the container in the specific network. - MacAddress pulumi.StringPtrInput `pulumi:"macAddress"` - // The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource. - Name pulumi.StringInput `pulumi:"name"` -} - -func (ContainerNetworksAdvancedArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerNetworksAdvanced)(nil)).Elem() -} - -func (i ContainerNetworksAdvancedArgs) ToContainerNetworksAdvancedOutput() ContainerNetworksAdvancedOutput { - return i.ToContainerNetworksAdvancedOutputWithContext(context.Background()) -} - -func (i ContainerNetworksAdvancedArgs) ToContainerNetworksAdvancedOutputWithContext(ctx context.Context) ContainerNetworksAdvancedOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworksAdvancedOutput) -} - -// ContainerNetworksAdvancedArrayInput is an input type that accepts ContainerNetworksAdvancedArray and ContainerNetworksAdvancedArrayOutput values. -// You can construct a concrete instance of `ContainerNetworksAdvancedArrayInput` via: -// -// ContainerNetworksAdvancedArray{ ContainerNetworksAdvancedArgs{...} } -type ContainerNetworksAdvancedArrayInput interface { - pulumi.Input - - ToContainerNetworksAdvancedArrayOutput() ContainerNetworksAdvancedArrayOutput - ToContainerNetworksAdvancedArrayOutputWithContext(context.Context) ContainerNetworksAdvancedArrayOutput -} - -type ContainerNetworksAdvancedArray []ContainerNetworksAdvancedInput - -func (ContainerNetworksAdvancedArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerNetworksAdvanced)(nil)).Elem() -} - -func (i ContainerNetworksAdvancedArray) ToContainerNetworksAdvancedArrayOutput() ContainerNetworksAdvancedArrayOutput { - return i.ToContainerNetworksAdvancedArrayOutputWithContext(context.Background()) -} - -func (i ContainerNetworksAdvancedArray) ToContainerNetworksAdvancedArrayOutputWithContext(ctx context.Context) ContainerNetworksAdvancedArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerNetworksAdvancedArrayOutput) -} - -type ContainerNetworksAdvancedOutput struct{ *pulumi.OutputState } - -func (ContainerNetworksAdvancedOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerNetworksAdvanced)(nil)).Elem() -} - -func (o ContainerNetworksAdvancedOutput) ToContainerNetworksAdvancedOutput() ContainerNetworksAdvancedOutput { - return o -} - -func (o ContainerNetworksAdvancedOutput) ToContainerNetworksAdvancedOutputWithContext(ctx context.Context) ContainerNetworksAdvancedOutput { - return o -} - -// The network aliases of the container in the specific network. -func (o ContainerNetworksAdvancedOutput) Aliases() pulumi.StringArrayOutput { - return o.ApplyT(func(v ContainerNetworksAdvanced) []string { return v.Aliases }).(pulumi.StringArrayOutput) -} - -// The IPV4 address of the container in the specific network. -func (o ContainerNetworksAdvancedOutput) Ipv4Address() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworksAdvanced) *string { return v.Ipv4Address }).(pulumi.StringPtrOutput) -} - -// The IPV6 address of the container in the specific network. -func (o ContainerNetworksAdvancedOutput) Ipv6Address() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworksAdvanced) *string { return v.Ipv6Address }).(pulumi.StringPtrOutput) -} - -// The MAC address of the container in the specific network. -func (o ContainerNetworksAdvancedOutput) MacAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerNetworksAdvanced) *string { return v.MacAddress }).(pulumi.StringPtrOutput) -} - -// The name or id of the network to use. You can use `name` or `id` attribute from a `Network` resource. -func (o ContainerNetworksAdvancedOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ContainerNetworksAdvanced) string { return v.Name }).(pulumi.StringOutput) -} - -type ContainerNetworksAdvancedArrayOutput struct{ *pulumi.OutputState } - -func (ContainerNetworksAdvancedArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerNetworksAdvanced)(nil)).Elem() -} - -func (o ContainerNetworksAdvancedArrayOutput) ToContainerNetworksAdvancedArrayOutput() ContainerNetworksAdvancedArrayOutput { - return o -} - -func (o ContainerNetworksAdvancedArrayOutput) ToContainerNetworksAdvancedArrayOutputWithContext(ctx context.Context) ContainerNetworksAdvancedArrayOutput { - return o -} - -func (o ContainerNetworksAdvancedArrayOutput) Index(i pulumi.IntInput) ContainerNetworksAdvancedOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerNetworksAdvanced { - return vs[0].([]ContainerNetworksAdvanced)[vs[1].(int)] - }).(ContainerNetworksAdvancedOutput) -} - -type ContainerPort struct { - // Port exposed out of the container. If not given a free random port `>= 32768` will be used. - External *int `pulumi:"external"` - // Port within the container. - Internal int `pulumi:"internal"` - // IP address/mask that can access this port. Defaults to `0.0.0.0`. - Ip *string `pulumi:"ip"` - // Protocol that can be used over this port. Defaults to `tcp`. - Protocol *string `pulumi:"protocol"` -} - -// ContainerPortInput is an input type that accepts ContainerPortArgs and ContainerPortOutput values. -// You can construct a concrete instance of `ContainerPortInput` via: -// -// ContainerPortArgs{...} -type ContainerPortInput interface { - pulumi.Input - - ToContainerPortOutput() ContainerPortOutput - ToContainerPortOutputWithContext(context.Context) ContainerPortOutput -} - -type ContainerPortArgs struct { - // Port exposed out of the container. If not given a free random port `>= 32768` will be used. - External pulumi.IntPtrInput `pulumi:"external"` - // Port within the container. - Internal pulumi.IntInput `pulumi:"internal"` - // IP address/mask that can access this port. Defaults to `0.0.0.0`. - Ip pulumi.StringPtrInput `pulumi:"ip"` - // Protocol that can be used over this port. Defaults to `tcp`. - Protocol pulumi.StringPtrInput `pulumi:"protocol"` -} - -func (ContainerPortArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerPort)(nil)).Elem() -} - -func (i ContainerPortArgs) ToContainerPortOutput() ContainerPortOutput { - return i.ToContainerPortOutputWithContext(context.Background()) -} - -func (i ContainerPortArgs) ToContainerPortOutputWithContext(ctx context.Context) ContainerPortOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerPortOutput) -} - -// ContainerPortArrayInput is an input type that accepts ContainerPortArray and ContainerPortArrayOutput values. -// You can construct a concrete instance of `ContainerPortArrayInput` via: -// -// ContainerPortArray{ ContainerPortArgs{...} } -type ContainerPortArrayInput interface { - pulumi.Input - - ToContainerPortArrayOutput() ContainerPortArrayOutput - ToContainerPortArrayOutputWithContext(context.Context) ContainerPortArrayOutput -} - -type ContainerPortArray []ContainerPortInput - -func (ContainerPortArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerPort)(nil)).Elem() -} - -func (i ContainerPortArray) ToContainerPortArrayOutput() ContainerPortArrayOutput { - return i.ToContainerPortArrayOutputWithContext(context.Background()) -} - -func (i ContainerPortArray) ToContainerPortArrayOutputWithContext(ctx context.Context) ContainerPortArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerPortArrayOutput) -} - -type ContainerPortOutput struct{ *pulumi.OutputState } - -func (ContainerPortOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerPort)(nil)).Elem() -} - -func (o ContainerPortOutput) ToContainerPortOutput() ContainerPortOutput { - return o -} - -func (o ContainerPortOutput) ToContainerPortOutputWithContext(ctx context.Context) ContainerPortOutput { - return o -} - -// Port exposed out of the container. If not given a free random port `>= 32768` will be used. -func (o ContainerPortOutput) External() pulumi.IntPtrOutput { - return o.ApplyT(func(v ContainerPort) *int { return v.External }).(pulumi.IntPtrOutput) -} - -// Port within the container. -func (o ContainerPortOutput) Internal() pulumi.IntOutput { - return o.ApplyT(func(v ContainerPort) int { return v.Internal }).(pulumi.IntOutput) -} - -// IP address/mask that can access this port. Defaults to `0.0.0.0`. -func (o ContainerPortOutput) Ip() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerPort) *string { return v.Ip }).(pulumi.StringPtrOutput) -} - -// Protocol that can be used over this port. Defaults to `tcp`. -func (o ContainerPortOutput) Protocol() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerPort) *string { return v.Protocol }).(pulumi.StringPtrOutput) -} - -type ContainerPortArrayOutput struct{ *pulumi.OutputState } - -func (ContainerPortArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerPort)(nil)).Elem() -} - -func (o ContainerPortArrayOutput) ToContainerPortArrayOutput() ContainerPortArrayOutput { - return o -} - -func (o ContainerPortArrayOutput) ToContainerPortArrayOutputWithContext(ctx context.Context) ContainerPortArrayOutput { - return o -} - -func (o ContainerPortArrayOutput) Index(i pulumi.IntInput) ContainerPortOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerPort { - return vs[0].([]ContainerPort)[vs[1].(int)] - }).(ContainerPortOutput) -} - -type ContainerUlimit struct { - // The hard limit - Hard int `pulumi:"hard"` - // The name of the ulimit - Name string `pulumi:"name"` - // The soft limit - Soft int `pulumi:"soft"` -} - -// ContainerUlimitInput is an input type that accepts ContainerUlimitArgs and ContainerUlimitOutput values. -// You can construct a concrete instance of `ContainerUlimitInput` via: -// -// ContainerUlimitArgs{...} -type ContainerUlimitInput interface { - pulumi.Input - - ToContainerUlimitOutput() ContainerUlimitOutput - ToContainerUlimitOutputWithContext(context.Context) ContainerUlimitOutput -} - -type ContainerUlimitArgs struct { - // The hard limit - Hard pulumi.IntInput `pulumi:"hard"` - // The name of the ulimit - Name pulumi.StringInput `pulumi:"name"` - // The soft limit - Soft pulumi.IntInput `pulumi:"soft"` -} - -func (ContainerUlimitArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerUlimit)(nil)).Elem() -} - -func (i ContainerUlimitArgs) ToContainerUlimitOutput() ContainerUlimitOutput { - return i.ToContainerUlimitOutputWithContext(context.Background()) -} - -func (i ContainerUlimitArgs) ToContainerUlimitOutputWithContext(ctx context.Context) ContainerUlimitOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerUlimitOutput) -} - -// ContainerUlimitArrayInput is an input type that accepts ContainerUlimitArray and ContainerUlimitArrayOutput values. -// You can construct a concrete instance of `ContainerUlimitArrayInput` via: -// -// ContainerUlimitArray{ ContainerUlimitArgs{...} } -type ContainerUlimitArrayInput interface { - pulumi.Input - - ToContainerUlimitArrayOutput() ContainerUlimitArrayOutput - ToContainerUlimitArrayOutputWithContext(context.Context) ContainerUlimitArrayOutput -} - -type ContainerUlimitArray []ContainerUlimitInput - -func (ContainerUlimitArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerUlimit)(nil)).Elem() -} - -func (i ContainerUlimitArray) ToContainerUlimitArrayOutput() ContainerUlimitArrayOutput { - return i.ToContainerUlimitArrayOutputWithContext(context.Background()) -} - -func (i ContainerUlimitArray) ToContainerUlimitArrayOutputWithContext(ctx context.Context) ContainerUlimitArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerUlimitArrayOutput) -} - -type ContainerUlimitOutput struct{ *pulumi.OutputState } - -func (ContainerUlimitOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerUlimit)(nil)).Elem() -} - -func (o ContainerUlimitOutput) ToContainerUlimitOutput() ContainerUlimitOutput { - return o -} - -func (o ContainerUlimitOutput) ToContainerUlimitOutputWithContext(ctx context.Context) ContainerUlimitOutput { - return o -} - -// The hard limit -func (o ContainerUlimitOutput) Hard() pulumi.IntOutput { - return o.ApplyT(func(v ContainerUlimit) int { return v.Hard }).(pulumi.IntOutput) -} - -// The name of the ulimit -func (o ContainerUlimitOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v ContainerUlimit) string { return v.Name }).(pulumi.StringOutput) -} - -// The soft limit -func (o ContainerUlimitOutput) Soft() pulumi.IntOutput { - return o.ApplyT(func(v ContainerUlimit) int { return v.Soft }).(pulumi.IntOutput) -} - -type ContainerUlimitArrayOutput struct{ *pulumi.OutputState } - -func (ContainerUlimitArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerUlimit)(nil)).Elem() -} - -func (o ContainerUlimitArrayOutput) ToContainerUlimitArrayOutput() ContainerUlimitArrayOutput { - return o -} - -func (o ContainerUlimitArrayOutput) ToContainerUlimitArrayOutputWithContext(ctx context.Context) ContainerUlimitArrayOutput { - return o -} - -func (o ContainerUlimitArrayOutput) Index(i pulumi.IntInput) ContainerUlimitOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerUlimit { - return vs[0].([]ContainerUlimit)[vs[1].(int)] - }).(ContainerUlimitOutput) -} - -type ContainerUpload struct { - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source` - Content *string `pulumi:"content"` - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source` - ContentBase64 *string `pulumi:"contentBase64"` - // If `true`, the file will be uploaded with user executable permission. Defaults to `false`. - Executable *bool `pulumi:"executable"` - // Path to the file in the container where is upload goes to - File string `pulumi:"file"` - // The permission mode for the file in the container. Has precedence over `executable`. - Permissions *string `pulumi:"permissions"` - // A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `contentBase64` - Source *string `pulumi:"source"` - // If using `source`, this will force an update if the file content has updated but the filename has not. - SourceHash *string `pulumi:"sourceHash"` -} - -// ContainerUploadInput is an input type that accepts ContainerUploadArgs and ContainerUploadOutput values. -// You can construct a concrete instance of `ContainerUploadInput` via: -// -// ContainerUploadArgs{...} -type ContainerUploadInput interface { - pulumi.Input - - ToContainerUploadOutput() ContainerUploadOutput - ToContainerUploadOutputWithContext(context.Context) ContainerUploadOutput -} - -type ContainerUploadArgs struct { - // Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source` - Content pulumi.StringPtrInput `pulumi:"content"` - // Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source` - ContentBase64 pulumi.StringPtrInput `pulumi:"contentBase64"` - // If `true`, the file will be uploaded with user executable permission. Defaults to `false`. - Executable pulumi.BoolPtrInput `pulumi:"executable"` - // Path to the file in the container where is upload goes to - File pulumi.StringInput `pulumi:"file"` - // The permission mode for the file in the container. Has precedence over `executable`. - Permissions pulumi.StringPtrInput `pulumi:"permissions"` - // A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `contentBase64` - Source pulumi.StringPtrInput `pulumi:"source"` - // If using `source`, this will force an update if the file content has updated but the filename has not. - SourceHash pulumi.StringPtrInput `pulumi:"sourceHash"` -} - -func (ContainerUploadArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerUpload)(nil)).Elem() -} - -func (i ContainerUploadArgs) ToContainerUploadOutput() ContainerUploadOutput { - return i.ToContainerUploadOutputWithContext(context.Background()) -} - -func (i ContainerUploadArgs) ToContainerUploadOutputWithContext(ctx context.Context) ContainerUploadOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerUploadOutput) -} - -// ContainerUploadArrayInput is an input type that accepts ContainerUploadArray and ContainerUploadArrayOutput values. -// You can construct a concrete instance of `ContainerUploadArrayInput` via: -// -// ContainerUploadArray{ ContainerUploadArgs{...} } -type ContainerUploadArrayInput interface { - pulumi.Input - - ToContainerUploadArrayOutput() ContainerUploadArrayOutput - ToContainerUploadArrayOutputWithContext(context.Context) ContainerUploadArrayOutput -} - -type ContainerUploadArray []ContainerUploadInput - -func (ContainerUploadArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerUpload)(nil)).Elem() -} - -func (i ContainerUploadArray) ToContainerUploadArrayOutput() ContainerUploadArrayOutput { - return i.ToContainerUploadArrayOutputWithContext(context.Background()) -} - -func (i ContainerUploadArray) ToContainerUploadArrayOutputWithContext(ctx context.Context) ContainerUploadArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerUploadArrayOutput) -} - -type ContainerUploadOutput struct{ *pulumi.OutputState } - -func (ContainerUploadOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerUpload)(nil)).Elem() -} - -func (o ContainerUploadOutput) ToContainerUploadOutput() ContainerUploadOutput { - return o -} - -func (o ContainerUploadOutput) ToContainerUploadOutputWithContext(ctx context.Context) ContainerUploadOutput { - return o -} - -// Literal string value to use as the object content, which will be uploaded as UTF-8-encoded text. Conflicts with `contentBase64` & `source` -func (o ContainerUploadOutput) Content() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerUpload) *string { return v.Content }).(pulumi.StringPtrOutput) -} - -// Base64-encoded data that will be decoded and uploaded as raw bytes for the object content. This allows safely uploading non-UTF8 binary data, but is recommended only for larger binary content such as the result of the `base64encode` interpolation function. See here for the reason. Conflicts with `content` & `source` -func (o ContainerUploadOutput) ContentBase64() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerUpload) *string { return v.ContentBase64 }).(pulumi.StringPtrOutput) -} - -// If `true`, the file will be uploaded with user executable permission. Defaults to `false`. -func (o ContainerUploadOutput) Executable() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ContainerUpload) *bool { return v.Executable }).(pulumi.BoolPtrOutput) -} - -// Path to the file in the container where is upload goes to -func (o ContainerUploadOutput) File() pulumi.StringOutput { - return o.ApplyT(func(v ContainerUpload) string { return v.File }).(pulumi.StringOutput) -} - -// The permission mode for the file in the container. Has precedence over `executable`. -func (o ContainerUploadOutput) Permissions() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerUpload) *string { return v.Permissions }).(pulumi.StringPtrOutput) -} - -// A filename that references a file which will be uploaded as the object content. This allows for large file uploads that do not get stored in state. Conflicts with `content` & `contentBase64` -func (o ContainerUploadOutput) Source() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerUpload) *string { return v.Source }).(pulumi.StringPtrOutput) -} - -// If using `source`, this will force an update if the file content has updated but the filename has not. -func (o ContainerUploadOutput) SourceHash() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerUpload) *string { return v.SourceHash }).(pulumi.StringPtrOutput) -} - -type ContainerUploadArrayOutput struct{ *pulumi.OutputState } - -func (ContainerUploadArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerUpload)(nil)).Elem() -} - -func (o ContainerUploadArrayOutput) ToContainerUploadArrayOutput() ContainerUploadArrayOutput { - return o -} - -func (o ContainerUploadArrayOutput) ToContainerUploadArrayOutputWithContext(ctx context.Context) ContainerUploadArrayOutput { - return o -} - -func (o ContainerUploadArrayOutput) Index(i pulumi.IntInput) ContainerUploadOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerUpload { - return vs[0].([]ContainerUpload)[vs[1].(int)] - }).(ContainerUploadOutput) -} - -type ContainerVolume struct { - // The path in the container where the volume will be mounted. - ContainerPath *string `pulumi:"containerPath"` - // The container where the volume is coming from. - FromContainer *string `pulumi:"fromContainer"` - // The path on the host where the volume is coming from. - HostPath *string `pulumi:"hostPath"` - // If `true`, this volume will be readonly. Defaults to `false`. - ReadOnly *bool `pulumi:"readOnly"` - // The name of the docker volume which should be mounted. - VolumeName *string `pulumi:"volumeName"` -} - -// ContainerVolumeInput is an input type that accepts ContainerVolumeArgs and ContainerVolumeOutput values. -// You can construct a concrete instance of `ContainerVolumeInput` via: -// -// ContainerVolumeArgs{...} -type ContainerVolumeInput interface { - pulumi.Input - - ToContainerVolumeOutput() ContainerVolumeOutput - ToContainerVolumeOutputWithContext(context.Context) ContainerVolumeOutput -} - -type ContainerVolumeArgs struct { - // The path in the container where the volume will be mounted. - ContainerPath pulumi.StringPtrInput `pulumi:"containerPath"` - // The container where the volume is coming from. - FromContainer pulumi.StringPtrInput `pulumi:"fromContainer"` - // The path on the host where the volume is coming from. - HostPath pulumi.StringPtrInput `pulumi:"hostPath"` - // If `true`, this volume will be readonly. Defaults to `false`. - ReadOnly pulumi.BoolPtrInput `pulumi:"readOnly"` - // The name of the docker volume which should be mounted. - VolumeName pulumi.StringPtrInput `pulumi:"volumeName"` -} - -func (ContainerVolumeArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerVolume)(nil)).Elem() -} - -func (i ContainerVolumeArgs) ToContainerVolumeOutput() ContainerVolumeOutput { - return i.ToContainerVolumeOutputWithContext(context.Background()) -} - -func (i ContainerVolumeArgs) ToContainerVolumeOutputWithContext(ctx context.Context) ContainerVolumeOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerVolumeOutput) -} - -// ContainerVolumeArrayInput is an input type that accepts ContainerVolumeArray and ContainerVolumeArrayOutput values. -// You can construct a concrete instance of `ContainerVolumeArrayInput` via: -// -// ContainerVolumeArray{ ContainerVolumeArgs{...} } -type ContainerVolumeArrayInput interface { - pulumi.Input - - ToContainerVolumeArrayOutput() ContainerVolumeArrayOutput - ToContainerVolumeArrayOutputWithContext(context.Context) ContainerVolumeArrayOutput -} - -type ContainerVolumeArray []ContainerVolumeInput - -func (ContainerVolumeArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerVolume)(nil)).Elem() -} - -func (i ContainerVolumeArray) ToContainerVolumeArrayOutput() ContainerVolumeArrayOutput { - return i.ToContainerVolumeArrayOutputWithContext(context.Background()) -} - -func (i ContainerVolumeArray) ToContainerVolumeArrayOutputWithContext(ctx context.Context) ContainerVolumeArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ContainerVolumeArrayOutput) -} - -type ContainerVolumeOutput struct{ *pulumi.OutputState } - -func (ContainerVolumeOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ContainerVolume)(nil)).Elem() -} - -func (o ContainerVolumeOutput) ToContainerVolumeOutput() ContainerVolumeOutput { - return o -} - -func (o ContainerVolumeOutput) ToContainerVolumeOutputWithContext(ctx context.Context) ContainerVolumeOutput { - return o -} - -// The path in the container where the volume will be mounted. -func (o ContainerVolumeOutput) ContainerPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerVolume) *string { return v.ContainerPath }).(pulumi.StringPtrOutput) -} - -// The container where the volume is coming from. -func (o ContainerVolumeOutput) FromContainer() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerVolume) *string { return v.FromContainer }).(pulumi.StringPtrOutput) -} - -// The path on the host where the volume is coming from. -func (o ContainerVolumeOutput) HostPath() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerVolume) *string { return v.HostPath }).(pulumi.StringPtrOutput) -} - -// If `true`, this volume will be readonly. Defaults to `false`. -func (o ContainerVolumeOutput) ReadOnly() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ContainerVolume) *bool { return v.ReadOnly }).(pulumi.BoolPtrOutput) -} - -// The name of the docker volume which should be mounted. -func (o ContainerVolumeOutput) VolumeName() pulumi.StringPtrOutput { - return o.ApplyT(func(v ContainerVolume) *string { return v.VolumeName }).(pulumi.StringPtrOutput) -} - -type ContainerVolumeArrayOutput struct{ *pulumi.OutputState } - -func (ContainerVolumeArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ContainerVolume)(nil)).Elem() -} - -func (o ContainerVolumeArrayOutput) ToContainerVolumeArrayOutput() ContainerVolumeArrayOutput { - return o -} - -func (o ContainerVolumeArrayOutput) ToContainerVolumeArrayOutputWithContext(ctx context.Context) ContainerVolumeArrayOutput { - return o -} - -func (o ContainerVolumeArrayOutput) Index(i pulumi.IntInput) ContainerVolumeOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ContainerVolume { - return vs[0].([]ContainerVolume)[vs[1].(int)] - }).(ContainerVolumeOutput) -} - -type NetworkIpamConfig struct { - // Auxiliary IPv4 or IPv6 addresses used by Network driver - AuxAddress map[string]string `pulumi:"auxAddress"` - // The IP address of the gateway - Gateway *string `pulumi:"gateway"` - // The ip range in CIDR form - IpRange *string `pulumi:"ipRange"` - // The subnet in CIDR form - Subnet *string `pulumi:"subnet"` -} - -// NetworkIpamConfigInput is an input type that accepts NetworkIpamConfigArgs and NetworkIpamConfigOutput values. -// You can construct a concrete instance of `NetworkIpamConfigInput` via: -// -// NetworkIpamConfigArgs{...} -type NetworkIpamConfigInput interface { - pulumi.Input - - ToNetworkIpamConfigOutput() NetworkIpamConfigOutput - ToNetworkIpamConfigOutputWithContext(context.Context) NetworkIpamConfigOutput -} - -type NetworkIpamConfigArgs struct { - // Auxiliary IPv4 or IPv6 addresses used by Network driver - AuxAddress pulumi.StringMapInput `pulumi:"auxAddress"` - // The IP address of the gateway - Gateway pulumi.StringPtrInput `pulumi:"gateway"` - // The ip range in CIDR form - IpRange pulumi.StringPtrInput `pulumi:"ipRange"` - // The subnet in CIDR form - Subnet pulumi.StringPtrInput `pulumi:"subnet"` -} - -func (NetworkIpamConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*NetworkIpamConfig)(nil)).Elem() -} - -func (i NetworkIpamConfigArgs) ToNetworkIpamConfigOutput() NetworkIpamConfigOutput { - return i.ToNetworkIpamConfigOutputWithContext(context.Background()) -} - -func (i NetworkIpamConfigArgs) ToNetworkIpamConfigOutputWithContext(ctx context.Context) NetworkIpamConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(NetworkIpamConfigOutput) -} - -// NetworkIpamConfigArrayInput is an input type that accepts NetworkIpamConfigArray and NetworkIpamConfigArrayOutput values. -// You can construct a concrete instance of `NetworkIpamConfigArrayInput` via: -// -// NetworkIpamConfigArray{ NetworkIpamConfigArgs{...} } -type NetworkIpamConfigArrayInput interface { - pulumi.Input - - ToNetworkIpamConfigArrayOutput() NetworkIpamConfigArrayOutput - ToNetworkIpamConfigArrayOutputWithContext(context.Context) NetworkIpamConfigArrayOutput -} - -type NetworkIpamConfigArray []NetworkIpamConfigInput - -func (NetworkIpamConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]NetworkIpamConfig)(nil)).Elem() -} - -func (i NetworkIpamConfigArray) ToNetworkIpamConfigArrayOutput() NetworkIpamConfigArrayOutput { - return i.ToNetworkIpamConfigArrayOutputWithContext(context.Background()) -} - -func (i NetworkIpamConfigArray) ToNetworkIpamConfigArrayOutputWithContext(ctx context.Context) NetworkIpamConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(NetworkIpamConfigArrayOutput) -} - -type NetworkIpamConfigOutput struct{ *pulumi.OutputState } - -func (NetworkIpamConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*NetworkIpamConfig)(nil)).Elem() -} - -func (o NetworkIpamConfigOutput) ToNetworkIpamConfigOutput() NetworkIpamConfigOutput { - return o -} - -func (o NetworkIpamConfigOutput) ToNetworkIpamConfigOutputWithContext(ctx context.Context) NetworkIpamConfigOutput { - return o -} - -// Auxiliary IPv4 or IPv6 addresses used by Network driver -func (o NetworkIpamConfigOutput) AuxAddress() pulumi.StringMapOutput { - return o.ApplyT(func(v NetworkIpamConfig) map[string]string { return v.AuxAddress }).(pulumi.StringMapOutput) -} - -// The IP address of the gateway -func (o NetworkIpamConfigOutput) Gateway() pulumi.StringPtrOutput { - return o.ApplyT(func(v NetworkIpamConfig) *string { return v.Gateway }).(pulumi.StringPtrOutput) -} - -// The ip range in CIDR form -func (o NetworkIpamConfigOutput) IpRange() pulumi.StringPtrOutput { - return o.ApplyT(func(v NetworkIpamConfig) *string { return v.IpRange }).(pulumi.StringPtrOutput) -} - -// The subnet in CIDR form -func (o NetworkIpamConfigOutput) Subnet() pulumi.StringPtrOutput { - return o.ApplyT(func(v NetworkIpamConfig) *string { return v.Subnet }).(pulumi.StringPtrOutput) -} - -type NetworkIpamConfigArrayOutput struct{ *pulumi.OutputState } - -func (NetworkIpamConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]NetworkIpamConfig)(nil)).Elem() -} - -func (o NetworkIpamConfigArrayOutput) ToNetworkIpamConfigArrayOutput() NetworkIpamConfigArrayOutput { - return o -} - -func (o NetworkIpamConfigArrayOutput) ToNetworkIpamConfigArrayOutputWithContext(ctx context.Context) NetworkIpamConfigArrayOutput { - return o -} - -func (o NetworkIpamConfigArrayOutput) Index(i pulumi.IntInput) NetworkIpamConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) NetworkIpamConfig { - return vs[0].([]NetworkIpamConfig)[vs[1].(int)] - }).(NetworkIpamConfigOutput) -} - -type NetworkLabel struct { - // Name of the label - Label string `pulumi:"label"` - // Value of the label - Value string `pulumi:"value"` -} - -// NetworkLabelInput is an input type that accepts NetworkLabelArgs and NetworkLabelOutput values. -// You can construct a concrete instance of `NetworkLabelInput` via: -// -// NetworkLabelArgs{...} -type NetworkLabelInput interface { - pulumi.Input - - ToNetworkLabelOutput() NetworkLabelOutput - ToNetworkLabelOutputWithContext(context.Context) NetworkLabelOutput -} - -type NetworkLabelArgs struct { - // Name of the label - Label pulumi.StringInput `pulumi:"label"` - // Value of the label - Value pulumi.StringInput `pulumi:"value"` -} - -func (NetworkLabelArgs) ElementType() reflect.Type { - return reflect.TypeOf((*NetworkLabel)(nil)).Elem() -} - -func (i NetworkLabelArgs) ToNetworkLabelOutput() NetworkLabelOutput { - return i.ToNetworkLabelOutputWithContext(context.Background()) -} - -func (i NetworkLabelArgs) ToNetworkLabelOutputWithContext(ctx context.Context) NetworkLabelOutput { - return pulumi.ToOutputWithContext(ctx, i).(NetworkLabelOutput) -} - -// NetworkLabelArrayInput is an input type that accepts NetworkLabelArray and NetworkLabelArrayOutput values. -// You can construct a concrete instance of `NetworkLabelArrayInput` via: -// -// NetworkLabelArray{ NetworkLabelArgs{...} } -type NetworkLabelArrayInput interface { - pulumi.Input - - ToNetworkLabelArrayOutput() NetworkLabelArrayOutput - ToNetworkLabelArrayOutputWithContext(context.Context) NetworkLabelArrayOutput -} - -type NetworkLabelArray []NetworkLabelInput - -func (NetworkLabelArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]NetworkLabel)(nil)).Elem() -} - -func (i NetworkLabelArray) ToNetworkLabelArrayOutput() NetworkLabelArrayOutput { - return i.ToNetworkLabelArrayOutputWithContext(context.Background()) -} - -func (i NetworkLabelArray) ToNetworkLabelArrayOutputWithContext(ctx context.Context) NetworkLabelArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(NetworkLabelArrayOutput) -} - -type NetworkLabelOutput struct{ *pulumi.OutputState } - -func (NetworkLabelOutput) ElementType() reflect.Type { - return reflect.TypeOf((*NetworkLabel)(nil)).Elem() -} - -func (o NetworkLabelOutput) ToNetworkLabelOutput() NetworkLabelOutput { - return o -} - -func (o NetworkLabelOutput) ToNetworkLabelOutputWithContext(ctx context.Context) NetworkLabelOutput { - return o -} - -// Name of the label -func (o NetworkLabelOutput) Label() pulumi.StringOutput { - return o.ApplyT(func(v NetworkLabel) string { return v.Label }).(pulumi.StringOutput) -} - -// Value of the label -func (o NetworkLabelOutput) Value() pulumi.StringOutput { - return o.ApplyT(func(v NetworkLabel) string { return v.Value }).(pulumi.StringOutput) -} - -type NetworkLabelArrayOutput struct{ *pulumi.OutputState } - -func (NetworkLabelArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]NetworkLabel)(nil)).Elem() -} - -func (o NetworkLabelArrayOutput) ToNetworkLabelArrayOutput() NetworkLabelArrayOutput { - return o -} - -func (o NetworkLabelArrayOutput) ToNetworkLabelArrayOutputWithContext(ctx context.Context) NetworkLabelArrayOutput { - return o -} - -func (o NetworkLabelArrayOutput) Index(i pulumi.IntInput) NetworkLabelOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) NetworkLabel { - return vs[0].([]NetworkLabel)[vs[1].(int)] - }).(NetworkLabelOutput) -} - -type PluginGrantPermission struct { - // The name of the permission - Name string `pulumi:"name"` - // The value of the permission - Values []string `pulumi:"values"` -} - -// PluginGrantPermissionInput is an input type that accepts PluginGrantPermissionArgs and PluginGrantPermissionOutput values. -// You can construct a concrete instance of `PluginGrantPermissionInput` via: -// -// PluginGrantPermissionArgs{...} -type PluginGrantPermissionInput interface { - pulumi.Input - - ToPluginGrantPermissionOutput() PluginGrantPermissionOutput - ToPluginGrantPermissionOutputWithContext(context.Context) PluginGrantPermissionOutput -} - -type PluginGrantPermissionArgs struct { - // The name of the permission - Name pulumi.StringInput `pulumi:"name"` - // The value of the permission - Values pulumi.StringArrayInput `pulumi:"values"` -} - -func (PluginGrantPermissionArgs) ElementType() reflect.Type { - return reflect.TypeOf((*PluginGrantPermission)(nil)).Elem() -} - -func (i PluginGrantPermissionArgs) ToPluginGrantPermissionOutput() PluginGrantPermissionOutput { - return i.ToPluginGrantPermissionOutputWithContext(context.Background()) -} - -func (i PluginGrantPermissionArgs) ToPluginGrantPermissionOutputWithContext(ctx context.Context) PluginGrantPermissionOutput { - return pulumi.ToOutputWithContext(ctx, i).(PluginGrantPermissionOutput) -} - -// PluginGrantPermissionArrayInput is an input type that accepts PluginGrantPermissionArray and PluginGrantPermissionArrayOutput values. -// You can construct a concrete instance of `PluginGrantPermissionArrayInput` via: -// -// PluginGrantPermissionArray{ PluginGrantPermissionArgs{...} } -type PluginGrantPermissionArrayInput interface { - pulumi.Input - - ToPluginGrantPermissionArrayOutput() PluginGrantPermissionArrayOutput - ToPluginGrantPermissionArrayOutputWithContext(context.Context) PluginGrantPermissionArrayOutput -} - -type PluginGrantPermissionArray []PluginGrantPermissionInput - -func (PluginGrantPermissionArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]PluginGrantPermission)(nil)).Elem() -} - -func (i PluginGrantPermissionArray) ToPluginGrantPermissionArrayOutput() PluginGrantPermissionArrayOutput { - return i.ToPluginGrantPermissionArrayOutputWithContext(context.Background()) -} - -func (i PluginGrantPermissionArray) ToPluginGrantPermissionArrayOutputWithContext(ctx context.Context) PluginGrantPermissionArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(PluginGrantPermissionArrayOutput) -} - -type PluginGrantPermissionOutput struct{ *pulumi.OutputState } - -func (PluginGrantPermissionOutput) ElementType() reflect.Type { - return reflect.TypeOf((*PluginGrantPermission)(nil)).Elem() -} - -func (o PluginGrantPermissionOutput) ToPluginGrantPermissionOutput() PluginGrantPermissionOutput { - return o -} - -func (o PluginGrantPermissionOutput) ToPluginGrantPermissionOutputWithContext(ctx context.Context) PluginGrantPermissionOutput { - return o -} - -// The name of the permission -func (o PluginGrantPermissionOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v PluginGrantPermission) string { return v.Name }).(pulumi.StringOutput) -} - -// The value of the permission -func (o PluginGrantPermissionOutput) Values() pulumi.StringArrayOutput { - return o.ApplyT(func(v PluginGrantPermission) []string { return v.Values }).(pulumi.StringArrayOutput) -} - -type PluginGrantPermissionArrayOutput struct{ *pulumi.OutputState } - -func (PluginGrantPermissionArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]PluginGrantPermission)(nil)).Elem() -} - -func (o PluginGrantPermissionArrayOutput) ToPluginGrantPermissionArrayOutput() PluginGrantPermissionArrayOutput { - return o -} - -func (o PluginGrantPermissionArrayOutput) ToPluginGrantPermissionArrayOutputWithContext(ctx context.Context) PluginGrantPermissionArrayOutput { - return o -} - -func (o PluginGrantPermissionArrayOutput) Index(i pulumi.IntInput) PluginGrantPermissionOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) PluginGrantPermission { - return vs[0].([]PluginGrantPermission)[vs[1].(int)] - }).(PluginGrantPermissionOutput) -} - -type ProviderRegistryAuth struct { - // Address of the registry - Address string `pulumi:"address"` - // Setting this to `true` will tell the provider that this registry does not need authentication. Due to the docker internals, the provider will use dummy credentials (see https://github.com/kreuzwerker/terraform-provider-docker/issues/470 for more information). Defaults to `false`. - AuthDisabled *bool `pulumi:"authDisabled"` - // Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options. - ConfigFile *string `pulumi:"configFile"` - // Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password. - ConfigFileContent *string `pulumi:"configFileContent"` - // Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set. - Password *string `pulumi:"password"` - // Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set. - Username *string `pulumi:"username"` -} - -// ProviderRegistryAuthInput is an input type that accepts ProviderRegistryAuthArgs and ProviderRegistryAuthOutput values. -// You can construct a concrete instance of `ProviderRegistryAuthInput` via: -// -// ProviderRegistryAuthArgs{...} -type ProviderRegistryAuthInput interface { - pulumi.Input - - ToProviderRegistryAuthOutput() ProviderRegistryAuthOutput - ToProviderRegistryAuthOutputWithContext(context.Context) ProviderRegistryAuthOutput -} - -type ProviderRegistryAuthArgs struct { - // Address of the registry - Address pulumi.StringInput `pulumi:"address"` - // Setting this to `true` will tell the provider that this registry does not need authentication. Due to the docker internals, the provider will use dummy credentials (see https://github.com/kreuzwerker/terraform-provider-docker/issues/470 for more information). Defaults to `false`. - AuthDisabled pulumi.BoolPtrInput `pulumi:"authDisabled"` - // Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options. - ConfigFile pulumi.StringPtrInput `pulumi:"configFile"` - // Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password. - ConfigFileContent pulumi.StringPtrInput `pulumi:"configFileContent"` - // Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set. - Password pulumi.StringPtrInput `pulumi:"password"` - // Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set. - Username pulumi.StringPtrInput `pulumi:"username"` -} - -func (ProviderRegistryAuthArgs) ElementType() reflect.Type { - return reflect.TypeOf((*ProviderRegistryAuth)(nil)).Elem() -} - -func (i ProviderRegistryAuthArgs) ToProviderRegistryAuthOutput() ProviderRegistryAuthOutput { - return i.ToProviderRegistryAuthOutputWithContext(context.Background()) -} - -func (i ProviderRegistryAuthArgs) ToProviderRegistryAuthOutputWithContext(ctx context.Context) ProviderRegistryAuthOutput { - return pulumi.ToOutputWithContext(ctx, i).(ProviderRegistryAuthOutput) -} - -// ProviderRegistryAuthArrayInput is an input type that accepts ProviderRegistryAuthArray and ProviderRegistryAuthArrayOutput values. -// You can construct a concrete instance of `ProviderRegistryAuthArrayInput` via: -// -// ProviderRegistryAuthArray{ ProviderRegistryAuthArgs{...} } -type ProviderRegistryAuthArrayInput interface { - pulumi.Input - - ToProviderRegistryAuthArrayOutput() ProviderRegistryAuthArrayOutput - ToProviderRegistryAuthArrayOutputWithContext(context.Context) ProviderRegistryAuthArrayOutput -} - -type ProviderRegistryAuthArray []ProviderRegistryAuthInput - -func (ProviderRegistryAuthArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]ProviderRegistryAuth)(nil)).Elem() -} - -func (i ProviderRegistryAuthArray) ToProviderRegistryAuthArrayOutput() ProviderRegistryAuthArrayOutput { - return i.ToProviderRegistryAuthArrayOutputWithContext(context.Background()) -} - -func (i ProviderRegistryAuthArray) ToProviderRegistryAuthArrayOutputWithContext(ctx context.Context) ProviderRegistryAuthArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(ProviderRegistryAuthArrayOutput) -} - -type ProviderRegistryAuthOutput struct{ *pulumi.OutputState } - -func (ProviderRegistryAuthOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ProviderRegistryAuth)(nil)).Elem() -} - -func (o ProviderRegistryAuthOutput) ToProviderRegistryAuthOutput() ProviderRegistryAuthOutput { - return o -} - -func (o ProviderRegistryAuthOutput) ToProviderRegistryAuthOutputWithContext(ctx context.Context) ProviderRegistryAuthOutput { - return o -} - -// Address of the registry -func (o ProviderRegistryAuthOutput) Address() pulumi.StringOutput { - return o.ApplyT(func(v ProviderRegistryAuth) string { return v.Address }).(pulumi.StringOutput) -} - -// Setting this to `true` will tell the provider that this registry does not need authentication. Due to the docker internals, the provider will use dummy credentials (see https://github.com/kreuzwerker/terraform-provider-docker/issues/470 for more information). Defaults to `false`. -func (o ProviderRegistryAuthOutput) AuthDisabled() pulumi.BoolPtrOutput { - return o.ApplyT(func(v ProviderRegistryAuth) *bool { return v.AuthDisabled }).(pulumi.BoolPtrOutput) -} - -// Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options. -func (o ProviderRegistryAuthOutput) ConfigFile() pulumi.StringPtrOutput { - return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.ConfigFile }).(pulumi.StringPtrOutput) -} - -// Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password. -func (o ProviderRegistryAuthOutput) ConfigFileContent() pulumi.StringPtrOutput { - return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.ConfigFileContent }).(pulumi.StringPtrOutput) -} - -// Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set. -func (o ProviderRegistryAuthOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.Password }).(pulumi.StringPtrOutput) -} - -// Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set. -func (o ProviderRegistryAuthOutput) Username() pulumi.StringPtrOutput { - return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.Username }).(pulumi.StringPtrOutput) -} - -type ProviderRegistryAuthArrayOutput struct{ *pulumi.OutputState } - -func (ProviderRegistryAuthArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]ProviderRegistryAuth)(nil)).Elem() -} - -func (o ProviderRegistryAuthArrayOutput) ToProviderRegistryAuthArrayOutput() ProviderRegistryAuthArrayOutput { - return o -} - -func (o ProviderRegistryAuthArrayOutput) ToProviderRegistryAuthArrayOutputWithContext(ctx context.Context) ProviderRegistryAuthArrayOutput { - return o -} - -func (o ProviderRegistryAuthArrayOutput) Index(i pulumi.IntInput) ProviderRegistryAuthOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) ProviderRegistryAuth { - return vs[0].([]ProviderRegistryAuth)[vs[1].(int)] - }).(ProviderRegistryAuthOutput) -} - -type RegistryImageAuthConfig struct { - // The address of the Docker registry. - Address string `pulumi:"address"` - // The password for the Docker registry. - Password string `pulumi:"password"` - // The username for the Docker registry. - Username string `pulumi:"username"` -} - -// RegistryImageAuthConfigInput is an input type that accepts RegistryImageAuthConfigArgs and RegistryImageAuthConfigOutput values. -// You can construct a concrete instance of `RegistryImageAuthConfigInput` via: -// -// RegistryImageAuthConfigArgs{...} -type RegistryImageAuthConfigInput interface { - pulumi.Input - - ToRegistryImageAuthConfigOutput() RegistryImageAuthConfigOutput - ToRegistryImageAuthConfigOutputWithContext(context.Context) RegistryImageAuthConfigOutput -} - -type RegistryImageAuthConfigArgs struct { - // The address of the Docker registry. - Address pulumi.StringInput `pulumi:"address"` - // The password for the Docker registry. - Password pulumi.StringInput `pulumi:"password"` - // The username for the Docker registry. - Username pulumi.StringInput `pulumi:"username"` -} - -func (RegistryImageAuthConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageAuthConfig)(nil)).Elem() -} - -func (i RegistryImageAuthConfigArgs) ToRegistryImageAuthConfigOutput() RegistryImageAuthConfigOutput { - return i.ToRegistryImageAuthConfigOutputWithContext(context.Background()) -} - -func (i RegistryImageAuthConfigArgs) ToRegistryImageAuthConfigOutputWithContext(ctx context.Context) RegistryImageAuthConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageAuthConfigOutput) -} - -func (i RegistryImageAuthConfigArgs) ToRegistryImageAuthConfigPtrOutput() RegistryImageAuthConfigPtrOutput { - return i.ToRegistryImageAuthConfigPtrOutputWithContext(context.Background()) -} - -func (i RegistryImageAuthConfigArgs) ToRegistryImageAuthConfigPtrOutputWithContext(ctx context.Context) RegistryImageAuthConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageAuthConfigOutput).ToRegistryImageAuthConfigPtrOutputWithContext(ctx) -} - -// RegistryImageAuthConfigPtrInput is an input type that accepts RegistryImageAuthConfigArgs, RegistryImageAuthConfigPtr and RegistryImageAuthConfigPtrOutput values. -// You can construct a concrete instance of `RegistryImageAuthConfigPtrInput` via: -// -// RegistryImageAuthConfigArgs{...} -// -// or: -// -// nil -type RegistryImageAuthConfigPtrInput interface { - pulumi.Input - - ToRegistryImageAuthConfigPtrOutput() RegistryImageAuthConfigPtrOutput - ToRegistryImageAuthConfigPtrOutputWithContext(context.Context) RegistryImageAuthConfigPtrOutput -} - -type registryImageAuthConfigPtrType RegistryImageAuthConfigArgs - -func RegistryImageAuthConfigPtr(v *RegistryImageAuthConfigArgs) RegistryImageAuthConfigPtrInput { - return (*registryImageAuthConfigPtrType)(v) -} - -func (*registryImageAuthConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RegistryImageAuthConfig)(nil)).Elem() -} - -func (i *registryImageAuthConfigPtrType) ToRegistryImageAuthConfigPtrOutput() RegistryImageAuthConfigPtrOutput { - return i.ToRegistryImageAuthConfigPtrOutputWithContext(context.Background()) -} - -func (i *registryImageAuthConfigPtrType) ToRegistryImageAuthConfigPtrOutputWithContext(ctx context.Context) RegistryImageAuthConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageAuthConfigPtrOutput) -} - -type RegistryImageAuthConfigOutput struct{ *pulumi.OutputState } - -func (RegistryImageAuthConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageAuthConfig)(nil)).Elem() -} - -func (o RegistryImageAuthConfigOutput) ToRegistryImageAuthConfigOutput() RegistryImageAuthConfigOutput { - return o -} - -func (o RegistryImageAuthConfigOutput) ToRegistryImageAuthConfigOutputWithContext(ctx context.Context) RegistryImageAuthConfigOutput { - return o -} - -func (o RegistryImageAuthConfigOutput) ToRegistryImageAuthConfigPtrOutput() RegistryImageAuthConfigPtrOutput { - return o.ToRegistryImageAuthConfigPtrOutputWithContext(context.Background()) -} - -func (o RegistryImageAuthConfigOutput) ToRegistryImageAuthConfigPtrOutputWithContext(ctx context.Context) RegistryImageAuthConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RegistryImageAuthConfig) *RegistryImageAuthConfig { - return &v - }).(RegistryImageAuthConfigPtrOutput) -} - -// The address of the Docker registry. -func (o RegistryImageAuthConfigOutput) Address() pulumi.StringOutput { - return o.ApplyT(func(v RegistryImageAuthConfig) string { return v.Address }).(pulumi.StringOutput) -} - -// The password for the Docker registry. -func (o RegistryImageAuthConfigOutput) Password() pulumi.StringOutput { - return o.ApplyT(func(v RegistryImageAuthConfig) string { return v.Password }).(pulumi.StringOutput) -} - -// The username for the Docker registry. -func (o RegistryImageAuthConfigOutput) Username() pulumi.StringOutput { - return o.ApplyT(func(v RegistryImageAuthConfig) string { return v.Username }).(pulumi.StringOutput) -} - -type RegistryImageAuthConfigPtrOutput struct{ *pulumi.OutputState } - -func (RegistryImageAuthConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RegistryImageAuthConfig)(nil)).Elem() -} - -func (o RegistryImageAuthConfigPtrOutput) ToRegistryImageAuthConfigPtrOutput() RegistryImageAuthConfigPtrOutput { - return o -} - -func (o RegistryImageAuthConfigPtrOutput) ToRegistryImageAuthConfigPtrOutputWithContext(ctx context.Context) RegistryImageAuthConfigPtrOutput { - return o -} - -func (o RegistryImageAuthConfigPtrOutput) Elem() RegistryImageAuthConfigOutput { - return o.ApplyT(func(v *RegistryImageAuthConfig) RegistryImageAuthConfig { - if v != nil { - return *v - } - var ret RegistryImageAuthConfig - return ret - }).(RegistryImageAuthConfigOutput) -} - -// The address of the Docker registry. -func (o RegistryImageAuthConfigPtrOutput) Address() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageAuthConfig) *string { - if v == nil { - return nil - } - return &v.Address - }).(pulumi.StringPtrOutput) -} - -// The password for the Docker registry. -func (o RegistryImageAuthConfigPtrOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageAuthConfig) *string { - if v == nil { - return nil - } - return &v.Password - }).(pulumi.StringPtrOutput) -} - -// The username for the Docker registry. -func (o RegistryImageAuthConfigPtrOutput) Username() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageAuthConfig) *string { - if v == nil { - return nil - } - return &v.Username - }).(pulumi.StringPtrOutput) -} - -type RegistryImageBuild struct { - // A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. - AdditionalContexts []string `pulumi:"additionalContexts"` - // The configuration for the authentication - AuthConfigs []RegistryImageBuildAuthConfig `pulumi:"authConfigs"` - // Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` - BuildArgs map[string]string `pulumi:"buildArgs"` - // BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. - BuildId *string `pulumi:"buildId"` - // Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. - BuildLogFile *string `pulumi:"buildLogFile"` - // Set the name of the buildx builder to use. If not set, the legacy builder is used. - Builder *string `pulumi:"builder"` - // External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. - CacheFroms []string `pulumi:"cacheFroms"` - // Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. - CacheTos []string `pulumi:"cacheTos"` - // Optional parent cgroup for the container - CgroupParent *string `pulumi:"cgroupParent"` - // Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. - Context string `pulumi:"context"` - // The length of a CPU period in microseconds - CpuPeriod *int `pulumi:"cpuPeriod"` - // Microseconds of CPU time that the container can get in a CPU period - CpuQuota *int `pulumi:"cpuQuota"` - // CPUs in which to allow execution (e.g., `0-3`, `0`, `1`) - CpuSetCpus *string `pulumi:"cpuSetCpus"` - // MEMs in which to allow execution (`0-3`, `0`, `1`) - CpuSetMems *string `pulumi:"cpuSetMems"` - // CPU shares (relative weight) - CpuShares *int `pulumi:"cpuShares"` - // Name of the Dockerfile. Defaults to `Dockerfile`. - Dockerfile *string `pulumi:"dockerfile"` - // A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"] - ExtraHosts []string `pulumi:"extraHosts"` - // Always remove intermediate containers - ForceRemove *bool `pulumi:"forceRemove"` - // Isolation represents the isolation technology of a container. The supported values are - Isolation *string `pulumi:"isolation"` - // Set metadata for an image - Label map[string]string `pulumi:"label"` - // User-defined key/value metadata - Labels map[string]string `pulumi:"labels"` - // Set memory limit for build - Memory *int `pulumi:"memory"` - // Total memory (memory + swap), -1 to enable unlimited swap - MemorySwap *int `pulumi:"memorySwap"` - // Set the networking mode for the RUN instructions during build - NetworkMode *string `pulumi:"networkMode"` - // Do not use the cache when building the image - NoCache *bool `pulumi:"noCache"` - // Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) - Platform *string `pulumi:"platform"` - // Attempt to pull the image even if an older image exists locally - PullParent *bool `pulumi:"pullParent"` - // A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. - RemoteContext *string `pulumi:"remoteContext"` - // Remove intermediate containers after a successful build. Defaults to `true`. - Remove *bool `pulumi:"remove"` - // Set build-time secrets. Only available when you use a buildx builder. - Secrets []RegistryImageBuildSecret `pulumi:"secrets"` - // The security options - SecurityOpts []string `pulumi:"securityOpts"` - // Set an ID for the build session - SessionId *string `pulumi:"sessionId"` - // Size of /dev/shm in bytes. The size must be greater than 0 - ShmSize *int `pulumi:"shmSize"` - // If true the new layers are squashed into a new image with a single new layer - Squash *bool `pulumi:"squash"` - // Suppress the build output and print image ID on success - SuppressOutput *bool `pulumi:"suppressOutput"` - // Name and optionally a tag in the 'name:tag' format - Tags []string `pulumi:"tags"` - // Set the target build stage to build - Target *string `pulumi:"target"` - // Configuration for ulimits - Ulimits []RegistryImageBuildUlimit `pulumi:"ulimits"` - // Version of the underlying builder to use - Version *string `pulumi:"version"` -} - -// RegistryImageBuildInput is an input type that accepts RegistryImageBuildArgs and RegistryImageBuildOutput values. -// You can construct a concrete instance of `RegistryImageBuildInput` via: -// -// RegistryImageBuildArgs{...} -type RegistryImageBuildInput interface { - pulumi.Input - - ToRegistryImageBuildOutput() RegistryImageBuildOutput - ToRegistryImageBuildOutputWithContext(context.Context) RegistryImageBuildOutput -} - -type RegistryImageBuildArgs struct { - // A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. - AdditionalContexts pulumi.StringArrayInput `pulumi:"additionalContexts"` - // The configuration for the authentication - AuthConfigs RegistryImageBuildAuthConfigArrayInput `pulumi:"authConfigs"` - // Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` - BuildArgs pulumi.StringMapInput `pulumi:"buildArgs"` - // BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. - BuildId pulumi.StringPtrInput `pulumi:"buildId"` - // Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. - BuildLogFile pulumi.StringPtrInput `pulumi:"buildLogFile"` - // Set the name of the buildx builder to use. If not set, the legacy builder is used. - Builder pulumi.StringPtrInput `pulumi:"builder"` - // External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. - CacheFroms pulumi.StringArrayInput `pulumi:"cacheFroms"` - // Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. - CacheTos pulumi.StringArrayInput `pulumi:"cacheTos"` - // Optional parent cgroup for the container - CgroupParent pulumi.StringPtrInput `pulumi:"cgroupParent"` - // Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. - Context pulumi.StringInput `pulumi:"context"` - // The length of a CPU period in microseconds - CpuPeriod pulumi.IntPtrInput `pulumi:"cpuPeriod"` - // Microseconds of CPU time that the container can get in a CPU period - CpuQuota pulumi.IntPtrInput `pulumi:"cpuQuota"` - // CPUs in which to allow execution (e.g., `0-3`, `0`, `1`) - CpuSetCpus pulumi.StringPtrInput `pulumi:"cpuSetCpus"` - // MEMs in which to allow execution (`0-3`, `0`, `1`) - CpuSetMems pulumi.StringPtrInput `pulumi:"cpuSetMems"` - // CPU shares (relative weight) - CpuShares pulumi.IntPtrInput `pulumi:"cpuShares"` - // Name of the Dockerfile. Defaults to `Dockerfile`. - Dockerfile pulumi.StringPtrInput `pulumi:"dockerfile"` - // A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"] - ExtraHosts pulumi.StringArrayInput `pulumi:"extraHosts"` - // Always remove intermediate containers - ForceRemove pulumi.BoolPtrInput `pulumi:"forceRemove"` - // Isolation represents the isolation technology of a container. The supported values are - Isolation pulumi.StringPtrInput `pulumi:"isolation"` - // Set metadata for an image - Label pulumi.StringMapInput `pulumi:"label"` - // User-defined key/value metadata - Labels pulumi.StringMapInput `pulumi:"labels"` - // Set memory limit for build - Memory pulumi.IntPtrInput `pulumi:"memory"` - // Total memory (memory + swap), -1 to enable unlimited swap - MemorySwap pulumi.IntPtrInput `pulumi:"memorySwap"` - // Set the networking mode for the RUN instructions during build - NetworkMode pulumi.StringPtrInput `pulumi:"networkMode"` - // Do not use the cache when building the image - NoCache pulumi.BoolPtrInput `pulumi:"noCache"` - // Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) - Platform pulumi.StringPtrInput `pulumi:"platform"` - // Attempt to pull the image even if an older image exists locally - PullParent pulumi.BoolPtrInput `pulumi:"pullParent"` - // A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. - RemoteContext pulumi.StringPtrInput `pulumi:"remoteContext"` - // Remove intermediate containers after a successful build. Defaults to `true`. - Remove pulumi.BoolPtrInput `pulumi:"remove"` - // Set build-time secrets. Only available when you use a buildx builder. - Secrets RegistryImageBuildSecretArrayInput `pulumi:"secrets"` - // The security options - SecurityOpts pulumi.StringArrayInput `pulumi:"securityOpts"` - // Set an ID for the build session - SessionId pulumi.StringPtrInput `pulumi:"sessionId"` - // Size of /dev/shm in bytes. The size must be greater than 0 - ShmSize pulumi.IntPtrInput `pulumi:"shmSize"` - // If true the new layers are squashed into a new image with a single new layer - Squash pulumi.BoolPtrInput `pulumi:"squash"` - // Suppress the build output and print image ID on success - SuppressOutput pulumi.BoolPtrInput `pulumi:"suppressOutput"` - // Name and optionally a tag in the 'name:tag' format - Tags pulumi.StringArrayInput `pulumi:"tags"` - // Set the target build stage to build - Target pulumi.StringPtrInput `pulumi:"target"` - // Configuration for ulimits - Ulimits RegistryImageBuildUlimitArrayInput `pulumi:"ulimits"` - // Version of the underlying builder to use - Version pulumi.StringPtrInput `pulumi:"version"` -} - -func (RegistryImageBuildArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuild)(nil)).Elem() -} - -func (i RegistryImageBuildArgs) ToRegistryImageBuildOutput() RegistryImageBuildOutput { - return i.ToRegistryImageBuildOutputWithContext(context.Background()) -} - -func (i RegistryImageBuildArgs) ToRegistryImageBuildOutputWithContext(ctx context.Context) RegistryImageBuildOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildOutput) -} - -func (i RegistryImageBuildArgs) ToRegistryImageBuildPtrOutput() RegistryImageBuildPtrOutput { - return i.ToRegistryImageBuildPtrOutputWithContext(context.Background()) -} - -func (i RegistryImageBuildArgs) ToRegistryImageBuildPtrOutputWithContext(ctx context.Context) RegistryImageBuildPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildOutput).ToRegistryImageBuildPtrOutputWithContext(ctx) -} - -// RegistryImageBuildPtrInput is an input type that accepts RegistryImageBuildArgs, RegistryImageBuildPtr and RegistryImageBuildPtrOutput values. -// You can construct a concrete instance of `RegistryImageBuildPtrInput` via: -// -// RegistryImageBuildArgs{...} -// -// or: -// -// nil -type RegistryImageBuildPtrInput interface { - pulumi.Input - - ToRegistryImageBuildPtrOutput() RegistryImageBuildPtrOutput - ToRegistryImageBuildPtrOutputWithContext(context.Context) RegistryImageBuildPtrOutput -} - -type registryImageBuildPtrType RegistryImageBuildArgs - -func RegistryImageBuildPtr(v *RegistryImageBuildArgs) RegistryImageBuildPtrInput { - return (*registryImageBuildPtrType)(v) -} - -func (*registryImageBuildPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**RegistryImageBuild)(nil)).Elem() -} - -func (i *registryImageBuildPtrType) ToRegistryImageBuildPtrOutput() RegistryImageBuildPtrOutput { - return i.ToRegistryImageBuildPtrOutputWithContext(context.Background()) -} - -func (i *registryImageBuildPtrType) ToRegistryImageBuildPtrOutputWithContext(ctx context.Context) RegistryImageBuildPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildPtrOutput) -} - -type RegistryImageBuildOutput struct{ *pulumi.OutputState } - -func (RegistryImageBuildOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuild)(nil)).Elem() -} - -func (o RegistryImageBuildOutput) ToRegistryImageBuildOutput() RegistryImageBuildOutput { - return o -} - -func (o RegistryImageBuildOutput) ToRegistryImageBuildOutputWithContext(ctx context.Context) RegistryImageBuildOutput { - return o -} - -func (o RegistryImageBuildOutput) ToRegistryImageBuildPtrOutput() RegistryImageBuildPtrOutput { - return o.ToRegistryImageBuildPtrOutputWithContext(context.Background()) -} - -func (o RegistryImageBuildOutput) ToRegistryImageBuildPtrOutputWithContext(ctx context.Context) RegistryImageBuildPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v RegistryImageBuild) *RegistryImageBuild { - return &v - }).(RegistryImageBuildPtrOutput) -} - -// A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. -func (o RegistryImageBuildOutput) AdditionalContexts() pulumi.StringArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []string { return v.AdditionalContexts }).(pulumi.StringArrayOutput) -} - -// The configuration for the authentication -func (o RegistryImageBuildOutput) AuthConfigs() RegistryImageBuildAuthConfigArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []RegistryImageBuildAuthConfig { return v.AuthConfigs }).(RegistryImageBuildAuthConfigArrayOutput) -} - -// Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` -func (o RegistryImageBuildOutput) BuildArgs() pulumi.StringMapOutput { - return o.ApplyT(func(v RegistryImageBuild) map[string]string { return v.BuildArgs }).(pulumi.StringMapOutput) -} - -// BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. -func (o RegistryImageBuildOutput) BuildId() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.BuildId }).(pulumi.StringPtrOutput) -} - -// Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. -func (o RegistryImageBuildOutput) BuildLogFile() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.BuildLogFile }).(pulumi.StringPtrOutput) -} - -// Set the name of the buildx builder to use. If not set, the legacy builder is used. -func (o RegistryImageBuildOutput) Builder() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.Builder }).(pulumi.StringPtrOutput) -} - -// External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. -func (o RegistryImageBuildOutput) CacheFroms() pulumi.StringArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []string { return v.CacheFroms }).(pulumi.StringArrayOutput) -} - -// Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. -func (o RegistryImageBuildOutput) CacheTos() pulumi.StringArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []string { return v.CacheTos }).(pulumi.StringArrayOutput) -} - -// Optional parent cgroup for the container -func (o RegistryImageBuildOutput) CgroupParent() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.CgroupParent }).(pulumi.StringPtrOutput) -} - -// Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. -func (o RegistryImageBuildOutput) Context() pulumi.StringOutput { - return o.ApplyT(func(v RegistryImageBuild) string { return v.Context }).(pulumi.StringOutput) -} - -// The length of a CPU period in microseconds -func (o RegistryImageBuildOutput) CpuPeriod() pulumi.IntPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *int { return v.CpuPeriod }).(pulumi.IntPtrOutput) -} - -// Microseconds of CPU time that the container can get in a CPU period -func (o RegistryImageBuildOutput) CpuQuota() pulumi.IntPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *int { return v.CpuQuota }).(pulumi.IntPtrOutput) -} - -// CPUs in which to allow execution (e.g., `0-3`, `0`, `1`) -func (o RegistryImageBuildOutput) CpuSetCpus() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.CpuSetCpus }).(pulumi.StringPtrOutput) -} - -// MEMs in which to allow execution (`0-3`, `0`, `1`) -func (o RegistryImageBuildOutput) CpuSetMems() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.CpuSetMems }).(pulumi.StringPtrOutput) -} - -// CPU shares (relative weight) -func (o RegistryImageBuildOutput) CpuShares() pulumi.IntPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *int { return v.CpuShares }).(pulumi.IntPtrOutput) -} - -// Name of the Dockerfile. Defaults to `Dockerfile`. -func (o RegistryImageBuildOutput) Dockerfile() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.Dockerfile }).(pulumi.StringPtrOutput) -} - -// A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"] -func (o RegistryImageBuildOutput) ExtraHosts() pulumi.StringArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []string { return v.ExtraHosts }).(pulumi.StringArrayOutput) -} - -// Always remove intermediate containers -func (o RegistryImageBuildOutput) ForceRemove() pulumi.BoolPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *bool { return v.ForceRemove }).(pulumi.BoolPtrOutput) -} - -// Isolation represents the isolation technology of a container. The supported values are -func (o RegistryImageBuildOutput) Isolation() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.Isolation }).(pulumi.StringPtrOutput) -} - -// Set metadata for an image -func (o RegistryImageBuildOutput) Label() pulumi.StringMapOutput { - return o.ApplyT(func(v RegistryImageBuild) map[string]string { return v.Label }).(pulumi.StringMapOutput) -} - -// User-defined key/value metadata -func (o RegistryImageBuildOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v RegistryImageBuild) map[string]string { return v.Labels }).(pulumi.StringMapOutput) -} - -// Set memory limit for build -func (o RegistryImageBuildOutput) Memory() pulumi.IntPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *int { return v.Memory }).(pulumi.IntPtrOutput) -} - -// Total memory (memory + swap), -1 to enable unlimited swap -func (o RegistryImageBuildOutput) MemorySwap() pulumi.IntPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *int { return v.MemorySwap }).(pulumi.IntPtrOutput) -} - -// Set the networking mode for the RUN instructions during build -func (o RegistryImageBuildOutput) NetworkMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.NetworkMode }).(pulumi.StringPtrOutput) -} - -// Do not use the cache when building the image -func (o RegistryImageBuildOutput) NoCache() pulumi.BoolPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *bool { return v.NoCache }).(pulumi.BoolPtrOutput) -} - -// Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) -func (o RegistryImageBuildOutput) Platform() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.Platform }).(pulumi.StringPtrOutput) -} - -// Attempt to pull the image even if an older image exists locally -func (o RegistryImageBuildOutput) PullParent() pulumi.BoolPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *bool { return v.PullParent }).(pulumi.BoolPtrOutput) -} - -// A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. -func (o RegistryImageBuildOutput) RemoteContext() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.RemoteContext }).(pulumi.StringPtrOutput) -} - -// Remove intermediate containers after a successful build. Defaults to `true`. -func (o RegistryImageBuildOutput) Remove() pulumi.BoolPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *bool { return v.Remove }).(pulumi.BoolPtrOutput) -} - -// Set build-time secrets. Only available when you use a buildx builder. -func (o RegistryImageBuildOutput) Secrets() RegistryImageBuildSecretArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []RegistryImageBuildSecret { return v.Secrets }).(RegistryImageBuildSecretArrayOutput) -} - -// The security options -func (o RegistryImageBuildOutput) SecurityOpts() pulumi.StringArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []string { return v.SecurityOpts }).(pulumi.StringArrayOutput) -} - -// Set an ID for the build session -func (o RegistryImageBuildOutput) SessionId() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.SessionId }).(pulumi.StringPtrOutput) -} - -// Size of /dev/shm in bytes. The size must be greater than 0 -func (o RegistryImageBuildOutput) ShmSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *int { return v.ShmSize }).(pulumi.IntPtrOutput) -} - -// If true the new layers are squashed into a new image with a single new layer -func (o RegistryImageBuildOutput) Squash() pulumi.BoolPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *bool { return v.Squash }).(pulumi.BoolPtrOutput) -} - -// Suppress the build output and print image ID on success -func (o RegistryImageBuildOutput) SuppressOutput() pulumi.BoolPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *bool { return v.SuppressOutput }).(pulumi.BoolPtrOutput) -} - -// Name and optionally a tag in the 'name:tag' format -func (o RegistryImageBuildOutput) Tags() pulumi.StringArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []string { return v.Tags }).(pulumi.StringArrayOutput) -} - -// Set the target build stage to build -func (o RegistryImageBuildOutput) Target() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.Target }).(pulumi.StringPtrOutput) -} - -// Configuration for ulimits -func (o RegistryImageBuildOutput) Ulimits() RegistryImageBuildUlimitArrayOutput { - return o.ApplyT(func(v RegistryImageBuild) []RegistryImageBuildUlimit { return v.Ulimits }).(RegistryImageBuildUlimitArrayOutput) -} - -// Version of the underlying builder to use -func (o RegistryImageBuildOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuild) *string { return v.Version }).(pulumi.StringPtrOutput) -} - -type RegistryImageBuildPtrOutput struct{ *pulumi.OutputState } - -func (RegistryImageBuildPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**RegistryImageBuild)(nil)).Elem() -} - -func (o RegistryImageBuildPtrOutput) ToRegistryImageBuildPtrOutput() RegistryImageBuildPtrOutput { - return o -} - -func (o RegistryImageBuildPtrOutput) ToRegistryImageBuildPtrOutputWithContext(ctx context.Context) RegistryImageBuildPtrOutput { - return o -} - -func (o RegistryImageBuildPtrOutput) Elem() RegistryImageBuildOutput { - return o.ApplyT(func(v *RegistryImageBuild) RegistryImageBuild { - if v != nil { - return *v - } - var ret RegistryImageBuild - return ret - }).(RegistryImageBuildOutput) -} - -// A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. -func (o RegistryImageBuildPtrOutput) AdditionalContexts() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []string { - if v == nil { - return nil - } - return v.AdditionalContexts - }).(pulumi.StringArrayOutput) -} - -// The configuration for the authentication -func (o RegistryImageBuildPtrOutput) AuthConfigs() RegistryImageBuildAuthConfigArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []RegistryImageBuildAuthConfig { - if v == nil { - return nil - } - return v.AuthConfigs - }).(RegistryImageBuildAuthConfigArrayOutput) -} - -// Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` -func (o RegistryImageBuildPtrOutput) BuildArgs() pulumi.StringMapOutput { - return o.ApplyT(func(v *RegistryImageBuild) map[string]string { - if v == nil { - return nil - } - return v.BuildArgs - }).(pulumi.StringMapOutput) -} - -// BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. -func (o RegistryImageBuildPtrOutput) BuildId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.BuildId - }).(pulumi.StringPtrOutput) -} - -// Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. -func (o RegistryImageBuildPtrOutput) BuildLogFile() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.BuildLogFile - }).(pulumi.StringPtrOutput) -} - -// Set the name of the buildx builder to use. If not set, the legacy builder is used. -func (o RegistryImageBuildPtrOutput) Builder() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.Builder - }).(pulumi.StringPtrOutput) -} - -// External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. -func (o RegistryImageBuildPtrOutput) CacheFroms() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []string { - if v == nil { - return nil - } - return v.CacheFroms - }).(pulumi.StringArrayOutput) -} - -// Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. -func (o RegistryImageBuildPtrOutput) CacheTos() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []string { - if v == nil { - return nil - } - return v.CacheTos - }).(pulumi.StringArrayOutput) -} - -// Optional parent cgroup for the container -func (o RegistryImageBuildPtrOutput) CgroupParent() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.CgroupParent - }).(pulumi.StringPtrOutput) -} - -// Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. -func (o RegistryImageBuildPtrOutput) Context() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return &v.Context - }).(pulumi.StringPtrOutput) -} - -// The length of a CPU period in microseconds -func (o RegistryImageBuildPtrOutput) CpuPeriod() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *int { - if v == nil { - return nil - } - return v.CpuPeriod - }).(pulumi.IntPtrOutput) -} - -// Microseconds of CPU time that the container can get in a CPU period -func (o RegistryImageBuildPtrOutput) CpuQuota() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *int { - if v == nil { - return nil - } - return v.CpuQuota - }).(pulumi.IntPtrOutput) -} - -// CPUs in which to allow execution (e.g., `0-3`, `0`, `1`) -func (o RegistryImageBuildPtrOutput) CpuSetCpus() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.CpuSetCpus - }).(pulumi.StringPtrOutput) -} - -// MEMs in which to allow execution (`0-3`, `0`, `1`) -func (o RegistryImageBuildPtrOutput) CpuSetMems() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.CpuSetMems - }).(pulumi.StringPtrOutput) -} - -// CPU shares (relative weight) -func (o RegistryImageBuildPtrOutput) CpuShares() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *int { - if v == nil { - return nil - } - return v.CpuShares - }).(pulumi.IntPtrOutput) -} - -// Name of the Dockerfile. Defaults to `Dockerfile`. -func (o RegistryImageBuildPtrOutput) Dockerfile() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.Dockerfile - }).(pulumi.StringPtrOutput) -} - -// A list of hostnames/IP mappings to add to the container’s /etc/hosts file. Specified in the form ["hostname:IP"] -func (o RegistryImageBuildPtrOutput) ExtraHosts() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []string { - if v == nil { - return nil - } - return v.ExtraHosts - }).(pulumi.StringArrayOutput) -} - -// Always remove intermediate containers -func (o RegistryImageBuildPtrOutput) ForceRemove() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *bool { - if v == nil { - return nil - } - return v.ForceRemove - }).(pulumi.BoolPtrOutput) -} - -// Isolation represents the isolation technology of a container. The supported values are -func (o RegistryImageBuildPtrOutput) Isolation() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.Isolation - }).(pulumi.StringPtrOutput) -} - -// Set metadata for an image -func (o RegistryImageBuildPtrOutput) Label() pulumi.StringMapOutput { - return o.ApplyT(func(v *RegistryImageBuild) map[string]string { - if v == nil { - return nil - } - return v.Label - }).(pulumi.StringMapOutput) -} - -// User-defined key/value metadata -func (o RegistryImageBuildPtrOutput) Labels() pulumi.StringMapOutput { - return o.ApplyT(func(v *RegistryImageBuild) map[string]string { - if v == nil { - return nil - } - return v.Labels - }).(pulumi.StringMapOutput) -} - -// Set memory limit for build -func (o RegistryImageBuildPtrOutput) Memory() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *int { - if v == nil { - return nil - } - return v.Memory - }).(pulumi.IntPtrOutput) -} - -// Total memory (memory + swap), -1 to enable unlimited swap -func (o RegistryImageBuildPtrOutput) MemorySwap() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *int { - if v == nil { - return nil - } - return v.MemorySwap - }).(pulumi.IntPtrOutput) -} - -// Set the networking mode for the RUN instructions during build -func (o RegistryImageBuildPtrOutput) NetworkMode() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.NetworkMode - }).(pulumi.StringPtrOutput) -} - -// Do not use the cache when building the image -func (o RegistryImageBuildPtrOutput) NoCache() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *bool { - if v == nil { - return nil - } - return v.NoCache - }).(pulumi.BoolPtrOutput) -} - -// Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) -func (o RegistryImageBuildPtrOutput) Platform() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.Platform - }).(pulumi.StringPtrOutput) -} - -// Attempt to pull the image even if an older image exists locally -func (o RegistryImageBuildPtrOutput) PullParent() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *bool { - if v == nil { - return nil - } - return v.PullParent - }).(pulumi.BoolPtrOutput) -} - -// A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. -func (o RegistryImageBuildPtrOutput) RemoteContext() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.RemoteContext - }).(pulumi.StringPtrOutput) + ToNetworkIpamConfigArrayOutput() NetworkIpamConfigArrayOutput + ToNetworkIpamConfigArrayOutputWithContext(context.Context) NetworkIpamConfigArrayOutput } -// Remove intermediate containers after a successful build. Defaults to `true`. -func (o RegistryImageBuildPtrOutput) Remove() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *bool { - if v == nil { - return nil - } - return v.Remove - }).(pulumi.BoolPtrOutput) -} +type NetworkIpamConfigArray []NetworkIpamConfigInput -// Set build-time secrets. Only available when you use a buildx builder. -func (o RegistryImageBuildPtrOutput) Secrets() RegistryImageBuildSecretArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []RegistryImageBuildSecret { - if v == nil { - return nil - } - return v.Secrets - }).(RegistryImageBuildSecretArrayOutput) +func (NetworkIpamConfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]NetworkIpamConfig)(nil)).Elem() } -// The security options -func (o RegistryImageBuildPtrOutput) SecurityOpts() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []string { - if v == nil { - return nil - } - return v.SecurityOpts - }).(pulumi.StringArrayOutput) +func (i NetworkIpamConfigArray) ToNetworkIpamConfigArrayOutput() NetworkIpamConfigArrayOutput { + return i.ToNetworkIpamConfigArrayOutputWithContext(context.Background()) } -// Set an ID for the build session -func (o RegistryImageBuildPtrOutput) SessionId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.SessionId - }).(pulumi.StringPtrOutput) +func (i NetworkIpamConfigArray) ToNetworkIpamConfigArrayOutputWithContext(ctx context.Context) NetworkIpamConfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(NetworkIpamConfigArrayOutput) } -// Size of /dev/shm in bytes. The size must be greater than 0 -func (o RegistryImageBuildPtrOutput) ShmSize() pulumi.IntPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *int { - if v == nil { - return nil - } - return v.ShmSize - }).(pulumi.IntPtrOutput) -} +type NetworkIpamConfigOutput struct{ *pulumi.OutputState } -// If true the new layers are squashed into a new image with a single new layer -func (o RegistryImageBuildPtrOutput) Squash() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *bool { - if v == nil { - return nil - } - return v.Squash - }).(pulumi.BoolPtrOutput) +func (NetworkIpamConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*NetworkIpamConfig)(nil)).Elem() } -// Suppress the build output and print image ID on success -func (o RegistryImageBuildPtrOutput) SuppressOutput() pulumi.BoolPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *bool { - if v == nil { - return nil - } - return v.SuppressOutput - }).(pulumi.BoolPtrOutput) +func (o NetworkIpamConfigOutput) ToNetworkIpamConfigOutput() NetworkIpamConfigOutput { + return o } -// Name and optionally a tag in the 'name:tag' format -func (o RegistryImageBuildPtrOutput) Tags() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []string { - if v == nil { - return nil - } - return v.Tags - }).(pulumi.StringArrayOutput) +func (o NetworkIpamConfigOutput) ToNetworkIpamConfigOutputWithContext(ctx context.Context) NetworkIpamConfigOutput { + return o } -// Set the target build stage to build -func (o RegistryImageBuildPtrOutput) Target() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.Target - }).(pulumi.StringPtrOutput) +// Auxiliary IPv4 or IPv6 addresses used by Network driver +func (o NetworkIpamConfigOutput) AuxAddress() pulumi.StringMapOutput { + return o.ApplyT(func(v NetworkIpamConfig) map[string]string { return v.AuxAddress }).(pulumi.StringMapOutput) } -// Configuration for ulimits -func (o RegistryImageBuildPtrOutput) Ulimits() RegistryImageBuildUlimitArrayOutput { - return o.ApplyT(func(v *RegistryImageBuild) []RegistryImageBuildUlimit { - if v == nil { - return nil - } - return v.Ulimits - }).(RegistryImageBuildUlimitArrayOutput) +// The IP address of the gateway +func (o NetworkIpamConfigOutput) Gateway() pulumi.StringPtrOutput { + return o.ApplyT(func(v NetworkIpamConfig) *string { return v.Gateway }).(pulumi.StringPtrOutput) } -// Version of the underlying builder to use -func (o RegistryImageBuildPtrOutput) Version() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RegistryImageBuild) *string { - if v == nil { - return nil - } - return v.Version - }).(pulumi.StringPtrOutput) +// The ip range in CIDR form +func (o NetworkIpamConfigOutput) IpRange() pulumi.StringPtrOutput { + return o.ApplyT(func(v NetworkIpamConfig) *string { return v.IpRange }).(pulumi.StringPtrOutput) } -type RegistryImageBuildAuthConfig struct { - // the auth token - Auth *string `pulumi:"auth"` - // the user emal - Email *string `pulumi:"email"` - // hostname of the registry - HostName string `pulumi:"hostName"` - // the identity token - IdentityToken *string `pulumi:"identityToken"` - // the registry password - Password *string `pulumi:"password"` - // the registry token - RegistryToken *string `pulumi:"registryToken"` - // the server address - ServerAddress *string `pulumi:"serverAddress"` - // the registry user name - UserName *string `pulumi:"userName"` +// The subnet in CIDR form +func (o NetworkIpamConfigOutput) Subnet() pulumi.StringPtrOutput { + return o.ApplyT(func(v NetworkIpamConfig) *string { return v.Subnet }).(pulumi.StringPtrOutput) } -// RegistryImageBuildAuthConfigInput is an input type that accepts RegistryImageBuildAuthConfigArgs and RegistryImageBuildAuthConfigOutput values. -// You can construct a concrete instance of `RegistryImageBuildAuthConfigInput` via: -// -// RegistryImageBuildAuthConfigArgs{...} -type RegistryImageBuildAuthConfigInput interface { - pulumi.Input +type NetworkIpamConfigArrayOutput struct{ *pulumi.OutputState } - ToRegistryImageBuildAuthConfigOutput() RegistryImageBuildAuthConfigOutput - ToRegistryImageBuildAuthConfigOutputWithContext(context.Context) RegistryImageBuildAuthConfigOutput +func (NetworkIpamConfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]NetworkIpamConfig)(nil)).Elem() } -type RegistryImageBuildAuthConfigArgs struct { - // the auth token - Auth pulumi.StringPtrInput `pulumi:"auth"` - // the user emal - Email pulumi.StringPtrInput `pulumi:"email"` - // hostname of the registry - HostName pulumi.StringInput `pulumi:"hostName"` - // the identity token - IdentityToken pulumi.StringPtrInput `pulumi:"identityToken"` - // the registry password - Password pulumi.StringPtrInput `pulumi:"password"` - // the registry token - RegistryToken pulumi.StringPtrInput `pulumi:"registryToken"` - // the server address - ServerAddress pulumi.StringPtrInput `pulumi:"serverAddress"` - // the registry user name - UserName pulumi.StringPtrInput `pulumi:"userName"` +func (o NetworkIpamConfigArrayOutput) ToNetworkIpamConfigArrayOutput() NetworkIpamConfigArrayOutput { + return o } -func (RegistryImageBuildAuthConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuildAuthConfig)(nil)).Elem() +func (o NetworkIpamConfigArrayOutput) ToNetworkIpamConfigArrayOutputWithContext(ctx context.Context) NetworkIpamConfigArrayOutput { + return o } -func (i RegistryImageBuildAuthConfigArgs) ToRegistryImageBuildAuthConfigOutput() RegistryImageBuildAuthConfigOutput { - return i.ToRegistryImageBuildAuthConfigOutputWithContext(context.Background()) +func (o NetworkIpamConfigArrayOutput) Index(i pulumi.IntInput) NetworkIpamConfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) NetworkIpamConfig { + return vs[0].([]NetworkIpamConfig)[vs[1].(int)] + }).(NetworkIpamConfigOutput) } -func (i RegistryImageBuildAuthConfigArgs) ToRegistryImageBuildAuthConfigOutputWithContext(ctx context.Context) RegistryImageBuildAuthConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildAuthConfigOutput) +type NetworkLabel struct { + // Name of the label + Label string `pulumi:"label"` + // Value of the label + Value string `pulumi:"value"` } -// RegistryImageBuildAuthConfigArrayInput is an input type that accepts RegistryImageBuildAuthConfigArray and RegistryImageBuildAuthConfigArrayOutput values. -// You can construct a concrete instance of `RegistryImageBuildAuthConfigArrayInput` via: +// NetworkLabelInput is an input type that accepts NetworkLabelArgs and NetworkLabelOutput values. +// You can construct a concrete instance of `NetworkLabelInput` via: // -// RegistryImageBuildAuthConfigArray{ RegistryImageBuildAuthConfigArgs{...} } -type RegistryImageBuildAuthConfigArrayInput interface { +// NetworkLabelArgs{...} +type NetworkLabelInput interface { pulumi.Input - ToRegistryImageBuildAuthConfigArrayOutput() RegistryImageBuildAuthConfigArrayOutput - ToRegistryImageBuildAuthConfigArrayOutputWithContext(context.Context) RegistryImageBuildAuthConfigArrayOutput + ToNetworkLabelOutput() NetworkLabelOutput + ToNetworkLabelOutputWithContext(context.Context) NetworkLabelOutput } -type RegistryImageBuildAuthConfigArray []RegistryImageBuildAuthConfigInput +type NetworkLabelArgs struct { + // Name of the label + Label pulumi.StringInput `pulumi:"label"` + // Value of the label + Value pulumi.StringInput `pulumi:"value"` +} -func (RegistryImageBuildAuthConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RegistryImageBuildAuthConfig)(nil)).Elem() +func (NetworkLabelArgs) ElementType() reflect.Type { + return reflect.TypeOf((*NetworkLabel)(nil)).Elem() } -func (i RegistryImageBuildAuthConfigArray) ToRegistryImageBuildAuthConfigArrayOutput() RegistryImageBuildAuthConfigArrayOutput { - return i.ToRegistryImageBuildAuthConfigArrayOutputWithContext(context.Background()) +func (i NetworkLabelArgs) ToNetworkLabelOutput() NetworkLabelOutput { + return i.ToNetworkLabelOutputWithContext(context.Background()) } -func (i RegistryImageBuildAuthConfigArray) ToRegistryImageBuildAuthConfigArrayOutputWithContext(ctx context.Context) RegistryImageBuildAuthConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildAuthConfigArrayOutput) +func (i NetworkLabelArgs) ToNetworkLabelOutputWithContext(ctx context.Context) NetworkLabelOutput { + return pulumi.ToOutputWithContext(ctx, i).(NetworkLabelOutput) } -type RegistryImageBuildAuthConfigOutput struct{ *pulumi.OutputState } +// NetworkLabelArrayInput is an input type that accepts NetworkLabelArray and NetworkLabelArrayOutput values. +// You can construct a concrete instance of `NetworkLabelArrayInput` via: +// +// NetworkLabelArray{ NetworkLabelArgs{...} } +type NetworkLabelArrayInput interface { + pulumi.Input -func (RegistryImageBuildAuthConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuildAuthConfig)(nil)).Elem() + ToNetworkLabelArrayOutput() NetworkLabelArrayOutput + ToNetworkLabelArrayOutputWithContext(context.Context) NetworkLabelArrayOutput } -func (o RegistryImageBuildAuthConfigOutput) ToRegistryImageBuildAuthConfigOutput() RegistryImageBuildAuthConfigOutput { - return o -} +type NetworkLabelArray []NetworkLabelInput -func (o RegistryImageBuildAuthConfigOutput) ToRegistryImageBuildAuthConfigOutputWithContext(ctx context.Context) RegistryImageBuildAuthConfigOutput { - return o +func (NetworkLabelArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]NetworkLabel)(nil)).Elem() } -// the auth token -func (o RegistryImageBuildAuthConfigOutput) Auth() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) *string { return v.Auth }).(pulumi.StringPtrOutput) +func (i NetworkLabelArray) ToNetworkLabelArrayOutput() NetworkLabelArrayOutput { + return i.ToNetworkLabelArrayOutputWithContext(context.Background()) } -// the user emal -func (o RegistryImageBuildAuthConfigOutput) Email() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) *string { return v.Email }).(pulumi.StringPtrOutput) +func (i NetworkLabelArray) ToNetworkLabelArrayOutputWithContext(ctx context.Context) NetworkLabelArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(NetworkLabelArrayOutput) } -// hostname of the registry -func (o RegistryImageBuildAuthConfigOutput) HostName() pulumi.StringOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) string { return v.HostName }).(pulumi.StringOutput) -} +type NetworkLabelOutput struct{ *pulumi.OutputState } -// the identity token -func (o RegistryImageBuildAuthConfigOutput) IdentityToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) *string { return v.IdentityToken }).(pulumi.StringPtrOutput) +func (NetworkLabelOutput) ElementType() reflect.Type { + return reflect.TypeOf((*NetworkLabel)(nil)).Elem() } -// the registry password -func (o RegistryImageBuildAuthConfigOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) *string { return v.Password }).(pulumi.StringPtrOutput) +func (o NetworkLabelOutput) ToNetworkLabelOutput() NetworkLabelOutput { + return o } -// the registry token -func (o RegistryImageBuildAuthConfigOutput) RegistryToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) *string { return v.RegistryToken }).(pulumi.StringPtrOutput) +func (o NetworkLabelOutput) ToNetworkLabelOutputWithContext(ctx context.Context) NetworkLabelOutput { + return o } -// the server address -func (o RegistryImageBuildAuthConfigOutput) ServerAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) *string { return v.ServerAddress }).(pulumi.StringPtrOutput) +// Name of the label +func (o NetworkLabelOutput) Label() pulumi.StringOutput { + return o.ApplyT(func(v NetworkLabel) string { return v.Label }).(pulumi.StringOutput) } -// the registry user name -func (o RegistryImageBuildAuthConfigOutput) UserName() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildAuthConfig) *string { return v.UserName }).(pulumi.StringPtrOutput) +// Value of the label +func (o NetworkLabelOutput) Value() pulumi.StringOutput { + return o.ApplyT(func(v NetworkLabel) string { return v.Value }).(pulumi.StringOutput) } -type RegistryImageBuildAuthConfigArrayOutput struct{ *pulumi.OutputState } +type NetworkLabelArrayOutput struct{ *pulumi.OutputState } -func (RegistryImageBuildAuthConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RegistryImageBuildAuthConfig)(nil)).Elem() +func (NetworkLabelArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]NetworkLabel)(nil)).Elem() } -func (o RegistryImageBuildAuthConfigArrayOutput) ToRegistryImageBuildAuthConfigArrayOutput() RegistryImageBuildAuthConfigArrayOutput { +func (o NetworkLabelArrayOutput) ToNetworkLabelArrayOutput() NetworkLabelArrayOutput { return o } -func (o RegistryImageBuildAuthConfigArrayOutput) ToRegistryImageBuildAuthConfigArrayOutputWithContext(ctx context.Context) RegistryImageBuildAuthConfigArrayOutput { +func (o NetworkLabelArrayOutput) ToNetworkLabelArrayOutputWithContext(ctx context.Context) NetworkLabelArrayOutput { return o } -func (o RegistryImageBuildAuthConfigArrayOutput) Index(i pulumi.IntInput) RegistryImageBuildAuthConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RegistryImageBuildAuthConfig { - return vs[0].([]RegistryImageBuildAuthConfig)[vs[1].(int)] - }).(RegistryImageBuildAuthConfigOutput) +func (o NetworkLabelArrayOutput) Index(i pulumi.IntInput) NetworkLabelOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) NetworkLabel { + return vs[0].([]NetworkLabel)[vs[1].(int)] + }).(NetworkLabelOutput) } -type RegistryImageBuildSecret struct { - // Environment variable source of the secret - Env *string `pulumi:"env"` - // ID of the secret. By default, secrets are mounted to /run/secrets/\n\n - Id string `pulumi:"id"` - // File source of the secret. Takes precedence over `env` - Src *string `pulumi:"src"` +type PluginGrantPermission struct { + // The name of the permission + Name string `pulumi:"name"` + // The value of the permission + Values []string `pulumi:"values"` } -// RegistryImageBuildSecretInput is an input type that accepts RegistryImageBuildSecretArgs and RegistryImageBuildSecretOutput values. -// You can construct a concrete instance of `RegistryImageBuildSecretInput` via: +// PluginGrantPermissionInput is an input type that accepts PluginGrantPermissionArgs and PluginGrantPermissionOutput values. +// You can construct a concrete instance of `PluginGrantPermissionInput` via: // -// RegistryImageBuildSecretArgs{...} -type RegistryImageBuildSecretInput interface { +// PluginGrantPermissionArgs{...} +type PluginGrantPermissionInput interface { pulumi.Input - ToRegistryImageBuildSecretOutput() RegistryImageBuildSecretOutput - ToRegistryImageBuildSecretOutputWithContext(context.Context) RegistryImageBuildSecretOutput + ToPluginGrantPermissionOutput() PluginGrantPermissionOutput + ToPluginGrantPermissionOutputWithContext(context.Context) PluginGrantPermissionOutput } -type RegistryImageBuildSecretArgs struct { - // Environment variable source of the secret - Env pulumi.StringPtrInput `pulumi:"env"` - // ID of the secret. By default, secrets are mounted to /run/secrets/\n\n - Id pulumi.StringInput `pulumi:"id"` - // File source of the secret. Takes precedence over `env` - Src pulumi.StringPtrInput `pulumi:"src"` +type PluginGrantPermissionArgs struct { + // The name of the permission + Name pulumi.StringInput `pulumi:"name"` + // The value of the permission + Values pulumi.StringArrayInput `pulumi:"values"` } -func (RegistryImageBuildSecretArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuildSecret)(nil)).Elem() +func (PluginGrantPermissionArgs) ElementType() reflect.Type { + return reflect.TypeOf((*PluginGrantPermission)(nil)).Elem() } -func (i RegistryImageBuildSecretArgs) ToRegistryImageBuildSecretOutput() RegistryImageBuildSecretOutput { - return i.ToRegistryImageBuildSecretOutputWithContext(context.Background()) +func (i PluginGrantPermissionArgs) ToPluginGrantPermissionOutput() PluginGrantPermissionOutput { + return i.ToPluginGrantPermissionOutputWithContext(context.Background()) } -func (i RegistryImageBuildSecretArgs) ToRegistryImageBuildSecretOutputWithContext(ctx context.Context) RegistryImageBuildSecretOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildSecretOutput) +func (i PluginGrantPermissionArgs) ToPluginGrantPermissionOutputWithContext(ctx context.Context) PluginGrantPermissionOutput { + return pulumi.ToOutputWithContext(ctx, i).(PluginGrantPermissionOutput) } -// RegistryImageBuildSecretArrayInput is an input type that accepts RegistryImageBuildSecretArray and RegistryImageBuildSecretArrayOutput values. -// You can construct a concrete instance of `RegistryImageBuildSecretArrayInput` via: +// PluginGrantPermissionArrayInput is an input type that accepts PluginGrantPermissionArray and PluginGrantPermissionArrayOutput values. +// You can construct a concrete instance of `PluginGrantPermissionArrayInput` via: // -// RegistryImageBuildSecretArray{ RegistryImageBuildSecretArgs{...} } -type RegistryImageBuildSecretArrayInput interface { +// PluginGrantPermissionArray{ PluginGrantPermissionArgs{...} } +type PluginGrantPermissionArrayInput interface { pulumi.Input - ToRegistryImageBuildSecretArrayOutput() RegistryImageBuildSecretArrayOutput - ToRegistryImageBuildSecretArrayOutputWithContext(context.Context) RegistryImageBuildSecretArrayOutput + ToPluginGrantPermissionArrayOutput() PluginGrantPermissionArrayOutput + ToPluginGrantPermissionArrayOutputWithContext(context.Context) PluginGrantPermissionArrayOutput } -type RegistryImageBuildSecretArray []RegistryImageBuildSecretInput +type PluginGrantPermissionArray []PluginGrantPermissionInput -func (RegistryImageBuildSecretArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RegistryImageBuildSecret)(nil)).Elem() +func (PluginGrantPermissionArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]PluginGrantPermission)(nil)).Elem() } -func (i RegistryImageBuildSecretArray) ToRegistryImageBuildSecretArrayOutput() RegistryImageBuildSecretArrayOutput { - return i.ToRegistryImageBuildSecretArrayOutputWithContext(context.Background()) +func (i PluginGrantPermissionArray) ToPluginGrantPermissionArrayOutput() PluginGrantPermissionArrayOutput { + return i.ToPluginGrantPermissionArrayOutputWithContext(context.Background()) } -func (i RegistryImageBuildSecretArray) ToRegistryImageBuildSecretArrayOutputWithContext(ctx context.Context) RegistryImageBuildSecretArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildSecretArrayOutput) +func (i PluginGrantPermissionArray) ToPluginGrantPermissionArrayOutputWithContext(ctx context.Context) PluginGrantPermissionArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(PluginGrantPermissionArrayOutput) } -type RegistryImageBuildSecretOutput struct{ *pulumi.OutputState } +type PluginGrantPermissionOutput struct{ *pulumi.OutputState } -func (RegistryImageBuildSecretOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuildSecret)(nil)).Elem() +func (PluginGrantPermissionOutput) ElementType() reflect.Type { + return reflect.TypeOf((*PluginGrantPermission)(nil)).Elem() } -func (o RegistryImageBuildSecretOutput) ToRegistryImageBuildSecretOutput() RegistryImageBuildSecretOutput { +func (o PluginGrantPermissionOutput) ToPluginGrantPermissionOutput() PluginGrantPermissionOutput { return o } -func (o RegistryImageBuildSecretOutput) ToRegistryImageBuildSecretOutputWithContext(ctx context.Context) RegistryImageBuildSecretOutput { +func (o PluginGrantPermissionOutput) ToPluginGrantPermissionOutputWithContext(ctx context.Context) PluginGrantPermissionOutput { return o } -// Environment variable source of the secret -func (o RegistryImageBuildSecretOutput) Env() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildSecret) *string { return v.Env }).(pulumi.StringPtrOutput) -} - -// ID of the secret. By default, secrets are mounted to /run/secrets/\n\n -func (o RegistryImageBuildSecretOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v RegistryImageBuildSecret) string { return v.Id }).(pulumi.StringOutput) +// The name of the permission +func (o PluginGrantPermissionOutput) Name() pulumi.StringOutput { + return o.ApplyT(func(v PluginGrantPermission) string { return v.Name }).(pulumi.StringOutput) } -// File source of the secret. Takes precedence over `env` -func (o RegistryImageBuildSecretOutput) Src() pulumi.StringPtrOutput { - return o.ApplyT(func(v RegistryImageBuildSecret) *string { return v.Src }).(pulumi.StringPtrOutput) +// The value of the permission +func (o PluginGrantPermissionOutput) Values() pulumi.StringArrayOutput { + return o.ApplyT(func(v PluginGrantPermission) []string { return v.Values }).(pulumi.StringArrayOutput) } -type RegistryImageBuildSecretArrayOutput struct{ *pulumi.OutputState } +type PluginGrantPermissionArrayOutput struct{ *pulumi.OutputState } -func (RegistryImageBuildSecretArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RegistryImageBuildSecret)(nil)).Elem() +func (PluginGrantPermissionArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]PluginGrantPermission)(nil)).Elem() } -func (o RegistryImageBuildSecretArrayOutput) ToRegistryImageBuildSecretArrayOutput() RegistryImageBuildSecretArrayOutput { +func (o PluginGrantPermissionArrayOutput) ToPluginGrantPermissionArrayOutput() PluginGrantPermissionArrayOutput { return o } -func (o RegistryImageBuildSecretArrayOutput) ToRegistryImageBuildSecretArrayOutputWithContext(ctx context.Context) RegistryImageBuildSecretArrayOutput { +func (o PluginGrantPermissionArrayOutput) ToPluginGrantPermissionArrayOutputWithContext(ctx context.Context) PluginGrantPermissionArrayOutput { return o } -func (o RegistryImageBuildSecretArrayOutput) Index(i pulumi.IntInput) RegistryImageBuildSecretOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RegistryImageBuildSecret { - return vs[0].([]RegistryImageBuildSecret)[vs[1].(int)] - }).(RegistryImageBuildSecretOutput) +func (o PluginGrantPermissionArrayOutput) Index(i pulumi.IntInput) PluginGrantPermissionOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) PluginGrantPermission { + return vs[0].([]PluginGrantPermission)[vs[1].(int)] + }).(PluginGrantPermissionOutput) } -type RegistryImageBuildUlimit struct { - // soft limit - Hard int `pulumi:"hard"` - // type of ulimit, e.g. `nofile` - Name string `pulumi:"name"` - // hard limit - Soft int `pulumi:"soft"` +type ProviderRegistryAuth struct { + // Address of the registry + Address string `pulumi:"address"` + AuthDisabled *bool `pulumi:"authDisabled"` + // Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options. + ConfigFile *string `pulumi:"configFile"` + // Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password. + ConfigFileContent *string `pulumi:"configFileContent"` + // Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set. + Password *string `pulumi:"password"` + // Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set. + Username *string `pulumi:"username"` } -// RegistryImageBuildUlimitInput is an input type that accepts RegistryImageBuildUlimitArgs and RegistryImageBuildUlimitOutput values. -// You can construct a concrete instance of `RegistryImageBuildUlimitInput` via: +// ProviderRegistryAuthInput is an input type that accepts ProviderRegistryAuthArgs and ProviderRegistryAuthOutput values. +// You can construct a concrete instance of `ProviderRegistryAuthInput` via: // -// RegistryImageBuildUlimitArgs{...} -type RegistryImageBuildUlimitInput interface { +// ProviderRegistryAuthArgs{...} +type ProviderRegistryAuthInput interface { pulumi.Input - ToRegistryImageBuildUlimitOutput() RegistryImageBuildUlimitOutput - ToRegistryImageBuildUlimitOutputWithContext(context.Context) RegistryImageBuildUlimitOutput + ToProviderRegistryAuthOutput() ProviderRegistryAuthOutput + ToProviderRegistryAuthOutputWithContext(context.Context) ProviderRegistryAuthOutput } -type RegistryImageBuildUlimitArgs struct { - // soft limit - Hard pulumi.IntInput `pulumi:"hard"` - // type of ulimit, e.g. `nofile` - Name pulumi.StringInput `pulumi:"name"` - // hard limit - Soft pulumi.IntInput `pulumi:"soft"` +type ProviderRegistryAuthArgs struct { + // Address of the registry + Address pulumi.StringInput `pulumi:"address"` + AuthDisabled pulumi.BoolPtrInput `pulumi:"authDisabled"` + // Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options. + ConfigFile pulumi.StringPtrInput `pulumi:"configFile"` + // Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password. + ConfigFileContent pulumi.StringPtrInput `pulumi:"configFileContent"` + // Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set. + Password pulumi.StringPtrInput `pulumi:"password"` + // Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set. + Username pulumi.StringPtrInput `pulumi:"username"` } -func (RegistryImageBuildUlimitArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuildUlimit)(nil)).Elem() +func (ProviderRegistryAuthArgs) ElementType() reflect.Type { + return reflect.TypeOf((*ProviderRegistryAuth)(nil)).Elem() } -func (i RegistryImageBuildUlimitArgs) ToRegistryImageBuildUlimitOutput() RegistryImageBuildUlimitOutput { - return i.ToRegistryImageBuildUlimitOutputWithContext(context.Background()) +func (i ProviderRegistryAuthArgs) ToProviderRegistryAuthOutput() ProviderRegistryAuthOutput { + return i.ToProviderRegistryAuthOutputWithContext(context.Background()) } -func (i RegistryImageBuildUlimitArgs) ToRegistryImageBuildUlimitOutputWithContext(ctx context.Context) RegistryImageBuildUlimitOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildUlimitOutput) +func (i ProviderRegistryAuthArgs) ToProviderRegistryAuthOutputWithContext(ctx context.Context) ProviderRegistryAuthOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProviderRegistryAuthOutput) } -// RegistryImageBuildUlimitArrayInput is an input type that accepts RegistryImageBuildUlimitArray and RegistryImageBuildUlimitArrayOutput values. -// You can construct a concrete instance of `RegistryImageBuildUlimitArrayInput` via: +// ProviderRegistryAuthArrayInput is an input type that accepts ProviderRegistryAuthArray and ProviderRegistryAuthArrayOutput values. +// You can construct a concrete instance of `ProviderRegistryAuthArrayInput` via: // -// RegistryImageBuildUlimitArray{ RegistryImageBuildUlimitArgs{...} } -type RegistryImageBuildUlimitArrayInput interface { +// ProviderRegistryAuthArray{ ProviderRegistryAuthArgs{...} } +type ProviderRegistryAuthArrayInput interface { pulumi.Input - ToRegistryImageBuildUlimitArrayOutput() RegistryImageBuildUlimitArrayOutput - ToRegistryImageBuildUlimitArrayOutputWithContext(context.Context) RegistryImageBuildUlimitArrayOutput + ToProviderRegistryAuthArrayOutput() ProviderRegistryAuthArrayOutput + ToProviderRegistryAuthArrayOutputWithContext(context.Context) ProviderRegistryAuthArrayOutput } -type RegistryImageBuildUlimitArray []RegistryImageBuildUlimitInput +type ProviderRegistryAuthArray []ProviderRegistryAuthInput -func (RegistryImageBuildUlimitArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RegistryImageBuildUlimit)(nil)).Elem() +func (ProviderRegistryAuthArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]ProviderRegistryAuth)(nil)).Elem() } -func (i RegistryImageBuildUlimitArray) ToRegistryImageBuildUlimitArrayOutput() RegistryImageBuildUlimitArrayOutput { - return i.ToRegistryImageBuildUlimitArrayOutputWithContext(context.Background()) +func (i ProviderRegistryAuthArray) ToProviderRegistryAuthArrayOutput() ProviderRegistryAuthArrayOutput { + return i.ToProviderRegistryAuthArrayOutputWithContext(context.Background()) } -func (i RegistryImageBuildUlimitArray) ToRegistryImageBuildUlimitArrayOutputWithContext(ctx context.Context) RegistryImageBuildUlimitArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RegistryImageBuildUlimitArrayOutput) +func (i ProviderRegistryAuthArray) ToProviderRegistryAuthArrayOutputWithContext(ctx context.Context) ProviderRegistryAuthArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(ProviderRegistryAuthArrayOutput) } -type RegistryImageBuildUlimitOutput struct{ *pulumi.OutputState } +type ProviderRegistryAuthOutput struct{ *pulumi.OutputState } -func (RegistryImageBuildUlimitOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RegistryImageBuildUlimit)(nil)).Elem() +func (ProviderRegistryAuthOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ProviderRegistryAuth)(nil)).Elem() } -func (o RegistryImageBuildUlimitOutput) ToRegistryImageBuildUlimitOutput() RegistryImageBuildUlimitOutput { +func (o ProviderRegistryAuthOutput) ToProviderRegistryAuthOutput() ProviderRegistryAuthOutput { return o } -func (o RegistryImageBuildUlimitOutput) ToRegistryImageBuildUlimitOutputWithContext(ctx context.Context) RegistryImageBuildUlimitOutput { +func (o ProviderRegistryAuthOutput) ToProviderRegistryAuthOutputWithContext(ctx context.Context) ProviderRegistryAuthOutput { return o } -// soft limit -func (o RegistryImageBuildUlimitOutput) Hard() pulumi.IntOutput { - return o.ApplyT(func(v RegistryImageBuildUlimit) int { return v.Hard }).(pulumi.IntOutput) +// Address of the registry +func (o ProviderRegistryAuthOutput) Address() pulumi.StringOutput { + return o.ApplyT(func(v ProviderRegistryAuth) string { return v.Address }).(pulumi.StringOutput) } -// type of ulimit, e.g. `nofile` -func (o RegistryImageBuildUlimitOutput) Name() pulumi.StringOutput { - return o.ApplyT(func(v RegistryImageBuildUlimit) string { return v.Name }).(pulumi.StringOutput) +func (o ProviderRegistryAuthOutput) AuthDisabled() pulumi.BoolPtrOutput { + return o.ApplyT(func(v ProviderRegistryAuth) *bool { return v.AuthDisabled }).(pulumi.BoolPtrOutput) } -// hard limit -func (o RegistryImageBuildUlimitOutput) Soft() pulumi.IntOutput { - return o.ApplyT(func(v RegistryImageBuildUlimit) int { return v.Soft }).(pulumi.IntOutput) +// Path to docker json file for registry auth. Defaults to `~/.docker/config.json`. If `DOCKER_CONFIG` is set, the value of `DOCKER_CONFIG` is used as the path. `configFile` has predencen over all other options. +func (o ProviderRegistryAuthOutput) ConfigFile() pulumi.StringPtrOutput { + return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.ConfigFile }).(pulumi.StringPtrOutput) +} + +// Plain content of the docker json file for registry auth. `configFileContent` has precedence over username/password. +func (o ProviderRegistryAuthOutput) ConfigFileContent() pulumi.StringPtrOutput { + return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.ConfigFileContent }).(pulumi.StringPtrOutput) +} + +// Password for the registry. Defaults to `DOCKER_REGISTRY_PASS` env variable if set. +func (o ProviderRegistryAuthOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.Password }).(pulumi.StringPtrOutput) +} + +// Username for the registry. Defaults to `DOCKER_REGISTRY_USER` env variable if set. +func (o ProviderRegistryAuthOutput) Username() pulumi.StringPtrOutput { + return o.ApplyT(func(v ProviderRegistryAuth) *string { return v.Username }).(pulumi.StringPtrOutput) } -type RegistryImageBuildUlimitArrayOutput struct{ *pulumi.OutputState } +type ProviderRegistryAuthArrayOutput struct{ *pulumi.OutputState } -func (RegistryImageBuildUlimitArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RegistryImageBuildUlimit)(nil)).Elem() +func (ProviderRegistryAuthArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]ProviderRegistryAuth)(nil)).Elem() } -func (o RegistryImageBuildUlimitArrayOutput) ToRegistryImageBuildUlimitArrayOutput() RegistryImageBuildUlimitArrayOutput { +func (o ProviderRegistryAuthArrayOutput) ToProviderRegistryAuthArrayOutput() ProviderRegistryAuthArrayOutput { return o } -func (o RegistryImageBuildUlimitArrayOutput) ToRegistryImageBuildUlimitArrayOutputWithContext(ctx context.Context) RegistryImageBuildUlimitArrayOutput { +func (o ProviderRegistryAuthArrayOutput) ToProviderRegistryAuthArrayOutputWithContext(ctx context.Context) ProviderRegistryAuthArrayOutput { return o } -func (o RegistryImageBuildUlimitArrayOutput) Index(i pulumi.IntInput) RegistryImageBuildUlimitOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RegistryImageBuildUlimit { - return vs[0].([]RegistryImageBuildUlimit)[vs[1].(int)] - }).(RegistryImageBuildUlimitOutput) +func (o ProviderRegistryAuthArrayOutput) Index(i pulumi.IntInput) ProviderRegistryAuthOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) ProviderRegistryAuth { + return vs[0].([]ProviderRegistryAuth)[vs[1].(int)] + }).(ProviderRegistryAuthOutput) } type RemoteImageBuild struct { - // A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. - AdditionalContexts []string `pulumi:"additionalContexts"` // The configuration for the authentication AuthConfigs []RemoteImageBuildAuthConfig `pulumi:"authConfigs"` - // Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` + // Set build-time variables + BuildArg map[string]string `pulumi:"buildArg"` + // Pairs for build-time variables in the form TODO BuildArgs map[string]string `pulumi:"buildArgs"` // BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. BuildId *string `pulumi:"buildId"` - // Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. - BuildLogFile *string `pulumi:"buildLogFile"` - // Set the name of the buildx builder to use. If not set, the legacy builder is used. - Builder *string `pulumi:"builder"` - // External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. + // Images to consider as cache sources CacheFroms []string `pulumi:"cacheFroms"` - // Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. - CacheTos []string `pulumi:"cacheTos"` // Optional parent cgroup for the container CgroupParent *string `pulumi:"cgroupParent"` - // Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. + // Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. Context string `pulumi:"context"` // The length of a CPU period in microseconds CpuPeriod *int `pulumi:"cpuPeriod"` @@ -5766,16 +2771,14 @@ type RemoteImageBuild struct { NetworkMode *string `pulumi:"networkMode"` // Do not use the cache when building the image NoCache *bool `pulumi:"noCache"` - // Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) + // Set platform if server is multi-platform capable Platform *string `pulumi:"platform"` // Attempt to pull the image even if an older image exists locally PullParent *bool `pulumi:"pullParent"` - // A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. + // A Git repository URI or HTTP/HTTPS context URI RemoteContext *string `pulumi:"remoteContext"` // Remove intermediate containers after a successful build. Defaults to `true`. Remove *bool `pulumi:"remove"` - // Set build-time secrets. Only available when you use a buildx builder. - Secrets []RemoteImageBuildSecret `pulumi:"secrets"` // The security options SecurityOpts []string `pulumi:"securityOpts"` // Set an ID for the build session @@ -5808,25 +2811,19 @@ type RemoteImageBuildInput interface { } type RemoteImageBuildArgs struct { - // A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. - AdditionalContexts pulumi.StringArrayInput `pulumi:"additionalContexts"` // The configuration for the authentication AuthConfigs RemoteImageBuildAuthConfigArrayInput `pulumi:"authConfigs"` - // Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` + // Set build-time variables + BuildArg pulumi.StringMapInput `pulumi:"buildArg"` + // Pairs for build-time variables in the form TODO BuildArgs pulumi.StringMapInput `pulumi:"buildArgs"` // BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. BuildId pulumi.StringPtrInput `pulumi:"buildId"` - // Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. - BuildLogFile pulumi.StringPtrInput `pulumi:"buildLogFile"` - // Set the name of the buildx builder to use. If not set, the legacy builder is used. - Builder pulumi.StringPtrInput `pulumi:"builder"` - // External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. + // Images to consider as cache sources CacheFroms pulumi.StringArrayInput `pulumi:"cacheFroms"` - // Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. - CacheTos pulumi.StringArrayInput `pulumi:"cacheTos"` // Optional parent cgroup for the container CgroupParent pulumi.StringPtrInput `pulumi:"cgroupParent"` - // Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. + // Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. Context pulumi.StringInput `pulumi:"context"` // The length of a CPU period in microseconds CpuPeriod pulumi.IntPtrInput `pulumi:"cpuPeriod"` @@ -5858,16 +2855,14 @@ type RemoteImageBuildArgs struct { NetworkMode pulumi.StringPtrInput `pulumi:"networkMode"` // Do not use the cache when building the image NoCache pulumi.BoolPtrInput `pulumi:"noCache"` - // Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) + // Set platform if server is multi-platform capable Platform pulumi.StringPtrInput `pulumi:"platform"` // Attempt to pull the image even if an older image exists locally PullParent pulumi.BoolPtrInput `pulumi:"pullParent"` - // A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. + // A Git repository URI or HTTP/HTTPS context URI RemoteContext pulumi.StringPtrInput `pulumi:"remoteContext"` // Remove intermediate containers after a successful build. Defaults to `true`. Remove pulumi.BoolPtrInput `pulumi:"remove"` - // Set build-time secrets. Only available when you use a buildx builder. - Secrets RemoteImageBuildSecretArrayInput `pulumi:"secrets"` // The security options SecurityOpts pulumi.StringArrayInput `pulumi:"securityOpts"` // Set an ID for the build session @@ -5965,17 +2960,17 @@ func (o RemoteImageBuildOutput) ToRemoteImageBuildPtrOutputWithContext(ctx conte }).(RemoteImageBuildPtrOutput) } -// A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. -func (o RemoteImageBuildOutput) AdditionalContexts() pulumi.StringArrayOutput { - return o.ApplyT(func(v RemoteImageBuild) []string { return v.AdditionalContexts }).(pulumi.StringArrayOutput) -} - // The configuration for the authentication func (o RemoteImageBuildOutput) AuthConfigs() RemoteImageBuildAuthConfigArrayOutput { return o.ApplyT(func(v RemoteImageBuild) []RemoteImageBuildAuthConfig { return v.AuthConfigs }).(RemoteImageBuildAuthConfigArrayOutput) } -// Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` +// Set build-time variables +func (o RemoteImageBuildOutput) BuildArg() pulumi.StringMapOutput { + return o.ApplyT(func(v RemoteImageBuild) map[string]string { return v.BuildArg }).(pulumi.StringMapOutput) +} + +// Pairs for build-time variables in the form TODO func (o RemoteImageBuildOutput) BuildArgs() pulumi.StringMapOutput { return o.ApplyT(func(v RemoteImageBuild) map[string]string { return v.BuildArgs }).(pulumi.StringMapOutput) } @@ -5985,32 +2980,17 @@ func (o RemoteImageBuildOutput) BuildId() pulumi.StringPtrOutput { return o.ApplyT(func(v RemoteImageBuild) *string { return v.BuildId }).(pulumi.StringPtrOutput) } -// Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. -func (o RemoteImageBuildOutput) BuildLogFile() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuild) *string { return v.BuildLogFile }).(pulumi.StringPtrOutput) -} - -// Set the name of the buildx builder to use. If not set, the legacy builder is used. -func (o RemoteImageBuildOutput) Builder() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuild) *string { return v.Builder }).(pulumi.StringPtrOutput) -} - -// External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. +// Images to consider as cache sources func (o RemoteImageBuildOutput) CacheFroms() pulumi.StringArrayOutput { return o.ApplyT(func(v RemoteImageBuild) []string { return v.CacheFroms }).(pulumi.StringArrayOutput) } -// Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. -func (o RemoteImageBuildOutput) CacheTos() pulumi.StringArrayOutput { - return o.ApplyT(func(v RemoteImageBuild) []string { return v.CacheTos }).(pulumi.StringArrayOutput) -} - // Optional parent cgroup for the container func (o RemoteImageBuildOutput) CgroupParent() pulumi.StringPtrOutput { return o.ApplyT(func(v RemoteImageBuild) *string { return v.CgroupParent }).(pulumi.StringPtrOutput) } -// Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. +// Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. func (o RemoteImageBuildOutput) Context() pulumi.StringOutput { return o.ApplyT(func(v RemoteImageBuild) string { return v.Context }).(pulumi.StringOutput) } @@ -6090,7 +3070,7 @@ func (o RemoteImageBuildOutput) NoCache() pulumi.BoolPtrOutput { return o.ApplyT(func(v RemoteImageBuild) *bool { return v.NoCache }).(pulumi.BoolPtrOutput) } -// Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) +// Set platform if server is multi-platform capable func (o RemoteImageBuildOutput) Platform() pulumi.StringPtrOutput { return o.ApplyT(func(v RemoteImageBuild) *string { return v.Platform }).(pulumi.StringPtrOutput) } @@ -6100,7 +3080,7 @@ func (o RemoteImageBuildOutput) PullParent() pulumi.BoolPtrOutput { return o.ApplyT(func(v RemoteImageBuild) *bool { return v.PullParent }).(pulumi.BoolPtrOutput) } -// A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. +// A Git repository URI or HTTP/HTTPS context URI func (o RemoteImageBuildOutput) RemoteContext() pulumi.StringPtrOutput { return o.ApplyT(func(v RemoteImageBuild) *string { return v.RemoteContext }).(pulumi.StringPtrOutput) } @@ -6110,11 +3090,6 @@ func (o RemoteImageBuildOutput) Remove() pulumi.BoolPtrOutput { return o.ApplyT(func(v RemoteImageBuild) *bool { return v.Remove }).(pulumi.BoolPtrOutput) } -// Set build-time secrets. Only available when you use a buildx builder. -func (o RemoteImageBuildOutput) Secrets() RemoteImageBuildSecretArrayOutput { - return o.ApplyT(func(v RemoteImageBuild) []RemoteImageBuildSecret { return v.Secrets }).(RemoteImageBuildSecretArrayOutput) -} - // The security options func (o RemoteImageBuildOutput) SecurityOpts() pulumi.StringArrayOutput { return o.ApplyT(func(v RemoteImageBuild) []string { return v.SecurityOpts }).(pulumi.StringArrayOutput) @@ -6184,16 +3159,6 @@ func (o RemoteImageBuildPtrOutput) Elem() RemoteImageBuildOutput { }).(RemoteImageBuildOutput) } -// A list of additional build contexts. Only supported when using a buildx builder. Example: `["name=path", "src = https://example.org"}`. Please see https://docs.docker.com/reference/cli/docker/buildx/build/#build-context for more information. -func (o RemoteImageBuildPtrOutput) AdditionalContexts() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RemoteImageBuild) []string { - if v == nil { - return nil - } - return v.AdditionalContexts - }).(pulumi.StringArrayOutput) -} - // The configuration for the authentication func (o RemoteImageBuildPtrOutput) AuthConfigs() RemoteImageBuildAuthConfigArrayOutput { return o.ApplyT(func(v *RemoteImageBuild) []RemoteImageBuildAuthConfig { @@ -6204,47 +3169,37 @@ func (o RemoteImageBuildPtrOutput) AuthConfigs() RemoteImageBuildAuthConfigArray }).(RemoteImageBuildAuthConfigArrayOutput) } -// Pairs for build-time variables in the form of `ENDPOINT : "https://example.com"` -func (o RemoteImageBuildPtrOutput) BuildArgs() pulumi.StringMapOutput { +// Set build-time variables +func (o RemoteImageBuildPtrOutput) BuildArg() pulumi.StringMapOutput { return o.ApplyT(func(v *RemoteImageBuild) map[string]string { if v == nil { return nil } - return v.BuildArgs + return v.BuildArg }).(pulumi.StringMapOutput) } -// BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. -func (o RemoteImageBuildPtrOutput) BuildId() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RemoteImageBuild) *string { - if v == nil { - return nil - } - return v.BuildId - }).(pulumi.StringPtrOutput) -} - -// Path to a file where the buildx log are written to. Only available when `builder` is set. If not set, no logs are available. The path is taken as is, so make sure to use a path that is available. -func (o RemoteImageBuildPtrOutput) BuildLogFile() pulumi.StringPtrOutput { - return o.ApplyT(func(v *RemoteImageBuild) *string { +// Pairs for build-time variables in the form TODO +func (o RemoteImageBuildPtrOutput) BuildArgs() pulumi.StringMapOutput { + return o.ApplyT(func(v *RemoteImageBuild) map[string]string { if v == nil { return nil } - return v.BuildLogFile - }).(pulumi.StringPtrOutput) + return v.BuildArgs + }).(pulumi.StringMapOutput) } -// Set the name of the buildx builder to use. If not set, the legacy builder is used. -func (o RemoteImageBuildPtrOutput) Builder() pulumi.StringPtrOutput { +// BuildID is an optional identifier that can be passed together with the build request. The same identifier can be used to gracefully cancel the build with the cancel request. +func (o RemoteImageBuildPtrOutput) BuildId() pulumi.StringPtrOutput { return o.ApplyT(func(v *RemoteImageBuild) *string { if v == nil { return nil } - return v.Builder + return v.BuildId }).(pulumi.StringPtrOutput) } -// External cache sources (e.g., `user/app:cache`, `type=local,src=path/to/dir`). Only supported when using a buildx builder. +// Images to consider as cache sources func (o RemoteImageBuildPtrOutput) CacheFroms() pulumi.StringArrayOutput { return o.ApplyT(func(v *RemoteImageBuild) []string { if v == nil { @@ -6254,16 +3209,6 @@ func (o RemoteImageBuildPtrOutput) CacheFroms() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } -// Cache export destinations (e.g., `user/app:cache`, `type=local,dest=path/to/dir`). Only supported when using a buildx builder. -func (o RemoteImageBuildPtrOutput) CacheTos() pulumi.StringArrayOutput { - return o.ApplyT(func(v *RemoteImageBuild) []string { - if v == nil { - return nil - } - return v.CacheTos - }).(pulumi.StringArrayOutput) -} - // Optional parent cgroup for the container func (o RemoteImageBuildPtrOutput) CgroupParent() pulumi.StringPtrOutput { return o.ApplyT(func(v *RemoteImageBuild) *string { @@ -6274,7 +3219,7 @@ func (o RemoteImageBuildPtrOutput) CgroupParent() pulumi.StringPtrOutput { }).(pulumi.StringPtrOutput) } -// Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. This always refers to the local working directory, even when building images on remote hosts. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. +// Value to specify the build context. Currently, only a `PATH` context is supported. You can use the helper function '${path.cwd}/context-dir'. Please see https://docs.docker.com/build/building/context/ for more information about build contexts. func (o RemoteImageBuildPtrOutput) Context() pulumi.StringPtrOutput { return o.ApplyT(func(v *RemoteImageBuild) *string { if v == nil { @@ -6434,7 +3379,7 @@ func (o RemoteImageBuildPtrOutput) NoCache() pulumi.BoolPtrOutput { }).(pulumi.BoolPtrOutput) } -// Set the target platform for the build. Defaults to `GOOS/GOARCH`. For more information see the [docker documentation](https://github.com/docker/buildx/blob/master/docs/reference/buildx.md#-set-the-target-platforms-for-the-build---platform) +// Set platform if server is multi-platform capable func (o RemoteImageBuildPtrOutput) Platform() pulumi.StringPtrOutput { return o.ApplyT(func(v *RemoteImageBuild) *string { if v == nil { @@ -6454,7 +3399,7 @@ func (o RemoteImageBuildPtrOutput) PullParent() pulumi.BoolPtrOutput { }).(pulumi.BoolPtrOutput) } -// A Git repository URI or HTTP/HTTPS context URI. Will be ignored if `builder` is set. +// A Git repository URI or HTTP/HTTPS context URI func (o RemoteImageBuildPtrOutput) RemoteContext() pulumi.StringPtrOutput { return o.ApplyT(func(v *RemoteImageBuild) *string { if v == nil { @@ -6474,16 +3419,6 @@ func (o RemoteImageBuildPtrOutput) Remove() pulumi.BoolPtrOutput { }).(pulumi.BoolPtrOutput) } -// Set build-time secrets. Only available when you use a buildx builder. -func (o RemoteImageBuildPtrOutput) Secrets() RemoteImageBuildSecretArrayOutput { - return o.ApplyT(func(v *RemoteImageBuild) []RemoteImageBuildSecret { - if v == nil { - return nil - } - return v.Secrets - }).(RemoteImageBuildSecretArrayOutput) -} - // The security options func (o RemoteImageBuildPtrOutput) SecurityOpts() pulumi.StringArrayOutput { return o.ApplyT(func(v *RemoteImageBuild) []string { @@ -6648,205 +3583,90 @@ type RemoteImageBuildAuthConfigArrayInput interface { type RemoteImageBuildAuthConfigArray []RemoteImageBuildAuthConfigInput -func (RemoteImageBuildAuthConfigArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RemoteImageBuildAuthConfig)(nil)).Elem() -} - -func (i RemoteImageBuildAuthConfigArray) ToRemoteImageBuildAuthConfigArrayOutput() RemoteImageBuildAuthConfigArrayOutput { - return i.ToRemoteImageBuildAuthConfigArrayOutputWithContext(context.Background()) -} - -func (i RemoteImageBuildAuthConfigArray) ToRemoteImageBuildAuthConfigArrayOutputWithContext(ctx context.Context) RemoteImageBuildAuthConfigArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RemoteImageBuildAuthConfigArrayOutput) -} - -type RemoteImageBuildAuthConfigOutput struct{ *pulumi.OutputState } - -func (RemoteImageBuildAuthConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RemoteImageBuildAuthConfig)(nil)).Elem() -} - -func (o RemoteImageBuildAuthConfigOutput) ToRemoteImageBuildAuthConfigOutput() RemoteImageBuildAuthConfigOutput { - return o -} - -func (o RemoteImageBuildAuthConfigOutput) ToRemoteImageBuildAuthConfigOutputWithContext(ctx context.Context) RemoteImageBuildAuthConfigOutput { - return o -} - -// the auth token -func (o RemoteImageBuildAuthConfigOutput) Auth() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.Auth }).(pulumi.StringPtrOutput) -} - -// the user emal -func (o RemoteImageBuildAuthConfigOutput) Email() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.Email }).(pulumi.StringPtrOutput) -} - -// hostname of the registry -func (o RemoteImageBuildAuthConfigOutput) HostName() pulumi.StringOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) string { return v.HostName }).(pulumi.StringOutput) -} - -// the identity token -func (o RemoteImageBuildAuthConfigOutput) IdentityToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.IdentityToken }).(pulumi.StringPtrOutput) -} - -// the registry password -func (o RemoteImageBuildAuthConfigOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.Password }).(pulumi.StringPtrOutput) -} - -// the registry token -func (o RemoteImageBuildAuthConfigOutput) RegistryToken() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.RegistryToken }).(pulumi.StringPtrOutput) -} - -// the server address -func (o RemoteImageBuildAuthConfigOutput) ServerAddress() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.ServerAddress }).(pulumi.StringPtrOutput) -} - -// the registry user name -func (o RemoteImageBuildAuthConfigOutput) UserName() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.UserName }).(pulumi.StringPtrOutput) -} - -type RemoteImageBuildAuthConfigArrayOutput struct{ *pulumi.OutputState } - -func (RemoteImageBuildAuthConfigArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RemoteImageBuildAuthConfig)(nil)).Elem() -} - -func (o RemoteImageBuildAuthConfigArrayOutput) ToRemoteImageBuildAuthConfigArrayOutput() RemoteImageBuildAuthConfigArrayOutput { - return o -} - -func (o RemoteImageBuildAuthConfigArrayOutput) ToRemoteImageBuildAuthConfigArrayOutputWithContext(ctx context.Context) RemoteImageBuildAuthConfigArrayOutput { - return o -} - -func (o RemoteImageBuildAuthConfigArrayOutput) Index(i pulumi.IntInput) RemoteImageBuildAuthConfigOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RemoteImageBuildAuthConfig { - return vs[0].([]RemoteImageBuildAuthConfig)[vs[1].(int)] - }).(RemoteImageBuildAuthConfigOutput) -} - -type RemoteImageBuildSecret struct { - // Environment variable source of the secret - Env *string `pulumi:"env"` - // ID of the secret. By default, secrets are mounted to /run/secrets/\n\n - Id string `pulumi:"id"` - // File source of the secret. Takes precedence over `env` - Src *string `pulumi:"src"` -} - -// RemoteImageBuildSecretInput is an input type that accepts RemoteImageBuildSecretArgs and RemoteImageBuildSecretOutput values. -// You can construct a concrete instance of `RemoteImageBuildSecretInput` via: -// -// RemoteImageBuildSecretArgs{...} -type RemoteImageBuildSecretInput interface { - pulumi.Input - - ToRemoteImageBuildSecretOutput() RemoteImageBuildSecretOutput - ToRemoteImageBuildSecretOutputWithContext(context.Context) RemoteImageBuildSecretOutput -} - -type RemoteImageBuildSecretArgs struct { - // Environment variable source of the secret - Env pulumi.StringPtrInput `pulumi:"env"` - // ID of the secret. By default, secrets are mounted to /run/secrets/\n\n - Id pulumi.StringInput `pulumi:"id"` - // File source of the secret. Takes precedence over `env` - Src pulumi.StringPtrInput `pulumi:"src"` -} - -func (RemoteImageBuildSecretArgs) ElementType() reflect.Type { - return reflect.TypeOf((*RemoteImageBuildSecret)(nil)).Elem() +func (RemoteImageBuildAuthConfigArray) ElementType() reflect.Type { + return reflect.TypeOf((*[]RemoteImageBuildAuthConfig)(nil)).Elem() } -func (i RemoteImageBuildSecretArgs) ToRemoteImageBuildSecretOutput() RemoteImageBuildSecretOutput { - return i.ToRemoteImageBuildSecretOutputWithContext(context.Background()) +func (i RemoteImageBuildAuthConfigArray) ToRemoteImageBuildAuthConfigArrayOutput() RemoteImageBuildAuthConfigArrayOutput { + return i.ToRemoteImageBuildAuthConfigArrayOutputWithContext(context.Background()) } -func (i RemoteImageBuildSecretArgs) ToRemoteImageBuildSecretOutputWithContext(ctx context.Context) RemoteImageBuildSecretOutput { - return pulumi.ToOutputWithContext(ctx, i).(RemoteImageBuildSecretOutput) +func (i RemoteImageBuildAuthConfigArray) ToRemoteImageBuildAuthConfigArrayOutputWithContext(ctx context.Context) RemoteImageBuildAuthConfigArrayOutput { + return pulumi.ToOutputWithContext(ctx, i).(RemoteImageBuildAuthConfigArrayOutput) } -// RemoteImageBuildSecretArrayInput is an input type that accepts RemoteImageBuildSecretArray and RemoteImageBuildSecretArrayOutput values. -// You can construct a concrete instance of `RemoteImageBuildSecretArrayInput` via: -// -// RemoteImageBuildSecretArray{ RemoteImageBuildSecretArgs{...} } -type RemoteImageBuildSecretArrayInput interface { - pulumi.Input +type RemoteImageBuildAuthConfigOutput struct{ *pulumi.OutputState } - ToRemoteImageBuildSecretArrayOutput() RemoteImageBuildSecretArrayOutput - ToRemoteImageBuildSecretArrayOutputWithContext(context.Context) RemoteImageBuildSecretArrayOutput +func (RemoteImageBuildAuthConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*RemoteImageBuildAuthConfig)(nil)).Elem() } -type RemoteImageBuildSecretArray []RemoteImageBuildSecretInput - -func (RemoteImageBuildSecretArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]RemoteImageBuildSecret)(nil)).Elem() +func (o RemoteImageBuildAuthConfigOutput) ToRemoteImageBuildAuthConfigOutput() RemoteImageBuildAuthConfigOutput { + return o } -func (i RemoteImageBuildSecretArray) ToRemoteImageBuildSecretArrayOutput() RemoteImageBuildSecretArrayOutput { - return i.ToRemoteImageBuildSecretArrayOutputWithContext(context.Background()) +func (o RemoteImageBuildAuthConfigOutput) ToRemoteImageBuildAuthConfigOutputWithContext(ctx context.Context) RemoteImageBuildAuthConfigOutput { + return o } -func (i RemoteImageBuildSecretArray) ToRemoteImageBuildSecretArrayOutputWithContext(ctx context.Context) RemoteImageBuildSecretArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(RemoteImageBuildSecretArrayOutput) +// the auth token +func (o RemoteImageBuildAuthConfigOutput) Auth() pulumi.StringPtrOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.Auth }).(pulumi.StringPtrOutput) } -type RemoteImageBuildSecretOutput struct{ *pulumi.OutputState } +// the user emal +func (o RemoteImageBuildAuthConfigOutput) Email() pulumi.StringPtrOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.Email }).(pulumi.StringPtrOutput) +} -func (RemoteImageBuildSecretOutput) ElementType() reflect.Type { - return reflect.TypeOf((*RemoteImageBuildSecret)(nil)).Elem() +// hostname of the registry +func (o RemoteImageBuildAuthConfigOutput) HostName() pulumi.StringOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) string { return v.HostName }).(pulumi.StringOutput) } -func (o RemoteImageBuildSecretOutput) ToRemoteImageBuildSecretOutput() RemoteImageBuildSecretOutput { - return o +// the identity token +func (o RemoteImageBuildAuthConfigOutput) IdentityToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.IdentityToken }).(pulumi.StringPtrOutput) } -func (o RemoteImageBuildSecretOutput) ToRemoteImageBuildSecretOutputWithContext(ctx context.Context) RemoteImageBuildSecretOutput { - return o +// the registry password +func (o RemoteImageBuildAuthConfigOutput) Password() pulumi.StringPtrOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.Password }).(pulumi.StringPtrOutput) } -// Environment variable source of the secret -func (o RemoteImageBuildSecretOutput) Env() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildSecret) *string { return v.Env }).(pulumi.StringPtrOutput) +// the registry token +func (o RemoteImageBuildAuthConfigOutput) RegistryToken() pulumi.StringPtrOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.RegistryToken }).(pulumi.StringPtrOutput) } -// ID of the secret. By default, secrets are mounted to /run/secrets/\n\n -func (o RemoteImageBuildSecretOutput) Id() pulumi.StringOutput { - return o.ApplyT(func(v RemoteImageBuildSecret) string { return v.Id }).(pulumi.StringOutput) +// the server address +func (o RemoteImageBuildAuthConfigOutput) ServerAddress() pulumi.StringPtrOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.ServerAddress }).(pulumi.StringPtrOutput) } -// File source of the secret. Takes precedence over `env` -func (o RemoteImageBuildSecretOutput) Src() pulumi.StringPtrOutput { - return o.ApplyT(func(v RemoteImageBuildSecret) *string { return v.Src }).(pulumi.StringPtrOutput) +// the registry user name +func (o RemoteImageBuildAuthConfigOutput) UserName() pulumi.StringPtrOutput { + return o.ApplyT(func(v RemoteImageBuildAuthConfig) *string { return v.UserName }).(pulumi.StringPtrOutput) } -type RemoteImageBuildSecretArrayOutput struct{ *pulumi.OutputState } +type RemoteImageBuildAuthConfigArrayOutput struct{ *pulumi.OutputState } -func (RemoteImageBuildSecretArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]RemoteImageBuildSecret)(nil)).Elem() +func (RemoteImageBuildAuthConfigArrayOutput) ElementType() reflect.Type { + return reflect.TypeOf((*[]RemoteImageBuildAuthConfig)(nil)).Elem() } -func (o RemoteImageBuildSecretArrayOutput) ToRemoteImageBuildSecretArrayOutput() RemoteImageBuildSecretArrayOutput { +func (o RemoteImageBuildAuthConfigArrayOutput) ToRemoteImageBuildAuthConfigArrayOutput() RemoteImageBuildAuthConfigArrayOutput { return o } -func (o RemoteImageBuildSecretArrayOutput) ToRemoteImageBuildSecretArrayOutputWithContext(ctx context.Context) RemoteImageBuildSecretArrayOutput { +func (o RemoteImageBuildAuthConfigArrayOutput) ToRemoteImageBuildAuthConfigArrayOutputWithContext(ctx context.Context) RemoteImageBuildAuthConfigArrayOutput { return o } -func (o RemoteImageBuildSecretArrayOutput) Index(i pulumi.IntInput) RemoteImageBuildSecretOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) RemoteImageBuildSecret { - return vs[0].([]RemoteImageBuildSecret)[vs[1].(int)] - }).(RemoteImageBuildSecretOutput) +func (o RemoteImageBuildAuthConfigArrayOutput) Index(i pulumi.IntInput) RemoteImageBuildAuthConfigOutput { + return pulumi.All(o, i).ApplyT(func(vs []interface{}) RemoteImageBuildAuthConfig { + return vs[0].([]RemoteImageBuildAuthConfig)[vs[1].(int)] + }).(RemoteImageBuildAuthConfigOutput) } type RemoteImageBuildUlimit struct { @@ -8594,10 +5414,6 @@ func (o ServiceTaskSpecPtrOutput) Runtime() pulumi.StringPtrOutput { type ServiceTaskSpecContainerSpec struct { // Arguments to the command Args []string `pulumi:"args"` - // List of Linux capabilities to add to the container - CapAdds []string `pulumi:"capAdds"` - // List of Linux capabilities to drop from the container - CapDrops []string `pulumi:"capDrops"` // The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service. Commands []string `pulumi:"commands"` // References to zero or more configs that will be exposed to the service @@ -8610,7 +5426,7 @@ type ServiceTaskSpecContainerSpec struct { Env map[string]string `pulumi:"env"` // A list of additional groups that the container process will run as Groups []string `pulumi:"groups"` - // A test to perform to check that the container is healthy. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile. + // A test to perform to check that the container is healthy Healthcheck *ServiceTaskSpecContainerSpecHealthcheck `pulumi:"healthcheck"` // The hostname to use for the container, as a valid RFC 1123 hostname Hostname *string `pulumi:"hostname"` @@ -8654,10 +5470,6 @@ type ServiceTaskSpecContainerSpecInput interface { type ServiceTaskSpecContainerSpecArgs struct { // Arguments to the command Args pulumi.StringArrayInput `pulumi:"args"` - // List of Linux capabilities to add to the container - CapAdds pulumi.StringArrayInput `pulumi:"capAdds"` - // List of Linux capabilities to drop from the container - CapDrops pulumi.StringArrayInput `pulumi:"capDrops"` // The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service. Commands pulumi.StringArrayInput `pulumi:"commands"` // References to zero or more configs that will be exposed to the service @@ -8670,7 +5482,7 @@ type ServiceTaskSpecContainerSpecArgs struct { Env pulumi.StringMapInput `pulumi:"env"` // A list of additional groups that the container process will run as Groups pulumi.StringArrayInput `pulumi:"groups"` - // A test to perform to check that the container is healthy. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile. + // A test to perform to check that the container is healthy Healthcheck ServiceTaskSpecContainerSpecHealthcheckPtrInput `pulumi:"healthcheck"` // The hostname to use for the container, as a valid RFC 1123 hostname Hostname pulumi.StringPtrInput `pulumi:"hostname"` @@ -8782,16 +5594,6 @@ func (o ServiceTaskSpecContainerSpecOutput) Args() pulumi.StringArrayOutput { return o.ApplyT(func(v ServiceTaskSpecContainerSpec) []string { return v.Args }).(pulumi.StringArrayOutput) } -// List of Linux capabilities to add to the container -func (o ServiceTaskSpecContainerSpecOutput) CapAdds() pulumi.StringArrayOutput { - return o.ApplyT(func(v ServiceTaskSpecContainerSpec) []string { return v.CapAdds }).(pulumi.StringArrayOutput) -} - -// List of Linux capabilities to drop from the container -func (o ServiceTaskSpecContainerSpecOutput) CapDrops() pulumi.StringArrayOutput { - return o.ApplyT(func(v ServiceTaskSpecContainerSpec) []string { return v.CapDrops }).(pulumi.StringArrayOutput) -} - // The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service. func (o ServiceTaskSpecContainerSpecOutput) Commands() pulumi.StringArrayOutput { return o.ApplyT(func(v ServiceTaskSpecContainerSpec) []string { return v.Commands }).(pulumi.StringArrayOutput) @@ -8822,7 +5624,7 @@ func (o ServiceTaskSpecContainerSpecOutput) Groups() pulumi.StringArrayOutput { return o.ApplyT(func(v ServiceTaskSpecContainerSpec) []string { return v.Groups }).(pulumi.StringArrayOutput) } -// A test to perform to check that the container is healthy. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile. +// A test to perform to check that the container is healthy func (o ServiceTaskSpecContainerSpecOutput) Healthcheck() ServiceTaskSpecContainerSpecHealthcheckPtrOutput { return o.ApplyT(func(v ServiceTaskSpecContainerSpec) *ServiceTaskSpecContainerSpecHealthcheck { return v.Healthcheck }).(ServiceTaskSpecContainerSpecHealthcheckPtrOutput) } @@ -8926,26 +5728,6 @@ func (o ServiceTaskSpecContainerSpecPtrOutput) Args() pulumi.StringArrayOutput { }).(pulumi.StringArrayOutput) } -// List of Linux capabilities to add to the container -func (o ServiceTaskSpecContainerSpecPtrOutput) CapAdds() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ServiceTaskSpecContainerSpec) []string { - if v == nil { - return nil - } - return v.CapAdds - }).(pulumi.StringArrayOutput) -} - -// List of Linux capabilities to drop from the container -func (o ServiceTaskSpecContainerSpecPtrOutput) CapDrops() pulumi.StringArrayOutput { - return o.ApplyT(func(v *ServiceTaskSpecContainerSpec) []string { - if v == nil { - return nil - } - return v.CapDrops - }).(pulumi.StringArrayOutput) -} - // The command/entrypoint to be run in the image. According to the [docker cli](https://github.com/docker/cli/blob/v20.10.7/cli/command/service/opts.go#L705) the override of the entrypoint is also passed to the `command` property and there is no `entrypoint` attribute in the `ContainerSpec` of the service. func (o ServiceTaskSpecContainerSpecPtrOutput) Commands() pulumi.StringArrayOutput { return o.ApplyT(func(v *ServiceTaskSpecContainerSpec) []string { @@ -9006,7 +5788,7 @@ func (o ServiceTaskSpecContainerSpecPtrOutput) Groups() pulumi.StringArrayOutput }).(pulumi.StringArrayOutput) } -// A test to perform to check that the container is healthy. It works in the same way, and has the same default values, as the HEALTHCHECK Dockerfile instruction set by the service's Docker image. Your Compose file can override the values set in the Dockerfile. +// A test to perform to check that the container is healthy func (o ServiceTaskSpecContainerSpecPtrOutput) Healthcheck() ServiceTaskSpecContainerSpecHealthcheckPtrOutput { return o.ApplyT(func(v *ServiceTaskSpecContainerSpec) *ServiceTaskSpecContainerSpecHealthcheck { if v == nil { @@ -12793,472 +9575,164 @@ func (i ServiceUpdateConfigArgs) ToServiceUpdateConfigPtrOutputWithContext(ctx c type ServiceUpdateConfigPtrInput interface { pulumi.Input - ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput - ToServiceUpdateConfigPtrOutputWithContext(context.Context) ServiceUpdateConfigPtrOutput -} - -type serviceUpdateConfigPtrType ServiceUpdateConfigArgs - -func ServiceUpdateConfigPtr(v *ServiceUpdateConfigArgs) ServiceUpdateConfigPtrInput { - return (*serviceUpdateConfigPtrType)(v) -} - -func (*serviceUpdateConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceUpdateConfig)(nil)).Elem() -} - -func (i *serviceUpdateConfigPtrType) ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput { - return i.ToServiceUpdateConfigPtrOutputWithContext(context.Background()) -} - -func (i *serviceUpdateConfigPtrType) ToServiceUpdateConfigPtrOutputWithContext(ctx context.Context) ServiceUpdateConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(ServiceUpdateConfigPtrOutput) -} - -type ServiceUpdateConfigOutput struct{ *pulumi.OutputState } - -func (ServiceUpdateConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*ServiceUpdateConfig)(nil)).Elem() -} - -func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigOutput() ServiceUpdateConfigOutput { - return o -} - -func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigOutputWithContext(ctx context.Context) ServiceUpdateConfigOutput { - return o -} - -func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput { - return o.ToServiceUpdateConfigPtrOutputWithContext(context.Background()) -} - -func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigPtrOutputWithContext(ctx context.Context) ServiceUpdateConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceUpdateConfig) *ServiceUpdateConfig { - return &v - }).(ServiceUpdateConfigPtrOutput) -} - -// Delay between task updates `(ns|us|ms|s|m|h)`. Defaults to `0s`. -func (o ServiceUpdateConfigOutput) Delay() pulumi.StringPtrOutput { - return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.Delay }).(pulumi.StringPtrOutput) -} - -// Action on update failure: `pause`, `continue` or `rollback`. Defaults to `pause`. -func (o ServiceUpdateConfigOutput) FailureAction() pulumi.StringPtrOutput { - return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.FailureAction }).(pulumi.StringPtrOutput) -} - -// Failure rate to tolerate during an update. Defaults to `0.0`. -func (o ServiceUpdateConfigOutput) MaxFailureRatio() pulumi.StringPtrOutput { - return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.MaxFailureRatio }).(pulumi.StringPtrOutput) -} - -// Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`. -func (o ServiceUpdateConfigOutput) Monitor() pulumi.StringPtrOutput { - return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.Monitor }).(pulumi.StringPtrOutput) -} - -// Update order: either 'stop-first' or 'start-first'. Defaults to `stop-first`. -func (o ServiceUpdateConfigOutput) Order() pulumi.StringPtrOutput { - return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.Order }).(pulumi.StringPtrOutput) -} - -// Maximum number of tasks to be updated in one iteration. Defaults to `1` -func (o ServiceUpdateConfigOutput) Parallelism() pulumi.IntPtrOutput { - return o.ApplyT(func(v ServiceUpdateConfig) *int { return v.Parallelism }).(pulumi.IntPtrOutput) -} - -type ServiceUpdateConfigPtrOutput struct{ *pulumi.OutputState } - -func (ServiceUpdateConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**ServiceUpdateConfig)(nil)).Elem() -} - -func (o ServiceUpdateConfigPtrOutput) ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput { - return o -} - -func (o ServiceUpdateConfigPtrOutput) ToServiceUpdateConfigPtrOutputWithContext(ctx context.Context) ServiceUpdateConfigPtrOutput { - return o -} - -func (o ServiceUpdateConfigPtrOutput) Elem() ServiceUpdateConfigOutput { - return o.ApplyT(func(v *ServiceUpdateConfig) ServiceUpdateConfig { - if v != nil { - return *v - } - var ret ServiceUpdateConfig - return ret - }).(ServiceUpdateConfigOutput) -} - -// Delay between task updates `(ns|us|ms|s|m|h)`. Defaults to `0s`. -func (o ServiceUpdateConfigPtrOutput) Delay() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ServiceUpdateConfig) *string { - if v == nil { - return nil - } - return v.Delay - }).(pulumi.StringPtrOutput) -} - -// Action on update failure: `pause`, `continue` or `rollback`. Defaults to `pause`. -func (o ServiceUpdateConfigPtrOutput) FailureAction() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ServiceUpdateConfig) *string { - if v == nil { - return nil - } - return v.FailureAction - }).(pulumi.StringPtrOutput) -} - -// Failure rate to tolerate during an update. Defaults to `0.0`. -func (o ServiceUpdateConfigPtrOutput) MaxFailureRatio() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ServiceUpdateConfig) *string { - if v == nil { - return nil - } - return v.MaxFailureRatio - }).(pulumi.StringPtrOutput) -} - -// Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`. -func (o ServiceUpdateConfigPtrOutput) Monitor() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ServiceUpdateConfig) *string { - if v == nil { - return nil - } - return v.Monitor - }).(pulumi.StringPtrOutput) -} - -// Update order: either 'stop-first' or 'start-first'. Defaults to `stop-first`. -func (o ServiceUpdateConfigPtrOutput) Order() pulumi.StringPtrOutput { - return o.ApplyT(func(v *ServiceUpdateConfig) *string { - if v == nil { - return nil - } - return v.Order - }).(pulumi.StringPtrOutput) -} - -// Maximum number of tasks to be updated in one iteration. Defaults to `1` -func (o ServiceUpdateConfigPtrOutput) Parallelism() pulumi.IntPtrOutput { - return o.ApplyT(func(v *ServiceUpdateConfig) *int { - if v == nil { - return nil - } - return v.Parallelism - }).(pulumi.IntPtrOutput) -} - -type VolumeCluster struct { - // Availability of the volume. Can be `active` (default), `pause`, or `drain`. - Availability *string `pulumi:"availability"` - // Cluster Volume group - Group *string `pulumi:"group"` - // The ID of the cluster volume. - Id *string `pulumi:"id"` - // Minimum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. - LimitBytes *string `pulumi:"limitBytes"` - // Maximum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. - RequiredBytes *string `pulumi:"requiredBytes"` - // The scope of the volume. Can be `single` (default) or `multi`. - Scope *string `pulumi:"scope"` - // The sharing mode. Can be `none` (default), `readonly`, `onewriter` or `all`. - Sharing *string `pulumi:"sharing"` - // A topology that the Cluster Volume would be preferred in - TopologyPreferred *string `pulumi:"topologyPreferred"` - // A topology that the Cluster Volume must be accessible from - TopologyRequired *string `pulumi:"topologyRequired"` - // Cluster Volume access type. Can be `mount` or `block` (default). - Type *string `pulumi:"type"` -} - -// VolumeClusterInput is an input type that accepts VolumeClusterArgs and VolumeClusterOutput values. -// You can construct a concrete instance of `VolumeClusterInput` via: -// -// VolumeClusterArgs{...} -type VolumeClusterInput interface { - pulumi.Input - - ToVolumeClusterOutput() VolumeClusterOutput - ToVolumeClusterOutputWithContext(context.Context) VolumeClusterOutput -} - -type VolumeClusterArgs struct { - // Availability of the volume. Can be `active` (default), `pause`, or `drain`. - Availability pulumi.StringPtrInput `pulumi:"availability"` - // Cluster Volume group - Group pulumi.StringPtrInput `pulumi:"group"` - // The ID of the cluster volume. - Id pulumi.StringPtrInput `pulumi:"id"` - // Minimum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. - LimitBytes pulumi.StringPtrInput `pulumi:"limitBytes"` - // Maximum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. - RequiredBytes pulumi.StringPtrInput `pulumi:"requiredBytes"` - // The scope of the volume. Can be `single` (default) or `multi`. - Scope pulumi.StringPtrInput `pulumi:"scope"` - // The sharing mode. Can be `none` (default), `readonly`, `onewriter` or `all`. - Sharing pulumi.StringPtrInput `pulumi:"sharing"` - // A topology that the Cluster Volume would be preferred in - TopologyPreferred pulumi.StringPtrInput `pulumi:"topologyPreferred"` - // A topology that the Cluster Volume must be accessible from - TopologyRequired pulumi.StringPtrInput `pulumi:"topologyRequired"` - // Cluster Volume access type. Can be `mount` or `block` (default). - Type pulumi.StringPtrInput `pulumi:"type"` -} - -func (VolumeClusterArgs) ElementType() reflect.Type { - return reflect.TypeOf((*VolumeCluster)(nil)).Elem() -} - -func (i VolumeClusterArgs) ToVolumeClusterOutput() VolumeClusterOutput { - return i.ToVolumeClusterOutputWithContext(context.Background()) -} - -func (i VolumeClusterArgs) ToVolumeClusterOutputWithContext(ctx context.Context) VolumeClusterOutput { - return pulumi.ToOutputWithContext(ctx, i).(VolumeClusterOutput) -} - -func (i VolumeClusterArgs) ToVolumeClusterPtrOutput() VolumeClusterPtrOutput { - return i.ToVolumeClusterPtrOutputWithContext(context.Background()) -} - -func (i VolumeClusterArgs) ToVolumeClusterPtrOutputWithContext(ctx context.Context) VolumeClusterPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(VolumeClusterOutput).ToVolumeClusterPtrOutputWithContext(ctx) -} - -// VolumeClusterPtrInput is an input type that accepts VolumeClusterArgs, VolumeClusterPtr and VolumeClusterPtrOutput values. -// You can construct a concrete instance of `VolumeClusterPtrInput` via: -// -// VolumeClusterArgs{...} -// -// or: -// -// nil -type VolumeClusterPtrInput interface { - pulumi.Input - - ToVolumeClusterPtrOutput() VolumeClusterPtrOutput - ToVolumeClusterPtrOutputWithContext(context.Context) VolumeClusterPtrOutput + ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput + ToServiceUpdateConfigPtrOutputWithContext(context.Context) ServiceUpdateConfigPtrOutput } -type volumeClusterPtrType VolumeClusterArgs +type serviceUpdateConfigPtrType ServiceUpdateConfigArgs -func VolumeClusterPtr(v *VolumeClusterArgs) VolumeClusterPtrInput { - return (*volumeClusterPtrType)(v) +func ServiceUpdateConfigPtr(v *ServiceUpdateConfigArgs) ServiceUpdateConfigPtrInput { + return (*serviceUpdateConfigPtrType)(v) } -func (*volumeClusterPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**VolumeCluster)(nil)).Elem() +func (*serviceUpdateConfigPtrType) ElementType() reflect.Type { + return reflect.TypeOf((**ServiceUpdateConfig)(nil)).Elem() } -func (i *volumeClusterPtrType) ToVolumeClusterPtrOutput() VolumeClusterPtrOutput { - return i.ToVolumeClusterPtrOutputWithContext(context.Background()) +func (i *serviceUpdateConfigPtrType) ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput { + return i.ToServiceUpdateConfigPtrOutputWithContext(context.Background()) } -func (i *volumeClusterPtrType) ToVolumeClusterPtrOutputWithContext(ctx context.Context) VolumeClusterPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(VolumeClusterPtrOutput) +func (i *serviceUpdateConfigPtrType) ToServiceUpdateConfigPtrOutputWithContext(ctx context.Context) ServiceUpdateConfigPtrOutput { + return pulumi.ToOutputWithContext(ctx, i).(ServiceUpdateConfigPtrOutput) } -type VolumeClusterOutput struct{ *pulumi.OutputState } +type ServiceUpdateConfigOutput struct{ *pulumi.OutputState } -func (VolumeClusterOutput) ElementType() reflect.Type { - return reflect.TypeOf((*VolumeCluster)(nil)).Elem() +func (ServiceUpdateConfigOutput) ElementType() reflect.Type { + return reflect.TypeOf((*ServiceUpdateConfig)(nil)).Elem() } -func (o VolumeClusterOutput) ToVolumeClusterOutput() VolumeClusterOutput { +func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigOutput() ServiceUpdateConfigOutput { return o } -func (o VolumeClusterOutput) ToVolumeClusterOutputWithContext(ctx context.Context) VolumeClusterOutput { +func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigOutputWithContext(ctx context.Context) ServiceUpdateConfigOutput { return o } -func (o VolumeClusterOutput) ToVolumeClusterPtrOutput() VolumeClusterPtrOutput { - return o.ToVolumeClusterPtrOutputWithContext(context.Background()) +func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput { + return o.ToServiceUpdateConfigPtrOutputWithContext(context.Background()) } -func (o VolumeClusterOutput) ToVolumeClusterPtrOutputWithContext(ctx context.Context) VolumeClusterPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v VolumeCluster) *VolumeCluster { +func (o ServiceUpdateConfigOutput) ToServiceUpdateConfigPtrOutputWithContext(ctx context.Context) ServiceUpdateConfigPtrOutput { + return o.ApplyTWithContext(ctx, func(_ context.Context, v ServiceUpdateConfig) *ServiceUpdateConfig { return &v - }).(VolumeClusterPtrOutput) -} - -// Availability of the volume. Can be `active` (default), `pause`, or `drain`. -func (o VolumeClusterOutput) Availability() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.Availability }).(pulumi.StringPtrOutput) -} - -// Cluster Volume group -func (o VolumeClusterOutput) Group() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.Group }).(pulumi.StringPtrOutput) -} - -// The ID of the cluster volume. -func (o VolumeClusterOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.Id }).(pulumi.StringPtrOutput) -} - -// Minimum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. -func (o VolumeClusterOutput) LimitBytes() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.LimitBytes }).(pulumi.StringPtrOutput) + }).(ServiceUpdateConfigPtrOutput) } -// Maximum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. -func (o VolumeClusterOutput) RequiredBytes() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.RequiredBytes }).(pulumi.StringPtrOutput) +// Delay between task updates `(ns|us|ms|s|m|h)`. Defaults to `0s`. +func (o ServiceUpdateConfigOutput) Delay() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.Delay }).(pulumi.StringPtrOutput) } -// The scope of the volume. Can be `single` (default) or `multi`. -func (o VolumeClusterOutput) Scope() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.Scope }).(pulumi.StringPtrOutput) +// Action on update failure: `pause`, `continue` or `rollback`. Defaults to `pause`. +func (o ServiceUpdateConfigOutput) FailureAction() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.FailureAction }).(pulumi.StringPtrOutput) } -// The sharing mode. Can be `none` (default), `readonly`, `onewriter` or `all`. -func (o VolumeClusterOutput) Sharing() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.Sharing }).(pulumi.StringPtrOutput) +// Failure rate to tolerate during an update. Defaults to `0.0`. +func (o ServiceUpdateConfigOutput) MaxFailureRatio() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.MaxFailureRatio }).(pulumi.StringPtrOutput) } -// A topology that the Cluster Volume would be preferred in -func (o VolumeClusterOutput) TopologyPreferred() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.TopologyPreferred }).(pulumi.StringPtrOutput) +// Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`. +func (o ServiceUpdateConfigOutput) Monitor() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.Monitor }).(pulumi.StringPtrOutput) } -// A topology that the Cluster Volume must be accessible from -func (o VolumeClusterOutput) TopologyRequired() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.TopologyRequired }).(pulumi.StringPtrOutput) +// Update order: either 'stop-first' or 'start-first'. Defaults to `stop-first`. +func (o ServiceUpdateConfigOutput) Order() pulumi.StringPtrOutput { + return o.ApplyT(func(v ServiceUpdateConfig) *string { return v.Order }).(pulumi.StringPtrOutput) } -// Cluster Volume access type. Can be `mount` or `block` (default). -func (o VolumeClusterOutput) Type() pulumi.StringPtrOutput { - return o.ApplyT(func(v VolumeCluster) *string { return v.Type }).(pulumi.StringPtrOutput) +// Maximum number of tasks to be updated in one iteration. Defaults to `1` +func (o ServiceUpdateConfigOutput) Parallelism() pulumi.IntPtrOutput { + return o.ApplyT(func(v ServiceUpdateConfig) *int { return v.Parallelism }).(pulumi.IntPtrOutput) } -type VolumeClusterPtrOutput struct{ *pulumi.OutputState } +type ServiceUpdateConfigPtrOutput struct{ *pulumi.OutputState } -func (VolumeClusterPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**VolumeCluster)(nil)).Elem() +func (ServiceUpdateConfigPtrOutput) ElementType() reflect.Type { + return reflect.TypeOf((**ServiceUpdateConfig)(nil)).Elem() } -func (o VolumeClusterPtrOutput) ToVolumeClusterPtrOutput() VolumeClusterPtrOutput { +func (o ServiceUpdateConfigPtrOutput) ToServiceUpdateConfigPtrOutput() ServiceUpdateConfigPtrOutput { return o } -func (o VolumeClusterPtrOutput) ToVolumeClusterPtrOutputWithContext(ctx context.Context) VolumeClusterPtrOutput { +func (o ServiceUpdateConfigPtrOutput) ToServiceUpdateConfigPtrOutputWithContext(ctx context.Context) ServiceUpdateConfigPtrOutput { return o } -func (o VolumeClusterPtrOutput) Elem() VolumeClusterOutput { - return o.ApplyT(func(v *VolumeCluster) VolumeCluster { +func (o ServiceUpdateConfigPtrOutput) Elem() ServiceUpdateConfigOutput { + return o.ApplyT(func(v *ServiceUpdateConfig) ServiceUpdateConfig { if v != nil { return *v } - var ret VolumeCluster + var ret ServiceUpdateConfig return ret - }).(VolumeClusterOutput) -} - -// Availability of the volume. Can be `active` (default), `pause`, or `drain`. -func (o VolumeClusterPtrOutput) Availability() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { - if v == nil { - return nil - } - return v.Availability - }).(pulumi.StringPtrOutput) -} - -// Cluster Volume group -func (o VolumeClusterPtrOutput) Group() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { - if v == nil { - return nil - } - return v.Group - }).(pulumi.StringPtrOutput) -} - -// The ID of the cluster volume. -func (o VolumeClusterPtrOutput) Id() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { - if v == nil { - return nil - } - return v.Id - }).(pulumi.StringPtrOutput) -} - -// Minimum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. -func (o VolumeClusterPtrOutput) LimitBytes() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { - if v == nil { - return nil - } - return v.LimitBytes - }).(pulumi.StringPtrOutput) + }).(ServiceUpdateConfigOutput) } -// Maximum size of the Cluster Volume in human readable memory bytes (like 128MiB, 2GiB, etc). Must be in format of KiB, MiB, Gib, Tib or PiB. -func (o VolumeClusterPtrOutput) RequiredBytes() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { +// Delay between task updates `(ns|us|ms|s|m|h)`. Defaults to `0s`. +func (o ServiceUpdateConfigPtrOutput) Delay() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ServiceUpdateConfig) *string { if v == nil { return nil } - return v.RequiredBytes + return v.Delay }).(pulumi.StringPtrOutput) } -// The scope of the volume. Can be `single` (default) or `multi`. -func (o VolumeClusterPtrOutput) Scope() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { +// Action on update failure: `pause`, `continue` or `rollback`. Defaults to `pause`. +func (o ServiceUpdateConfigPtrOutput) FailureAction() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ServiceUpdateConfig) *string { if v == nil { return nil } - return v.Scope + return v.FailureAction }).(pulumi.StringPtrOutput) } -// The sharing mode. Can be `none` (default), `readonly`, `onewriter` or `all`. -func (o VolumeClusterPtrOutput) Sharing() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { +// Failure rate to tolerate during an update. Defaults to `0.0`. +func (o ServiceUpdateConfigPtrOutput) MaxFailureRatio() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ServiceUpdateConfig) *string { if v == nil { return nil } - return v.Sharing + return v.MaxFailureRatio }).(pulumi.StringPtrOutput) } -// A topology that the Cluster Volume would be preferred in -func (o VolumeClusterPtrOutput) TopologyPreferred() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { +// Duration after each task update to monitor for failure (ns|us|ms|s|m|h). Defaults to `5s`. +func (o ServiceUpdateConfigPtrOutput) Monitor() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ServiceUpdateConfig) *string { if v == nil { return nil } - return v.TopologyPreferred + return v.Monitor }).(pulumi.StringPtrOutput) } -// A topology that the Cluster Volume must be accessible from -func (o VolumeClusterPtrOutput) TopologyRequired() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { +// Update order: either 'stop-first' or 'start-first'. Defaults to `stop-first`. +func (o ServiceUpdateConfigPtrOutput) Order() pulumi.StringPtrOutput { + return o.ApplyT(func(v *ServiceUpdateConfig) *string { if v == nil { return nil } - return v.TopologyRequired + return v.Order }).(pulumi.StringPtrOutput) } -// Cluster Volume access type. Can be `mount` or `block` (default). -func (o VolumeClusterPtrOutput) Type() pulumi.StringPtrOutput { - return o.ApplyT(func(v *VolumeCluster) *string { +// Maximum number of tasks to be updated in one iteration. Defaults to `1` +func (o ServiceUpdateConfigPtrOutput) Parallelism() pulumi.IntPtrOutput { + return o.ApplyT(func(v *ServiceUpdateConfig) *int { if v == nil { return nil } - return v.Type - }).(pulumi.StringPtrOutput) + return v.Parallelism + }).(pulumi.IntPtrOutput) } type VolumeLabel struct { @@ -13923,305 +10397,6 @@ func (o GetNetworkIpamConfigArrayOutput) Index(i pulumi.IntInput) GetNetworkIpam }).(GetNetworkIpamConfigOutput) } -type GetRegistryImageManifestsAuthConfig struct { - // The address of the Docker registry. - Address string `pulumi:"address"` - // The password for the Docker registry. - Password string `pulumi:"password"` - // The username for the Docker registry. - Username string `pulumi:"username"` -} - -// GetRegistryImageManifestsAuthConfigInput is an input type that accepts GetRegistryImageManifestsAuthConfigArgs and GetRegistryImageManifestsAuthConfigOutput values. -// You can construct a concrete instance of `GetRegistryImageManifestsAuthConfigInput` via: -// -// GetRegistryImageManifestsAuthConfigArgs{...} -type GetRegistryImageManifestsAuthConfigInput interface { - pulumi.Input - - ToGetRegistryImageManifestsAuthConfigOutput() GetRegistryImageManifestsAuthConfigOutput - ToGetRegistryImageManifestsAuthConfigOutputWithContext(context.Context) GetRegistryImageManifestsAuthConfigOutput -} - -type GetRegistryImageManifestsAuthConfigArgs struct { - // The address of the Docker registry. - Address pulumi.StringInput `pulumi:"address"` - // The password for the Docker registry. - Password pulumi.StringInput `pulumi:"password"` - // The username for the Docker registry. - Username pulumi.StringInput `pulumi:"username"` -} - -func (GetRegistryImageManifestsAuthConfigArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetRegistryImageManifestsAuthConfig)(nil)).Elem() -} - -func (i GetRegistryImageManifestsAuthConfigArgs) ToGetRegistryImageManifestsAuthConfigOutput() GetRegistryImageManifestsAuthConfigOutput { - return i.ToGetRegistryImageManifestsAuthConfigOutputWithContext(context.Background()) -} - -func (i GetRegistryImageManifestsAuthConfigArgs) ToGetRegistryImageManifestsAuthConfigOutputWithContext(ctx context.Context) GetRegistryImageManifestsAuthConfigOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetRegistryImageManifestsAuthConfigOutput) -} - -func (i GetRegistryImageManifestsAuthConfigArgs) ToGetRegistryImageManifestsAuthConfigPtrOutput() GetRegistryImageManifestsAuthConfigPtrOutput { - return i.ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(context.Background()) -} - -func (i GetRegistryImageManifestsAuthConfigArgs) ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(ctx context.Context) GetRegistryImageManifestsAuthConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetRegistryImageManifestsAuthConfigOutput).ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(ctx) -} - -// GetRegistryImageManifestsAuthConfigPtrInput is an input type that accepts GetRegistryImageManifestsAuthConfigArgs, GetRegistryImageManifestsAuthConfigPtr and GetRegistryImageManifestsAuthConfigPtrOutput values. -// You can construct a concrete instance of `GetRegistryImageManifestsAuthConfigPtrInput` via: -// -// GetRegistryImageManifestsAuthConfigArgs{...} -// -// or: -// -// nil -type GetRegistryImageManifestsAuthConfigPtrInput interface { - pulumi.Input - - ToGetRegistryImageManifestsAuthConfigPtrOutput() GetRegistryImageManifestsAuthConfigPtrOutput - ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(context.Context) GetRegistryImageManifestsAuthConfigPtrOutput -} - -type getRegistryImageManifestsAuthConfigPtrType GetRegistryImageManifestsAuthConfigArgs - -func GetRegistryImageManifestsAuthConfigPtr(v *GetRegistryImageManifestsAuthConfigArgs) GetRegistryImageManifestsAuthConfigPtrInput { - return (*getRegistryImageManifestsAuthConfigPtrType)(v) -} - -func (*getRegistryImageManifestsAuthConfigPtrType) ElementType() reflect.Type { - return reflect.TypeOf((**GetRegistryImageManifestsAuthConfig)(nil)).Elem() -} - -func (i *getRegistryImageManifestsAuthConfigPtrType) ToGetRegistryImageManifestsAuthConfigPtrOutput() GetRegistryImageManifestsAuthConfigPtrOutput { - return i.ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(context.Background()) -} - -func (i *getRegistryImageManifestsAuthConfigPtrType) ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(ctx context.Context) GetRegistryImageManifestsAuthConfigPtrOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetRegistryImageManifestsAuthConfigPtrOutput) -} - -type GetRegistryImageManifestsAuthConfigOutput struct{ *pulumi.OutputState } - -func (GetRegistryImageManifestsAuthConfigOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetRegistryImageManifestsAuthConfig)(nil)).Elem() -} - -func (o GetRegistryImageManifestsAuthConfigOutput) ToGetRegistryImageManifestsAuthConfigOutput() GetRegistryImageManifestsAuthConfigOutput { - return o -} - -func (o GetRegistryImageManifestsAuthConfigOutput) ToGetRegistryImageManifestsAuthConfigOutputWithContext(ctx context.Context) GetRegistryImageManifestsAuthConfigOutput { - return o -} - -func (o GetRegistryImageManifestsAuthConfigOutput) ToGetRegistryImageManifestsAuthConfigPtrOutput() GetRegistryImageManifestsAuthConfigPtrOutput { - return o.ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(context.Background()) -} - -func (o GetRegistryImageManifestsAuthConfigOutput) ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(ctx context.Context) GetRegistryImageManifestsAuthConfigPtrOutput { - return o.ApplyTWithContext(ctx, func(_ context.Context, v GetRegistryImageManifestsAuthConfig) *GetRegistryImageManifestsAuthConfig { - return &v - }).(GetRegistryImageManifestsAuthConfigPtrOutput) -} - -// The address of the Docker registry. -func (o GetRegistryImageManifestsAuthConfigOutput) Address() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsAuthConfig) string { return v.Address }).(pulumi.StringOutput) -} - -// The password for the Docker registry. -func (o GetRegistryImageManifestsAuthConfigOutput) Password() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsAuthConfig) string { return v.Password }).(pulumi.StringOutput) -} - -// The username for the Docker registry. -func (o GetRegistryImageManifestsAuthConfigOutput) Username() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsAuthConfig) string { return v.Username }).(pulumi.StringOutput) -} - -type GetRegistryImageManifestsAuthConfigPtrOutput struct{ *pulumi.OutputState } - -func (GetRegistryImageManifestsAuthConfigPtrOutput) ElementType() reflect.Type { - return reflect.TypeOf((**GetRegistryImageManifestsAuthConfig)(nil)).Elem() -} - -func (o GetRegistryImageManifestsAuthConfigPtrOutput) ToGetRegistryImageManifestsAuthConfigPtrOutput() GetRegistryImageManifestsAuthConfigPtrOutput { - return o -} - -func (o GetRegistryImageManifestsAuthConfigPtrOutput) ToGetRegistryImageManifestsAuthConfigPtrOutputWithContext(ctx context.Context) GetRegistryImageManifestsAuthConfigPtrOutput { - return o -} - -func (o GetRegistryImageManifestsAuthConfigPtrOutput) Elem() GetRegistryImageManifestsAuthConfigOutput { - return o.ApplyT(func(v *GetRegistryImageManifestsAuthConfig) GetRegistryImageManifestsAuthConfig { - if v != nil { - return *v - } - var ret GetRegistryImageManifestsAuthConfig - return ret - }).(GetRegistryImageManifestsAuthConfigOutput) -} - -// The address of the Docker registry. -func (o GetRegistryImageManifestsAuthConfigPtrOutput) Address() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetRegistryImageManifestsAuthConfig) *string { - if v == nil { - return nil - } - return &v.Address - }).(pulumi.StringPtrOutput) -} - -// The password for the Docker registry. -func (o GetRegistryImageManifestsAuthConfigPtrOutput) Password() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetRegistryImageManifestsAuthConfig) *string { - if v == nil { - return nil - } - return &v.Password - }).(pulumi.StringPtrOutput) -} - -// The username for the Docker registry. -func (o GetRegistryImageManifestsAuthConfigPtrOutput) Username() pulumi.StringPtrOutput { - return o.ApplyT(func(v *GetRegistryImageManifestsAuthConfig) *string { - if v == nil { - return nil - } - return &v.Username - }).(pulumi.StringPtrOutput) -} - -type GetRegistryImageManifestsManifest struct { - // The platform architecture supported by the manifest. - Architecture string `pulumi:"architecture"` - // The media type of the manifest. - MediaType string `pulumi:"mediaType"` - // The operating system supported by the manifest. - Os string `pulumi:"os"` - // The content digest of the manifest, as stored in the registry. - Sha256Digest string `pulumi:"sha256Digest"` -} - -// GetRegistryImageManifestsManifestInput is an input type that accepts GetRegistryImageManifestsManifestArgs and GetRegistryImageManifestsManifestOutput values. -// You can construct a concrete instance of `GetRegistryImageManifestsManifestInput` via: -// -// GetRegistryImageManifestsManifestArgs{...} -type GetRegistryImageManifestsManifestInput interface { - pulumi.Input - - ToGetRegistryImageManifestsManifestOutput() GetRegistryImageManifestsManifestOutput - ToGetRegistryImageManifestsManifestOutputWithContext(context.Context) GetRegistryImageManifestsManifestOutput -} - -type GetRegistryImageManifestsManifestArgs struct { - // The platform architecture supported by the manifest. - Architecture pulumi.StringInput `pulumi:"architecture"` - // The media type of the manifest. - MediaType pulumi.StringInput `pulumi:"mediaType"` - // The operating system supported by the manifest. - Os pulumi.StringInput `pulumi:"os"` - // The content digest of the manifest, as stored in the registry. - Sha256Digest pulumi.StringInput `pulumi:"sha256Digest"` -} - -func (GetRegistryImageManifestsManifestArgs) ElementType() reflect.Type { - return reflect.TypeOf((*GetRegistryImageManifestsManifest)(nil)).Elem() -} - -func (i GetRegistryImageManifestsManifestArgs) ToGetRegistryImageManifestsManifestOutput() GetRegistryImageManifestsManifestOutput { - return i.ToGetRegistryImageManifestsManifestOutputWithContext(context.Background()) -} - -func (i GetRegistryImageManifestsManifestArgs) ToGetRegistryImageManifestsManifestOutputWithContext(ctx context.Context) GetRegistryImageManifestsManifestOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetRegistryImageManifestsManifestOutput) -} - -// GetRegistryImageManifestsManifestArrayInput is an input type that accepts GetRegistryImageManifestsManifestArray and GetRegistryImageManifestsManifestArrayOutput values. -// You can construct a concrete instance of `GetRegistryImageManifestsManifestArrayInput` via: -// -// GetRegistryImageManifestsManifestArray{ GetRegistryImageManifestsManifestArgs{...} } -type GetRegistryImageManifestsManifestArrayInput interface { - pulumi.Input - - ToGetRegistryImageManifestsManifestArrayOutput() GetRegistryImageManifestsManifestArrayOutput - ToGetRegistryImageManifestsManifestArrayOutputWithContext(context.Context) GetRegistryImageManifestsManifestArrayOutput -} - -type GetRegistryImageManifestsManifestArray []GetRegistryImageManifestsManifestInput - -func (GetRegistryImageManifestsManifestArray) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetRegistryImageManifestsManifest)(nil)).Elem() -} - -func (i GetRegistryImageManifestsManifestArray) ToGetRegistryImageManifestsManifestArrayOutput() GetRegistryImageManifestsManifestArrayOutput { - return i.ToGetRegistryImageManifestsManifestArrayOutputWithContext(context.Background()) -} - -func (i GetRegistryImageManifestsManifestArray) ToGetRegistryImageManifestsManifestArrayOutputWithContext(ctx context.Context) GetRegistryImageManifestsManifestArrayOutput { - return pulumi.ToOutputWithContext(ctx, i).(GetRegistryImageManifestsManifestArrayOutput) -} - -type GetRegistryImageManifestsManifestOutput struct{ *pulumi.OutputState } - -func (GetRegistryImageManifestsManifestOutput) ElementType() reflect.Type { - return reflect.TypeOf((*GetRegistryImageManifestsManifest)(nil)).Elem() -} - -func (o GetRegistryImageManifestsManifestOutput) ToGetRegistryImageManifestsManifestOutput() GetRegistryImageManifestsManifestOutput { - return o -} - -func (o GetRegistryImageManifestsManifestOutput) ToGetRegistryImageManifestsManifestOutputWithContext(ctx context.Context) GetRegistryImageManifestsManifestOutput { - return o -} - -// The platform architecture supported by the manifest. -func (o GetRegistryImageManifestsManifestOutput) Architecture() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsManifest) string { return v.Architecture }).(pulumi.StringOutput) -} - -// The media type of the manifest. -func (o GetRegistryImageManifestsManifestOutput) MediaType() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsManifest) string { return v.MediaType }).(pulumi.StringOutput) -} - -// The operating system supported by the manifest. -func (o GetRegistryImageManifestsManifestOutput) Os() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsManifest) string { return v.Os }).(pulumi.StringOutput) -} - -// The content digest of the manifest, as stored in the registry. -func (o GetRegistryImageManifestsManifestOutput) Sha256Digest() pulumi.StringOutput { - return o.ApplyT(func(v GetRegistryImageManifestsManifest) string { return v.Sha256Digest }).(pulumi.StringOutput) -} - -type GetRegistryImageManifestsManifestArrayOutput struct{ *pulumi.OutputState } - -func (GetRegistryImageManifestsManifestArrayOutput) ElementType() reflect.Type { - return reflect.TypeOf((*[]GetRegistryImageManifestsManifest)(nil)).Elem() -} - -func (o GetRegistryImageManifestsManifestArrayOutput) ToGetRegistryImageManifestsManifestArrayOutput() GetRegistryImageManifestsManifestArrayOutput { - return o -} - -func (o GetRegistryImageManifestsManifestArrayOutput) ToGetRegistryImageManifestsManifestArrayOutputWithContext(ctx context.Context) GetRegistryImageManifestsManifestArrayOutput { - return o -} - -func (o GetRegistryImageManifestsManifestArrayOutput) Index(i pulumi.IntInput) GetRegistryImageManifestsManifestOutput { - return pulumi.All(o, i).ApplyT(func(vs []interface{}) GetRegistryImageManifestsManifest { - return vs[0].([]GetRegistryImageManifestsManifest)[vs[1].(int)] - }).(GetRegistryImageManifestsManifestOutput) -} - // Describes a Docker container registry type Registry struct { // The password to authenticate to the registry. Does not cause image rebuild when changed. @@ -14401,18 +10576,6 @@ func (o RegistryPtrOutput) Username() pulumi.StringPtrOutput { } func init() { - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderDockerContainerInput)(nil)).Elem(), BuildxBuilderDockerContainerArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderDockerContainerPtrInput)(nil)).Elem(), BuildxBuilderDockerContainerArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesInput)(nil)).Elem(), BuildxBuilderKubernetesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesPtrInput)(nil)).Elem(), BuildxBuilderKubernetesArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesLimitsInput)(nil)).Elem(), BuildxBuilderKubernetesLimitsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesLimitsPtrInput)(nil)).Elem(), BuildxBuilderKubernetesLimitsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesQemuInput)(nil)).Elem(), BuildxBuilderKubernetesQemuArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesQemuPtrInput)(nil)).Elem(), BuildxBuilderKubernetesQemuArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesRequestsInput)(nil)).Elem(), BuildxBuilderKubernetesRequestsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderKubernetesRequestsPtrInput)(nil)).Elem(), BuildxBuilderKubernetesRequestsArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderRemoteInput)(nil)).Elem(), BuildxBuilderRemoteArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*BuildxBuilderRemotePtrInput)(nil)).Elem(), BuildxBuilderRemoteArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ContainerCapabilitiesInput)(nil)).Elem(), ContainerCapabilitiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ContainerCapabilitiesPtrInput)(nil)).Elem(), ContainerCapabilitiesArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ContainerDeviceInput)(nil)).Elem(), ContainerDeviceArgs{}) @@ -14453,22 +10616,10 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*PluginGrantPermissionArrayInput)(nil)).Elem(), PluginGrantPermissionArray{}) pulumi.RegisterInputType(reflect.TypeOf((*ProviderRegistryAuthInput)(nil)).Elem(), ProviderRegistryAuthArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ProviderRegistryAuthArrayInput)(nil)).Elem(), ProviderRegistryAuthArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageAuthConfigInput)(nil)).Elem(), RegistryImageAuthConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageAuthConfigPtrInput)(nil)).Elem(), RegistryImageAuthConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildInput)(nil)).Elem(), RegistryImageBuildArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildPtrInput)(nil)).Elem(), RegistryImageBuildArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildAuthConfigInput)(nil)).Elem(), RegistryImageBuildAuthConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildAuthConfigArrayInput)(nil)).Elem(), RegistryImageBuildAuthConfigArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildSecretInput)(nil)).Elem(), RegistryImageBuildSecretArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildSecretArrayInput)(nil)).Elem(), RegistryImageBuildSecretArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildUlimitInput)(nil)).Elem(), RegistryImageBuildUlimitArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RegistryImageBuildUlimitArrayInput)(nil)).Elem(), RegistryImageBuildUlimitArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildInput)(nil)).Elem(), RemoteImageBuildArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildPtrInput)(nil)).Elem(), RemoteImageBuildArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildAuthConfigInput)(nil)).Elem(), RemoteImageBuildAuthConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildAuthConfigArrayInput)(nil)).Elem(), RemoteImageBuildAuthConfigArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildSecretInput)(nil)).Elem(), RemoteImageBuildSecretArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildSecretArrayInput)(nil)).Elem(), RemoteImageBuildSecretArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildUlimitInput)(nil)).Elem(), RemoteImageBuildUlimitArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RemoteImageBuildUlimitArrayInput)(nil)).Elem(), RemoteImageBuildUlimitArray{}) pulumi.RegisterInputType(reflect.TypeOf((*SecretLabelInput)(nil)).Elem(), SecretLabelArgs{}) @@ -14541,8 +10692,6 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*ServiceTaskSpecRestartPolicyPtrInput)(nil)).Elem(), ServiceTaskSpecRestartPolicyArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceUpdateConfigInput)(nil)).Elem(), ServiceUpdateConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*ServiceUpdateConfigPtrInput)(nil)).Elem(), ServiceUpdateConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*VolumeClusterInput)(nil)).Elem(), VolumeClusterArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*VolumeClusterPtrInput)(nil)).Elem(), VolumeClusterArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeLabelInput)(nil)).Elem(), VolumeLabelArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*VolumeLabelArrayInput)(nil)).Elem(), VolumeLabelArray{}) pulumi.RegisterInputType(reflect.TypeOf((*CacheFromInput)(nil)).Elem(), CacheFromArgs{}) @@ -14551,24 +10700,8 @@ func init() { pulumi.RegisterInputType(reflect.TypeOf((*DockerBuildPtrInput)(nil)).Elem(), DockerBuildArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetNetworkIpamConfigInput)(nil)).Elem(), GetNetworkIpamConfigArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*GetNetworkIpamConfigArrayInput)(nil)).Elem(), GetNetworkIpamConfigArray{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetRegistryImageManifestsAuthConfigInput)(nil)).Elem(), GetRegistryImageManifestsAuthConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetRegistryImageManifestsAuthConfigPtrInput)(nil)).Elem(), GetRegistryImageManifestsAuthConfigArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetRegistryImageManifestsManifestInput)(nil)).Elem(), GetRegistryImageManifestsManifestArgs{}) - pulumi.RegisterInputType(reflect.TypeOf((*GetRegistryImageManifestsManifestArrayInput)(nil)).Elem(), GetRegistryImageManifestsManifestArray{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryInput)(nil)).Elem(), RegistryArgs{}) pulumi.RegisterInputType(reflect.TypeOf((*RegistryPtrInput)(nil)).Elem(), RegistryArgs{}) - pulumi.RegisterOutputType(BuildxBuilderDockerContainerOutput{}) - pulumi.RegisterOutputType(BuildxBuilderDockerContainerPtrOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesPtrOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesLimitsOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesLimitsPtrOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesQemuOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesQemuPtrOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesRequestsOutput{}) - pulumi.RegisterOutputType(BuildxBuilderKubernetesRequestsPtrOutput{}) - pulumi.RegisterOutputType(BuildxBuilderRemoteOutput{}) - pulumi.RegisterOutputType(BuildxBuilderRemotePtrOutput{}) pulumi.RegisterOutputType(ContainerCapabilitiesOutput{}) pulumi.RegisterOutputType(ContainerCapabilitiesPtrOutput{}) pulumi.RegisterOutputType(ContainerDeviceOutput{}) @@ -14609,22 +10742,10 @@ func init() { pulumi.RegisterOutputType(PluginGrantPermissionArrayOutput{}) pulumi.RegisterOutputType(ProviderRegistryAuthOutput{}) pulumi.RegisterOutputType(ProviderRegistryAuthArrayOutput{}) - pulumi.RegisterOutputType(RegistryImageAuthConfigOutput{}) - pulumi.RegisterOutputType(RegistryImageAuthConfigPtrOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildPtrOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildAuthConfigOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildAuthConfigArrayOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildSecretOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildSecretArrayOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildUlimitOutput{}) - pulumi.RegisterOutputType(RegistryImageBuildUlimitArrayOutput{}) pulumi.RegisterOutputType(RemoteImageBuildOutput{}) pulumi.RegisterOutputType(RemoteImageBuildPtrOutput{}) pulumi.RegisterOutputType(RemoteImageBuildAuthConfigOutput{}) pulumi.RegisterOutputType(RemoteImageBuildAuthConfigArrayOutput{}) - pulumi.RegisterOutputType(RemoteImageBuildSecretOutput{}) - pulumi.RegisterOutputType(RemoteImageBuildSecretArrayOutput{}) pulumi.RegisterOutputType(RemoteImageBuildUlimitOutput{}) pulumi.RegisterOutputType(RemoteImageBuildUlimitArrayOutput{}) pulumi.RegisterOutputType(SecretLabelOutput{}) @@ -14697,8 +10818,6 @@ func init() { pulumi.RegisterOutputType(ServiceTaskSpecRestartPolicyPtrOutput{}) pulumi.RegisterOutputType(ServiceUpdateConfigOutput{}) pulumi.RegisterOutputType(ServiceUpdateConfigPtrOutput{}) - pulumi.RegisterOutputType(VolumeClusterOutput{}) - pulumi.RegisterOutputType(VolumeClusterPtrOutput{}) pulumi.RegisterOutputType(VolumeLabelOutput{}) pulumi.RegisterOutputType(VolumeLabelArrayOutput{}) pulumi.RegisterOutputType(CacheFromOutput{}) @@ -14707,10 +10826,6 @@ func init() { pulumi.RegisterOutputType(DockerBuildPtrOutput{}) pulumi.RegisterOutputType(GetNetworkIpamConfigOutput{}) pulumi.RegisterOutputType(GetNetworkIpamConfigArrayOutput{}) - pulumi.RegisterOutputType(GetRegistryImageManifestsAuthConfigOutput{}) - pulumi.RegisterOutputType(GetRegistryImageManifestsAuthConfigPtrOutput{}) - pulumi.RegisterOutputType(GetRegistryImageManifestsManifestOutput{}) - pulumi.RegisterOutputType(GetRegistryImageManifestsManifestArrayOutput{}) pulumi.RegisterOutputType(RegistryOutput{}) pulumi.RegisterOutputType(RegistryPtrOutput{}) } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/registryImage.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/registryImage.go index 96ab77176..129a8346f 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/registryImage.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/registryImage.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -13,58 +13,9 @@ import ( // // Manages the lifecycle of docker image in a registry. You can upload images to a registry (= `docker push`) and also delete them again -// -// ## Example Usage -// -// Build an image with the `RemoteImage` resource and then push it to a registry: -// -// ```go -// package main -// -// import ( -// -// "os" -// -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// image, err := docker.NewRemoteImage(ctx, "image", &docker.RemoteImageArgs{ -// Name: pulumi.String("registry.com/somename:1.0"), -// Build: &docker.RemoteImageBuildArgs{ -// Context: pulumi.Sprintf("%v/absolutePathToContextFolder", func(cwd string, err error) string { -// if err != nil { -// panic(err) -// } -// return cwd -// }(os.Getwd())), -// }, -// }) -// if err != nil { -// return err -// } -// _, err = docker.NewRegistryImage(ctx, "helloworld", &docker.RegistryImageArgs{ -// Name: image.Name, -// KeepRemotely: pulumi.Bool(true), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` type RegistryImage struct { pulumi.CustomResourceState - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig RegistryImageAuthConfigPtrOutput `pulumi:"authConfig"` - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. - Build RegistryImageBuildPtrOutput `pulumi:"build"` // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify pulumi.BoolPtrOutput `pulumi:"insecureSkipVerify"` // If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false` @@ -107,10 +58,6 @@ func GetRegistryImage(ctx *pulumi.Context, // Input properties used for looking up and filtering RegistryImage resources. type registryImageState struct { - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig *RegistryImageAuthConfig `pulumi:"authConfig"` - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. - Build *RegistryImageBuild `pulumi:"build"` // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify *bool `pulumi:"insecureSkipVerify"` // If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false` @@ -124,10 +71,6 @@ type registryImageState struct { } type RegistryImageState struct { - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig RegistryImageAuthConfigPtrInput - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. - Build RegistryImageBuildPtrInput // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify pulumi.BoolPtrInput // If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false` @@ -145,10 +88,6 @@ func (RegistryImageState) ElementType() reflect.Type { } type registryImageArgs struct { - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig *RegistryImageAuthConfig `pulumi:"authConfig"` - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. - Build *RegistryImageBuild `pulumi:"build"` // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify *bool `pulumi:"insecureSkipVerify"` // If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false` @@ -161,10 +100,6 @@ type registryImageArgs struct { // The set of arguments for constructing a RegistryImage resource. type RegistryImageArgs struct { - // Authentication configuration for the Docker registry. It is only used for this resource. - AuthConfig RegistryImageAuthConfigPtrInput - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. - Build RegistryImageBuildPtrInput // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` InsecureSkipVerify pulumi.BoolPtrInput // If true, then the Docker image won't be deleted on destroy operation. If this is false, it will delete the image from the docker registry on destroy operation. Defaults to `false` @@ -262,16 +197,6 @@ func (o RegistryImageOutput) ToRegistryImageOutputWithContext(ctx context.Contex return o } -// Authentication configuration for the Docker registry. It is only used for this resource. -func (o RegistryImageOutput) AuthConfig() RegistryImageAuthConfigPtrOutput { - return o.ApplyT(func(v *RegistryImage) RegistryImageAuthConfigPtrOutput { return v.AuthConfig }).(RegistryImageAuthConfigPtrOutput) -} - -// Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. -func (o RegistryImageOutput) Build() RegistryImageBuildPtrOutput { - return o.ApplyT(func(v *RegistryImage) RegistryImageBuildPtrOutput { return v.Build }).(RegistryImageBuildPtrOutput) -} - // If `true`, the verification of TLS certificates of the server/registry is disabled. Defaults to `false` func (o RegistryImageOutput) InsecureSkipVerify() pulumi.BoolPtrOutput { return o.ApplyT(func(v *RegistryImage) pulumi.BoolPtrOutput { return v.InsecureSkipVerify }).(pulumi.BoolPtrOutput) diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/remoteImage.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/remoteImage.go index b482640e2..80ed884ad 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/remoteImage.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/remoteImage.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -13,7 +13,7 @@ import ( ) // -// Manages the lifecycle of a docker image in your docker host. It can be used to build a new docker image or to pull an existing one from a registry. +// Pulls a Docker image to a given Docker host from a Docker Registry. // // This resource will *not* pull new layers of the image automatically unless used in conjunction with RegistryImage data source to update the `pullTriggers` field. // @@ -72,9 +72,9 @@ import ( // return err // } // _, err = docker.NewRemoteImage(ctx, "ubuntu", &docker.RemoteImageArgs{ -// Name: pulumi.String(pulumi.String(ubuntu.Name)), +// Name: pulumi.String(ubuntu.Name), // PullTriggers: pulumi.StringArray{ -// pulumi.String(pulumi.String(ubuntu.Sha256Digest)), +// pulumi.String(ubuntu.Sha256Digest), // }, // }) // if err != nil { @@ -88,13 +88,8 @@ import ( // // ### Build // -// You can also use the resource to build an image. If you want to use a buildx builder with all of its features, please read the section below. -// -// > **Note**: The default timeout for the building is 20 minutes. If you need to increase this, you can use operation timeouts. -// +// You can also use the resource to build an image. // In this case the image "zoo" and "zoo:develop" are built. -// The `context` and `dockerfile` arguments are relative to the local Terraform process (`path.cwd`). -// There is no need to copy the files to remote hosts before creating the resource. // // ```go // package main @@ -115,7 +110,7 @@ import ( // Tags: pulumi.StringArray{ // pulumi.String("zoo:develop"), // }, -// BuildArgs: pulumi.StringMap{ +// BuildArg: pulumi.StringMap{ // "foo": pulumi.String("zoo"), // }, // Label: pulumi.StringMap{ @@ -136,7 +131,7 @@ import ( type RemoteImage struct { pulumi.CustomResourceState - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. + // Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. Build RemoteImageBuildPtrOutput `pulumi:"build"` // If true, then the image is removed forcibly when the resource is destroyed. ForceRemove pulumi.BoolPtrOutput `pulumi:"forceRemove"` @@ -150,7 +145,7 @@ type RemoteImage struct { Platform pulumi.StringPtrOutput `pulumi:"platform"` // List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image. PullTriggers pulumi.StringArrayOutput `pulumi:"pullTriggers"` - // The image sha256 digest in the form of `repo[:tag]@sha256:`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run. + // The image sha256 digest in the form of `repo[:tag]@sha256:`. RepoDigest pulumi.StringOutput `pulumi:"repoDigest"` // A map of arbitrary strings that, when changed, will force the `RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change Triggers pulumi.StringMapOutput `pulumi:"triggers"` @@ -189,7 +184,7 @@ func GetRemoteImage(ctx *pulumi.Context, // Input properties used for looking up and filtering RemoteImage resources. type remoteImageState struct { - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. + // Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. Build *RemoteImageBuild `pulumi:"build"` // If true, then the image is removed forcibly when the resource is destroyed. ForceRemove *bool `pulumi:"forceRemove"` @@ -203,14 +198,14 @@ type remoteImageState struct { Platform *string `pulumi:"platform"` // List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image. PullTriggers []string `pulumi:"pullTriggers"` - // The image sha256 digest in the form of `repo[:tag]@sha256:`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run. + // The image sha256 digest in the form of `repo[:tag]@sha256:`. RepoDigest *string `pulumi:"repoDigest"` // A map of arbitrary strings that, when changed, will force the `RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change Triggers map[string]string `pulumi:"triggers"` } type RemoteImageState struct { - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. + // Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. Build RemoteImageBuildPtrInput // If true, then the image is removed forcibly when the resource is destroyed. ForceRemove pulumi.BoolPtrInput @@ -224,7 +219,7 @@ type RemoteImageState struct { Platform pulumi.StringPtrInput // List of values which cause an image pull when changed. This is used to store the image digest from the registry when using the docker*registry*image. PullTriggers pulumi.StringArrayInput - // The image sha256 digest in the form of `repo[:tag]@sha256:`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run. + // The image sha256 digest in the form of `repo[:tag]@sha256:`. RepoDigest pulumi.StringPtrInput // A map of arbitrary strings that, when changed, will force the `RemoteImage` resource to be replaced. This can be used to rebuild an image when contents of source code folders change Triggers pulumi.StringMapInput @@ -235,7 +230,7 @@ func (RemoteImageState) ElementType() reflect.Type { } type remoteImageArgs struct { - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. + // Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. Build *RemoteImageBuild `pulumi:"build"` // If true, then the image is removed forcibly when the resource is destroyed. ForceRemove *bool `pulumi:"forceRemove"` @@ -253,7 +248,7 @@ type remoteImageArgs struct { // The set of arguments for constructing a RemoteImage resource. type RemoteImageArgs struct { - // Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. + // Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. Build RemoteImageBuildPtrInput // If true, then the image is removed forcibly when the resource is destroyed. ForceRemove pulumi.BoolPtrInput @@ -356,7 +351,7 @@ func (o RemoteImageOutput) ToRemoteImageOutputWithContext(ctx context.Context) R return o } -// Configuration to build an image. Requires the `Use containerd for pulling and storing images` option to be disabled in the Docker Host(https://github.com/kreuzwerker/terraform-provider-docker/issues/534). Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. +// Configuration to build an image. Please see [docker build command reference](https://docs.docker.com/engine/reference/commandline/build/#options) too. func (o RemoteImageOutput) Build() RemoteImageBuildPtrOutput { return o.ApplyT(func(v *RemoteImage) RemoteImageBuildPtrOutput { return v.Build }).(RemoteImageBuildPtrOutput) } @@ -391,7 +386,7 @@ func (o RemoteImageOutput) PullTriggers() pulumi.StringArrayOutput { return o.ApplyT(func(v *RemoteImage) pulumi.StringArrayOutput { return v.PullTriggers }).(pulumi.StringArrayOutput) } -// The image sha256 digest in the form of `repo[:tag]@sha256:`. This may not be populated when building an image, because it is read from the local Docker client and so may be available only when the image was either pulled from the repo or pushed to the repo (perhaps using `RegistryImage`) in a previous run. +// The image sha256 digest in the form of `repo[:tag]@sha256:`. func (o RemoteImageOutput) RepoDigest() pulumi.StringOutput { return o.ApplyT(func(v *RemoteImage) pulumi.StringOutput { return v.RepoDigest }).(pulumi.StringOutput) } diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/secret.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/secret.go index 85848956f..b00a252d4 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/secret.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/secret.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -12,52 +12,11 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// -// Manages the secrets of a Docker service in a swarm. -// -// ## Example Usage -// -// ### Basic -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi-std/sdk/go/std" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// invokeBase64encode, err := std.Base64encode(ctx, map[string]interface{}{ -// "input": "{\"foo\": \"s3cr3t\"}", -// }, nil) -// if err != nil { -// return err -// } -// _, err = docker.NewSecret(ctx, "foo", &docker.SecretArgs{ -// Name: pulumi.String("foo"), -// Data: invokeBase64encode.Result, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// // ## Import // -// ```sh // #!/bin/bash // -// # Docker secret cannot be imported as the secret data, once set, is never exposed again. -// ``` +// Docker secret cannot be imported as the secret data, once set, is never exposed again. type Secret struct { pulumi.CustomResourceState diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/service.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/service.go index e70ae469a..02b9cc4a5 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/service.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/service.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -12,425 +12,55 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// -// This resource manages the lifecycle of a Docker service. By default, the creation, update and delete of services are detached. -// -// With the Converge Config the behavior of the `docker cli` is imitated to guarantee tha for example, all tasks of a service are running or successfully updated or to inform `terraform` that a service could no be updated and was successfully rolled back. -// -// ## Example Usage -// -// ### Basic -// -// # The following configuration starts a Docker Service with -// -// - the given image, -// - 1 replica -// - exposes the port `8080` in `vip` mode to the host machine -// - moreover, uses the `container` runtime -// -// ```go -// package main -// -// import ( -// -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" -// -// ) -// -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := docker.NewService(ctx, "foo", &docker.ServiceArgs{ -// Name: pulumi.String("foo-service"), -// TaskSpec: &docker.ServiceTaskSpecArgs{ -// ContainerSpec: &docker.ServiceTaskSpecContainerSpecArgs{ -// Image: pulumi.String("repo.mycompany.com:8080/foo-service:v1"), -// }, -// }, -// EndpointSpec: &docker.ServiceEndpointSpecArgs{ -// Ports: docker.ServiceEndpointSpecPortArray{ -// &docker.ServiceEndpointSpecPortArgs{ -// TargetPort: pulumi.Int(8080), -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } -// -// ``` -// -// The following command is the equivalent: +// ## Import // -// ### Basic with Datasource +// ### Example // -// Alternatively, if the image is already present on the Docker Host and not managed -// by `terraform`, you can also use the `RemoteImage` datasource: +// # Assuming you created a `service` as follows // -// ```go -// package main +// #!/bin/bash // -// import ( +// docker service create --name foo -p 8080:80 nginx // -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// prints th ID // -// ) +// 4pcphbxkfn2rffhbhe6czytgi // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// foo, err := docker.LookupRemoteImage(ctx, &docker.LookupRemoteImageArgs{ -// Name: "repo.mycompany.com:8080/foo-service:v1", -// }, nil) -// if err != nil { -// return err -// } -// _, err = docker.NewService(ctx, "foo", &docker.ServiceArgs{ -// Name: pulumi.String("foo-service"), -// TaskSpec: &docker.ServiceTaskSpecArgs{ -// ContainerSpec: &docker.ServiceTaskSpecContainerSpecArgs{ -// Image: pulumi.String(foo.RepoDigest), -// }, -// }, -// EndpointSpec: &docker.ServiceEndpointSpecArgs{ -// Ports: docker.ServiceEndpointSpecPortArray{ -// &docker.ServiceEndpointSpecPortArgs{ -// TargetPort: pulumi.Int(8080), -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// you provide the definition for the resource as follows // -// ``` +// terraform // -// ### Advanced +// resource "docker_service" "foo" { // -// The following configuration shows the full capabilities of a Docker Service, -// with a `volume`, `config`, `secret` and `network` +// name = "foo" // -// ```go -// package main +// task_spec { // -// import ( +// container_spec { // -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// image = "nginx" // -// ) +// } // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// testVolume, err := docker.NewVolume(ctx, "test_volume", &docker.VolumeArgs{ -// Name: pulumi.String("tftest-volume"), -// }) -// if err != nil { -// return err -// } -// testVolume2, err := docker.NewVolume(ctx, "test_volume_2", &docker.VolumeArgs{ -// Name: pulumi.String("tftest-volume2"), -// }) -// if err != nil { -// return err -// } -// serviceConfig, err := docker.NewServiceConfig(ctx, "service_config", &docker.ServiceConfigArgs{ -// Name: pulumi.String("tftest-full-myconfig"), -// Data: pulumi.String("ewogICJwcmVmaXgiOiAiMTIzIgp9"), -// }) -// if err != nil { -// return err -// } -// serviceSecret, err := docker.NewSecret(ctx, "service_secret", &docker.SecretArgs{ -// Name: pulumi.String("tftest-mysecret"), -// Data: pulumi.String("ewogICJrZXkiOiAiUVdFUlRZIgp9"), -// }) -// if err != nil { -// return err -// } -// testNetwork, err := docker.NewNetwork(ctx, "test_network", &docker.NetworkArgs{ -// Name: pulumi.String("tftest-network"), -// Driver: pulumi.String("overlay"), -// }) -// if err != nil { -// return err -// } -// _, err = docker.NewService(ctx, "foo", &docker.ServiceArgs{ -// Name: pulumi.String("tftest-service-basic"), -// TaskSpec: &docker.ServiceTaskSpecArgs{ -// ContainerSpec: &docker.ServiceTaskSpecContainerSpecArgs{ -// Configs: docker.ServiceTaskSpecContainerSpecConfigArray{ -// &docker.ServiceTaskSpecContainerSpecConfigArgs{ -// ConfigId: serviceConfig.ID(), -// ConfigName: serviceConfig.Name, -// FileName: pulumi.String("/configs.json"), -// }, -// &docker.ServiceTaskSpecContainerSpecConfigArgs{}, -// }, -// Secrets: docker.ServiceTaskSpecContainerSpecSecretArray{ -// &docker.ServiceTaskSpecContainerSpecSecretArgs{ -// SecretId: serviceSecret.ID(), -// SecretName: serviceSecret.Name, -// FileName: pulumi.String("/secrets.json"), -// FileUid: pulumi.String("0"), -// FileGid: pulumi.String("0"), -// FileMode: pulumi.Int(777), -// }, -// &docker.ServiceTaskSpecContainerSpecSecretArgs{}, -// }, -// Image: pulumi.String("repo.mycompany.com:8080/foo-service:v1"), -// Labels: docker.ServiceTaskSpecContainerSpecLabelArray{ -// &docker.ServiceTaskSpecContainerSpecLabelArgs{ -// Label: pulumi.String("foo.bar"), -// Value: pulumi.String("baz"), -// }, -// }, -// Commands: pulumi.StringArray{ -// pulumi.String("ls"), -// }, -// Args: pulumi.StringArray{ -// pulumi.String("-las"), -// }, -// Hostname: pulumi.String("my-fancy-service"), -// Env: pulumi.StringMap{ -// "MYFOO": pulumi.String("BAR"), -// }, -// Dir: pulumi.String("/root"), -// User: pulumi.String("root"), -// Groups: pulumi.StringArray{ -// pulumi.String("docker"), -// pulumi.String("foogroup"), -// }, -// Privileges: &docker.ServiceTaskSpecContainerSpecPrivilegesArgs{ -// SeLinuxContext: &docker.ServiceTaskSpecContainerSpecPrivilegesSeLinuxContextArgs{ -// Disable: pulumi.Bool(true), -// User: pulumi.String("user-label"), -// Role: pulumi.String("role-label"), -// Type: pulumi.String("type-label"), -// Level: pulumi.String("level-label"), -// }, -// }, -// ReadOnly: pulumi.Bool(true), -// Mounts: docker.ServiceTaskSpecContainerSpecMountArray{ -// &docker.ServiceTaskSpecContainerSpecMountArgs{ -// Target: pulumi.String("/mount/test"), -// Source: testVolume.Name, -// Type: pulumi.String("bind"), -// ReadOnly: pulumi.Bool(true), -// BindOptions: &docker.ServiceTaskSpecContainerSpecMountBindOptionsArgs{ -// Propagation: pulumi.String("rprivate"), -// }, -// }, -// &docker.ServiceTaskSpecContainerSpecMountArgs{ -// Target: pulumi.String("/mount/test2"), -// Source: testVolume2.Name, -// Type: pulumi.String("volume"), -// ReadOnly: pulumi.Bool(true), -// VolumeOptions: &docker.ServiceTaskSpecContainerSpecMountVolumeOptionsArgs{ -// NoCopy: pulumi.Bool(true), -// Labels: docker.ServiceTaskSpecContainerSpecMountVolumeOptionsLabelArray{ -// &docker.ServiceTaskSpecContainerSpecMountVolumeOptionsLabelArgs{ -// Label: pulumi.String("foo"), -// Value: pulumi.String("bar"), -// }, -// }, -// DriverName: pulumi.String("random-driver"), -// DriverOptions: pulumi.StringMap{ -// "op1": pulumi.String("val1"), -// }, -// }, -// }, -// }, -// StopSignal: pulumi.String("SIGTERM"), -// StopGracePeriod: pulumi.String("10s"), -// Healthcheck: &docker.ServiceTaskSpecContainerSpecHealthcheckArgs{ -// Tests: pulumi.StringArray{ -// pulumi.String("CMD"), -// pulumi.String("curl"), -// pulumi.String("-f"), -// pulumi.String("http://localhost:8080/health"), -// }, -// Interval: pulumi.String("5s"), -// Timeout: pulumi.String("2s"), -// Retries: pulumi.Int(4), -// }, -// Hosts: docker.ServiceTaskSpecContainerSpecHostArray{ -// &docker.ServiceTaskSpecContainerSpecHostArgs{ -// Host: pulumi.String("testhost"), -// Ip: pulumi.String("10.0.1.0"), -// }, -// }, -// DnsConfig: &docker.ServiceTaskSpecContainerSpecDnsConfigArgs{ -// Nameservers: pulumi.StringArray{ -// pulumi.String("8.8.8.8"), -// }, -// Searches: pulumi.StringArray{ -// pulumi.String("example.org"), -// }, -// Options: pulumi.StringArray{ -// pulumi.String("timeout:3"), -// }, -// }, -// }, -// Resources: &docker.ServiceTaskSpecResourcesArgs{ -// Limits: &docker.ServiceTaskSpecResourcesLimitsArgs{ -// NanoCpus: pulumi.Int(1000000), -// MemoryBytes: pulumi.Int(536870912), -// }, -// Reservation: &docker.ServiceTaskSpecResourcesReservationArgs{ -// NanoCpus: pulumi.Int(1000000), -// MemoryBytes: pulumi.Int(536870912), -// GenericResources: &docker.ServiceTaskSpecResourcesReservationGenericResourcesArgs{ -// NamedResourcesSpecs: pulumi.StringArray{ -// pulumi.String("GPU=UUID1"), -// }, -// DiscreteResourcesSpecs: pulumi.StringArray{ -// pulumi.String("SSD=3"), -// }, -// }, -// }, -// }, -// RestartPolicy: map[string]interface{}{ -// "condition": "on-failure", -// "delay": "3s", -// "maxAttempts": 4, -// "window": "10s", -// }[0], -// Placement: &docker.ServiceTaskSpecPlacementArgs{ -// Constraints: pulumi.StringArray{ -// pulumi.String("node.role==manager"), -// }, -// Prefs: pulumi.StringArray{ -// pulumi.String("spread=node.role.manager"), -// }, -// MaxReplicas: pulumi.Int(1), -// }, -// ForceUpdate: pulumi.Int(0), -// Runtime: pulumi.String("container"), -// Networks: pulumi.StringArray{ -// testNetwork.ID(), -// }, -// LogDriver: &docker.ServiceTaskSpecLogDriverArgs{ -// Name: pulumi.String("json-file"), -// Options: pulumi.StringMap{ -// "max-size": pulumi.String("10m"), -// "max-file": pulumi.String("3"), -// }, -// }, -// }, -// Mode: &docker.ServiceModeArgs{ -// Replicated: &docker.ServiceModeReplicatedArgs{ -// Replicas: pulumi.Int(2), -// }, -// }, -// UpdateConfig: &docker.ServiceUpdateConfigArgs{ -// Parallelism: pulumi.Int(2), -// Delay: pulumi.String("10s"), -// FailureAction: pulumi.String("pause"), -// Monitor: pulumi.String("5s"), -// MaxFailureRatio: pulumi.String("0.1"), -// Order: pulumi.String("start-first"), -// }, -// RollbackConfig: &docker.ServiceRollbackConfigArgs{ -// Parallelism: pulumi.Int(2), -// Delay: pulumi.String("5ms"), -// FailureAction: pulumi.String("pause"), -// Monitor: pulumi.String("10h"), -// MaxFailureRatio: pulumi.String("0.9"), -// Order: pulumi.String("stop-first"), -// }, -// EndpointSpec: &docker.ServiceEndpointSpecArgs{ -// Ports: docker.ServiceEndpointSpecPortArray{ -// &docker.ServiceEndpointSpecPortArgs{ -// Name: pulumi.String("random"), -// Protocol: pulumi.String("tcp"), -// TargetPort: pulumi.Int(8080), -// PublishedPort: pulumi.Int(8080), -// PublishMode: pulumi.String("ingress"), -// }, -// &docker.ServiceEndpointSpecPortArgs{}, -// }, -// Mode: pulumi.String("vip"), -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) // } // -// ``` -// -// ## Import -// -// !/bin/bash -// -// ```sh -// $ pulumi import docker:index/service:Service foo id -// ``` -// -// ### Example -// -// # Assuming you created a `service` as follows +// endpoint_spec { // -// ```sh -// #!/bin/bash -// docker service create --name foo -p 8080:80 nginx -// # prints th ID -// 4pcphbxkfn2rffhbhe6czytgi -// ``` +// ports { // -// you provide the definition for the resource as follows -// -// ```go -// package main -// -// import ( +// target_port = "80" // -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// published_port = "8080" // -// ) +// } // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := docker.NewService(ctx, "foo", &docker.ServiceArgs{ -// Name: pulumi.String("foo"), -// TaskSpec: &docker.ServiceTaskSpecArgs{ -// ContainerSpec: &docker.ServiceTaskSpecContainerSpecArgs{ -// Image: pulumi.String("nginx"), -// }, -// }, -// EndpointSpec: &docker.ServiceEndpointSpecArgs{ -// Ports: docker.ServiceEndpointSpecPortArray{ -// &docker.ServiceEndpointSpecPortArgs{ -// TargetPort: pulumi.Int(80), -// PublishedPort: pulumi.Int(8080), -// }, -// }, -// }, -// }) -// if err != nil { -// return err -// } -// return nil -// }) // } // -// ``` +// } // // then the import command is as follows // -// !/bin/bash +// #!/bin/bash // // ```sh // $ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/serviceConfig.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/serviceConfig.go index 91059d26b..dce425657 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/serviceConfig.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/serviceConfig.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -12,57 +12,35 @@ import ( "github.com/pulumi/pulumi/sdk/v3/go/pulumi" ) -// -// Manages the configs of a Docker service in a swarm. -// -// ## Example Usage -// -// ### Basic -// -// ### Advanced -// ### Dynamically set config with a template -// In this example you can use the `${var.foo_port}` variable to dynamically -// set the `${port}` variable in the `foo.configs.json.tpl` template and create -// the data of the `fooConfig` with the help of the `base64encode` interpolation -// function. +// ## Import // -// The file `foo.config.json.tpl` has the following content: +// ### Example // -// and the resource uses it as follows: +// # Assuming you created a `config` as follows // -// ### Update config with no downtime -// To update a `config`, Terraform will destroy the existing resource and create a replacement. -// To effectively use a `ServiceConfig` resource with a `Service` resource, it's recommended +// #!/bin/bash // -// to specify `createBeforeDestroy` in a `lifecycle` block. Provide a unique `name` attribute, +// printf '{"a":"b"}' | docker config create foo - // -// for example with one of the interpolation functions `uuid` or `timestamp` as shown -// in the example below. The reason is this [issue](https://github.com/moby/moby/issues/35803). +// prints the id // -// ## Import +// 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d // -// !/bin/bash +// you provide the definition for the resource as follows // -// ```sh -// $ pulumi import docker:index/serviceConfig:ServiceConfig foo id -// ``` +// terraform // -// ### Example +// resource "docker_config" "foo" { // -// # Assuming you created a `config` as follows +// name = "foo" // -// ```sh -// #!/bin/bash -// printf '{"a":"b"}' | docker config create foo - -// # prints the id -// 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d -// ``` +// data = base64encode("{\"a\": \"b\"}") // -// you provide the definition for the resource as follows +// } // // then the import command is as follows // -// !/bin/bash +// #!/bin/bash // // ```sh // $ pulumi import docker:index/serviceConfig:ServiceConfig foo 08c26c477474478d971139f750984775a7f019dbe8a2e7f09d66a187c009e66d diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/tag.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/tag.go index ad57668f6..0b1aa1ea2 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/tag.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/tag.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -20,8 +20,6 @@ type Tag struct { SourceImage pulumi.StringOutput `pulumi:"sourceImage"` // ImageID of the source image in the format of `sha256:<>` SourceImageId pulumi.StringOutput `pulumi:"sourceImageId"` - // List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes. - TagTriggers pulumi.StringArrayOutput `pulumi:"tagTriggers"` // Name of the target image. TargetImage pulumi.StringOutput `pulumi:"targetImage"` } @@ -66,8 +64,6 @@ type tagState struct { SourceImage *string `pulumi:"sourceImage"` // ImageID of the source image in the format of `sha256:<>` SourceImageId *string `pulumi:"sourceImageId"` - // List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes. - TagTriggers []string `pulumi:"tagTriggers"` // Name of the target image. TargetImage *string `pulumi:"targetImage"` } @@ -77,8 +73,6 @@ type TagState struct { SourceImage pulumi.StringPtrInput // ImageID of the source image in the format of `sha256:<>` SourceImageId pulumi.StringPtrInput - // List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes. - TagTriggers pulumi.StringArrayInput // Name of the target image. TargetImage pulumi.StringPtrInput } @@ -90,8 +84,6 @@ func (TagState) ElementType() reflect.Type { type tagArgs struct { // Name of the source image. SourceImage string `pulumi:"sourceImage"` - // List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes. - TagTriggers []string `pulumi:"tagTriggers"` // Name of the target image. TargetImage string `pulumi:"targetImage"` } @@ -100,8 +92,6 @@ type tagArgs struct { type TagArgs struct { // Name of the source image. SourceImage pulumi.StringInput - // List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes. - TagTriggers pulumi.StringArrayInput // Name of the target image. TargetImage pulumi.StringInput } @@ -203,11 +193,6 @@ func (o TagOutput) SourceImageId() pulumi.StringOutput { return o.ApplyT(func(v *Tag) pulumi.StringOutput { return v.SourceImageId }).(pulumi.StringOutput) } -// List of values which cause the tag to be (re)created. This is useful for triggering a new tag when the source image changes. -func (o TagOutput) TagTriggers() pulumi.StringArrayOutput { - return o.ApplyT(func(v *Tag) pulumi.StringArrayOutput { return v.TagTriggers }).(pulumi.StringArrayOutput) -} - // Name of the target image. func (o TagOutput) TargetImage() pulumi.StringOutput { return o.ApplyT(func(v *Tag) pulumi.StringOutput { return v.TargetImage }).(pulumi.StringOutput) diff --git a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/volume.go b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/volume.go index 4ebb39dc1..3252a0da5 100644 --- a/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/volume.go +++ b/vendor/github.com/pulumi/pulumi-docker/sdk/v4/go/docker/volume.go @@ -1,4 +1,4 @@ -// Code generated by pulumi-language-go DO NOT EDIT. +// Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** package docker @@ -42,52 +42,31 @@ import ( // // ## Import // -// !/bin/bash -// -// ```sh -// $ pulumi import docker:index/volume:Volume foo id -// ``` -// // ### Example // // # Assuming you created a `volume` as follows // -// ```sh // #!/bin/bash +// // docker volume create -// # prints the long ID -// 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d -// ``` // -// you provide the definition for the resource as follows +// prints the long ID // -// ```go -// package main +// 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d // -// import ( +// you provide the definition for the resource as follows // -// "github.com/pulumi/pulumi-docker/sdk/v4/go/docker" -// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// terraform // -// ) +// resource "docker_volume" "foo" { // -// func main() { -// pulumi.Run(func(ctx *pulumi.Context) error { -// _, err := docker.NewVolume(ctx, "foo", &docker.VolumeArgs{ -// Name: pulumi.String("524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d"), -// }) -// if err != nil { -// return err -// } -// return nil -// }) -// } +// name = "524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d" // -// ``` +// } // // then the import command is as follows // -// !/bin/bash +// #!/bin/bash // // ```sh // $ pulumi import docker:index/volume:Volume foo 524b0457aa2a87dd2b75c74c3e4e53f406974249e63ab3ed9bf21e5644f9dc7d @@ -95,8 +74,6 @@ import ( type Volume struct { pulumi.CustomResourceState - // Cluster-specific options for volume creation. Only works if the Docker daemon is running in swarm mode and is the swarm manager. - Cluster VolumeClusterPtrOutput `pulumi:"cluster"` // Driver type for the volume. Defaults to `local`. Driver pulumi.StringOutput `pulumi:"driver"` // Options specific to the driver. @@ -139,8 +116,6 @@ func GetVolume(ctx *pulumi.Context, // Input properties used for looking up and filtering Volume resources. type volumeState struct { - // Cluster-specific options for volume creation. Only works if the Docker daemon is running in swarm mode and is the swarm manager. - Cluster *VolumeCluster `pulumi:"cluster"` // Driver type for the volume. Defaults to `local`. Driver *string `pulumi:"driver"` // Options specific to the driver. @@ -154,8 +129,6 @@ type volumeState struct { } type VolumeState struct { - // Cluster-specific options for volume creation. Only works if the Docker daemon is running in swarm mode and is the swarm manager. - Cluster VolumeClusterPtrInput // Driver type for the volume. Defaults to `local`. Driver pulumi.StringPtrInput // Options specific to the driver. @@ -173,8 +146,6 @@ func (VolumeState) ElementType() reflect.Type { } type volumeArgs struct { - // Cluster-specific options for volume creation. Only works if the Docker daemon is running in swarm mode and is the swarm manager. - Cluster *VolumeCluster `pulumi:"cluster"` // Driver type for the volume. Defaults to `local`. Driver *string `pulumi:"driver"` // Options specific to the driver. @@ -187,8 +158,6 @@ type volumeArgs struct { // The set of arguments for constructing a Volume resource. type VolumeArgs struct { - // Cluster-specific options for volume creation. Only works if the Docker daemon is running in swarm mode and is the swarm manager. - Cluster VolumeClusterPtrInput // Driver type for the volume. Defaults to `local`. Driver pulumi.StringPtrInput // Options specific to the driver. @@ -286,11 +255,6 @@ func (o VolumeOutput) ToVolumeOutputWithContext(ctx context.Context) VolumeOutpu return o } -// Cluster-specific options for volume creation. Only works if the Docker daemon is running in swarm mode and is the swarm manager. -func (o VolumeOutput) Cluster() VolumeClusterPtrOutput { - return o.ApplyT(func(v *Volume) VolumeClusterPtrOutput { return v.Cluster }).(VolumeClusterPtrOutput) -} - // Driver type for the volume. Defaults to `local`. func (o VolumeOutput) Driver() pulumi.StringOutput { return o.ApplyT(func(v *Volume) pulumi.StringOutput { return v.Driver }).(pulumi.StringOutput) diff --git a/vendor/modules.txt b/vendor/modules.txt index 7767622ad..016e2325c 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -924,8 +924,8 @@ github.com/pulumi/pulumi-command/sdk/go/command/remote ## explicit; go 1.25.8 github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal -# github.com/pulumi/pulumi-docker/sdk/v4 v4.11.2 -## explicit; go 1.25.6 +# github.com/pulumi/pulumi-docker/sdk/v4 v4.5.8 +## explicit; go 1.21 github.com/pulumi/pulumi-docker/sdk/v4/go/docker github.com/pulumi/pulumi-docker/sdk/v4/go/docker/internal # github.com/pulumi/pulumi-gitlab/sdk/v8 v8.11.0