Initial provider implementation (#18)
This brings over the initial buildx prototype from pulumi/pulumi-docker and fixes various build and release issues.
This commit is contained in:
28
sdk/go/dockerbuild/config/config.go
generated
Normal file
28
sdk/go/dockerbuild/config/config.go
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
|
||||
)
|
||||
|
||||
var _ = internal.GetEnvOrDefault
|
||||
|
||||
// The build daemon's address.
|
||||
func GetHost(ctx *pulumi.Context) string {
|
||||
v, err := config.Try(ctx, "docker-build:host")
|
||||
if err == nil {
|
||||
return v
|
||||
}
|
||||
var value string
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
value = d.(string)
|
||||
}
|
||||
return value
|
||||
}
|
||||
func GetRegistries(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "docker-build:registries")
|
||||
}
|
||||
2
sdk/go/dockerbuild/doc.go
generated
2
sdk/go/dockerbuild/doc.go
generated
@@ -1,2 +1,2 @@
|
||||
// Description
|
||||
// A Pulumi provider for building modern Docker images with buildx and BuildKit.
|
||||
package dockerbuild
|
||||
|
||||
53
sdk/go/dockerbuild/go.mod
generated
53
sdk/go/dockerbuild/go.mod
generated
@@ -1,10 +1,10 @@
|
||||
module github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild
|
||||
module github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild
|
||||
|
||||
go 1.21.7
|
||||
|
||||
require (
|
||||
github.com/blang/semver v3.5.1+incompatible
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.1
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.113.0
|
||||
)
|
||||
|
||||
require (
|
||||
@@ -21,27 +21,30 @@ require (
|
||||
github.com/charmbracelet/lipgloss v0.7.1 // indirect
|
||||
github.com/cheggaaa/pb v1.0.29 // indirect
|
||||
github.com/cloudflare/circl v1.3.7 // indirect
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
|
||||
github.com/containerd/console v1.0.4 // indirect
|
||||
github.com/cyphar/filepath-securejoin v0.2.4 // indirect
|
||||
github.com/djherbis/times v1.5.0 // indirect
|
||||
github.com/emirpasic/gods v1.18.1 // indirect
|
||||
github.com/fatih/color v1.16.0 // indirect
|
||||
github.com/frankban/quicktest v1.14.6 // indirect
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 // indirect
|
||||
github.com/go-git/go-billy/v5 v5.5.0 // indirect
|
||||
github.com/go-git/go-git/v5 v5.11.0 // indirect
|
||||
github.com/gogo/protobuf v1.3.2 // indirect
|
||||
github.com/golang/glog v1.1.2 // indirect
|
||||
github.com/golang/glog v1.2.0 // indirect
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da // indirect
|
||||
github.com/golang/protobuf v1.5.3 // indirect
|
||||
github.com/google/uuid v1.4.0 // indirect
|
||||
github.com/golang/protobuf v1.5.4 // indirect
|
||||
github.com/google/uuid v1.6.0 // indirect
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 // indirect
|
||||
github.com/hashicorp/errwrap v1.1.0 // indirect
|
||||
github.com/hashicorp/go-multierror v1.1.1 // indirect
|
||||
github.com/hashicorp/hcl/v2 v2.18.0 // indirect
|
||||
github.com/hashicorp/hcl/v2 v2.19.1 // indirect
|
||||
github.com/inconshreveable/mousetrap v1.1.0 // indirect
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 // indirect
|
||||
github.com/kevinburke/ssh_config v1.2.0 // indirect
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0 // indirect
|
||||
github.com/mattn/go-isatty v0.0.19 // indirect
|
||||
github.com/mattn/go-colorable v0.1.13 // indirect
|
||||
github.com/mattn/go-isatty v0.0.20 // indirect
|
||||
github.com/mattn/go-localereader v0.0.1 // indirect
|
||||
github.com/mattn/go-runewidth v0.0.15 // indirect
|
||||
github.com/mitchellh/go-ps v1.0.0 // indirect
|
||||
@@ -50,6 +53,7 @@ require (
|
||||
github.com/muesli/cancelreader v0.2.2 // indirect
|
||||
github.com/muesli/reflow v0.3.0 // indirect
|
||||
github.com/muesli/termenv v0.15.2 // indirect
|
||||
github.com/onsi/gomega v1.31.1 // indirect
|
||||
github.com/opentracing/basictracer-go v1.1.0 // indirect
|
||||
github.com/opentracing/opentracing-go v1.2.0 // indirect
|
||||
github.com/pgavlin/fx v0.1.6 // indirect
|
||||
@@ -59,33 +63,34 @@ require (
|
||||
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 // indirect
|
||||
github.com/pulumi/esc v0.6.2 // indirect
|
||||
github.com/rivo/uniseg v0.4.4 // indirect
|
||||
github.com/rogpeppe/go-internal v1.11.0 // indirect
|
||||
github.com/rogpeppe/go-internal v1.12.0 // indirect
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 // indirect
|
||||
github.com/santhosh-tekuri/jsonschema/v5 v5.3.1 // indirect
|
||||
github.com/sergi/go-diff v1.3.1 // indirect
|
||||
github.com/skeema/knownhosts v1.2.1 // indirect
|
||||
github.com/spf13/cobra v1.7.0 // indirect
|
||||
github.com/spf13/cast v1.5.0 // indirect
|
||||
github.com/spf13/cobra v1.8.0 // indirect
|
||||
github.com/spf13/pflag v1.0.5 // indirect
|
||||
github.com/stretchr/objx v0.5.0 // indirect
|
||||
github.com/stretchr/testify v1.9.0 // indirect
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 // indirect
|
||||
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 // indirect
|
||||
github.com/uber/jaeger-client-go v2.30.0+incompatible // indirect
|
||||
github.com/uber/jaeger-lib v2.4.1+incompatible // indirect
|
||||
github.com/xanzy/ssh-agent v0.3.3 // indirect
|
||||
github.com/zclconf/go-cty v1.14.0 // indirect
|
||||
go.uber.org/atomic v1.11.0 // indirect
|
||||
golang.org/x/crypto v0.17.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect
|
||||
golang.org/x/mod v0.14.0 // indirect
|
||||
golang.org/x/net v0.19.0 // indirect
|
||||
golang.org/x/sync v0.5.0 // indirect
|
||||
golang.org/x/sys v0.15.0 // indirect
|
||||
golang.org/x/term v0.15.0 // indirect
|
||||
github.com/zclconf/go-cty v1.14.1 // indirect
|
||||
go.uber.org/atomic v1.10.0 // indirect
|
||||
golang.org/x/crypto v0.21.0 // indirect
|
||||
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 // indirect
|
||||
golang.org/x/mod v0.16.0 // indirect
|
||||
golang.org/x/net v0.22.0 // indirect
|
||||
golang.org/x/sync v0.6.0 // indirect
|
||||
golang.org/x/sys v0.18.0 // indirect
|
||||
golang.org/x/term v0.18.0 // indirect
|
||||
golang.org/x/text v0.14.0 // indirect
|
||||
golang.org/x/tools v0.15.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f // indirect
|
||||
google.golang.org/grpc v1.59.0 // indirect
|
||||
google.golang.org/protobuf v1.31.0 // indirect
|
||||
golang.org/x/tools v0.19.0 // indirect
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 // indirect
|
||||
google.golang.org/grpc v1.62.1 // indirect
|
||||
google.golang.org/protobuf v1.33.0 // indirect
|
||||
gopkg.in/warnings.v0 v0.1.2 // indirect
|
||||
gopkg.in/yaml.v3 v3.0.1 // indirect
|
||||
lukechampine.com/frand v1.4.2 // indirect
|
||||
|
||||
127
sdk/go/dockerbuild/go.sum
generated
127
sdk/go/dockerbuild/go.sum
generated
@@ -35,9 +35,10 @@ github.com/cheggaaa/pb v1.0.29/go.mod h1:W40334L7FMC5JKWldsTWbdGjLo0RxUKK73K+TuP
|
||||
github.com/cloudflare/circl v1.3.3/go.mod h1:5XYMA4rFBvNIrhs50XuiBJ15vF2pZn4nnUKZrLbUZFA=
|
||||
github.com/cloudflare/circl v1.3.7 h1:qlCDlTPz2n9fu58M0Nh1J/JzcFpfgkFHHX3O35r5vcU=
|
||||
github.com/cloudflare/circl v1.3.7/go.mod h1:sRTcRWXGLrKw6yIGJ+l7amYJFfAXbZG0kBSc8r4zxgA=
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 h1:q2hJAaP1k2wIvVRd/hEHD7lacgqrCPS+k8g1MndzfWY=
|
||||
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.2/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/containerd/console v1.0.4 h1:F2g4+oChYvBTsASRTz8NP6iIAi97J3TtSAsLbIFn4ro=
|
||||
github.com/containerd/console v1.0.4/go.mod h1:YynlIjWYF8myEu6sdkwKIvGQq+cOckRm6So2avqoYAk=
|
||||
github.com/cpuguy83/go-md2man/v2 v2.0.3/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
||||
github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4 h1:Ugdm7cg7i6ZK6x3xDF1oEu1nfkyfH53EtKeQYTC3kyg=
|
||||
github.com/cyphar/filepath-securejoin v0.2.4/go.mod h1:aPGpWjXOXUn2NCNjFvBE6aRxGGx79pTxQpKOJNYHHl4=
|
||||
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
||||
@@ -50,8 +51,10 @@ github.com/elazarl/goproxy v0.0.0-20230808193330-2592e75ae04a/go.mod h1:Ro8st/El
|
||||
github.com/emirpasic/gods v1.18.1 h1:FXtiHYKDGKCW2KzwZKx0iC0PQmdlorYgdFG9jPXJ1Bc=
|
||||
github.com/emirpasic/gods v1.18.1/go.mod h1:8tpGGwCnJ5H4r6BWwaV6OrWmMoPhUl5jm/FMNAnJvWQ=
|
||||
github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
|
||||
github.com/fatih/color v1.13.0 h1:8LOYc1KYPPmyKMuN8QV2DNRWNbLo6LZ0iLs8+mlH53w=
|
||||
github.com/fatih/color v1.13.0/go.mod h1:kLAiJbzzSOZDVNGyDpeOxJ47H46qBXwg5ILebYFFOfk=
|
||||
github.com/fatih/color v1.16.0 h1:zmkK9Ngbjj+K0yRhTVONQh1p/HknKYSlNT+vZCzyokM=
|
||||
github.com/fatih/color v1.16.0/go.mod h1:fL2Sau1YI5c0pdGEVCbKQbLXB6edEj1ZgiY4NijnWvE=
|
||||
github.com/frankban/quicktest v1.14.6 h1:7Xjx+VpznH+oBnejlPUj8oUpdxnVs4f8XU8WnHkI4W8=
|
||||
github.com/frankban/quicktest v1.14.6/go.mod h1:4ptaffx2x8+WTWXmUCuVU6aPUX1/Mz7zb5vbUoiM6w0=
|
||||
github.com/gliderlabs/ssh v0.3.5 h1:OcaySEmAQJgyYcArR+gGGTHCyE7nvhEMTlYY+Dp8CpY=
|
||||
github.com/gliderlabs/ssh v0.3.5/go.mod h1:8XB4KraRrX39qHhT6yxPsHedjA08I/uBVwj4xC+/+z4=
|
||||
github.com/go-git/gcfg v1.5.1-0.20230307220236-3a3c6141e376 h1:+zs/tPmkDkHx3U66DAb0lQFJrpS6731Oaa12ikc+DiI=
|
||||
@@ -65,18 +68,17 @@ github.com/go-git/go-git/v5 v5.11.0/go.mod h1:6GFcX2P3NM7FPBfpePbpLd21XxsgdAt+lK
|
||||
github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
|
||||
github.com/gogo/protobuf v1.3.2 h1:Ov1cvc58UF3b5XjBnZv7+opcTcQFZebYjWzi34vdm4Q=
|
||||
github.com/gogo/protobuf v1.3.2/go.mod h1:P1XiOD3dCwIKUDQYPy72D8LYyHL2YPYrpS2s69NZV8Q=
|
||||
github.com/golang/glog v1.1.2 h1:DVjP2PbBOzHyzA+dn3WhHIq4NdVu3Q+pvivFICf/7fo=
|
||||
github.com/golang/glog v1.1.2/go.mod h1:zR+okUeTbrL6EL3xHUDxZuEtGv04p5shwip1+mL/rLQ=
|
||||
github.com/golang/glog v1.2.0 h1:uCdmnmatrKCgMBlM4rMuJZWOkPDqdbZPnrMXDY4gI68=
|
||||
github.com/golang/glog v1.2.0/go.mod h1:6AhwSGph0fcJtXVM/PEHPqZlFeoLxhs7/t5UDAwmO+w=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
|
||||
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
|
||||
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
|
||||
github.com/golang/protobuf v1.5.3 h1:KhyjKVUg7Usr/dYsdSqoFveMYd5ko72D+zANwlG1mmg=
|
||||
github.com/golang/protobuf v1.5.3/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
|
||||
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
|
||||
github.com/golang/protobuf v1.5.4 h1:i7eJL8qZTpSEXOPTxNKhASYpMn+8e5Q6AdndVa1dWek=
|
||||
github.com/golang/protobuf v1.5.4/go.mod h1:lnTiLA8Wa4RWRcIUkrtSVa5nRhsEGBg48fD6rSs7xps=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI=
|
||||
github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/uuid v1.4.0 h1:MtMxsa51/r9yyhkyLsVeVt0B+BGQZzpQiTQ4eHZ8bc4=
|
||||
github.com/google/uuid v1.4.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
|
||||
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645 h1:MJG/KsmcqMwFAkh8mTnAwhyKoB+sTAnY4CACC110tbU=
|
||||
github.com/grpc-ecosystem/grpc-opentracing v0.0.0-20180507213350-8e809c8a8645/go.mod h1:6iZfnjpejD4L/4DwD7NryNaJyCQdzwWwH2MWhCA90Kw=
|
||||
github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
@@ -84,8 +86,8 @@ github.com/hashicorp/errwrap v1.1.0 h1:OxrOeh75EUXMY8TBjag2fzXGZ40LB6IKw45YeGUDY
|
||||
github.com/hashicorp/errwrap v1.1.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
|
||||
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
|
||||
github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM=
|
||||
github.com/hashicorp/hcl/v2 v2.18.0 h1:wYnG7Lt31t2zYkcquwgKo6MWXzRUDIeIVU5naZwHLl8=
|
||||
github.com/hashicorp/hcl/v2 v2.18.0/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
|
||||
github.com/hashicorp/hcl/v2 v2.19.1 h1://i05Jqznmb2EXqa39Nsvyan2o5XyMowW5fnCKW5RPI=
|
||||
github.com/hashicorp/hcl/v2 v2.19.1/go.mod h1:ThLC89FV4p9MPW804KVbe/cEXoQ8NZEh+JtMeeGErHE=
|
||||
github.com/inconshreveable/mousetrap v1.1.0 h1:wN+x4NVGpMsO7ErUn/mUI3vEoE6Jt13X2s0bqwp9tc8=
|
||||
github.com/inconshreveable/mousetrap v1.1.0/go.mod h1:vpF70FUmC8bwa3OWnCshd2FqLfsEA9PFc4w1p2J65bw=
|
||||
github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
|
||||
@@ -105,12 +107,13 @@ github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0 h1:1nnpGOrhyZZuNyfu1QjKiUICQ74+3FNCN69Aj6K7nkY=
|
||||
github.com/lucasb-eyer/go-colorful v1.2.0/go.mod h1:R4dSotOR9KMtayYi1e77YzuveK+i7ruzyGqttikkLy0=
|
||||
github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
||||
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
|
||||
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
||||
github.com/mattn/go-colorable v0.1.13 h1:fFA4WZxdEF4tXPZVKMLwD8oUnCTTo08duU7wxecdEvA=
|
||||
github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovkB8vQcUbaXHg=
|
||||
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
||||
github.com/mattn/go-isatty v0.0.11/go.mod h1:PhnuNfih5lzO57/f3n+odYbM4JtupLOxQOAqxQCu2WE=
|
||||
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
|
||||
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
|
||||
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
|
||||
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
|
||||
github.com/mattn/go-localereader v0.0.1 h1:ygSAOl7ZXTx4RdPYinUpg6W99U8jWvWi9Ye2JC/oIi4=
|
||||
github.com/mattn/go-localereader v0.0.1/go.mod h1:8fBrzywKY7BI3czFoHkuzRoWE9C+EiG4R1k4Cjx5p88=
|
||||
github.com/mattn/go-runewidth v0.0.4/go.mod h1:LwmH8dsx7+W8Uxz3IHJYH5QSwggIsqBzpuz5H//U1FU=
|
||||
@@ -129,8 +132,8 @@ github.com/muesli/reflow v0.3.0 h1:IFsN6K9NfGtjeggFP+68I4chLZV2yIKsXJFNZ+eWh6s=
|
||||
github.com/muesli/reflow v0.3.0/go.mod h1:pbwTDkVPibjO2kyvBQRBxTWEEGDGq0FlB1BIKtnHY/8=
|
||||
github.com/muesli/termenv v0.15.2 h1:GohcuySI0QmI3wN8Ok9PtKGkgkFIk7y6Vpb5PvrY+Wo=
|
||||
github.com/muesli/termenv v0.15.2/go.mod h1:Epx+iuz8sNs7mNKhxzH4fWXGNpZwUaJKRS1noLXviQ8=
|
||||
github.com/onsi/gomega v1.27.10 h1:naR28SdDFlqrG6kScpT8VWpu1xWY5nJRCF3XaYyBjhI=
|
||||
github.com/onsi/gomega v1.27.10/go.mod h1:RsS8tutOdbdgzbPtzzATp12yT7kM5I5aElG3evPbQ0M=
|
||||
github.com/onsi/gomega v1.31.1 h1:KYppCUK+bUgAZwHOu7EXVBKyQA6ILvOESHkn/tgoqvo=
|
||||
github.com/onsi/gomega v1.31.1/go.mod h1:y40C95dwAD1Nz36SsEnxvfFe8FFfNxzI5eJ0EYGyAy0=
|
||||
github.com/opentracing/basictracer-go v1.1.0 h1:Oa1fTSBvAl8pa3U+IJYqrKm0NALwH9OsgwOqDv4xJW0=
|
||||
github.com/opentracing/basictracer-go v1.1.0/go.mod h1:V2HZueSJEp879yv285Aap1BS69fQMD+MNP1mRs6mBQc=
|
||||
github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
|
||||
@@ -140,6 +143,7 @@ github.com/pgavlin/fx v0.1.6 h1:r9jEg69DhNoCd3Xh0+5mIbdbS3PqWrVWujkY76MFRTU=
|
||||
github.com/pgavlin/fx v0.1.6/go.mod h1:KWZJ6fqBBSh8GxHYqwYCf3rYE7Gp2p0N8tJp8xv9u9M=
|
||||
github.com/pjbgf/sha1cd v0.3.0 h1:4D5XXmUUBUl/xQ6IjCkEAbqXskkq/4O7LmGn0AqMDs4=
|
||||
github.com/pjbgf/sha1cd v0.3.0/go.mod h1:nZ1rrWOcGJ5uZgEEVL1VUM9iRQiZvWdbZjkKyFzPPsI=
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
|
||||
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
||||
github.com/pkg/term v1.1.0 h1:xIAAdCMh3QIAy+5FrE8Ad8XoDhEU4ufwbaSozViP9kk=
|
||||
@@ -150,14 +154,15 @@ github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231 h1:vkHw5I/plNdTr435
|
||||
github.com/pulumi/appdash v0.0.0-20231130102222-75f619a67231/go.mod h1:murToZ2N9hNJzewjHBgfFdXhZKjY3z5cYC1VXk+lbFE=
|
||||
github.com/pulumi/esc v0.6.2 h1:+z+l8cuwIauLSwXQS0uoI3rqB+YG4SzsZYtHfNoXBvw=
|
||||
github.com/pulumi/esc v0.6.2/go.mod h1:jNnYNjzsOgVTjCp0LL24NsCk8ZJxq4IoLQdCT0X7l8k=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.1 h1:uOeG/b6YxBuL59xHtmFPspMa8BB6ovjHelL7sVCGJZw=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.111.1/go.mod h1:5A6GHUwAJlRY1SSLZh84aDIbsBShcrfcmHzI50ecSBg=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.113.0 h1:CIlmxJZdjxpPPoFe/rrP1dWTwh3CB7ahs/dA6SHcbuE=
|
||||
github.com/pulumi/pulumi/sdk/v3 v3.113.0/go.mod h1:JWSzKBoHd8rlncC1DhXLf7YdV+Bk/Qf+hSZOOQh0WwQ=
|
||||
github.com/rivo/uniseg v0.1.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.2.0/go.mod h1:J6wj4VEh+S6ZtnVlnTBMWIodfgj8LQOQFoIToxlJtxc=
|
||||
github.com/rivo/uniseg v0.4.4 h1:8TfxU8dW6PdqD27gjM8MVNuicgxIjxpm4K7x4jp8sis=
|
||||
github.com/rivo/uniseg v0.4.4/go.mod h1:FN3SvrM+Zdj16jyLfmOkMNblXMcoc8DfTHruCPUcx88=
|
||||
github.com/rogpeppe/go-internal v1.11.0 h1:cWPaGQEPrBb5/AsnsZesgZZ9yb1OQ+GOISoDNXVBh4M=
|
||||
github.com/rogpeppe/go-internal v1.11.0/go.mod h1:ddIwULY96R17DhadqLgMfk9H9tvdUzkipdSkR5nkCZA=
|
||||
github.com/rogpeppe/go-internal v1.9.0/go.mod h1:WtVeX8xhTBvf0smdhujwtBcq4Qrzq/fJaraNFVN+nFs=
|
||||
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
|
||||
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
|
||||
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06 h1:OkMGxebDjyw0ULyrTYWeN0UNCCkmCWfjPnIA2W6oviI=
|
||||
github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06/go.mod h1:+ePHsJ1keEjQtpvf9HHw0f4ZeJ0TLRsxhunSI2hYJSs=
|
||||
@@ -168,23 +173,22 @@ github.com/sergi/go-diff v1.3.1/go.mod h1:aMJSSKb2lpPvRNec0+w3fl7LP9IOFzdc9Pa4NF
|
||||
github.com/sirupsen/logrus v1.7.0/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
||||
github.com/skeema/knownhosts v1.2.1 h1:SHWdIUa82uGZz+F+47k8SY4QhhI291cXCpopT1lK2AQ=
|
||||
github.com/skeema/knownhosts v1.2.1/go.mod h1:xYbVRSPxqBZFrdmDyMmsOs+uX1UZC3nTN3ThzgDxUwo=
|
||||
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
|
||||
github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
|
||||
github.com/spf13/cast v1.5.0 h1:rj3WzYc11XZaIZMPKmwP96zkFEnnAmV8s6XbB2aY32w=
|
||||
github.com/spf13/cast v1.5.0/go.mod h1:SpXXQ5YoyJw6s3/6cMTQuxvgRl3PCJiyaX9p6b155UU=
|
||||
github.com/spf13/cobra v1.8.0 h1:7aJaZx1B85qltLMc546zn58BxxfZdR/W22ej9CFoEf0=
|
||||
github.com/spf13/cobra v1.8.0/go.mod h1:WXLWApfZ71AjXPya3WOlMsY9yMs7YeiHhFVlvLyhcho=
|
||||
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
||||
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
||||
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
||||
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
|
||||
github.com/stretchr/objx v0.5.0 h1:1zr/of2m5FGMsad5YfcqgdqdWrIhu+EBEJRhR1U7z/c=
|
||||
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
|
||||
github.com/stretchr/objx v0.5.2 h1:xuMeJ0Sdp5ZMRXx/aWO6RZxdr3beISkG5/G/aIRr3pY=
|
||||
github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/8L+MA=
|
||||
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
||||
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
|
||||
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
|
||||
github.com/stretchr/testify v1.5.1/go.mod h1:5W2xD1RspED5o8YsWQXVCued0rvSQ+mT+I5cxcmMvtA=
|
||||
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
||||
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
|
||||
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
|
||||
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
|
||||
github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg=
|
||||
github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
|
||||
github.com/texttheater/golang-levenshtein v1.0.1 h1:+cRNoVrfiwufQPhoMzB6N0Yf/Mqajr6t1lOv8GyGE2U=
|
||||
github.com/texttheater/golang-levenshtein v1.0.1/go.mod h1:PYAKrbF5sAiq9wd+H82hs7gNaen0CplQ9uvm6+enD/8=
|
||||
github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68=
|
||||
@@ -198,10 +202,10 @@ github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI
|
||||
github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
|
||||
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
|
||||
github.com/zclconf/go-cty v1.14.0 h1:/Xrd39K7DXbHzlisFP9c4pHao4yyf+/Ug9LEz+Y/yhc=
|
||||
github.com/zclconf/go-cty v1.14.0/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
|
||||
go.uber.org/atomic v1.11.0 h1:ZvwS0R+56ePWxUNi+Atn9dWONBPp/AUETXlHW0DxSjE=
|
||||
go.uber.org/atomic v1.11.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
|
||||
github.com/zclconf/go-cty v1.14.1 h1:t9fyA35fwjjUMcmL5hLER+e/rEPqrbCK1/OSE4SI9KA=
|
||||
github.com/zclconf/go-cty v1.14.1/go.mod h1:VvMs5i0vgZdhYawQNq5kePSpLAoz8u1xvZgrPIxfnZE=
|
||||
go.uber.org/atomic v1.10.0 h1:9qC72Qh0+3MqyJbAn8YU5xVq1frD8bn3JtD2oXtafVQ=
|
||||
go.uber.org/atomic v1.10.0/go.mod h1:LUxbIzbOniOlMKjJjyPfpl4v+PKK2cNJn91OQbhoJI0=
|
||||
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
|
||||
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
|
||||
golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
|
||||
@@ -209,18 +213,18 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
|
||||
golang.org/x/crypto v0.0.0-20220622213112-05595931fe9d/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
|
||||
golang.org/x/crypto v0.3.1-0.20221117191849-2c476679df9a/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
|
||||
golang.org/x/crypto v0.7.0/go.mod h1:pYwdfH91IfpZVANVyUOhSIPZaFoJGxTFbZhFTx+dXZU=
|
||||
golang.org/x/crypto v0.17.0 h1:r8bRNjWL3GshPW3gkd+RpvzWrZAwPS49OmTGZ/uhM4k=
|
||||
golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4=
|
||||
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa h1:FRnLl4eNAQl8hwxVVC17teOw8kdjVDVAiFMtgUdTSRQ=
|
||||
golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa/go.mod h1:zk2irFbV9DP96SEBUUAy67IdHUaZuSnrz1n472HUCLE=
|
||||
golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA=
|
||||
golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs=
|
||||
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3 h1:hNQpMuAJe5CtcUqCXaWga3FHu+kQvCqcsoVaQgSV60o=
|
||||
golang.org/x/exp v0.0.0-20240112132812-db7319d0e0e3/go.mod h1:idGWGoKP1toJGkd5/ig9ZLuPcZBC3ewk7SzmH0uou08=
|
||||
golang.org/x/lint v0.0.0-20200302205851-738671d3881b/go.mod h1:3xt1FjdF8hUf6vQPIChWIBhFzV8gjjsPE/fR3IyQdNY=
|
||||
golang.org/x/mod v0.1.1-0.20191105210325-c90efee705ee/go.mod h1:QqPTAvyqsEbceGzBzNggFXnrqF1CaUcvgkdR5Ot7KZg=
|
||||
golang.org/x/mod v0.2.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs=
|
||||
golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0=
|
||||
golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||
golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic=
|
||||
golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c=
|
||||
golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
|
||||
golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
|
||||
@@ -232,15 +236,15 @@ golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug
|
||||
golang.org/x/net v0.2.0/go.mod h1:KqCZLdyyvdV855qA2rE3GC2aiw5xGR5TEjj8smXukLY=
|
||||
golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs=
|
||||
golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc=
|
||||
golang.org/x/net v0.19.0 h1:zTwKpTd2XuCqf8huc7Fo2iSy+4RHPd10s4KzeTnVr1c=
|
||||
golang.org/x/net v0.19.0/go.mod h1:CfAk/cbD4CthTvqiEl8NpboMuiuOYsAr/7NOjZJtv1U=
|
||||
golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc=
|
||||
golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg=
|
||||
golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE=
|
||||
golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sync v0.6.0 h1:5BMeUDZ7vkXGfEr1x9B4bRcTH4lpkTkpdh0T/J+qjbQ=
|
||||
golang.org/x/sync v0.6.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk=
|
||||
golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
||||
@@ -256,20 +260,21 @@ golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBc
|
||||
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220715151400-c0bba94af5f8/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/sys v0.15.0 h1:h48lPFYpsTvQJZF4EKyI4aLHaev3CxivZmv7yZig9pc=
|
||||
golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4=
|
||||
golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
|
||||
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
|
||||
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
||||
golang.org/x/term v0.2.0/go.mod h1:TVmDHMZPmdnySmBfhjOoOdhjzdE1h4u1VwSiw2l1Nuc=
|
||||
golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k=
|
||||
golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U=
|
||||
golang.org/x/term v0.15.0 h1:y/Oo/a/q3IXu26lQgl04j/gjuBDOBlx7X6Om1j2CPW4=
|
||||
golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0=
|
||||
golang.org/x/term v0.18.0 h1:FcHjZXDMxI8mM3nwhX9HlKop4C0YQvCVCdwYl2wOtE8=
|
||||
golang.org/x/term v0.18.0/go.mod h1:ILwASektA3OnRv7amZ1xhE/KTR+u50pbXfZ03+6Nx58=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
||||
@@ -287,20 +292,18 @@ golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roY
|
||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU=
|
||||
golang.org/x/tools v0.15.0 h1:zdAyfUGbYmuVokhzVmghFl2ZJh5QhcfebBgmVPFYA+8=
|
||||
golang.org/x/tools v0.15.0/go.mod h1:hpksKq4dtpQWS1uQ61JkdqWM3LscIS6Slf+VVkm+wQk=
|
||||
golang.org/x/tools v0.19.0 h1:tfGCXNR1OsFG+sVdLAitlpjAvD/I6dHDKnYrpEZUHkw=
|
||||
golang.org/x/tools v0.19.0/go.mod h1:qoJWxmGSIBmAeriMx19ogtrEPrGtDbPK634QFIcLAhc=
|
||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f h1:ultW7fxlIvee4HYrtnaRPon9HpEgFk5zYpmfMgtKB5I=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20231120223509-83a465c0220f/go.mod h1:L9KNLi232K1/xB6f7AlSX692koaRnKaWSR0stBki0Yc=
|
||||
google.golang.org/grpc v1.59.0 h1:Z5Iec2pjwb+LEOqzpB2MR12/eKFhDPhuqW91O+4bwUk=
|
||||
google.golang.org/grpc v1.59.0/go.mod h1:aUPDwccQo6OTjy7Hct4AfBPD1GptF4fyUjIkQ9YtF98=
|
||||
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
|
||||
google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc=
|
||||
google.golang.org/protobuf v1.31.0 h1:g0LDEJHgrBl9N9r17Ru3sqWhkIx2NB67okBHPwC7hs8=
|
||||
google.golang.org/protobuf v1.31.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7 h1:8EeVk1VKMD+GD/neyEHGmz7pFblqPjHoi+PGQIlLx2s=
|
||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240311173647-c811ad7063a7/go.mod h1:WtryC6hu0hhx87FDGxWCDptyssuo68sk10vYjF+T9fY=
|
||||
google.golang.org/grpc v1.62.1 h1:B4n+nfKzOICUXMgyrNd19h/I9oH0L1pizfk1d4zSgTk=
|
||||
google.golang.org/grpc v1.62.1/go.mod h1:IWTG0VlJLCh1SkC58F7np9ka9mx/WNkjl4PGJaiq+QE=
|
||||
google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI=
|
||||
google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
||||
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=
|
||||
|
||||
1363
sdk/go/dockerbuild/image.go
generated
Normal file
1363
sdk/go/dockerbuild/image.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
307
sdk/go/dockerbuild/index.go
generated
Normal file
307
sdk/go/dockerbuild/index.go
generated
Normal file
@@ -0,0 +1,307 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
// A wrapper around `docker buildx imagetools create` to create an index
|
||||
// (or manifest list) referencing one or more existing images.
|
||||
//
|
||||
// In most cases you do not need an `Index` to build a multi-platform
|
||||
// image -- specifying multiple platforms on the `Image` will handle this
|
||||
// for you automatically.
|
||||
//
|
||||
// However, as of April 2024, building multi-platform images _with
|
||||
// caching_ will only export a cache for one platform at a time (see [this
|
||||
// discussion](https://github.com/docker/buildx/discussions/1382) for more
|
||||
// details).
|
||||
//
|
||||
// Therefore this resource can be helpful if you are building
|
||||
// multi-platform images with caching: each platform can be built and
|
||||
// cached separately, and an `Index` can join them all together. An
|
||||
// example of this is shown below.
|
||||
//
|
||||
// This resource creates an OCI image index or a Docker manifest list
|
||||
// depending on the media types of the source images.
|
||||
//
|
||||
// ## Example Usage
|
||||
// ### Multi-platform registry caching
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// amd64, err := dockerbuild.NewImage(ctx, "amd64", &dockerbuild.ImageArgs{
|
||||
// CacheFrom: dockerbuild.CacheFromArray{
|
||||
// &dockerbuild.CacheFromArgs{
|
||||
// Registry: &dockerbuild.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: dockerbuild.CacheToArray{
|
||||
// &dockerbuild.CacheToArgs{
|
||||
// Registry: &dockerbuild.CacheToRegistryArgs{
|
||||
// Mode: dockerbuild.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &dockerbuild.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: docker - build.PlatformArray{
|
||||
// dockerbuild.Platform_Linux_amd64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-amd64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// arm64, err := dockerbuild.NewImage(ctx, "arm64", &dockerbuild.ImageArgs{
|
||||
// CacheFrom: dockerbuild.CacheFromArray{
|
||||
// &dockerbuild.CacheFromArgs{
|
||||
// Registry: &dockerbuild.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: dockerbuild.CacheToArray{
|
||||
// &dockerbuild.CacheToArgs{
|
||||
// Registry: &dockerbuild.CacheToRegistryArgs{
|
||||
// Mode: dockerbuild.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &dockerbuild.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: docker - build.PlatformArray{
|
||||
// dockerbuild.Platform_Linux_arm64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-arm64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// index, err := dockerbuild.NewIndex(ctx, "index", &dockerbuild.IndexArgs{
|
||||
// Sources: pulumi.StringArray{
|
||||
// amd64.Ref,
|
||||
// arm64.Ref,
|
||||
// },
|
||||
// Tag: pulumi.String("docker.io/pulumi/pulumi:3.107.0"),
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("ref", index.Ref)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
type Index struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumi.BoolPtrOutput `pulumi:"push"`
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
Ref pulumi.StringOutput `pulumi:"ref"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry RegistryPtrOutput `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources pulumi.StringArrayOutput `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag pulumi.StringOutput `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// NewIndex registers a new resource with the given unique name, arguments, and options.
|
||||
func NewIndex(ctx *pulumi.Context,
|
||||
name string, args *IndexArgs, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Sources == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Sources'")
|
||||
}
|
||||
if args.Tag == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Tag'")
|
||||
}
|
||||
if args.Push == nil {
|
||||
args.Push = pulumi.BoolPtr(true)
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Index
|
||||
err := ctx.RegisterResource("docker-build:index:Index", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetIndex gets an existing Index resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetIndex(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *IndexState, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
var resource Index
|
||||
err := ctx.ReadResource("docker-build:index:Index", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Index resources.
|
||||
type indexState struct {
|
||||
}
|
||||
|
||||
type IndexState struct {
|
||||
}
|
||||
|
||||
func (IndexState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type indexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push *bool `pulumi:"push"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry *Registry `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources []string `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag string `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Index resource.
|
||||
type IndexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumi.BoolPtrInput
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry RegistryPtrInput
|
||||
// Existing images to include in the index.
|
||||
Sources pulumi.StringArrayInput
|
||||
// The tag to apply to the index.
|
||||
Tag pulumi.StringInput
|
||||
}
|
||||
|
||||
func (IndexArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type IndexInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToIndexOutput() IndexOutput
|
||||
ToIndexOutputWithContext(ctx context.Context) IndexOutput
|
||||
}
|
||||
|
||||
func (*Index) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Index)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *Index) ToIndexOutput() IndexOutput {
|
||||
return i.ToIndexOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *Index) ToIndexOutputWithContext(ctx context.Context) IndexOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(IndexOutput)
|
||||
}
|
||||
|
||||
func (i *Index) ToOutput(ctx context.Context) pulumix.Output[*Index] {
|
||||
return pulumix.Output[*Index]{
|
||||
OutputState: i.ToIndexOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type IndexOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (IndexOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Index)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutput() IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutputWithContext(ctx context.Context) IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToOutput(ctx context.Context) pulumix.Output[*Index] {
|
||||
return pulumix.Output[*Index]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
func (o IndexOutput) Push() pulumi.BoolPtrOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.BoolPtrOutput { return v.Push }).(pulumi.BoolPtrOutput)
|
||||
}
|
||||
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
func (o IndexOutput) Ref() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.StringOutput { return v.Ref }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
func (o IndexOutput) Registry() RegistryPtrOutput {
|
||||
return o.ApplyT(func(v *Index) RegistryPtrOutput { return v.Registry }).(RegistryPtrOutput)
|
||||
}
|
||||
|
||||
// Existing images to include in the index.
|
||||
func (o IndexOutput) Sources() pulumi.StringArrayOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.StringArrayOutput { return v.Sources }).(pulumi.StringArrayOutput)
|
||||
}
|
||||
|
||||
// The tag to apply to the index.
|
||||
func (o IndexOutput) Tag() pulumi.StringOutput {
|
||||
return o.ApplyT(func(v *Index) pulumi.StringOutput { return v.Tag }).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*IndexInput)(nil)).Elem(), &Index{})
|
||||
pulumi.RegisterOutputType(IndexOutput{})
|
||||
}
|
||||
14
sdk/go/dockerbuild/init.go
generated
14
sdk/go/dockerbuild/init.go
generated
@@ -7,7 +7,7 @@ import (
|
||||
"fmt"
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
@@ -21,8 +21,10 @@ func (m *module) Version() semver.Version {
|
||||
|
||||
func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
|
||||
switch typ {
|
||||
case "dockerbuild:index:Random":
|
||||
r = &Random{}
|
||||
case "docker-build:index:Image":
|
||||
r = &Image{}
|
||||
case "docker-build:index:Index":
|
||||
r = &Index{}
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown resource type: %s", typ)
|
||||
}
|
||||
@@ -40,7 +42,7 @@ func (p *pkg) Version() semver.Version {
|
||||
}
|
||||
|
||||
func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pulumi.ProviderResource, error) {
|
||||
if typ != "pulumi:providers:dockerbuild" {
|
||||
if typ != "pulumi:providers:docker-build" {
|
||||
return nil, fmt.Errorf("unknown provider type: %s", typ)
|
||||
}
|
||||
|
||||
@@ -55,12 +57,12 @@ func init() {
|
||||
version = semver.Version{Major: 1}
|
||||
}
|
||||
pulumi.RegisterResourceModule(
|
||||
"dockerbuild",
|
||||
"docker-build",
|
||||
"index",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourcePackage(
|
||||
"dockerbuild",
|
||||
"docker-build",
|
||||
&pkg{version},
|
||||
)
|
||||
}
|
||||
|
||||
6
sdk/go/dockerbuild/internal/pulumiUtilities.go
generated
6
sdk/go/dockerbuild/internal/pulumiUtilities.go
generated
@@ -75,7 +75,7 @@ func PkgVersion() (semver.Version, error) {
|
||||
}
|
||||
type sentinal struct{}
|
||||
pkgPath := reflect.TypeOf(sentinal{}).PkgPath()
|
||||
re := regexp.MustCompile("^.*/pulumi-dockerbuild/sdk(/v\\d+)?")
|
||||
re := regexp.MustCompile("^.*/pulumi-docker-build/sdk(/v\\d+)?")
|
||||
if match := re.FindStringSubmatch(pkgPath); match != nil {
|
||||
vStr := match[1]
|
||||
if len(vStr) == 0 { // If the version capture group was empty, default to v1.
|
||||
@@ -164,7 +164,7 @@ func callPlainInner(
|
||||
// PkgResourceDefaultOpts provides package level defaults to pulumi.OptionResource.
|
||||
func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOption {
|
||||
defaults := []pulumi.ResourceOption{}
|
||||
defaults = append(defaults, pulumi.PluginDownloadURL("github.com/pulumi/pulumi-dockerbuild"))
|
||||
|
||||
version := SdkVersion
|
||||
if !version.Equals(semver.Version{}) {
|
||||
defaults = append(defaults, pulumi.Version(version.String()))
|
||||
@@ -175,7 +175,7 @@ func PkgResourceDefaultOpts(opts []pulumi.ResourceOption) []pulumi.ResourceOptio
|
||||
// PkgInvokeDefaultOpts provides package level defaults to pulumi.OptionInvoke.
|
||||
func PkgInvokeDefaultOpts(opts []pulumi.InvokeOption) []pulumi.InvokeOption {
|
||||
defaults := []pulumi.InvokeOption{}
|
||||
defaults = append(defaults, pulumi.PluginDownloadURL("github.com/pulumi/pulumi-dockerbuild"))
|
||||
|
||||
version := SdkVersion
|
||||
if !version.Equals(semver.Version{}) {
|
||||
defaults = append(defaults, pulumi.Version(version.String()))
|
||||
|
||||
55
sdk/go/dockerbuild/provider.go
generated
55
sdk/go/dockerbuild/provider.go
generated
@@ -7,13 +7,16 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
type Provider struct {
|
||||
pulumi.ProviderResourceState
|
||||
|
||||
// The build daemon's address.
|
||||
Host pulumi.StringPtrOutput `pulumi:"host"`
|
||||
}
|
||||
|
||||
// NewProvider registers a new resource with the given unique name, arguments, and options.
|
||||
@@ -23,9 +26,14 @@ func NewProvider(ctx *pulumi.Context,
|
||||
args = &ProviderArgs{}
|
||||
}
|
||||
|
||||
if args.Host == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
args.Host = pulumi.StringPtr(d.(string))
|
||||
}
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Provider
|
||||
err := ctx.RegisterResource("pulumi:providers:dockerbuild", name, args, &resource, opts...)
|
||||
err := ctx.RegisterResource("pulumi:providers:docker-build", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
@@ -33,20 +41,51 @@ func NewProvider(ctx *pulumi.Context,
|
||||
}
|
||||
|
||||
type providerArgs struct {
|
||||
// The build daemon's address.
|
||||
Host *string `pulumi:"host"`
|
||||
Registries []Registry `pulumi:"registries"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Provider resource.
|
||||
type ProviderArgs struct {
|
||||
// The build daemon's address.
|
||||
Host pulumi.StringPtrInput
|
||||
Registries RegistryArrayInput
|
||||
}
|
||||
|
||||
func (ProviderArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*providerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ProviderInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToProviderOutput() ProviderOutput
|
||||
ToProviderOutputWithContext(ctx context.Context) ProviderOutput
|
||||
}
|
||||
|
||||
func (*Provider) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i *Provider) ToProviderOutput() ProviderOutput {
|
||||
return i.ToProviderOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i *Provider) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(ProviderOutput)
|
||||
}
|
||||
|
||||
func (i *Provider) ToOutput(ctx context.Context) pulumix.Output[*Provider] {
|
||||
return pulumix.Output[*Provider]{
|
||||
OutputState: i.ToProviderOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type ProviderOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ProviderOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Provider)(nil)).Elem()
|
||||
return reflect.TypeOf((**Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutput() ProviderOutput {
|
||||
@@ -57,12 +96,18 @@ func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) Provide
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[Provider] {
|
||||
return pulumix.Output[Provider]{
|
||||
func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[*Provider] {
|
||||
return pulumix.Output[*Provider]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// The build daemon's address.
|
||||
func (o ProviderOutput) Host() pulumi.StringPtrOutput {
|
||||
return o.ApplyT(func(v *Provider) pulumi.StringPtrOutput { return v.Host }).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*ProviderInput)(nil)).Elem(), &Provider{})
|
||||
pulumi.RegisterOutputType(ProviderOutput{})
|
||||
}
|
||||
|
||||
3
sdk/go/dockerbuild/pulumi-plugin.json
generated
3
sdk/go/dockerbuild/pulumi-plugin.json
generated
@@ -1,5 +1,4 @@
|
||||
{
|
||||
"resource": true,
|
||||
"name": "dockerbuild",
|
||||
"server": "github.com/pulumi/pulumi-dockerbuild"
|
||||
"name": "docker-build"
|
||||
}
|
||||
|
||||
886
sdk/go/dockerbuild/pulumiEnums.go
generated
Normal file
886
sdk/go/dockerbuild/pulumiEnums.go
generated
Normal file
@@ -0,0 +1,886 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
type CacheMode string
|
||||
|
||||
const (
|
||||
// Only layers that are exported into the resulting image are cached.
|
||||
CacheModeMin = CacheMode("min")
|
||||
// All layers are cached, even those of intermediate steps.
|
||||
CacheModeMax = CacheMode("max")
|
||||
)
|
||||
|
||||
func (CacheMode) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CacheMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModeOutput() CacheModeOutput {
|
||||
return pulumi.ToOutput(e).(CacheModeOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModeOutputWithContext(ctx context.Context) CacheModeOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(CacheModeOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return e.ToCacheModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CacheMode) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return CacheMode(e).ToCacheModeOutputWithContext(ctx).ToCacheModePtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CacheMode) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type CacheModeOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheModeOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CacheMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModeOutput() CacheModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModeOutputWithContext(ctx context.Context) CacheModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return o.ToCacheModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v CacheMode) *CacheMode {
|
||||
return &v
|
||||
}).(CacheModePtrOutput)
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToOutput(ctx context.Context) pulumix.Output[CacheMode] {
|
||||
return pulumix.Output[CacheMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CacheMode) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CacheMode) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type CacheModePtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CacheModePtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**CacheMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*CacheMode] {
|
||||
return pulumix.Output[*CacheMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) Elem() CacheModeOutput {
|
||||
return o.ApplyT(func(v *CacheMode) CacheMode {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret CacheMode
|
||||
return ret
|
||||
}).(CacheModeOutput)
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CacheModePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *CacheMode) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// CacheModeInput is an input type that accepts values of the CacheMode enum
|
||||
// A concrete instance of `CacheModeInput` can be one of the following:
|
||||
//
|
||||
// CacheModeMin
|
||||
// CacheModeMax
|
||||
type CacheModeInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCacheModeOutput() CacheModeOutput
|
||||
ToCacheModeOutputWithContext(context.Context) CacheModeOutput
|
||||
}
|
||||
|
||||
var cacheModePtrType = reflect.TypeOf((**CacheMode)(nil)).Elem()
|
||||
|
||||
type CacheModePtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCacheModePtrOutput() CacheModePtrOutput
|
||||
ToCacheModePtrOutputWithContext(context.Context) CacheModePtrOutput
|
||||
}
|
||||
|
||||
type cacheModePtr string
|
||||
|
||||
func CacheModePtr(v string) CacheModePtrInput {
|
||||
return (*cacheModePtr)(&v)
|
||||
}
|
||||
|
||||
func (*cacheModePtr) ElementType() reflect.Type {
|
||||
return cacheModePtrType
|
||||
}
|
||||
|
||||
func (in *cacheModePtr) ToCacheModePtrOutput() CacheModePtrOutput {
|
||||
return pulumi.ToOutput(in).(CacheModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *cacheModePtr) ToCacheModePtrOutputWithContext(ctx context.Context) CacheModePtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(CacheModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *cacheModePtr) ToOutput(ctx context.Context) pulumix.Output[*CacheMode] {
|
||||
return pulumix.Output[*CacheMode]{
|
||||
OutputState: in.ToCacheModePtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type CompressionType string
|
||||
|
||||
const (
|
||||
// Use `gzip` for compression.
|
||||
CompressionTypeGzip = CompressionType("gzip")
|
||||
// Use `estargz` for compression.
|
||||
CompressionTypeEstargz = CompressionType("estargz")
|
||||
// Use `zstd` for compression.
|
||||
CompressionTypeZstd = CompressionType("zstd")
|
||||
)
|
||||
|
||||
func (CompressionType) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CompressionType)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypeOutput() CompressionTypeOutput {
|
||||
return pulumi.ToOutput(e).(CompressionTypeOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypeOutputWithContext(ctx context.Context) CompressionTypeOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(CompressionTypeOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return e.ToCompressionTypePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CompressionType) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return CompressionType(e).ToCompressionTypeOutputWithContext(ctx).ToCompressionTypePtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e CompressionType) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type CompressionTypeOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CompressionTypeOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*CompressionType)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypeOutput() CompressionTypeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypeOutputWithContext(ctx context.Context) CompressionTypeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return o.ToCompressionTypePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v CompressionType) *CompressionType {
|
||||
return &v
|
||||
}).(CompressionTypePtrOutput)
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToOutput(ctx context.Context) pulumix.Output[CompressionType] {
|
||||
return pulumix.Output[CompressionType]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CompressionType) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e CompressionType) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type CompressionTypePtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (CompressionTypePtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**CompressionType)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*CompressionType] {
|
||||
return pulumix.Output[*CompressionType]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) Elem() CompressionTypeOutput {
|
||||
return o.ApplyT(func(v *CompressionType) CompressionType {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret CompressionType
|
||||
return ret
|
||||
}).(CompressionTypeOutput)
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o CompressionTypePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *CompressionType) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// CompressionTypeInput is an input type that accepts values of the CompressionType enum
|
||||
// A concrete instance of `CompressionTypeInput` can be one of the following:
|
||||
//
|
||||
// CompressionTypeGzip
|
||||
// CompressionTypeEstargz
|
||||
// CompressionTypeZstd
|
||||
type CompressionTypeInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCompressionTypeOutput() CompressionTypeOutput
|
||||
ToCompressionTypeOutputWithContext(context.Context) CompressionTypeOutput
|
||||
}
|
||||
|
||||
var compressionTypePtrType = reflect.TypeOf((**CompressionType)(nil)).Elem()
|
||||
|
||||
type CompressionTypePtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToCompressionTypePtrOutput() CompressionTypePtrOutput
|
||||
ToCompressionTypePtrOutputWithContext(context.Context) CompressionTypePtrOutput
|
||||
}
|
||||
|
||||
type compressionTypePtr string
|
||||
|
||||
func CompressionTypePtr(v string) CompressionTypePtrInput {
|
||||
return (*compressionTypePtr)(&v)
|
||||
}
|
||||
|
||||
func (*compressionTypePtr) ElementType() reflect.Type {
|
||||
return compressionTypePtrType
|
||||
}
|
||||
|
||||
func (in *compressionTypePtr) ToCompressionTypePtrOutput() CompressionTypePtrOutput {
|
||||
return pulumi.ToOutput(in).(CompressionTypePtrOutput)
|
||||
}
|
||||
|
||||
func (in *compressionTypePtr) ToCompressionTypePtrOutputWithContext(ctx context.Context) CompressionTypePtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(CompressionTypePtrOutput)
|
||||
}
|
||||
|
||||
func (in *compressionTypePtr) ToOutput(ctx context.Context) pulumix.Output[*CompressionType] {
|
||||
return pulumix.Output[*CompressionType]{
|
||||
OutputState: in.ToCompressionTypePtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type NetworkMode string
|
||||
|
||||
const (
|
||||
// The default sandbox network mode.
|
||||
NetworkModeDefault = NetworkMode("default")
|
||||
// Host network mode.
|
||||
NetworkModeHost = NetworkMode("host")
|
||||
// Disable network access.
|
||||
NetworkModeNone = NetworkMode("none")
|
||||
)
|
||||
|
||||
func (NetworkMode) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*NetworkMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModeOutput() NetworkModeOutput {
|
||||
return pulumi.ToOutput(e).(NetworkModeOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModeOutputWithContext(ctx context.Context) NetworkModeOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(NetworkModeOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return e.ToNetworkModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return NetworkMode(e).ToNetworkModeOutputWithContext(ctx).ToNetworkModePtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e NetworkMode) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type NetworkModeOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (NetworkModeOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*NetworkMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModeOutput() NetworkModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModeOutputWithContext(ctx context.Context) NetworkModeOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return o.ToNetworkModePtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v NetworkMode) *NetworkMode {
|
||||
return &v
|
||||
}).(NetworkModePtrOutput)
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToOutput(ctx context.Context) pulumix.Output[NetworkMode] {
|
||||
return pulumix.Output[NetworkMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e NetworkMode) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModeOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e NetworkMode) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type NetworkModePtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (NetworkModePtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**NetworkMode)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToOutput(ctx context.Context) pulumix.Output[*NetworkMode] {
|
||||
return pulumix.Output[*NetworkMode]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) Elem() NetworkModeOutput {
|
||||
return o.ApplyT(func(v *NetworkMode) NetworkMode {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret NetworkMode
|
||||
return ret
|
||||
}).(NetworkModeOutput)
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o NetworkModePtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *NetworkMode) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// NetworkModeInput is an input type that accepts values of the NetworkMode enum
|
||||
// A concrete instance of `NetworkModeInput` can be one of the following:
|
||||
//
|
||||
// NetworkModeDefault
|
||||
// NetworkModeHost
|
||||
// NetworkModeNone
|
||||
type NetworkModeInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToNetworkModeOutput() NetworkModeOutput
|
||||
ToNetworkModeOutputWithContext(context.Context) NetworkModeOutput
|
||||
}
|
||||
|
||||
var networkModePtrType = reflect.TypeOf((**NetworkMode)(nil)).Elem()
|
||||
|
||||
type NetworkModePtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToNetworkModePtrOutput() NetworkModePtrOutput
|
||||
ToNetworkModePtrOutputWithContext(context.Context) NetworkModePtrOutput
|
||||
}
|
||||
|
||||
type networkModePtr string
|
||||
|
||||
func NetworkModePtr(v string) NetworkModePtrInput {
|
||||
return (*networkModePtr)(&v)
|
||||
}
|
||||
|
||||
func (*networkModePtr) ElementType() reflect.Type {
|
||||
return networkModePtrType
|
||||
}
|
||||
|
||||
func (in *networkModePtr) ToNetworkModePtrOutput() NetworkModePtrOutput {
|
||||
return pulumi.ToOutput(in).(NetworkModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *networkModePtr) ToNetworkModePtrOutputWithContext(ctx context.Context) NetworkModePtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(NetworkModePtrOutput)
|
||||
}
|
||||
|
||||
func (in *networkModePtr) ToOutput(ctx context.Context) pulumix.Output[*NetworkMode] {
|
||||
return pulumix.Output[*NetworkMode]{
|
||||
OutputState: in.ToNetworkModePtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type Platform string
|
||||
|
||||
const (
|
||||
Platform_Darwin_386 = Platform("darwin/386")
|
||||
Platform_Darwin_amd64 = Platform("darwin/amd64")
|
||||
Platform_Darwin_arm = Platform("darwin/arm")
|
||||
Platform_Darwin_arm64 = Platform("darwin/arm64")
|
||||
Platform_Dragonfly_amd64 = Platform("dragonfly/amd64")
|
||||
Platform_Freebsd_386 = Platform("freebsd/386")
|
||||
Platform_Freebsd_amd64 = Platform("freebsd/amd64")
|
||||
Platform_Freebsd_arm = Platform("freebsd/arm")
|
||||
Platform_Linux_386 = Platform("linux/386")
|
||||
Platform_Linux_amd64 = Platform("linux/amd64")
|
||||
Platform_Linux_arm = Platform("linux/arm")
|
||||
Platform_Linux_arm64 = Platform("linux/arm64")
|
||||
Platform_Linux_mips64 = Platform("linux/mips64")
|
||||
Platform_Linux_mips64le = Platform("linux/mips64le")
|
||||
Platform_Linux_ppc64le = Platform("linux/ppc64le")
|
||||
Platform_Linux_riscv64 = Platform("linux/riscv64")
|
||||
Platform_Linux_s390x = Platform("linux/s390x")
|
||||
Platform_Netbsd_386 = Platform("netbsd/386")
|
||||
Platform_Netbsd_amd64 = Platform("netbsd/amd64")
|
||||
Platform_Netbsd_arm = Platform("netbsd/arm")
|
||||
Platform_Openbsd_386 = Platform("openbsd/386")
|
||||
Platform_Openbsd_amd64 = Platform("openbsd/amd64")
|
||||
Platform_Openbsd_arm = Platform("openbsd/arm")
|
||||
Platform_Plan9_386 = Platform("plan9/386")
|
||||
Platform_Plan9_amd64 = Platform("plan9/amd64")
|
||||
Platform_Solaris_amd64 = Platform("solaris/amd64")
|
||||
Platform_Windows_386 = Platform("windows/386")
|
||||
Platform_Windows_amd64 = Platform("windows/amd64")
|
||||
)
|
||||
|
||||
func (Platform) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformOutput() PlatformOutput {
|
||||
return pulumi.ToOutput(e).(PlatformOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformOutputWithContext(ctx context.Context) PlatformOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, e).(PlatformOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return e.ToPlatformPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e Platform) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return Platform(e).ToPlatformOutputWithContext(ctx).ToPlatformPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
func (e Platform) ToStringOutput() pulumi.StringOutput {
|
||||
return pulumi.ToOutput(pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, pulumi.String(e)).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (e Platform) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (e Platform) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return pulumi.String(e).ToStringOutputWithContext(ctx).ToStringPtrOutputWithContext(ctx)
|
||||
}
|
||||
|
||||
type PlatformOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (PlatformOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformOutput() PlatformOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformOutputWithContext(ctx context.Context) PlatformOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return o.ToPlatformPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, v Platform) *Platform {
|
||||
return &v
|
||||
}).(PlatformPtrOutput)
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToOutput(ctx context.Context) pulumix.Output[Platform] {
|
||||
return pulumix.Output[Platform]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringOutput() pulumi.StringOutput {
|
||||
return o.ToStringOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringOutputWithContext(ctx context.Context) pulumi.StringOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e Platform) string {
|
||||
return string(e)
|
||||
}).(pulumi.StringOutput)
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e Platform) *string {
|
||||
v := string(e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
type PlatformPtrOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (PlatformPtrOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((**Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToOutput(ctx context.Context) pulumix.Output[*Platform] {
|
||||
return pulumix.Output[*Platform]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) Elem() PlatformOutput {
|
||||
return o.ApplyT(func(v *Platform) Platform {
|
||||
if v != nil {
|
||||
return *v
|
||||
}
|
||||
var ret Platform
|
||||
return ret
|
||||
}).(PlatformOutput)
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToStringPtrOutput() pulumi.StringPtrOutput {
|
||||
return o.ToStringPtrOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (o PlatformPtrOutput) ToStringPtrOutputWithContext(ctx context.Context) pulumi.StringPtrOutput {
|
||||
return o.ApplyTWithContext(ctx, func(_ context.Context, e *Platform) *string {
|
||||
if e == nil {
|
||||
return nil
|
||||
}
|
||||
v := string(*e)
|
||||
return &v
|
||||
}).(pulumi.StringPtrOutput)
|
||||
}
|
||||
|
||||
// PlatformInput is an input type that accepts values of the Platform enum
|
||||
// A concrete instance of `PlatformInput` can be one of the following:
|
||||
//
|
||||
// Platform_Darwin_386
|
||||
// Platform_Darwin_amd64
|
||||
// Platform_Darwin_arm
|
||||
// Platform_Darwin_arm64
|
||||
// Platform_Dragonfly_amd64
|
||||
// Platform_Freebsd_386
|
||||
// Platform_Freebsd_amd64
|
||||
// Platform_Freebsd_arm
|
||||
// Platform_Linux_386
|
||||
// Platform_Linux_amd64
|
||||
// Platform_Linux_arm
|
||||
// Platform_Linux_arm64
|
||||
// Platform_Linux_mips64
|
||||
// Platform_Linux_mips64le
|
||||
// Platform_Linux_ppc64le
|
||||
// Platform_Linux_riscv64
|
||||
// Platform_Linux_s390x
|
||||
// Platform_Netbsd_386
|
||||
// Platform_Netbsd_amd64
|
||||
// Platform_Netbsd_arm
|
||||
// Platform_Openbsd_386
|
||||
// Platform_Openbsd_amd64
|
||||
// Platform_Openbsd_arm
|
||||
// Platform_Plan9_386
|
||||
// Platform_Plan9_amd64
|
||||
// Platform_Solaris_amd64
|
||||
// Platform_Windows_386
|
||||
// Platform_Windows_amd64
|
||||
type PlatformInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToPlatformOutput() PlatformOutput
|
||||
ToPlatformOutputWithContext(context.Context) PlatformOutput
|
||||
}
|
||||
|
||||
var platformPtrType = reflect.TypeOf((**Platform)(nil)).Elem()
|
||||
|
||||
type PlatformPtrInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToPlatformPtrOutput() PlatformPtrOutput
|
||||
ToPlatformPtrOutputWithContext(context.Context) PlatformPtrOutput
|
||||
}
|
||||
|
||||
type platformPtr string
|
||||
|
||||
func PlatformPtr(v string) PlatformPtrInput {
|
||||
return (*platformPtr)(&v)
|
||||
}
|
||||
|
||||
func (*platformPtr) ElementType() reflect.Type {
|
||||
return platformPtrType
|
||||
}
|
||||
|
||||
func (in *platformPtr) ToPlatformPtrOutput() PlatformPtrOutput {
|
||||
return pulumi.ToOutput(in).(PlatformPtrOutput)
|
||||
}
|
||||
|
||||
func (in *platformPtr) ToPlatformPtrOutputWithContext(ctx context.Context) PlatformPtrOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, in).(PlatformPtrOutput)
|
||||
}
|
||||
|
||||
func (in *platformPtr) ToOutput(ctx context.Context) pulumix.Output[*Platform] {
|
||||
return pulumix.Output[*Platform]{
|
||||
OutputState: in.ToPlatformPtrOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// PlatformArrayInput is an input type that accepts PlatformArray and PlatformArrayOutput values.
|
||||
// You can construct a concrete instance of `PlatformArrayInput` via:
|
||||
//
|
||||
// PlatformArray{ PlatformArgs{...} }
|
||||
type PlatformArrayInput interface {
|
||||
pulumi.Input
|
||||
|
||||
ToPlatformArrayOutput() PlatformArrayOutput
|
||||
ToPlatformArrayOutputWithContext(context.Context) PlatformArrayOutput
|
||||
}
|
||||
|
||||
type PlatformArray []Platform
|
||||
|
||||
func (PlatformArray) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (i PlatformArray) ToPlatformArrayOutput() PlatformArrayOutput {
|
||||
return i.ToPlatformArrayOutputWithContext(context.Background())
|
||||
}
|
||||
|
||||
func (i PlatformArray) ToPlatformArrayOutputWithContext(ctx context.Context) PlatformArrayOutput {
|
||||
return pulumi.ToOutputWithContext(ctx, i).(PlatformArrayOutput)
|
||||
}
|
||||
|
||||
func (i PlatformArray) ToOutput(ctx context.Context) pulumix.Output[[]Platform] {
|
||||
return pulumix.Output[[]Platform]{
|
||||
OutputState: i.ToPlatformArrayOutputWithContext(ctx).OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
type PlatformArrayOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (PlatformArrayOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*[]Platform)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) ToPlatformArrayOutput() PlatformArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) ToPlatformArrayOutputWithContext(ctx context.Context) PlatformArrayOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) ToOutput(ctx context.Context) pulumix.Output[[]Platform] {
|
||||
return pulumix.Output[[]Platform]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o PlatformArrayOutput) Index(i pulumi.IntInput) PlatformOutput {
|
||||
return pulumi.All(o, i).ApplyT(func(vs []interface{}) Platform {
|
||||
return vs[0].([]Platform)[vs[1].(int)]
|
||||
}).(PlatformOutput)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CacheModeInput)(nil)).Elem(), CacheMode("min"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CacheModePtrInput)(nil)).Elem(), CacheMode("min"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CompressionTypeInput)(nil)).Elem(), CompressionType("gzip"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*CompressionTypePtrInput)(nil)).Elem(), CompressionType("gzip"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*NetworkModeInput)(nil)).Elem(), NetworkMode("default"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*NetworkModePtrInput)(nil)).Elem(), NetworkMode("default"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*PlatformInput)(nil)).Elem(), Platform("darwin/386"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*PlatformPtrInput)(nil)).Elem(), Platform("darwin/386"))
|
||||
pulumi.RegisterInputType(reflect.TypeOf((*PlatformArrayInput)(nil)).Elem(), PlatformArray{})
|
||||
pulumi.RegisterOutputType(CacheModeOutput{})
|
||||
pulumi.RegisterOutputType(CacheModePtrOutput{})
|
||||
pulumi.RegisterOutputType(CompressionTypeOutput{})
|
||||
pulumi.RegisterOutputType(CompressionTypePtrOutput{})
|
||||
pulumi.RegisterOutputType(NetworkModeOutput{})
|
||||
pulumi.RegisterOutputType(NetworkModePtrOutput{})
|
||||
pulumi.RegisterOutputType(PlatformOutput{})
|
||||
pulumi.RegisterOutputType(PlatformPtrOutput{})
|
||||
pulumi.RegisterOutputType(PlatformArrayOutput{})
|
||||
}
|
||||
7217
sdk/go/dockerbuild/pulumiTypes.go
generated
Normal file
7217
sdk/go/dockerbuild/pulumiTypes.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
110
sdk/go/dockerbuild/random.go
generated
110
sdk/go/dockerbuild/random.go
generated
@@ -1,110 +0,0 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"github.com/pulumi/pulumi-dockerbuild/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
type Random struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
Length pulumix.Output[int] `pulumi:"length"`
|
||||
Result pulumix.Output[string] `pulumi:"result"`
|
||||
}
|
||||
|
||||
// NewRandom registers a new resource with the given unique name, arguments, and options.
|
||||
func NewRandom(ctx *pulumi.Context,
|
||||
name string, args *RandomArgs, opts ...pulumi.ResourceOption) (*Random, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Length == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Length'")
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Random
|
||||
err := ctx.RegisterResource("dockerbuild:index:Random", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetRandom gets an existing Random resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetRandom(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *RandomState, opts ...pulumi.ResourceOption) (*Random, error) {
|
||||
var resource Random
|
||||
err := ctx.ReadResource("dockerbuild:index:Random", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Random resources.
|
||||
type randomState struct {
|
||||
}
|
||||
|
||||
type RandomState struct {
|
||||
}
|
||||
|
||||
func (RandomState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*randomState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type randomArgs struct {
|
||||
Length int `pulumi:"length"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Random resource.
|
||||
type RandomArgs struct {
|
||||
Length pulumix.Input[int]
|
||||
}
|
||||
|
||||
func (RandomArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*randomArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type RandomOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (RandomOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Random)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o RandomOutput) ToRandomOutput() RandomOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RandomOutput) ToRandomOutputWithContext(ctx context.Context) RandomOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o RandomOutput) ToOutput(ctx context.Context) pulumix.Output[Random] {
|
||||
return pulumix.Output[Random]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
func (o RandomOutput) Length() pulumix.Output[int] {
|
||||
value := pulumix.Apply[Random](o, func(v Random) pulumix.Output[int] { return v.Length })
|
||||
return pulumix.Flatten[int, pulumix.Output[int]](value)
|
||||
}
|
||||
|
||||
func (o RandomOutput) Result() pulumix.Output[string] {
|
||||
value := pulumix.Apply[Random](o, func(v Random) pulumix.Output[string] { return v.Result })
|
||||
return pulumix.Flatten[string, pulumix.Output[string]](value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(RandomOutput{})
|
||||
}
|
||||
28
sdk/go/dockerbuild/x/config/config.go
generated
Normal file
28
sdk/go/dockerbuild/x/config/config.go
generated
Normal file
@@ -0,0 +1,28 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package config
|
||||
|
||||
import (
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
|
||||
)
|
||||
|
||||
var _ = internal.GetEnvOrDefault
|
||||
|
||||
// The build daemon's address.
|
||||
func GetHost(ctx *pulumi.Context) string {
|
||||
v, err := config.Try(ctx, "docker-build:host")
|
||||
if err == nil {
|
||||
return v
|
||||
}
|
||||
var value string
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
value = d.(string)
|
||||
}
|
||||
return value
|
||||
}
|
||||
func GetRegistries(ctx *pulumi.Context) string {
|
||||
return config.Get(ctx, "docker-build:registries")
|
||||
}
|
||||
2
sdk/go/dockerbuild/x/doc.go
generated
Normal file
2
sdk/go/dockerbuild/x/doc.go
generated
Normal file
@@ -0,0 +1,2 @@
|
||||
// A Pulumi provider for building modern Docker images with buildx and BuildKit.
|
||||
package dockerbuild
|
||||
1376
sdk/go/dockerbuild/x/image.go
generated
Normal file
1376
sdk/go/dockerbuild/x/image.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
288
sdk/go/dockerbuild/x/index.go
generated
Normal file
288
sdk/go/dockerbuild/x/index.go
generated
Normal file
@@ -0,0 +1,288 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"errors"
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
// A wrapper around `docker buildx imagetools create` to create an index
|
||||
// (or manifest list) referencing one or more existing images.
|
||||
//
|
||||
// In most cases you do not need an `Index` to build a multi-platform
|
||||
// image -- specifying multiple platforms on the `Image` will handle this
|
||||
// for you automatically.
|
||||
//
|
||||
// However, as of April 2024, building multi-platform images _with
|
||||
// caching_ will only export a cache for one platform at a time (see [this
|
||||
// discussion](https://github.com/docker/buildx/discussions/1382) for more
|
||||
// details).
|
||||
//
|
||||
// Therefore this resource can be helpful if you are building
|
||||
// multi-platform images with caching: each platform can be built and
|
||||
// cached separately, and an `Index` can join them all together. An
|
||||
// example of this is shown below.
|
||||
//
|
||||
// This resource creates an OCI image index or a Docker manifest list
|
||||
// depending on the media types of the source images.
|
||||
//
|
||||
// ## Example Usage
|
||||
// ### Multi-platform registry caching
|
||||
// ```go
|
||||
// package main
|
||||
//
|
||||
// import (
|
||||
//
|
||||
// "github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild"
|
||||
// "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
//
|
||||
// )
|
||||
//
|
||||
// func main() {
|
||||
// pulumi.Run(func(ctx *pulumi.Context) error {
|
||||
// amd64, err := dockerbuild.NewImage(ctx, "amd64", &dockerbuild.ImageArgs{
|
||||
// CacheFrom: dockerbuild.CacheFromArray{
|
||||
// &dockerbuild.CacheFromArgs{
|
||||
// Registry: &dockerbuild.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: dockerbuild.CacheToArray{
|
||||
// &dockerbuild.CacheToArgs{
|
||||
// Registry: &dockerbuild.CacheToRegistryArgs{
|
||||
// Mode: dockerbuild.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-amd64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &dockerbuild.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: docker - build.PlatformArray{
|
||||
// dockerbuild.Platform_Linux_amd64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-amd64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// arm64, err := dockerbuild.NewImage(ctx, "arm64", &dockerbuild.ImageArgs{
|
||||
// CacheFrom: dockerbuild.CacheFromArray{
|
||||
// &dockerbuild.CacheFromArgs{
|
||||
// Registry: &dockerbuild.CacheFromRegistryArgs{
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// CacheTo: dockerbuild.CacheToArray{
|
||||
// &dockerbuild.CacheToArgs{
|
||||
// Registry: &dockerbuild.CacheToRegistryArgs{
|
||||
// Mode: dockerbuild.CacheModeMax,
|
||||
// Ref: pulumi.String("docker.io/pulumi/pulumi:cache-arm64"),
|
||||
// },
|
||||
// },
|
||||
// },
|
||||
// Context: &dockerbuild.BuildContextArgs{
|
||||
// Location: pulumi.String("app"),
|
||||
// },
|
||||
// Platforms: docker - build.PlatformArray{
|
||||
// dockerbuild.Platform_Linux_arm64,
|
||||
// },
|
||||
// Tags: pulumi.StringArray{
|
||||
// pulumi.String("docker.io/pulumi/pulumi:3.107.0-arm64"),
|
||||
// },
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// index, err := dockerbuild.NewIndex(ctx, "index", &dockerbuild.IndexArgs{
|
||||
// Sources: pulumi.StringArray{
|
||||
// amd64.Ref,
|
||||
// arm64.Ref,
|
||||
// },
|
||||
// Tag: pulumi.String("docker.io/pulumi/pulumi:3.107.0"),
|
||||
// })
|
||||
// if err != nil {
|
||||
// return err
|
||||
// }
|
||||
// ctx.Export("ref", index.Ref)
|
||||
// return nil
|
||||
// })
|
||||
// }
|
||||
//
|
||||
// ```
|
||||
type Index struct {
|
||||
pulumi.CustomResourceState
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumix.Output[*bool] `pulumi:"push"`
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
Ref pulumix.Output[string] `pulumi:"ref"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry pulumix.GPtrOutput[Registry, RegistryOutput] `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources pulumix.ArrayOutput[string] `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag pulumix.Output[string] `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// NewIndex registers a new resource with the given unique name, arguments, and options.
|
||||
func NewIndex(ctx *pulumi.Context,
|
||||
name string, args *IndexArgs, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
if args == nil {
|
||||
return nil, errors.New("missing one or more required arguments")
|
||||
}
|
||||
|
||||
if args.Sources == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Sources'")
|
||||
}
|
||||
if args.Tag == nil {
|
||||
return nil, errors.New("invalid value for required argument 'Tag'")
|
||||
}
|
||||
if args.Push == nil {
|
||||
args.Push = pulumix.Ptr(true)
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Index
|
||||
err := ctx.RegisterResource("docker-build:index:Index", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// GetIndex gets an existing Index resource's state with the given name, ID, and optional
|
||||
// state properties that are used to uniquely qualify the lookup (nil if not required).
|
||||
func GetIndex(ctx *pulumi.Context,
|
||||
name string, id pulumi.IDInput, state *IndexState, opts ...pulumi.ResourceOption) (*Index, error) {
|
||||
var resource Index
|
||||
err := ctx.ReadResource("docker-build:index:Index", name, id, state, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
// Input properties used for looking up and filtering Index resources.
|
||||
type indexState struct {
|
||||
}
|
||||
|
||||
type IndexState struct {
|
||||
}
|
||||
|
||||
func (IndexState) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexState)(nil)).Elem()
|
||||
}
|
||||
|
||||
type indexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push *bool `pulumi:"push"`
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry *Registry `pulumi:"registry"`
|
||||
// Existing images to include in the index.
|
||||
Sources []string `pulumi:"sources"`
|
||||
// The tag to apply to the index.
|
||||
Tag string `pulumi:"tag"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Index resource.
|
||||
type IndexArgs struct {
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
Push pulumix.Input[*bool]
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
Registry pulumix.Input[*RegistryArgs]
|
||||
// Existing images to include in the index.
|
||||
Sources pulumix.Input[[]string]
|
||||
// The tag to apply to the index.
|
||||
Tag pulumix.Input[string]
|
||||
}
|
||||
|
||||
func (IndexArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*indexArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type IndexOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (IndexOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Index)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutput() IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToIndexOutputWithContext(ctx context.Context) IndexOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o IndexOutput) ToOutput(ctx context.Context) pulumix.Output[Index] {
|
||||
return pulumix.Output[Index]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// If true, push the index to the target registry.
|
||||
//
|
||||
// Defaults to `true`.
|
||||
func (o IndexOutput) Push() pulumix.Output[*bool] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.Output[*bool] { return v.Push })
|
||||
return pulumix.Flatten[*bool, pulumix.Output[*bool]](value)
|
||||
}
|
||||
|
||||
// The pushed tag with digest.
|
||||
//
|
||||
// Identical to the tag if the index was not pushed.
|
||||
func (o IndexOutput) Ref() pulumix.Output[string] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.Output[string] { return v.Ref })
|
||||
return pulumix.Flatten[string, pulumix.Output[string]](value)
|
||||
}
|
||||
|
||||
// Authentication for the registry where the tagged index will be pushed.
|
||||
//
|
||||
// Credentials can also be included with the provider's configuration.
|
||||
func (o IndexOutput) Registry() pulumix.GPtrOutput[Registry, RegistryOutput] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.GPtrOutput[Registry, RegistryOutput] { return v.Registry })
|
||||
unwrapped := pulumix.Flatten[*Registry, pulumix.GPtrOutput[Registry, RegistryOutput]](value)
|
||||
return pulumix.GPtrOutput[Registry, RegistryOutput]{OutputState: unwrapped.OutputState}
|
||||
}
|
||||
|
||||
// Existing images to include in the index.
|
||||
func (o IndexOutput) Sources() pulumix.ArrayOutput[string] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.ArrayOutput[string] { return v.Sources })
|
||||
unwrapped := pulumix.Flatten[[]string, pulumix.ArrayOutput[string]](value)
|
||||
return pulumix.ArrayOutput[string]{OutputState: unwrapped.OutputState}
|
||||
}
|
||||
|
||||
// The tag to apply to the index.
|
||||
func (o IndexOutput) Tag() pulumix.Output[string] {
|
||||
value := pulumix.Apply[Index](o, func(v Index) pulumix.Output[string] { return v.Tag })
|
||||
return pulumix.Flatten[string, pulumix.Output[string]](value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(IndexOutput{})
|
||||
}
|
||||
68
sdk/go/dockerbuild/x/init.go
generated
Normal file
68
sdk/go/dockerbuild/x/init.go
generated
Normal file
@@ -0,0 +1,68 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/blang/semver"
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
)
|
||||
|
||||
type module struct {
|
||||
version semver.Version
|
||||
}
|
||||
|
||||
func (m *module) Version() semver.Version {
|
||||
return m.version
|
||||
}
|
||||
|
||||
func (m *module) Construct(ctx *pulumi.Context, name, typ, urn string) (r pulumi.Resource, err error) {
|
||||
switch typ {
|
||||
case "docker-build:index:Image":
|
||||
r = &Image{}
|
||||
case "docker-build:index:Index":
|
||||
r = &Index{}
|
||||
default:
|
||||
return nil, fmt.Errorf("unknown resource type: %s", typ)
|
||||
}
|
||||
|
||||
err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
|
||||
return
|
||||
}
|
||||
|
||||
type pkg struct {
|
||||
version semver.Version
|
||||
}
|
||||
|
||||
func (p *pkg) Version() semver.Version {
|
||||
return p.version
|
||||
}
|
||||
|
||||
func (p *pkg) ConstructProvider(ctx *pulumi.Context, name, typ, urn string) (pulumi.ProviderResource, error) {
|
||||
if typ != "pulumi:providers:docker-build" {
|
||||
return nil, fmt.Errorf("unknown provider type: %s", typ)
|
||||
}
|
||||
|
||||
r := &Provider{}
|
||||
err := ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
|
||||
return r, err
|
||||
}
|
||||
|
||||
func init() {
|
||||
version, err := internal.PkgVersion()
|
||||
if err != nil {
|
||||
version = semver.Version{Major: 1}
|
||||
}
|
||||
pulumi.RegisterResourceModule(
|
||||
"docker-build",
|
||||
"index",
|
||||
&module{version},
|
||||
)
|
||||
pulumi.RegisterResourcePackage(
|
||||
"docker-build",
|
||||
&pkg{version},
|
||||
)
|
||||
}
|
||||
88
sdk/go/dockerbuild/x/provider.go
generated
Normal file
88
sdk/go/dockerbuild/x/provider.go
generated
Normal file
@@ -0,0 +1,88 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"github.com/pulumi/pulumi-docker-build/sdk/go/dockerbuild/internal"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
|
||||
"github.com/pulumi/pulumi/sdk/v3/go/pulumix"
|
||||
)
|
||||
|
||||
type Provider struct {
|
||||
pulumi.ProviderResourceState
|
||||
|
||||
// The build daemon's address.
|
||||
Host pulumix.Output[*string] `pulumi:"host"`
|
||||
}
|
||||
|
||||
// NewProvider registers a new resource with the given unique name, arguments, and options.
|
||||
func NewProvider(ctx *pulumi.Context,
|
||||
name string, args *ProviderArgs, opts ...pulumi.ResourceOption) (*Provider, error) {
|
||||
if args == nil {
|
||||
args = &ProviderArgs{}
|
||||
}
|
||||
|
||||
if args.Host == nil {
|
||||
if d := internal.GetEnvOrDefault("", nil, "DOCKER_HOST"); d != nil {
|
||||
args.Host = pulumix.Ptr(d.(string))
|
||||
}
|
||||
}
|
||||
opts = internal.PkgResourceDefaultOpts(opts)
|
||||
var resource Provider
|
||||
err := ctx.RegisterResource("pulumi:providers:docker-build", name, args, &resource, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &resource, nil
|
||||
}
|
||||
|
||||
type providerArgs struct {
|
||||
// The build daemon's address.
|
||||
Host *string `pulumi:"host"`
|
||||
Registries []Registry `pulumi:"registries"`
|
||||
}
|
||||
|
||||
// The set of arguments for constructing a Provider resource.
|
||||
type ProviderArgs struct {
|
||||
// The build daemon's address.
|
||||
Host pulumix.Input[*string]
|
||||
Registries pulumix.Input[[]*RegistryArgs]
|
||||
}
|
||||
|
||||
func (ProviderArgs) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*providerArgs)(nil)).Elem()
|
||||
}
|
||||
|
||||
type ProviderOutput struct{ *pulumi.OutputState }
|
||||
|
||||
func (ProviderOutput) ElementType() reflect.Type {
|
||||
return reflect.TypeOf((*Provider)(nil)).Elem()
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutput() ProviderOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToProviderOutputWithContext(ctx context.Context) ProviderOutput {
|
||||
return o
|
||||
}
|
||||
|
||||
func (o ProviderOutput) ToOutput(ctx context.Context) pulumix.Output[Provider] {
|
||||
return pulumix.Output[Provider]{
|
||||
OutputState: o.OutputState,
|
||||
}
|
||||
}
|
||||
|
||||
// The build daemon's address.
|
||||
func (o ProviderOutput) Host() pulumix.Output[*string] {
|
||||
value := pulumix.Apply[Provider](o, func(v Provider) pulumix.Output[*string] { return v.Host })
|
||||
return pulumix.Flatten[*string, pulumix.Output[*string]](value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
pulumi.RegisterOutputType(ProviderOutput{})
|
||||
}
|
||||
68
sdk/go/dockerbuild/x/pulumiEnums.go
generated
Normal file
68
sdk/go/dockerbuild/x/pulumiEnums.go
generated
Normal file
@@ -0,0 +1,68 @@
|
||||
// Code generated by pulumi-language-go DO NOT EDIT.
|
||||
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
|
||||
|
||||
package dockerbuild
|
||||
|
||||
type CacheMode string
|
||||
|
||||
const (
|
||||
// Only layers that are exported into the resulting image are cached.
|
||||
CacheModeCacheModeMin = CacheMode("min")
|
||||
// All layers are cached, even those of intermediate steps.
|
||||
CacheModeCacheModeMax = CacheMode("max")
|
||||
)
|
||||
|
||||
type CompressionType string
|
||||
|
||||
const (
|
||||
// Use `gzip` for compression.
|
||||
CompressionTypeCompressionTypeGzip = CompressionType("gzip")
|
||||
// Use `estargz` for compression.
|
||||
CompressionTypeCompressionTypeEstargz = CompressionType("estargz")
|
||||
// Use `zstd` for compression.
|
||||
CompressionTypeCompressionTypeZstd = CompressionType("zstd")
|
||||
)
|
||||
|
||||
type NetworkMode string
|
||||
|
||||
const (
|
||||
// The default sandbox network mode.
|
||||
NetworkModeNetworkModeDefault = NetworkMode("default")
|
||||
// Host network mode.
|
||||
NetworkModeNetworkModeHost = NetworkMode("host")
|
||||
// Disable network access.
|
||||
NetworkModeNetworkModeNone = NetworkMode("none")
|
||||
)
|
||||
|
||||
type Platform string
|
||||
|
||||
const (
|
||||
Platform_Platform_Darwin_386 = Platform("darwin/386")
|
||||
Platform_Platform_Darwin_amd64 = Platform("darwin/amd64")
|
||||
Platform_Platform_Darwin_arm = Platform("darwin/arm")
|
||||
Platform_Platform_Darwin_arm64 = Platform("darwin/arm64")
|
||||
Platform_Platform_Dragonfly_amd64 = Platform("dragonfly/amd64")
|
||||
Platform_Platform_Freebsd_386 = Platform("freebsd/386")
|
||||
Platform_Platform_Freebsd_amd64 = Platform("freebsd/amd64")
|
||||
Platform_Platform_Freebsd_arm = Platform("freebsd/arm")
|
||||
Platform_Platform_Linux_386 = Platform("linux/386")
|
||||
Platform_Platform_Linux_amd64 = Platform("linux/amd64")
|
||||
Platform_Platform_Linux_arm = Platform("linux/arm")
|
||||
Platform_Platform_Linux_arm64 = Platform("linux/arm64")
|
||||
Platform_Platform_Linux_mips64 = Platform("linux/mips64")
|
||||
Platform_Platform_Linux_mips64le = Platform("linux/mips64le")
|
||||
Platform_Platform_Linux_ppc64le = Platform("linux/ppc64le")
|
||||
Platform_Platform_Linux_riscv64 = Platform("linux/riscv64")
|
||||
Platform_Platform_Linux_s390x = Platform("linux/s390x")
|
||||
Platform_Platform_Netbsd_386 = Platform("netbsd/386")
|
||||
Platform_Platform_Netbsd_amd64 = Platform("netbsd/amd64")
|
||||
Platform_Platform_Netbsd_arm = Platform("netbsd/arm")
|
||||
Platform_Platform_Openbsd_386 = Platform("openbsd/386")
|
||||
Platform_Platform_Openbsd_amd64 = Platform("openbsd/amd64")
|
||||
Platform_Platform_Openbsd_arm = Platform("openbsd/arm")
|
||||
Platform_Platform_Plan9_386 = Platform("plan9/386")
|
||||
Platform_Platform_Plan9_amd64 = Platform("plan9/amd64")
|
||||
Platform_Platform_Solaris_amd64 = Platform("solaris/amd64")
|
||||
Platform_Platform_Windows_386 = Platform("windows/386")
|
||||
Platform_Platform_Windows_amd64 = Platform("windows/amd64")
|
||||
)
|
||||
3413
sdk/go/dockerbuild/x/pulumiTypes.go
generated
Normal file
3413
sdk/go/dockerbuild/x/pulumiTypes.go
generated
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user