diff --git a/Makefile b/Makefile
index 390775357..abe4c8d16 100644
--- a/Makefile
+++ b/Makefile
@@ -65,6 +65,8 @@ test_build:: $(TEST_ALL_DEPS)
cd tests/testprovider && go build -o pulumi-resource-testprovider
cd tests/integration/construct_component/testcomponent && yarn install && yarn link @pulumi/pulumi && yarn run tsc
cd tests/integration/construct_component/testcomponent-go && go build -o pulumi-resource-testcomponent
+ cd tests/integration/construct_component_output_values/testcomponent && yarn install && yarn link @pulumi/pulumi && yarn run tsc
+ cd tests/integration/construct_component_output_values/testcomponent-go && go build -o pulumi-resource-testcomponent
cd tests/integration/construct_component_slow/testcomponent && yarn install && yarn link @pulumi/pulumi && yarn run tsc
cd tests/integration/construct_component_plain/testcomponent && yarn install && yarn link @pulumi/pulumi && yarn run tsc
cd tests/integration/construct_component_plain/testcomponent-go && go build -o pulumi-resource-testcomponent
diff --git a/build.proj b/build.proj
index f9fff6d8b..3ef1e2d26 100644
--- a/build.proj
+++ b/build.proj
@@ -271,6 +271,10 @@
WorkingDirectory="$(TestsDirectory)\integration\construct_component\testcomponent" />
+
+
+
+
diff --git a/tests/integration/construct_component_output_values/go/Pulumi.yaml b/tests/integration/construct_component_output_values/go/Pulumi.yaml
new file mode 100644
index 000000000..30a7fa77b
--- /dev/null
+++ b/tests/integration/construct_component_output_values/go/Pulumi.yaml
@@ -0,0 +1,3 @@
+name: construct_component_output_values_go
+description: A program that constructs remote component resources with output values.
+runtime: go
diff --git a/tests/integration/construct_component_output_values/go/component.go b/tests/integration/construct_component_output_values/go/component.go
new file mode 100644
index 000000000..3f934eb53
--- /dev/null
+++ b/tests/integration/construct_component_output_values/go/component.go
@@ -0,0 +1,241 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+package main
+
+import (
+ "context"
+ "reflect"
+
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+type Component struct {
+ pulumi.ResourceState
+}
+
+// NewComponent registers a new resource with the given unique name, arguments, and options.
+func NewComponent(ctx *pulumi.Context,
+ name string, args *ComponentArgs, opts ...pulumi.ResourceOption) (*Component, error) {
+ if args == nil {
+ args = &ComponentArgs{}
+ }
+
+ var resource Component
+ err := ctx.RegisterRemoteComponentResource("testcomponent:index:Component", name, args, &resource, opts...)
+ if err != nil {
+ return nil, err
+ }
+ return &resource, nil
+}
+
+type componentArgs struct {
+ Bar *Bar `pulumi:"bar"`
+ Foo *Foo `pulumi:"foo"`
+}
+
+// The set of arguments for constructing a Component resource.
+type ComponentArgs struct {
+ Bar BarPtrInput
+ Foo *FooArgs
+}
+
+func (ComponentArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*componentArgs)(nil)).Elem()
+}
+
+type ComponentInput interface {
+ pulumi.Input
+
+ ToComponentOutput() ComponentOutput
+ ToComponentOutputWithContext(ctx context.Context) ComponentOutput
+}
+
+func (*Component) ElementType() reflect.Type {
+ return reflect.TypeOf((*Component)(nil))
+}
+
+func (i *Component) ToComponentOutput() ComponentOutput {
+ return i.ToComponentOutputWithContext(context.Background())
+}
+
+func (i *Component) ToComponentOutputWithContext(ctx context.Context) ComponentOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(ComponentOutput)
+}
+
+func (i *Component) ToComponentPtrOutput() ComponentPtrOutput {
+ return i.ToComponentPtrOutputWithContext(context.Background())
+}
+
+func (i *Component) ToComponentPtrOutputWithContext(ctx context.Context) ComponentPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(ComponentPtrOutput)
+}
+
+type ComponentPtrInput interface {
+ pulumi.Input
+
+ ToComponentPtrOutput() ComponentPtrOutput
+ ToComponentPtrOutputWithContext(ctx context.Context) ComponentPtrOutput
+}
+
+type componentPtrType ComponentArgs
+
+func (*componentPtrType) ElementType() reflect.Type {
+ return reflect.TypeOf((**Component)(nil))
+}
+
+func (i *componentPtrType) ToComponentPtrOutput() ComponentPtrOutput {
+ return i.ToComponentPtrOutputWithContext(context.Background())
+}
+
+func (i *componentPtrType) ToComponentPtrOutputWithContext(ctx context.Context) ComponentPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(ComponentPtrOutput)
+}
+
+// ComponentArrayInput is an input type that accepts ComponentArray and ComponentArrayOutput values.
+// You can construct a concrete instance of `ComponentArrayInput` via:
+//
+// ComponentArray{ ComponentArgs{...} }
+type ComponentArrayInput interface {
+ pulumi.Input
+
+ ToComponentArrayOutput() ComponentArrayOutput
+ ToComponentArrayOutputWithContext(context.Context) ComponentArrayOutput
+}
+
+type ComponentArray []ComponentInput
+
+func (ComponentArray) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]*Component)(nil)).Elem()
+}
+
+func (i ComponentArray) ToComponentArrayOutput() ComponentArrayOutput {
+ return i.ToComponentArrayOutputWithContext(context.Background())
+}
+
+func (i ComponentArray) ToComponentArrayOutputWithContext(ctx context.Context) ComponentArrayOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(ComponentArrayOutput)
+}
+
+// ComponentMapInput is an input type that accepts ComponentMap and ComponentMapOutput values.
+// You can construct a concrete instance of `ComponentMapInput` via:
+//
+// ComponentMap{ "key": ComponentArgs{...} }
+type ComponentMapInput interface {
+ pulumi.Input
+
+ ToComponentMapOutput() ComponentMapOutput
+ ToComponentMapOutputWithContext(context.Context) ComponentMapOutput
+}
+
+type ComponentMap map[string]ComponentInput
+
+func (ComponentMap) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]*Component)(nil)).Elem()
+}
+
+func (i ComponentMap) ToComponentMapOutput() ComponentMapOutput {
+ return i.ToComponentMapOutputWithContext(context.Background())
+}
+
+func (i ComponentMap) ToComponentMapOutputWithContext(ctx context.Context) ComponentMapOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(ComponentMapOutput)
+}
+
+type ComponentOutput struct{ *pulumi.OutputState }
+
+func (ComponentOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*Component)(nil))
+}
+
+func (o ComponentOutput) ToComponentOutput() ComponentOutput {
+ return o
+}
+
+func (o ComponentOutput) ToComponentOutputWithContext(ctx context.Context) ComponentOutput {
+ return o
+}
+
+func (o ComponentOutput) ToComponentPtrOutput() ComponentPtrOutput {
+ return o.ToComponentPtrOutputWithContext(context.Background())
+}
+
+func (o ComponentOutput) ToComponentPtrOutputWithContext(ctx context.Context) ComponentPtrOutput {
+ return o.ApplyTWithContext(ctx, func(_ context.Context, v Component) *Component {
+ return &v
+ }).(ComponentPtrOutput)
+}
+
+type ComponentPtrOutput struct{ *pulumi.OutputState }
+
+func (ComponentPtrOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**Component)(nil))
+}
+
+func (o ComponentPtrOutput) ToComponentPtrOutput() ComponentPtrOutput {
+ return o
+}
+
+func (o ComponentPtrOutput) ToComponentPtrOutputWithContext(ctx context.Context) ComponentPtrOutput {
+ return o
+}
+
+func (o ComponentPtrOutput) Elem() ComponentOutput {
+ return o.ApplyT(func(v *Component) Component {
+ if v != nil {
+ return *v
+ }
+ var ret Component
+ return ret
+ }).(ComponentOutput)
+}
+
+type ComponentArrayOutput struct{ *pulumi.OutputState }
+
+func (ComponentArrayOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*[]Component)(nil))
+}
+
+func (o ComponentArrayOutput) ToComponentArrayOutput() ComponentArrayOutput {
+ return o
+}
+
+func (o ComponentArrayOutput) ToComponentArrayOutputWithContext(ctx context.Context) ComponentArrayOutput {
+ return o
+}
+
+func (o ComponentArrayOutput) Index(i pulumi.IntInput) ComponentOutput {
+ return pulumi.All(o, i).ApplyT(func(vs []interface{}) Component {
+ return vs[0].([]Component)[vs[1].(int)]
+ }).(ComponentOutput)
+}
+
+type ComponentMapOutput struct{ *pulumi.OutputState }
+
+func (ComponentMapOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*map[string]Component)(nil))
+}
+
+func (o ComponentMapOutput) ToComponentMapOutput() ComponentMapOutput {
+ return o
+}
+
+func (o ComponentMapOutput) ToComponentMapOutputWithContext(ctx context.Context) ComponentMapOutput {
+ return o
+}
+
+func (o ComponentMapOutput) MapIndex(k pulumi.StringInput) ComponentOutput {
+ return pulumi.All(o, k).ApplyT(func(vs []interface{}) Component {
+ return vs[0].(map[string]Component)[vs[1].(string)]
+ }).(ComponentOutput)
+}
+
+func init() {
+ pulumi.RegisterInputType(reflect.TypeOf((*ComponentInput)(nil)).Elem(), &Component{})
+ pulumi.RegisterInputType(reflect.TypeOf((*ComponentPtrInput)(nil)).Elem(), &Component{})
+ pulumi.RegisterInputType(reflect.TypeOf((*ComponentArrayInput)(nil)).Elem(), ComponentArray{})
+ pulumi.RegisterInputType(reflect.TypeOf((*ComponentMapInput)(nil)).Elem(), ComponentMap{})
+ pulumi.RegisterOutputType(ComponentOutput{})
+ pulumi.RegisterOutputType(ComponentPtrOutput{})
+ pulumi.RegisterOutputType(ComponentArrayOutput{})
+ pulumi.RegisterOutputType(ComponentMapOutput{})
+}
diff --git a/tests/integration/construct_component_output_values/go/go.mod b/tests/integration/construct_component_output_values/go/go.mod
new file mode 100644
index 000000000..63acef38a
--- /dev/null
+++ b/tests/integration/construct_component_output_values/go/go.mod
@@ -0,0 +1,5 @@
+module github.com/pulumi/pulumi/tests/construct_component_output_values
+
+go 1.16
+
+require github.com/pulumi/pulumi/sdk/v3 v3.0.0-20210322210933-10a6a2caf014
diff --git a/tests/integration/construct_component_output_values/go/go.sum b/tests/integration/construct_component_output_values/go/go.sum
new file mode 100644
index 000000000..47dbf207d
--- /dev/null
+++ b/tests/integration/construct_component_output_values/go/go.sum
@@ -0,0 +1,431 @@
+cloud.google.com/go v0.26.0 h1:e0WKqKTd5BnrG8aKH3J3h+QvEIQtSUcf2n5UZ5ZgLtQ=
+cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
+github.com/BurntSushi/toml v0.3.1 h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=
+github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
+github.com/Microsoft/go-winio v0.4.14 h1:+hMXMk01us9KgxGb7ftKQt2Xpf5hH/yky+TDA+qxleU=
+github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA=
+github.com/OneOfOne/xxhash v1.2.2 h1:KMrpdQIwFcEqXDklaen+P1axHaj9BSKzvpUUfnHldSE=
+github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU=
+github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7 h1:uSoVVbwJiQipAclBbw+8quDsfcvFjOpI5iCf4p/cqCs=
+github.com/alcortesm/tgz v0.0.0-20161220082320-9c5fe88206d7/go.mod h1:6zEj6s6u/ghQa61ZWa/C2Aw3RkjiTBOix7dkqa1VLIs=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc h1:cAKDfWh5VpdgMhJosfJnn5/FoN2SRZ4p7fJNX58YPaU=
+github.com/alecthomas/template v0.0.0-20160405071501-a0175ee3bccc/go.mod h1:LOuyumcjzFXgccqObfd/Ljyb9UuFJ6TxHnclSeseNhc=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf h1:qet1QNfXsQxTZqLG4oE62mJzwPIB8+Tee4RNCL9ulrY=
+github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
+github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239 h1:kFOfPq6dUM1hTo4JG6LR5AXSUEsOjtdm0kw0FtQtMJA=
+github.com/anmitsu/go-shlex v0.0.0-20161002113705-648efa622239/go.mod h1:2FmKhYUyUczH0OGQWaF5ceTx0UBShxjsH6f8oGKYe2c=
+github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 h1:G1bPvciwNyF7IUmKXNt9Ak3m6u9DE1rF+RmtIkBpVdA=
+github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
+github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5 h1:0CwZNZbxp69SHPdPJAN/hZIm0C4OItdklCFmMRWYpio=
+github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkYZB8zMSxRWpUBQtwG5a7fFgvEO+odwuTv2gs=
+github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
+github.com/beorn7/perks v1.0.0 h1:HWo1m869IqiPhD389kmkxeTalrjNbbJTC8LXupb+sl0=
+github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
+github.com/blang/semver v3.5.1+incompatible h1:cQNTCjp13qL8KC3Nbxr/y2Bqb63oX6wdnnjpJbkM4JQ=
+github.com/blang/semver v3.5.1+incompatible/go.mod h1:kRBLl5iJ+tD4TcOOxsy/0fnwebNt5EWlYSAyrTnjyyk=
+github.com/census-instrumentation/opencensus-proto v0.2.1 h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=
+github.com/census-instrumentation/opencensus-proto v0.2.1/go.mod h1:f6KPmirojxKA12rnyqOA5BBL4O983OfeGPqjHWSTneU=
+github.com/cespare/xxhash v1.1.0 h1:a6HrQnmkObjyL+Gs60czilIUGqrzKutQD6XZog3p+ko=
+github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
+github.com/cheggaaa/pb v1.0.18 h1:G/DgkKaBP0V5lnBg/vx61nVxxAU+VqU5yMzSc0f2PPE=
+github.com/cheggaaa/pb v1.0.18/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
+github.com/client9/misspell v0.3.4 h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=
+github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=
+github.com/cncf/udpa/go v0.0.0-20191209042840-269d4d468f6f/go.mod h1:M8M6+tZqaGXZJjfX53e64911xZQV5JYwmTeXPW+k8Sc=
+github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd h1:qMd81Ts1T2OTKmB4acZcyKaMtRnY5Y44NuXGX2GFJ1w=
+github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
+github.com/coreos/bbolt v1.3.2 h1:wZwiHHUieZCquLkDL0B8UhzreNWsPHooDAG3q34zk0s=
+github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=
+github.com/coreos/etcd v3.3.10+incompatible h1:jFneRYjIvLMLhDLCzuTuU4rSJUjRplcJQ7pD7MnhC04=
+github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=
+github.com/coreos/go-semver v0.2.0 h1:3Jm3tLmsgAYcjC+4Up7hJrFBPr+n7rAqYeSw/SZazuY=
+github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk=
+github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e h1:Wf6HqHfScWJN9/ZjdUKyjop4mf3Qdd+1TvvltAvM3m8=
+github.com/coreos/go-systemd v0.0.0-20190321100706-95778dfbb74e/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
+github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f h1:lBNOc5arjvs8E5mO2tbpBpLoyyu8B6e44T7hJy6potg=
+github.com/coreos/pkg v0.0.0-20180928190104-399ea9e2e55f/go.mod h1:E3G3o1h8I7cfcXa63jLwjI0eiQQMgzzUDFVpN/nH/eA=
+github.com/cpuguy83/go-md2man/v2 v2.0.0 h1:EoUDS0afbrsXAZ9YQ9jdu/mZ2sXgT1/2yyNng4PGlyM=
+github.com/cpuguy83/go-md2man/v2 v2.0.0/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
+github.com/creack/pty v1.1.7/go.mod h1:lj5s0c3V2DBrqTV7llrYr5NG6My20zk30Fl46Y7DoTY=
+github.com/creack/pty v1.1.9 h1:uDmaGzcdjhF4i/plgjmEsriH11Y0o7RKapEf/LDaM3w=
+github.com/creack/pty v1.1.9/go.mod h1:oKZEueFk5CKHvIhNR5MUki03XCEU+Q6VDXinZuGJ33E=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
+github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
+github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954 h1:RMLoZVzv4GliuWafOuPuQDKSm1SJph7uCRnnS61JAn4=
+github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
+github.com/djherbis/times v1.2.0 h1:xANXjsC/iBqbO00vkWlYwPWgBgEVU6m6AFYg0Pic+Mc=
+github.com/djherbis/times v1.2.0/go.mod h1:CGMZlo255K5r4Yw0b9RRfFQpM2y7uOmxg4jm9HsaVf8=
+github.com/emirpasic/gods v1.12.0 h1:QAUIPSaCu4G+POclxeqb3F+WPpdKqFGlw36+yOzGlrg=
+github.com/emirpasic/gods v1.12.0/go.mod h1:YfzfFFoVP/catgzJb4IKIqXjX78Ha8FMSDh3ymbK86o=
+github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4=
+github.com/envoyproxy/go-control-plane v0.9.4 h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=
+github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=
+github.com/envoyproxy/protoc-gen-validate v0.1.0 h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=
+github.com/envoyproxy/protoc-gen-validate v0.1.0/go.mod h1:iSmxcyjqTsJpI2R4NaDN7+kN2VEUnK/pcBlmesArF7c=
+github.com/fatih/color v1.9.0 h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=
+github.com/fatih/color v1.9.0/go.mod h1:eQcE1qtQxscV5RaZvpXrrb8Drkc3/DdQ+uUYCNjL+zU=
+github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568 h1:BHsljHzVlRcyQhjrss6TZTdY2VfCqZPbv5k3iBFa2ZQ=
+github.com/flynn/go-shlex v0.0.0-20150515145356-3f9db97f8568/go.mod h1:xEzjJPgXI435gkrCt3MPfRiAkVrwSbHsst4LCFVfpJc=
+github.com/fsnotify/fsnotify v1.4.7/go.mod h1:jwhsz4b93w/PPRr/qN1Yymfu8t87LnFCMoQvtojpjFo=
+github.com/fsnotify/fsnotify v1.4.9 h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=
+github.com/fsnotify/fsnotify v1.4.9/go.mod h1:znqG4EE+3YCdAaPaxE2ZRY/06pZUdp0tY4IgpuI1SZQ=
+github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk=
+github.com/ghodss/yaml v1.0.0/go.mod h1:4dBDuWmgqj2HViK6kFavaiC9ZROes6MMH2rRYeMEF04=
+github.com/gliderlabs/ssh v0.2.2 h1:6zsha5zo/TWhRhwqCD3+EarCAgZ2yN28ipRnGPnwkI0=
+github.com/gliderlabs/ssh v0.2.2/go.mod h1:U7qILu1NlMHj9FlMhZLlkCdDnU1DBEAqr0aevW3Awn0=
+github.com/go-kit/kit v0.8.0 h1:Wz+5lgoB0kkuqLEc6NVmwRknTKP6dTGbSqvhZtBI/j0=
+github.com/go-kit/kit v0.8.0/go.mod h1:xBxKIO96dXMWWy0MnWVtmwkA9/13aqxPnvrjFYMA2as=
+github.com/go-logfmt/logfmt v0.3.0/go.mod h1:Qt1PoO58o5twSAckw1HlFXLmHsOX5/0LbT9GBnD5lWE=
+github.com/go-logfmt/logfmt v0.4.0 h1:MP4Eh7ZCb31lleYCFuwm0oe4/YGak+5l1vA2NOE80nA=
+github.com/go-logfmt/logfmt v0.4.0/go.mod h1:3RMwSq7FuexP4Kalkev3ejPJsZTpXXBr9+V4qmtdjCk=
+github.com/go-stack/stack v1.8.0 h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=
+github.com/go-stack/stack v1.8.0/go.mod h1:v0f6uXyyMGvRgIKkXu+yp6POWl0qKG85gN/melR3HDY=
+github.com/gofrs/flock v0.7.1 h1:DP+LD/t0njgoPBvT5MJLeliUIVQR03hiKR6vezdwHlc=
+github.com/gofrs/flock v0.7.1/go.mod h1:F1TvTiK9OcQqauNUHlbJvyl9Qa1QvF/gOUDKA14jxHU=
+github.com/gofrs/uuid v3.3.0+incompatible h1:8K4tyRfvU1CYPgJsveYFQMhpFd/wXNM7iK6rR7UHz84=
+github.com/gofrs/uuid v3.3.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
+github.com/gogo/protobuf v1.1.1/go.mod h1:r8qH/GZQm5c6nD/R0oafs1akxWv10x8SbQlK7atdtwQ=
+github.com/gogo/protobuf v1.2.1/go.mod h1:hp+jE20tsWTFYpLwKvXlhS1hjn+gTNwPg2I6zVXpSg4=
+github.com/gogo/protobuf v1.3.1 h1:DqDEcV5aeaTmdFBePNpYsp3FlcVH/2ISVVM9Qf8PSls=
+github.com/gogo/protobuf v1.3.1/go.mod h1:SlYgWuQ5SjCEi6WLHjHCa1yvBfUnHcTbrrZtXPKa29o=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=
+github.com/golang/glog v0.0.0-20160126235308-23def4e6c14b/go.mod h1:SBH7ygxi8pfUlaOkMMuAQtPIUF8ecWP5IEl/CR7VP2Q=
+github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef h1:veQD95Isof8w9/WXiA+pa3tz3fJXkt5B7QaRBrM62gk=
+github.com/golang/groupcache v0.0.0-20190129154638-5b532d6fd5ef/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
+github.com/golang/mock v1.1.1 h1:G5FRp8JnTd7RQH5kemVNlMeyXQAztQ3mOWV95KxsXH8=
+github.com/golang/mock v1.1.1/go.mod h1:oTYuIxOrZwtPieC+H1uAHpcLFnEyAGVDL/k47Jfbm0A=
+github.com/golang/protobuf v1.2.0/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.1/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/golang/protobuf v1.4.0-rc.1/go.mod h1:ceaxUfeHdC40wWswd/P6IGgMaK3YpKi5j83Wpe3EHw8=
+github.com/golang/protobuf v1.4.0-rc.1.0.20200221234624-67d41d38c208/go.mod h1:xKAWHe0F5eneWXFV3EuXVDTCmh+JuBKY0li0aMyXATA=
+github.com/golang/protobuf v1.4.0-rc.2/go.mod h1:LlEzMj4AhA7rCAGe4KMBDvJI+AwstrUpVNzEA03Pprs=
+github.com/golang/protobuf v1.4.0-rc.4.0.20200313231945-b860323f09d0/go.mod h1:WU3c8KckQ9AFe+yFwt9sWVRKCVIyN9cPHBJSNnbL67w=
+github.com/golang/protobuf v1.4.0/go.mod h1:jodUvKwWbYaEsadDk5Fwe5c77LiNKVO9IDvqG2KuDX0=
+github.com/golang/protobuf v1.4.1/go.mod h1:U8fpvMrcmy5pZrNK1lt4xCsGvpyWQ/VVv6QDs8UjoX8=
+github.com/golang/protobuf v1.4.2 h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=
+github.com/golang/protobuf v1.4.2/go.mod h1:oDoupMAO8OvCJWAcko0GGGIgR6R6ocIYbsSw735rRwI=
+github.com/google/btree v1.0.0 h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=
+github.com/google/btree v1.0.0/go.mod h1:lNA+9X1NB3Zf8V7Ke586lFgjr2dZNuvo3lPJSGZ5JPQ=
+github.com/google/go-cmp v0.2.0/go.mod h1:oXzfMopK8JAjlY9xF4vHSVASa0yLyX7SntLO5aqRK0M=
+github.com/google/go-cmp v0.3.0/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.3.1/go.mod h1:8QqcDgzrUqlUb/G2PQTWiueGozuR1884gddMywk6iLU=
+github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/google/go-cmp v0.4.1 h1:/exdXoGamhu5ONeUJH0deniYLWYvQwW66yvlfiiKTu0=
+github.com/google/go-cmp v0.4.1/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
+github.com/gorilla/websocket v1.4.0 h1:WDFjx/TMzVgy9VdMMQi2K2Emtwi2QcUQsztZ/zLaH/Q=
+github.com/gorilla/websocket v1.4.0/go.mod h1:E7qHFY5m1UJ88s3WnNqhKjPHQ0heANvMoAMk2YaljkQ=
+github.com/grpc-ecosystem/go-grpc-middleware v1.0.0 h1:Iju5GlWwrvL6UBg4zJJt3btmonfrMlCDdsejg4CZE7c=
+github.com/grpc-ecosystem/go-grpc-middleware v1.0.0/go.mod h1:FiyG127CGDf3tlThmgyCl78X/SZQqEOJBCDaAfeWzPs=
+github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=
+github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk=
+github.com/grpc-ecosystem/grpc-gateway v1.9.0 h1:bM6ZAFZmc/wPFaRDi0d5L7hGEZEx/2u+Tmr2evNHDiI=
+github.com/grpc-ecosystem/grpc-gateway v1.9.0/go.mod h1:vNeuVxBJEsws4ogUvrchl83t/GYV9WGTSLVdBhOQFDY=
+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 h1:hLrqtEDnRye3+sgx6z4qVLNuviH3MR5aQ0ykNJa/UYA=
+github.com/hashicorp/errwrap v1.0.0/go.mod h1:YH+1FKiLXxHSkmPseP+kNlulaMuP3n2brvKWEqk/Jc4=
+github.com/hashicorp/go-multierror v1.0.0 h1:iVjPR7a6H0tWELX5NxNe7bYopibicUzc7uPribsnS6o=
+github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk=
+github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4=
+github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ=
+github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
+github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
+github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOlocH6Fxy8MmwDt+yVQYULKfN0RoTN8A=
+github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo=
+github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA=
+github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
+github.com/jonboulle/clockwork v0.1.0 h1:VKV+ZcuP6l3yW9doeqz6ziZGgcynBVQO+obU0+0hcPo=
+github.com/jonboulle/clockwork v0.1.0/go.mod h1:Ii8DK3G1RaLaWxj9trq07+26W01tbo22gdxWY5EU2bo=
+github.com/julienschmidt/httprouter v1.2.0 h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g=
+github.com/julienschmidt/httprouter v1.2.0/go.mod h1:SYymIcj16QtmaHHD7aYtjjsJG7VTCxuUUipMqKk8s4w=
+github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd h1:Coekwdh0v2wtGp9Gmz1Ze3eVRAWJMLokvN3QjdzCHLY=
+github.com/kevinburke/ssh_config v0.0.0-20190725054713-01f96b0aa0cd/go.mod h1:CT57kijsi8u/K/BOFA39wgDQJ9CxiF4nAY/ojJ6r6mM=
+github.com/kisielk/errcheck v1.1.0/go.mod h1:EZBBE59ingxPouuu3KfxchcWSUPOHkagtvWXihfKN4Q=
+github.com/kisielk/errcheck v1.2.0 h1:reN85Pxc5larApoH1keMBiu2GWtPqXQ1nc9gx+jOU+E=
+github.com/kisielk/errcheck v1.2.0/go.mod h1:/BMXB+zMLi60iA8Vv6Ksmxu/1UDYcXs4uQLJ+jE2L00=
+github.com/kisielk/gotool v1.0.0 h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=
+github.com/kisielk/gotool v1.0.0/go.mod h1:XhKaO+MFFWcvkIS/tQcRk01m1F5IRFswLeQ+oQHNcck=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1 h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=
+github.com/konsorten/go-windows-terminal-sequences v1.0.1/go.mod h1:T0+1ngSBFLxvqU3pZ+m/2kptfBszLMUkC4ZK/EgS/cQ=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515 h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=
+github.com/kr/logfmt v0.0.0-20140226030751-b84e30acd515/go.mod h1:+0opPa2QZZtGFBFZlji/RkVcI2GknAs/DXo4wKdlNEc=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pretty v0.2.1 h1:Fmg33tUaq4/8ym9TJN1x7sLJnHVwhP33CNkpYV/7rwI=
+github.com/kr/pretty v0.2.1/go.mod h1:ipq/a2n7PKx3OHsz4KJII5eveXtPO4qwEXGdVfWzfnI=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/pty v1.1.8 h1:AkaSdXYQOWeaO3neb8EM634ahkXXe3jYbVh/F9lq+GI=
+github.com/kr/pty v1.1.8/go.mod h1:O1sed60cT9XZ5uDucP5qwvh+TE3NnUj51EiZO/lmSfw=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
+github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
+github.com/magiconair/properties v1.8.0 h1:LLgXmsheXeRoUOBOjtwPQCWIYqM/LU1ayDtDePerRcY=
+github.com/magiconair/properties v1.8.0/go.mod h1:PppfXfuXeibc/6YijjN8zIbojt8czPbwD3XqdrwzmxQ=
+github.com/mattn/go-colorable v0.1.4/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
+github.com/mattn/go-colorable v0.1.6 h1:6Su7aK7lXmJ/U79bYtBjLNaha4Fs1Rg9plHpcH+vvnE=
+github.com/mattn/go-colorable v0.1.6/go.mod h1:u6P/XSegPjTcexA+o6vUJrdnUu04hMope9wVRipJSqc=
+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.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
+github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
+github.com/mattn/go-runewidth v0.0.8 h1:3tS41NlGYSmhhe/8fhGRzc+z3AYCw1Fe1WAyLuujKs0=
+github.com/mattn/go-runewidth v0.0.8/go.mod h1:H031xJmbD/WCDINGzjvQ9THkh0rPKHF+m2gUSrubnMI=
+github.com/matttproud/golang_protobuf_extensions v1.0.1 h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=
+github.com/matttproud/golang_protobuf_extensions v1.0.1/go.mod h1:D8He9yQNgCq6Z5Ld7szi9bcBfOoFv/3dc6xSMkL2PC0=
+github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
+github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
+github.com/mitchellh/go-ps v1.0.0 h1:i6ampVEEF4wQFF+bkYfwYgY+F/uYJDktmvLPf7qIgjc=
+github.com/mitchellh/go-ps v1.0.0/go.mod h1:J4lOc8z8yJs6vUwklHw2XEIiT4z4C40KtWVN3nvg8Pg=
+github.com/mitchellh/mapstructure v1.1.2 h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=
+github.com/mitchellh/mapstructure v1.1.2/go.mod h1:FVVH3fgwuzCH5S8UJGiWEs2h04kUh9fWfEaFds41c1Y=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223 h1:F9x/1yl3T2AeKLr2AMdilSD8+f9bvMnNN8VS5iDtovc=
+github.com/mwitkow/go-conntrack v0.0.0-20161129095857-cc309e4a2223/go.mod h1:qRWi+5nqEBWmkhHvq77mSJWrCKwh8bxhgT7d/eI7P4U=
+github.com/nxadm/tail v1.4.8 h1:nPr65rt6Y5JFSKQO7qToXr7pePgD6Gwiw05lkbyAQTE=
+github.com/nxadm/tail v1.4.8/go.mod h1:+ncqLTQzXmGhMZNUePPaPqPvBxHAIsmXswZKocGu+AU=
+github.com/oklog/ulid v1.3.1 h1:EGfNDEx6MqHz8B3uNV6QAib1UR2Lm97sHi3ocA6ESJ4=
+github.com/oklog/ulid v1.3.1/go.mod h1:CirwcVhetQ6Lv90oh/F+FBtV6XMibvdAFo93nm5qn4U=
+github.com/opentracing/basictracer-go v1.0.0 h1:YyUAhaEfjoWXclZVJ9sGoNct7j4TVk7lZWlQw5UXuoo=
+github.com/opentracing/basictracer-go v1.0.0/go.mod h1:QfBfYuafItcjQuMwinw9GhYKwFXS9KnPs5lxoYwgW74=
+github.com/opentracing/opentracing-go v1.1.0 h1:pWlfV3Bxv7k65HYwkikxat0+s3pV4bsqf19k25Ur8rU=
+github.com/opentracing/opentracing-go v1.1.0/go.mod h1:UkNAQd3GIcIGf0SeVgPpRdFStlNbqXla1AfSYxPUl2o=
+github.com/pelletier/go-buffruneio v0.2.0 h1:U4t4R6YkofJ5xHm3dJzuRpPZ0mr5MMCoAWooScCR7aA=
+github.com/pelletier/go-buffruneio v0.2.0/go.mod h1:JkE26KsDizTr40EUHkXVtNPvgGtbSNq5BcowyYOWdKo=
+github.com/pelletier/go-toml v1.2.0 h1:T5zMGML61Wp+FlcbWjRDT7yAxhJNAiPPLOFECq181zc=
+github.com/pelletier/go-toml v1.2.0/go.mod h1:5z9KED0ma1S8pY6P1sdut58dfprrGBbd/94hg7ilaic=
+github.com/pkg/errors v0.8.0/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
+github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/prometheus/client_golang v0.9.1/go.mod h1:7SWBe2y4D6OKWSNQJUaRYU/AaXPKyh/dDVn+NZz0KFw=
+github.com/prometheus/client_golang v0.9.3 h1:9iH4JKXLzFbOAdtqv/a+j8aewx2Y8lAjAydhbaScPF8=
+github.com/prometheus/client_golang v0.9.3/go.mod h1:/TN21ttK/J9q6uSwhBd54HahCDft0ttaMvbicHlPoso=
+github.com/prometheus/client_model v0.0.0-20180712105110-5c3871d89910/go.mod h1:MbSGuTsp3dbXC40dX6PRTWyKYBIrTGTE9sqQNg2J8bo=
+github.com/prometheus/client_model v0.0.0-20190129233127-fd36f4220a90/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4 h1:gQz4mCbXsO+nc9n1hCxHcGA3Zx3Eo+UHZoInFGUIXNM=
+github.com/prometheus/client_model v0.0.0-20190812154241-14fe0d1b01d4/go.mod h1:xMI15A0UPsDsEKsMN9yxemIoYk6Tm2C1GtYGdfGttqA=
+github.com/prometheus/common v0.0.0-20181113130724-41aa239b4cce/go.mod h1:daVV7qP5qjZbuso7PdcryaAu0sAZbrN9i7WWcTMWvro=
+github.com/prometheus/common v0.4.0 h1:7etb9YClo3a6HjLzfl6rIQaU+FDfi0VSX39io3aQ+DM=
+github.com/prometheus/common v0.4.0/go.mod h1:TNfzLD0ON7rHzMJeJkieUDPYmFC7Snx/y86RQel1bk4=
+github.com/prometheus/procfs v0.0.0-20181005140218-185b4288413d/go.mod h1:c3At6R/oaqEKCNdg8wHV1ftS6bRYblBhIjjI8uT2IGk=
+github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084 h1:sofwID9zm4tzrgykg80hfFph1mryUeLRsUfoocVVmRY=
+github.com/prometheus/procfs v0.0.0-20190507164030-5867b95ac084/go.mod h1:TjEm7ze935MbeOT/UhFTIMYKhuLP4wbCsTZCD3I8kEA=
+github.com/prometheus/tsdb v0.7.1 h1:YZcsG11NqnK4czYLrWd9mpEuAJIHVQLwdrleYfszMAA=
+github.com/prometheus/tsdb v0.7.1/go.mod h1:qhTCs0VvXwvX/y3TZrWD7rabWM+ijKTux40TwIPHuXU=
+github.com/pulumi/pulumi/sdk/v3 v3.0.0-20210322210933-10a6a2caf014 h1:WUlOHsRhzO08oUCEjZhWS0VHssiIjCNio89VlAvD9ao=
+github.com/pulumi/pulumi/sdk/v3 v3.0.0-20210322210933-10a6a2caf014/go.mod h1:GBHyQ7awNQSRmiKp/p8kIKrGrMOZeA/k2czoM/GOqds=
+github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af h1:gu+uRPtBe88sKxUCEXRoeCvVG90TJmwhiqRpvdhQFng=
+github.com/rogpeppe/fastuuid v0.0.0-20150106093220-6724a57986af/go.mod h1:XWv6SoW27p1b0cqNHllgS5HIMJraePCO15w5zCzIWYg=
+github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
+github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
+github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94 h1:G04eS0JkAIVZfaJLjla9dNxkJCPiKIGZlw9AfOhzOD0=
+github.com/sabhiram/go-gitignore v0.0.0-20180611051255-d3107576ba94/go.mod h1:b18R55ulyQ/h3RaWyloPyER7fWQVZvimKKhnI5OfrJQ=
+github.com/sergi/go-diff v1.0.0/go.mod h1:0CfEIISq7TuYL3j771MWULgwwjU+GofnZX9QAmXWZgo=
+github.com/sergi/go-diff v1.1.0 h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=
+github.com/sergi/go-diff v1.1.0/go.mod h1:STckp+ISIX8hZLjrqAeVduY0gWCT9IjLuqbuNXdaHfM=
+github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
+github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
+github.com/sirupsen/logrus v1.2.0/go.mod h1:LxeOpSwHxABJmUn/MG1IvRgCAasNZTLOkJPxbbu5VWo=
+github.com/sirupsen/logrus v1.4.1 h1:GL2rEmy6nsikmW0r8opw9JIRScdMF5hA8cOYLH7In1k=
+github.com/sirupsen/logrus v1.4.1/go.mod h1:ni0Sbl8bgC9z8RoU9G6nDWqqs/fq4eDPysMBDgk/93Q=
+github.com/soheilhy/cmux v0.1.4 h1:0HKaf1o97UwFjHH9o5XsHUOF+tqmdA7KEzXLpiyaw0E=
+github.com/soheilhy/cmux v0.1.4/go.mod h1:IM3LyeVVIOuxMH7sFAkER9+bJ4dT7Ms6E4xg4kGIyLM=
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72 h1:qLC7fQah7D6K1B0ujays3HV9gkFtllcxhzImRR7ArPQ=
+github.com/spaolacci/murmur3 v0.0.0-20180118202830-f09979ecbc72/go.mod h1:JwIasOWyU6f++ZhiEuf87xNszmSA2myDM2Kzu9HwQUA=
+github.com/spf13/afero v1.1.2 h1:m8/z1t7/fwjysjQRYbP0RD+bUIF/8tJwPdEZsI83ACI=
+github.com/spf13/afero v1.1.2/go.mod h1:j4pytiNVoe2o6bmDsKpLACNPDBIoEAkihy7loJ1B0CQ=
+github.com/spf13/cast v1.3.0/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
+github.com/spf13/cast v1.3.1 h1:nFm6S0SMdyzrzcmThSipiEubIDy8WEXKNZ0UOgiRpng=
+github.com/spf13/cast v1.3.1/go.mod h1:Qx5cxh0v+4UWYiBimWS+eyWzqEqokIECu5etghLkUJE=
+github.com/spf13/cobra v1.0.0 h1:6m/oheQuQ13N9ks4hubMG6BnvwOeaJrqSPLahSnczz8=
+github.com/spf13/cobra v1.0.0/go.mod h1:/6GTrnGXV9HjY+aR4k0oJ5tcvakLuG6EuKReYlHNrgE=
+github.com/spf13/jwalterweatherman v1.0.0 h1:XHEdyB+EcvlqZamSM4ZOMGlc93t6AcsBEu9Gc1vn7yk=
+github.com/spf13/jwalterweatherman v1.0.0/go.mod h1:cQK4TGJAtQXfYWX+Ddv3mKDzgVb68N+wFjFa4jdeBTo=
+github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
+github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
+github.com/spf13/viper v1.4.0 h1:yXHLWeravcrgGyFSyCgdYpXQ9dR9c/WED3pg1RhxqEU=
+github.com/spf13/viper v1.4.0/go.mod h1:PTJ7Z/lr49W6bUbkmS1V3by4uWynFiR9p7+dSq/yZzE=
+github.com/src-d/gcfg v1.4.0 h1:xXbNR5AlLSA315x2UO+fTSSAXCDf+Ar38/6oyGbDKQ4=
+github.com/src-d/gcfg v1.4.0/go.mod h1:p/UMsR43ujA89BJY9duynAwIpvqEujIH/jFlfL7jWoI=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.1.1/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/objx v0.2.0 h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48=
+github.com/stretchr/objx v0.2.0/go.mod h1:qt09Ya8vawLte6SNmTgCsAVtYtaKzEcn8ATUoHMkEqE=
+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.6.1 h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=
+github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
+github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6 h1:9VTskZOIRf2vKF3UL8TuWElry5pgUpV1tFSe/e/0m/E=
+github.com/texttheater/golang-levenshtein v0.0.0-20191208221605-eb6844b05fc6/go.mod h1:XDKHRm5ThF8YJjx001LtgelzsoaEcvnA7lVWz9EeX3g=
+github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5 h1:LnC5Kc/wtumK+WB441p7ynQJzVuNRJiqddSIE3IlSEQ=
+github.com/tmc/grpc-websocket-proxy v0.0.0-20190109142713-0ad062ec5ee5/go.mod h1:ncp9v5uamzpCO7NfCPTXjqaC+bZgJeR0sMTm6dMHP7U=
+github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7 h1:X9dsIWPuuEJlPX//UmRKophhOKCGXc46RVIGuttks68=
+github.com/tweekmonster/luser v0.0.0-20161003172636-3fa38070dbd7/go.mod h1:UxoP3EypF8JfGEjAII8jx1q8rQyDnX8qdTCs/UQBVIE=
+github.com/uber/jaeger-client-go v2.22.1+incompatible h1:NHcubEkVbahf9t3p75TOCR83gdUHXjRJvjoBh1yACsM=
+github.com/uber/jaeger-client-go v2.22.1+incompatible/go.mod h1:WVhlPFC8FDjOFMMWRy2pZqQJSXxYSwNYOkTr/Z6d3Kk=
+github.com/uber/jaeger-lib v2.2.0+incompatible h1:MxZXOiR2JuoANZ3J6DE/U0kSFv/eJ/GfSYVCjK7dyaw=
+github.com/uber/jaeger-lib v2.2.0+incompatible/go.mod h1:ComeNDZlWwrWnDv8aPp0Ba6+uUTzImX/AauajbLI56U=
+github.com/ugorji/go v1.1.4 h1:j4s+tAvLfL3bZyefP2SEWmhBzmuIlH/eqNuPdFPgngw=
+github.com/ugorji/go v1.1.4/go.mod h1:uQMGLiO92mf5W77hV/PUCpI3pbzQx3CRekS0kk+RGrc=
+github.com/xanzy/ssh-agent v0.2.1 h1:TCbipTQL2JiiCprBWx9frJ2eJlCYT00NmctrHxVAr70=
+github.com/xanzy/ssh-agent v0.2.1/go.mod h1:mLlQY/MoOhWBj+gOGMQkOeiEvkx+8pJSI+0Bx9h2kr4=
+github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2 h1:eY9dn8+vbi4tKz5Qo6v2eYzo7kUS51QINcR5jNpbZS8=
+github.com/xiang90/probing v0.0.0-20190116061207-43a291ad63a2/go.mod h1:UETIi67q53MR2AWcXfiuqkDkRtnGDLqkBTpCHuJHxtU=
+github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 h1:ESFSdwYZvkeru3RtdrYueztKhOBCSAAzS4Gf+k0tEow=
+github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77/go.mod h1:aYKd//L2LvnjZzWKhF00oedf4jCCReLcmhLdhm1A27Q=
+github.com/yuin/goldmark v1.1.27 h1:nqDD4MMMQA0lmWq03Z2/myGPYLQoXtmi0rGVs95ntbo=
+github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
+go.etcd.io/bbolt v1.3.2 h1:Z/90sZLPOeCy2PwprqkFa25PdkusRzaj9P8zm/KNyvk=
+go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
+go.uber.org/atomic v1.4.0/go.mod h1:gD2HeocX3+yG+ygLZcrzQJaqmWj9AIm7n08wl/qW/PE=
+go.uber.org/atomic v1.6.0 h1:Ezj3JGmsOnG1MoRWQkPBsKLe9DwWD9QeXzTRzzldNVk=
+go.uber.org/atomic v1.6.0/go.mod h1:sABNBOSYdrvTF6hTgEIbc7YasKWGhgEQZyfxyTvoXHQ=
+go.uber.org/multierr v1.1.0 h1:HoEmRHQPVSqub6w2z2d2EOVs2fjyFRGyofhKuyDq0QI=
+go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/0=
+go.uber.org/zap v1.10.0 h1:ORx85nbTijNz8ljznvCMR1ZBIPKFn3jQrag10X2AsuM=
+go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
+golang.org/x/crypto v0.0.0-20180904163835-0709b304e793/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190219172222-a4c6cb3142f2/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20190701094942-4def268fd1a4/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
+golang.org/x/crypto v0.0.0-20200317142112-1b76d66859c6 h1:TjszyFsQsyZNHwdVdZ5m7bjmreu0znc2kRYsEml9/Ww=
+golang.org/x/crypto v0.0.0-20200317142112-1b76d66859c6/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4 h1:c2HOrn5iMezYjSlGPncknSEr/8x5LELb/ilJbXi9DEA=
+golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
+golang.org/x/lint v0.0.0-20181026193005-c67002cb31c3/go.mod h1:UVdnD1Gm6xHRNCYTkRU2/jEulfH38KcIWyp/GAMgvoE=
+golang.org/x/lint v0.0.0-20190227174305-5b3e6a55c961/go.mod h1:wehouNa3lNwaWXcvxsM5YxQ5yQlVC4a0KAMCusXpPoU=
+golang.org/x/lint v0.0.0-20190313153728-d0100b6bd8b3/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20190930215403-16217165b5de/go.mod h1:6SW0HCj/g11FgYtHlgUYUwCkIfeOF89ocIRzGO/8vkc=
+golang.org/x/lint v0.0.0-20200302205851-738671d3881b h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k=
+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 h1:RM4zey1++hCTbCVQfnWeKs9/IEsaBLA8vTkd0WVtmH4=
+golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
+golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20181220203305-927f97764cc3/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190213061140-3a22650c66bd/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
+golang.org/x/net v0.0.0-20190311183353-d8887717615a/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/net v0.0.0-20190522155817-f3200d17e092/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks=
+golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20190724013045-ca1201d0de80/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200226121028-0de0cce0169b/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200602114024-627f9648deb9 h1:pNX+40auqi2JqRfOP1akLGtYcn15TUbkhwuCO3foqqM=
+golang.org/x/net v0.0.0-20200602114024-627f9648deb9/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be h1:vEDujvNQGv4jgYKudGeI/+DAX4Jffq6hpD55MmoEvKs=
+golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
+golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e h1:vcxGaoTs7kV8m5Np9uUNQin4BrLOthgV7252N8V+FwY=
+golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
+golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181107165924-66b7b1311ac8/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190221075227-b4e8571b14e0/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=
+golang.org/x/sys v0.0.0-20190507160741-ecd444e8653b/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20190726091711-fc99dfbffb4e/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191005200804-aed5e4c7ecf9/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200223170610-d5e6a3e2c0ae/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980 h1:OjiUf46hAmXblsZdnoSXsEUSKU8r1UEzcL5RVZ4gO9Y=
+golang.org/x/sys v0.0.0-20200602225109-6fdc65e7d980/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
+golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 h1:SvFZT6jyqRaOeXpc5h/JSfZenJ2O330aBsf7JfSUXmQ=
+golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
+golang.org/x/tools v0.0.0-20180221164845-07fd8470d635/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20181030221726-6c7e314b6563/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190114222345-bf090417da8b/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+golang.org/x/tools v0.0.0-20190226205152-f727befe758c/go.mod h1:9Yl7xja0Znq3iFh3HoIrodX9oNMXvdceNzlUR8zjMvY=
+golang.org/x/tools v0.0.0-20190311212946-11955173bddd/go.mod h1:LCzVGOaR6xXOjkQ3onu1FJEFr0SW1gC7cKk1uF8kGRs=
+golang.org/x/tools v0.0.0-20190524140312-2c0ae7006135/go.mod h1:RgjU9mgBXZiqYHBnxXauZ1Gv1EHHAz9KjViQ78xBX0Q=
+golang.org/x/tools v0.0.0-20190729092621-ff9f1409240a/go.mod h1:jcCCGcm9btYwXyDqrUWc6MKQKKGJCWEQ3AfLSRIbEuI=
+golang.org/x/tools v0.0.0-20191029041327-9cc4af7d6b2c/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
+golang.org/x/tools v0.0.0-20200130002326-2f3ba24bd6e7/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
+golang.org/x/tools v0.0.0-20200608174601-1b747fd94509 h1:MI14dOfl3OG6Zd32w3ugsrvcUO810fDZdWakTq39dH4=
+golang.org/x/tools v0.0.0-20200608174601-1b747fd94509/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
+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 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
+golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
+google.golang.org/appengine v1.1.0/go.mod h1:EbEs0AVv82hx2wNQdGPgUI5lhzA/G0D9YwlJXL52JkM=
+google.golang.org/appengine v1.4.0 h1:/wp5JvzpHIxhs/dumFmF7BXTf3Z+dd4uXta4kVyO508=
+google.golang.org/appengine v1.4.0/go.mod h1:xpcJRLb0r/rnEns0DIKYYv+WjYCduHsrkT7/EB5XEv4=
+google.golang.org/genproto v0.0.0-20180817151627-c66870c02cf8/go.mod h1:JiN7NxoALGmiZfu7CAH4rXhgtRTLTxftemlI0sWmxmc=
+google.golang.org/genproto v0.0.0-20190819201941-24fa4b261c55/go.mod h1:DMBHOl98Agz4BDEuKkezgsaosCRResVns1a3J2ZsMNc=
+google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013/go.mod h1:NbSheEEYHJ7i3ixzK3sjbqSGDJWnxyFXZblF3eUsNvo=
+google.golang.org/genproto v0.0.0-20200608115520-7c474a2e3482 h1:i+Aiej6cta/Frzp13/swvwz5O00kYcSe0A/C5Wd7zX8=
+google.golang.org/genproto v0.0.0-20200608115520-7c474a2e3482/go.mod h1:jDfRM7FcilCzHH/e9qn6dsT145K34l5v+OpcnNgKAAA=
+google.golang.org/grpc v1.19.0/go.mod h1:mqu4LbDTu4XGKhr4mRzUsmM4RtVoemTSY81AxZiDr8c=
+google.golang.org/grpc v1.21.0/go.mod h1:oYelfM1adQP15Ek0mdvEgi9Df8B9CZIaU1084ijfRaM=
+google.golang.org/grpc v1.23.0/go.mod h1:Y5yQAOtifL1yxbo5wqy6BxZv8vAUGQwXBOALyacEbxg=
+google.golang.org/grpc v1.25.1/go.mod h1:c3i+UQWmh7LiEpx4sFZnkU36qjEYZ0imhYfXVyQciAY=
+google.golang.org/grpc v1.27.0/go.mod h1:qbnxyOmOxrQa7FizSgH+ReBfzJrCY1pSN7KXBS8abTk=
+google.golang.org/grpc v1.29.1 h1:EC2SB8S04d2r73uptxphDSUG+kTKVgjRPF+N3xpxRB4=
+google.golang.org/grpc v1.29.1/go.mod h1:itym6AZVZYACWQqET3MqgPpjcuV5QH3BxFS3IjizoKk=
+google.golang.org/protobuf v0.0.0-20200109180630-ec00e32a8dfd/go.mod h1:DFci5gLYBciE7Vtevhsrf46CRTquxDuWsQurQQe4oz8=
+google.golang.org/protobuf v0.0.0-20200221191635-4d8936d0db64/go.mod h1:kwYJMbMJ01Woi6D6+Kah6886xMZcty6N08ah7+eCXa0=
+google.golang.org/protobuf v0.0.0-20200228230310-ab0ca4ff8a60/go.mod h1:cfTl7dwQJ+fmap5saPgwCLgHXTUD7jkjRqWcaiX5VyM=
+google.golang.org/protobuf v1.20.1-0.20200309200217-e05f789c0967/go.mod h1:A+miEFZTKqfCUM6K7xSMQL9OKL/b6hQv+e19PK+JZNE=
+google.golang.org/protobuf v1.21.0/go.mod h1:47Nbq4nVaFHyn7ilMalzfO3qCViNmqZ2kzikPIcrTAo=
+google.golang.org/protobuf v1.22.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.0/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.23.1-0.20200526195155-81db48ad09cc/go.mod h1:EGpADcykh3NcUnDUJcl1+ZksZNG86OlYog2l/sGQquU=
+google.golang.org/protobuf v1.24.0 h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA=
+google.golang.org/protobuf v1.24.0/go.mod h1:r/3tXBNzIEhYS9I1OUVjXDlt8tc493IdKGjtUeSXeh4=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6 h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=
+gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15 h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=
+gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/cheggaaa/pb.v1 v1.0.28 h1:n1tBJnnK2r7g9OW2btFH91V92STTUevLXYFb8gy9EMk=
+gopkg.in/cheggaaa/pb.v1 v1.0.28/go.mod h1:V/YB90LKu/1FcN3WVnfiiE5oMCibMjukxqG/qStrOgw=
+gopkg.in/resty.v1 v1.12.0 h1:CuXP0Pjfw9rOuY6EP+UvtNvt5DSqHpIxILZKT/quCZI=
+gopkg.in/resty.v1 v1.12.0/go.mod h1:mDo4pnntr5jdWRML875a/NmxYqAlA73dVijT2AXvQQo=
+gopkg.in/src-d/go-billy.v4 v4.3.2 h1:0SQA1pRztfTFx2miS8sA97XvooFeNOmvUenF4o0EcVg=
+gopkg.in/src-d/go-billy.v4 v4.3.2/go.mod h1:nDjArDMp+XMs1aFAESLRjfGSgfvoYN0hDfzEk0GjC98=
+gopkg.in/src-d/go-git-fixtures.v3 v3.5.0 h1:ivZFOIltbce2Mo8IjzUHAFoq/IylO9WHhNOAJK+LsJg=
+gopkg.in/src-d/go-git-fixtures.v3 v3.5.0/go.mod h1:dLBcvytrw/TYZsNTWCnkNF2DSIlzWYqTe3rJR56Ac7g=
+gopkg.in/src-d/go-git.v4 v4.13.1 h1:SRtFyV8Kxc0UP7aCHcijOMQGPxHSmMOPrzulQWolkYE=
+gopkg.in/src-d/go-git.v4 v4.13.1/go.mod h1:nx5NYcxdKxq5fpltdHnPa2Exj4Sx0EclMWZQbYDu2z8=
+gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7 h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=
+gopkg.in/tomb.v1 v1.0.0-20141024135613-dd632973f1e7/go.mod h1:dt/ZhP58zS4L8KSrWDmTeBkI65Dw0HsyUHuEVlX15mw=
+gopkg.in/warnings.v0 v0.1.2 h1:wFXVbFY8DY5/xOe1ECiWdKCzZlxgshcYVNkBHstARME=
+gopkg.in/warnings.v0 v0.1.2/go.mod h1:jksf8JmL6Qr/oQM2OXTHunEvvTAsrWBLb6OOjuVWRNI=
+gopkg.in/yaml.v2 v2.0.0-20170812160011-eb3733d160e7/go.mod h1:JAlM8MvJe8wmxCU4Bli9HhUf9+ttbYbLASfIpnQbh74=
+gopkg.in/yaml.v2 v2.2.1/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.4/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
+gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
+honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc h1:/hemPrYIhOhy8zYrNj+069zDB68us2sMGsfkFJO0iZs=
+honnef.co/go/tools v0.0.0-20190523083050-ea95bdfd59fc/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
+sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0 h1:ucqkfpjg9WzSUubAO62csmucvxl4/JeW3F4I4909XkM=
+sourcegraph.com/sourcegraph/appdash v0.0.0-20190731080439-ebfcffb1b5c0/go.mod h1:hI742Nqp5OhwiqlzhgfbWU4mW4yO10fP+LoT9WOswdU=
diff --git a/tests/integration/construct_component_output_values/go/main.go b/tests/integration/construct_component_output_values/go/main.go
new file mode 100644
index 000000000..bc77bd2c5
--- /dev/null
+++ b/tests/integration/construct_component_output_values/go/main.go
@@ -0,0 +1,26 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+package main
+
+import (
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+func main() {
+ pulumi.Run(func(ctx *pulumi.Context) error {
+ if _, err := NewComponent(ctx, "component", &ComponentArgs{
+ Foo: &FooArgs{
+ Something: pulumi.String("hello"),
+ },
+ Bar: &BarArgs{
+ Tags: pulumi.StringMap{
+ "a": pulumi.String("world"),
+ "b": pulumi.ToSecret("shh").(pulumi.StringOutput),
+ },
+ },
+ }); err != nil {
+ return err
+ }
+ return nil
+ })
+}
diff --git a/tests/integration/construct_component_output_values/go/pulumiTypes.go b/tests/integration/construct_component_output_values/go/pulumiTypes.go
new file mode 100644
index 000000000..fe09ddcbe
--- /dev/null
+++ b/tests/integration/construct_component_output_values/go/pulumiTypes.go
@@ -0,0 +1,287 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+package main
+
+import (
+ "context"
+ "reflect"
+
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+type Bar struct {
+ Tags map[string]string `pulumi:"tags"`
+}
+
+// BarInput is an input type that accepts BarArgs and BarOutput values.
+// You can construct a concrete instance of `BarInput` via:
+//
+// BarArgs{...}
+type BarInput interface {
+ pulumi.Input
+
+ ToBarOutput() BarOutput
+ ToBarOutputWithContext(context.Context) BarOutput
+}
+
+type BarArgs struct {
+ Tags pulumi.StringMapInput `pulumi:"tags"`
+}
+
+func (BarArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*Bar)(nil)).Elem()
+}
+
+func (i BarArgs) ToBarOutput() BarOutput {
+ return i.ToBarOutputWithContext(context.Background())
+}
+
+func (i BarArgs) ToBarOutputWithContext(ctx context.Context) BarOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(BarOutput)
+}
+
+func (i BarArgs) ToBarPtrOutput() BarPtrOutput {
+ return i.ToBarPtrOutputWithContext(context.Background())
+}
+
+func (i BarArgs) ToBarPtrOutputWithContext(ctx context.Context) BarPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(BarOutput).ToBarPtrOutputWithContext(ctx)
+}
+
+// BarPtrInput is an input type that accepts BarArgs, BarPtr and BarPtrOutput values.
+// You can construct a concrete instance of `BarPtrInput` via:
+//
+// BarArgs{...}
+//
+// or:
+//
+// nil
+type BarPtrInput interface {
+ pulumi.Input
+
+ ToBarPtrOutput() BarPtrOutput
+ ToBarPtrOutputWithContext(context.Context) BarPtrOutput
+}
+
+type barPtrType BarArgs
+
+func BarPtr(v *BarArgs) BarPtrInput {
+ return (*barPtrType)(v)
+}
+
+func (*barPtrType) ElementType() reflect.Type {
+ return reflect.TypeOf((**Bar)(nil)).Elem()
+}
+
+func (i *barPtrType) ToBarPtrOutput() BarPtrOutput {
+ return i.ToBarPtrOutputWithContext(context.Background())
+}
+
+func (i *barPtrType) ToBarPtrOutputWithContext(ctx context.Context) BarPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(BarPtrOutput)
+}
+
+type BarOutput struct{ *pulumi.OutputState }
+
+func (BarOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*Bar)(nil)).Elem()
+}
+
+func (o BarOutput) ToBarOutput() BarOutput {
+ return o
+}
+
+func (o BarOutput) ToBarOutputWithContext(ctx context.Context) BarOutput {
+ return o
+}
+
+func (o BarOutput) ToBarPtrOutput() BarPtrOutput {
+ return o.ToBarPtrOutputWithContext(context.Background())
+}
+
+func (o BarOutput) ToBarPtrOutputWithContext(ctx context.Context) BarPtrOutput {
+ return o.ApplyTWithContext(ctx, func(_ context.Context, v Bar) *Bar {
+ return &v
+ }).(BarPtrOutput)
+}
+
+func (o BarOutput) Tags() pulumi.StringMapOutput {
+ return o.ApplyT(func(v Bar) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
+}
+
+type BarPtrOutput struct{ *pulumi.OutputState }
+
+func (BarPtrOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**Bar)(nil)).Elem()
+}
+
+func (o BarPtrOutput) ToBarPtrOutput() BarPtrOutput {
+ return o
+}
+
+func (o BarPtrOutput) ToBarPtrOutputWithContext(ctx context.Context) BarPtrOutput {
+ return o
+}
+
+func (o BarPtrOutput) Elem() BarOutput {
+ return o.ApplyT(func(v *Bar) Bar {
+ if v != nil {
+ return *v
+ }
+ var ret Bar
+ return ret
+ }).(BarOutput)
+}
+
+func (o BarPtrOutput) Tags() pulumi.StringMapOutput {
+ return o.ApplyT(func(v *Bar) map[string]string {
+ if v == nil {
+ return nil
+ }
+ return v.Tags
+ }).(pulumi.StringMapOutput)
+}
+
+type Foo struct {
+ Something *string `pulumi:"something"`
+}
+
+// FooInput is an input type that accepts FooArgs and FooOutput values.
+// You can construct a concrete instance of `FooInput` via:
+//
+// FooArgs{...}
+type FooInput interface {
+ pulumi.Input
+
+ ToFooOutput() FooOutput
+ ToFooOutputWithContext(context.Context) FooOutput
+}
+
+type FooArgs struct {
+ Something pulumi.StringPtrInput `pulumi:"something"`
+}
+
+func (FooArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*Foo)(nil)).Elem()
+}
+
+func (i FooArgs) ToFooOutput() FooOutput {
+ return i.ToFooOutputWithContext(context.Background())
+}
+
+func (i FooArgs) ToFooOutputWithContext(ctx context.Context) FooOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(FooOutput)
+}
+
+func (i FooArgs) ToFooPtrOutput() FooPtrOutput {
+ return i.ToFooPtrOutputWithContext(context.Background())
+}
+
+func (i FooArgs) ToFooPtrOutputWithContext(ctx context.Context) FooPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(FooOutput).ToFooPtrOutputWithContext(ctx)
+}
+
+// FooPtrInput is an input type that accepts FooArgs, FooPtr and FooPtrOutput values.
+// You can construct a concrete instance of `FooPtrInput` via:
+//
+// FooArgs{...}
+//
+// or:
+//
+// nil
+type FooPtrInput interface {
+ pulumi.Input
+
+ ToFooPtrOutput() FooPtrOutput
+ ToFooPtrOutputWithContext(context.Context) FooPtrOutput
+}
+
+type fooPtrType FooArgs
+
+func FooPtr(v *FooArgs) FooPtrInput {
+ return (*fooPtrType)(v)
+}
+
+func (*fooPtrType) ElementType() reflect.Type {
+ return reflect.TypeOf((**Foo)(nil)).Elem()
+}
+
+func (i *fooPtrType) ToFooPtrOutput() FooPtrOutput {
+ return i.ToFooPtrOutputWithContext(context.Background())
+}
+
+func (i *fooPtrType) ToFooPtrOutputWithContext(ctx context.Context) FooPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(FooPtrOutput)
+}
+
+type FooOutput struct{ *pulumi.OutputState }
+
+func (FooOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*Foo)(nil)).Elem()
+}
+
+func (o FooOutput) ToFooOutput() FooOutput {
+ return o
+}
+
+func (o FooOutput) ToFooOutputWithContext(ctx context.Context) FooOutput {
+ return o
+}
+
+func (o FooOutput) ToFooPtrOutput() FooPtrOutput {
+ return o.ToFooPtrOutputWithContext(context.Background())
+}
+
+func (o FooOutput) ToFooPtrOutputWithContext(ctx context.Context) FooPtrOutput {
+ return o.ApplyTWithContext(ctx, func(_ context.Context, v Foo) *Foo {
+ return &v
+ }).(FooPtrOutput)
+}
+
+func (o FooOutput) Something() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v Foo) *string { return v.Something }).(pulumi.StringPtrOutput)
+}
+
+type FooPtrOutput struct{ *pulumi.OutputState }
+
+func (FooPtrOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**Foo)(nil)).Elem()
+}
+
+func (o FooPtrOutput) ToFooPtrOutput() FooPtrOutput {
+ return o
+}
+
+func (o FooPtrOutput) ToFooPtrOutputWithContext(ctx context.Context) FooPtrOutput {
+ return o
+}
+
+func (o FooPtrOutput) Elem() FooOutput {
+ return o.ApplyT(func(v *Foo) Foo {
+ if v != nil {
+ return *v
+ }
+ var ret Foo
+ return ret
+ }).(FooOutput)
+}
+
+func (o FooPtrOutput) Something() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *Foo) *string {
+ if v == nil {
+ return nil
+ }
+ return v.Something
+ }).(pulumi.StringPtrOutput)
+}
+
+func init() {
+ pulumi.RegisterInputType(reflect.TypeOf((*BarInput)(nil)).Elem(), BarArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*BarPtrInput)(nil)).Elem(), BarArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*FooInput)(nil)).Elem(), FooArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*FooPtrInput)(nil)).Elem(), FooArgs{})
+ pulumi.RegisterOutputType(BarOutput{})
+ pulumi.RegisterOutputType(BarPtrOutput{})
+ pulumi.RegisterOutputType(FooOutput{})
+ pulumi.RegisterOutputType(FooPtrOutput{})
+}
diff --git a/tests/integration/construct_component_output_values/nodejs/.gitignore b/tests/integration/construct_component_output_values/nodejs/.gitignore
new file mode 100644
index 000000000..8381bf4ce
--- /dev/null
+++ b/tests/integration/construct_component_output_values/nodejs/.gitignore
@@ -0,0 +1,3 @@
+/.pulumi/
+/bin/
+/node_modules/
diff --git a/tests/integration/construct_component_output_values/nodejs/Pulumi.yaml b/tests/integration/construct_component_output_values/nodejs/Pulumi.yaml
new file mode 100644
index 000000000..985629008
--- /dev/null
+++ b/tests/integration/construct_component_output_values/nodejs/Pulumi.yaml
@@ -0,0 +1,3 @@
+name: construct_component_output_values_nodejs
+description: A program that constructs remote component resources with output values.
+runtime: nodejs
diff --git a/tests/integration/construct_component_output_values/nodejs/component.ts b/tests/integration/construct_component_output_values/nodejs/component.ts
new file mode 100644
index 000000000..a538e98b8
--- /dev/null
+++ b/tests/integration/construct_component_output_values/nodejs/component.ts
@@ -0,0 +1,22 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+import * as pulumi from "@pulumi/pulumi";
+
+export interface BarArgs {
+ tags?: pulumi.Input<{[key: string]: pulumi.Input}>;
+}
+
+export interface FooArgs {
+ something?: pulumi.Input;
+}
+
+export interface ComponentArgs {
+ bar?: pulumi.Input;
+ foo?: FooArgs;
+}
+
+export class Component extends pulumi.ComponentResource {
+ constructor(name: string, args?: ComponentArgs, opts?: pulumi.ComponentResourceOptions) {
+ super("testcomponent:index:Component", name, args, opts, true /*remote*/);
+ }
+}
diff --git a/tests/integration/construct_component_output_values/nodejs/index.ts b/tests/integration/construct_component_output_values/nodejs/index.ts
new file mode 100644
index 000000000..d27383523
--- /dev/null
+++ b/tests/integration/construct_component_output_values/nodejs/index.ts
@@ -0,0 +1,17 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+import * as pulumi from "@pulumi/pulumi";
+
+import { Component } from "./component";
+
+new Component("component", {
+ foo: {
+ something: "hello",
+ },
+ bar: {
+ tags: {
+ "a": "world",
+ "b": pulumi.secret("shh"),
+ },
+ },
+});
diff --git a/tests/integration/construct_component_output_values/nodejs/package.json b/tests/integration/construct_component_output_values/nodejs/package.json
new file mode 100644
index 000000000..016b41e7f
--- /dev/null
+++ b/tests/integration/construct_component_output_values/nodejs/package.json
@@ -0,0 +1,10 @@
+{
+ "name": "steps",
+ "license": "Apache-2.0",
+ "devDependencies": {
+ "typescript": "^3.0.0"
+ },
+ "peerDependencies": {
+ "@pulumi/pulumi": "latest"
+ }
+}
diff --git a/tests/integration/construct_component_output_values/python/.gitignore b/tests/integration/construct_component_output_values/python/.gitignore
new file mode 100644
index 000000000..3f47d8e79
--- /dev/null
+++ b/tests/integration/construct_component_output_values/python/.gitignore
@@ -0,0 +1,5 @@
+*.pyc
+/.pulumi/
+/dist/
+/*.egg-info
+venv/
diff --git a/tests/integration/construct_component_output_values/python/Pulumi.yaml b/tests/integration/construct_component_output_values/python/Pulumi.yaml
new file mode 100644
index 000000000..e1544bc2c
--- /dev/null
+++ b/tests/integration/construct_component_output_values/python/Pulumi.yaml
@@ -0,0 +1,3 @@
+name: construct_component_output_values_py
+description: A program that constructs remote component resources with output values.
+runtime: python
diff --git a/tests/integration/construct_component_output_values/python/__main__.py b/tests/integration/construct_component_output_values/python/__main__.py
new file mode 100644
index 000000000..fbd3e32fd
--- /dev/null
+++ b/tests/integration/construct_component_output_values/python/__main__.py
@@ -0,0 +1,13 @@
+# Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+from pulumi import Output
+
+from component import Component, ComponentArgs, FooArgs, BarArgs
+
+Component("component", ComponentArgs(
+ foo=FooArgs(something="hello"),
+ bar=BarArgs(tags={
+ "a": "world",
+ "b": Output.secret("shh"),
+ })
+))
diff --git a/tests/integration/construct_component_output_values/python/component.py b/tests/integration/construct_component_output_values/python/component.py
new file mode 100644
index 000000000..51bb59dd4
--- /dev/null
+++ b/tests/integration/construct_component_output_values/python/component.py
@@ -0,0 +1,75 @@
+# Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+import pulumi
+from typing import Mapping, Optional
+
+
+@pulumi.input_type
+class BarArgs:
+ def __init__(__self__, *,
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
+ if tags is not None:
+ pulumi.set(__self__, "tags", tags)
+
+ @property
+ @pulumi.getter
+ def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
+ return pulumi.get(self, "tags")
+
+ @tags.setter
+ def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
+ pulumi.set(self, "tags", value)
+
+
+@pulumi.input_type
+class FooArgs:
+ def __init__(__self__, *,
+ something: Optional[pulumi.Input[str]] = None):
+ if something is not None:
+ pulumi.set(__self__, "something", something)
+
+ @property
+ @pulumi.getter
+ def something(self) -> Optional[pulumi.Input[str]]:
+ return pulumi.get(self, "something")
+
+ @something.setter
+ def something(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "something", value)
+
+
+@pulumi.input_type
+class ComponentArgs:
+ def __init__(__self__, *,
+ bar: Optional[pulumi.Input['BarArgs']] = None,
+ foo: Optional['FooArgs'] = None):
+ if bar is not None:
+ pulumi.set(__self__, "bar", bar)
+ if foo is not None:
+ pulumi.set(__self__, "foo", foo)
+
+ @property
+ @pulumi.getter
+ def bar(self) -> Optional[pulumi.Input['BarArgs']]:
+ return pulumi.get(self, "bar")
+
+ @bar.setter
+ def bar(self, value: Optional[pulumi.Input['BarArgs']]):
+ pulumi.set(self, "bar", value)
+
+ @property
+ @pulumi.getter
+ def foo(self) -> Optional['FooArgs']:
+ return pulumi.get(self, "foo")
+
+ @foo.setter
+ def foo(self, value: Optional['FooArgs']):
+ pulumi.set(self, "foo", value)
+
+
+class Component(pulumi.ComponentResource):
+ def __init__(__self__,
+ resource_name: str,
+ args: Optional[ComponentArgs] = None,
+ opts: Optional[pulumi.ResourceOptions] = None):
+ super().__init__('testcomponent:index:Component', resource_name, args, opts, remote=True)
diff --git a/tests/integration/construct_component_output_values/python/requirements.txt b/tests/integration/construct_component_output_values/python/requirements.txt
new file mode 100644
index 000000000..e69de29bb
diff --git a/tests/integration/construct_component_output_values/testcomponent-go/.gitignore b/tests/integration/construct_component_output_values/testcomponent-go/.gitignore
new file mode 100644
index 000000000..97b8f0004
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent-go/.gitignore
@@ -0,0 +1,2 @@
+pulumi-resource-testcomponent
+pulumi-resource-testcomponent.exe
diff --git a/tests/integration/construct_component_output_values/testcomponent-go/main.go b/tests/integration/construct_component_output_values/testcomponent-go/main.go
new file mode 100644
index 000000000..84d6b4d57
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent-go/main.go
@@ -0,0 +1,139 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+package main
+
+import (
+ "errors"
+ "fmt"
+
+ "github.com/blang/semver"
+
+ "github.com/pulumi/pulumi/pkg/v3/resource/provider"
+ "github.com/pulumi/pulumi/sdk/v3/go/common/util/cmdutil"
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+ pulumiprovider "github.com/pulumi/pulumi/sdk/v3/go/pulumi/provider"
+)
+
+type Component struct {
+ pulumi.ResourceState
+}
+
+type ComponentArgs struct {
+ Bar BarPtrInput `pulumi:"bar"`
+ Foo *FooArgs `pulumi:"foo"`
+}
+
+func NewComponent(ctx *pulumi.Context, name string, args *ComponentArgs,
+ opts ...pulumi.ResourceOption) (*Component, error) {
+ if args == nil {
+ return nil, errors.New("args is required")
+ }
+
+ if args.Foo == nil {
+ return nil, errors.New(`expected args.Foo to be non-nil`)
+ }
+ if args.Foo.Something == nil {
+ return nil, errors.New(`expected args.Foo.Something to be non-nil`)
+ }
+ something, somethingIsString := args.Foo.Something.(pulumi.String)
+ if !somethingIsString {
+ return nil, errors.New(`expected args.Foo.Something to be pulumi.String`)
+ }
+ if something != "hello" {
+ return nil, fmt.Errorf(`expected args.Foo.Something to equal "hello" but got %q`, something)
+ }
+
+ barArgs, isBarArgs := args.Bar.(BarArgs)
+ if !isBarArgs {
+ return nil, errors.New("expected args.Bar to be BarArgs")
+ }
+ tags, isStringMap := barArgs.Tags.(pulumi.StringMap)
+ if !isStringMap {
+ return nil, errors.New("expected args.Bar.Tags to be pulumi.StringMap")
+ }
+
+ a, aIsString := tags["a"].(pulumi.String)
+ if !aIsString {
+ return nil, errors.New(`expected args.Bar.Tags["a"] to be pulumi.String`)
+ }
+ if a != "world" {
+ return nil, fmt.Errorf(`expected args.Bar.Tags["a"] to equal "world" but got %q`, a)
+ }
+
+ b, bIsStringOutput := tags["b"].(pulumi.StringOutput)
+ if !bIsStringOutput {
+ return nil, errors.New(`expected args.Bar.Tags["b"] to be pulumi.StringOutput`)
+ }
+ b.ApplyT(func(v string) (string, error) {
+ if v != "shh" {
+ return v, fmt.Errorf(`expected args.Bar.Tags["b"] to equal "shh" but got %q`, v)
+ }
+ return v, nil
+ })
+
+ component := &Component{}
+ err := ctx.RegisterComponentResource("testcomponent:index:Component", name, component, opts...)
+ if err != nil {
+ return nil, err
+ }
+
+ if err := ctx.RegisterResourceOutputs(component, pulumi.Map{}); err != nil {
+ return nil, err
+ }
+
+ return component, nil
+}
+
+const providerName = "testcomponent"
+const version = "0.0.1"
+
+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 "testcomponent:index:Component":
+ r = &Component{}
+ default:
+ return nil, fmt.Errorf("unknown resource type: %s", typ)
+ }
+
+ err = ctx.RegisterResource(typ, name, nil, r, pulumi.URN_(urn))
+ return
+}
+
+func main() {
+ // Register any resources that can come back as resource references that need to be rehydrated.
+ pulumi.RegisterResourceModule("testcomponent", "index", &module{semver.MustParse(version)})
+
+ if err := provider.MainWithOptions(provider.Options{
+ Name: providerName,
+ Version: version,
+ Construct: func(ctx *pulumi.Context, typ, name string, inputs pulumiprovider.ConstructInputs,
+ options pulumi.ResourceOption) (*pulumiprovider.ConstructResult, error) {
+
+ if typ != "testcomponent:index:Component" {
+ return nil, fmt.Errorf("unknown resource type %s", typ)
+ }
+
+ args := &ComponentArgs{}
+ if err := inputs.CopyTo(args); err != nil {
+ return nil, fmt.Errorf("setting args: %w", err)
+ }
+
+ component, err := NewComponent(ctx, name, args, options)
+ if err != nil {
+ return nil, fmt.Errorf("creating component: %w", err)
+ }
+
+ return pulumiprovider.NewConstructResult(component)
+ },
+ }); err != nil {
+ cmdutil.ExitError(err.Error())
+ }
+}
diff --git a/tests/integration/construct_component_output_values/testcomponent-go/pulumiTypes.go b/tests/integration/construct_component_output_values/testcomponent-go/pulumiTypes.go
new file mode 100644
index 000000000..993eeb2a8
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent-go/pulumiTypes.go
@@ -0,0 +1,251 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+package main
+
+import (
+ "context"
+ "reflect"
+
+ "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
+)
+
+type Bar struct {
+ Tags map[string]string `pulumi:"tags"`
+}
+
+// BarInput is an input type that accepts BarArgs and BarOutput values.
+// You can construct a concrete instance of `BarInput` via:
+//
+// BarArgs{...}
+type BarInput interface {
+ pulumi.Input
+
+ ToBarOutput() BarOutput
+ ToBarOutputWithContext(context.Context) BarOutput
+}
+
+type BarArgs struct {
+ Tags pulumi.StringMapInput `pulumi:"tags"`
+}
+
+func (BarArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*Bar)(nil)).Elem()
+}
+
+func (i BarArgs) ToBarOutput() BarOutput {
+ return i.ToBarOutputWithContext(context.Background())
+}
+
+func (i BarArgs) ToBarOutputWithContext(ctx context.Context) BarOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(BarOutput)
+}
+
+func (i BarArgs) ToBarPtrOutput() BarPtrOutput {
+ return i.ToBarPtrOutputWithContext(context.Background())
+}
+
+func (i BarArgs) ToBarPtrOutputWithContext(ctx context.Context) BarPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(BarOutput).ToBarPtrOutputWithContext(ctx)
+}
+
+// BarPtrInput is an input type that accepts BarArgs, BarPtr and BarPtrOutput values.
+// You can construct a concrete instance of `BarPtrInput` via:
+//
+// BarArgs{...}
+//
+// or:
+//
+// nil
+type BarPtrInput interface {
+ pulumi.Input
+
+ ToBarPtrOutput() BarPtrOutput
+ ToBarPtrOutputWithContext(context.Context) BarPtrOutput
+}
+
+type BarOutput struct{ *pulumi.OutputState }
+
+func (BarOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*Bar)(nil)).Elem()
+}
+
+func (o BarOutput) ToBarOutput() BarOutput {
+ return o
+}
+
+func (o BarOutput) ToBarOutputWithContext(ctx context.Context) BarOutput {
+ return o
+}
+
+func (o BarOutput) ToBarPtrOutput() BarPtrOutput {
+ return o.ToBarPtrOutputWithContext(context.Background())
+}
+
+func (o BarOutput) ToBarPtrOutputWithContext(ctx context.Context) BarPtrOutput {
+ return o.ApplyTWithContext(ctx, func(_ context.Context, v Bar) *Bar {
+ return &v
+ }).(BarPtrOutput)
+}
+
+func (o BarOutput) Tags() pulumi.StringMapOutput {
+ return o.ApplyT(func(v Bar) map[string]string { return v.Tags }).(pulumi.StringMapOutput)
+}
+
+type BarPtrOutput struct{ *pulumi.OutputState }
+
+func (BarPtrOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**Bar)(nil)).Elem()
+}
+
+func (o BarPtrOutput) ToBarPtrOutput() BarPtrOutput {
+ return o
+}
+
+func (o BarPtrOutput) ToBarPtrOutputWithContext(ctx context.Context) BarPtrOutput {
+ return o
+}
+
+func (o BarPtrOutput) Elem() BarOutput {
+ return o.ApplyT(func(v *Bar) Bar {
+ if v != nil {
+ return *v
+ }
+ var ret Bar
+ return ret
+ }).(BarOutput)
+}
+
+func (o BarPtrOutput) Tags() pulumi.StringMapOutput {
+ return o.ApplyT(func(v *Bar) map[string]string {
+ if v == nil {
+ return nil
+ }
+ return v.Tags
+ }).(pulumi.StringMapOutput)
+}
+
+type Foo struct {
+ Something *string `pulumi:"something"`
+}
+
+// FooInput is an input type that accepts FooArgs and FooOutput values.
+// You can construct a concrete instance of `FooInput` via:
+//
+// FooArgs{...}
+type FooInput interface {
+ pulumi.Input
+
+ ToFooOutput() FooOutput
+ ToFooOutputWithContext(context.Context) FooOutput
+}
+
+type FooArgs struct {
+ Something pulumi.StringPtrInput `pulumi:"something"`
+}
+
+func (FooArgs) ElementType() reflect.Type {
+ return reflect.TypeOf((*Foo)(nil)).Elem()
+}
+
+func (i FooArgs) ToFooOutput() FooOutput {
+ return i.ToFooOutputWithContext(context.Background())
+}
+
+func (i FooArgs) ToFooOutputWithContext(ctx context.Context) FooOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(FooOutput)
+}
+
+func (i FooArgs) ToFooPtrOutput() FooPtrOutput {
+ return i.ToFooPtrOutputWithContext(context.Background())
+}
+
+func (i FooArgs) ToFooPtrOutputWithContext(ctx context.Context) FooPtrOutput {
+ return pulumi.ToOutputWithContext(ctx, i).(FooOutput).ToFooPtrOutputWithContext(ctx)
+}
+
+// FooPtrInput is an input type that accepts FooArgs, FooPtr and FooPtrOutput values.
+// You can construct a concrete instance of `FooPtrInput` via:
+//
+// FooArgs{...}
+//
+// or:
+//
+// nil
+type FooPtrInput interface {
+ pulumi.Input
+
+ ToFooPtrOutput() FooPtrOutput
+ ToFooPtrOutputWithContext(context.Context) FooPtrOutput
+}
+
+type FooOutput struct{ *pulumi.OutputState }
+
+func (FooOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((*Foo)(nil)).Elem()
+}
+
+func (o FooOutput) ToFooOutput() FooOutput {
+ return o
+}
+
+func (o FooOutput) ToFooOutputWithContext(ctx context.Context) FooOutput {
+ return o
+}
+
+func (o FooOutput) ToFooPtrOutput() FooPtrOutput {
+ return o.ToFooPtrOutputWithContext(context.Background())
+}
+
+func (o FooOutput) ToFooPtrOutputWithContext(ctx context.Context) FooPtrOutput {
+ return o.ApplyTWithContext(ctx, func(_ context.Context, v Foo) *Foo {
+ return &v
+ }).(FooPtrOutput)
+}
+
+func (o FooOutput) Something() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v Foo) *string { return v.Something }).(pulumi.StringPtrOutput)
+}
+
+type FooPtrOutput struct{ *pulumi.OutputState }
+
+func (FooPtrOutput) ElementType() reflect.Type {
+ return reflect.TypeOf((**Foo)(nil)).Elem()
+}
+
+func (o FooPtrOutput) ToFooPtrOutput() FooPtrOutput {
+ return o
+}
+
+func (o FooPtrOutput) ToFooPtrOutputWithContext(ctx context.Context) FooPtrOutput {
+ return o
+}
+
+func (o FooPtrOutput) Elem() FooOutput {
+ return o.ApplyT(func(v *Foo) Foo {
+ if v != nil {
+ return *v
+ }
+ var ret Foo
+ return ret
+ }).(FooOutput)
+}
+
+func (o FooPtrOutput) Something() pulumi.StringPtrOutput {
+ return o.ApplyT(func(v *Foo) *string {
+ if v == nil {
+ return nil
+ }
+ return v.Something
+ }).(pulumi.StringPtrOutput)
+}
+
+func init() {
+ pulumi.RegisterInputType(reflect.TypeOf((*BarInput)(nil)).Elem(), BarArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*BarPtrInput)(nil)).Elem(), BarArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*FooInput)(nil)).Elem(), FooArgs{})
+ pulumi.RegisterInputType(reflect.TypeOf((*FooPtrInput)(nil)).Elem(), FooArgs{})
+ pulumi.RegisterOutputType(BarOutput{})
+ pulumi.RegisterOutputType(BarPtrOutput{})
+ pulumi.RegisterOutputType(FooOutput{})
+ pulumi.RegisterOutputType(FooPtrOutput{})
+}
diff --git a/tests/integration/construct_component_output_values/testcomponent-python/pulumi-resource-testcomponent b/tests/integration/construct_component_output_values/testcomponent-python/pulumi-resource-testcomponent
new file mode 100755
index 000000000..3f67e1b24
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent-python/pulumi-resource-testcomponent
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+set -euo pipefail
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+
+exec "$PULUMI_RUNTIME_VIRTUALENV/bin/python" "$SCRIPT_DIR/testcomponent.py" "$@"
diff --git a/tests/integration/construct_component_output_values/testcomponent-python/pulumi-resource-testcomponent.cmd b/tests/integration/construct_component_output_values/testcomponent-python/pulumi-resource-testcomponent.cmd
new file mode 100644
index 000000000..d1385c8bc
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent-python/pulumi-resource-testcomponent.cmd
@@ -0,0 +1,4 @@
+@echo off
+setlocal
+set SCRIPT_DIR=%~dp0
+@%PULUMI_RUNTIME_VIRTUALENV%\Scripts\python.exe "%SCRIPT_DIR%/testcomponent.py" %*
diff --git a/tests/integration/construct_component_output_values/testcomponent-python/testcomponent.py b/tests/integration/construct_component_output_values/testcomponent-python/testcomponent.py
new file mode 100644
index 000000000..d7e66a401
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent-python/testcomponent.py
@@ -0,0 +1,132 @@
+# Copyright 2016-2021, Pulumi Corporation.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from typing import Any, Mapping, Optional
+import sys
+
+import pulumi
+import pulumi.provider as provider
+
+
+@pulumi.input_type
+class BarArgs:
+ def __init__(__self__, *,
+ tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None):
+ if tags is not None:
+ pulumi.set(__self__, "tags", tags)
+
+ @property
+ @pulumi.getter
+ def tags(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
+ return pulumi.get(self, "tags")
+
+ @tags.setter
+ def tags(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
+ pulumi.set(self, "tags", value)
+
+
+@pulumi.input_type
+class FooArgs:
+ def __init__(__self__, *,
+ something: Optional[pulumi.Input[str]] = None):
+ if something is not None:
+ pulumi.set(__self__, "something", something)
+
+ @property
+ @pulumi.getter
+ def something(self) -> Optional[pulumi.Input[str]]:
+ return pulumi.get(self, "something")
+
+ @something.setter
+ def something(self, value: Optional[pulumi.Input[str]]):
+ pulumi.set(self, "something", value)
+
+
+@pulumi.input_type
+class ComponentArgs:
+ def __init__(__self__, *,
+ bar: Optional[pulumi.Input['BarArgs']] = None,
+ foo: Optional['FooArgs'] = None):
+ if bar is not None:
+ pulumi.set(__self__, "bar", bar)
+ if foo is not None:
+ pulumi.set(__self__, "foo", foo)
+
+ @property
+ @pulumi.getter
+ def bar(self) -> Optional[pulumi.Input['BarArgs']]:
+ return pulumi.get(self, "bar")
+
+ @bar.setter
+ def bar(self, value: Optional[pulumi.Input['BarArgs']]):
+ pulumi.set(self, "bar", value)
+
+ @property
+ @pulumi.getter
+ def foo(self) -> Optional['FooArgs']:
+ return pulumi.get(self, "foo")
+
+ @foo.setter
+ def foo(self, value: Optional['FooArgs']):
+ pulumi.set(self, "foo", value)
+
+
+class Component(pulumi.ComponentResource):
+ def __init__(self,
+ resource_name: str,
+ args: Optional[ComponentArgs] = None,
+ opts: Optional[pulumi.ResourceOptions] = None) -> None:
+ super().__init__("testcomponent:index:Component", resource_name, args, opts)
+
+ assert args.foo is not None, "expected args.foo to not be None"
+ assert not isinstance(args.foo, pulumi.Output), "expected args.foo not to be an instance of pulumi.Output"
+ assert args.foo.something == "hello", \
+ f'expected args.foo.something to equal "hello" but got "{args.foo.something}"'
+
+ assert args.bar is not None, "expected args.bar to not be None"
+ assert not isinstance(args.bar, pulumi.Output), "expected args.bar not to be an instance of pulumi.Output"
+ assert args.bar.tags is not None, "expected args.bar.tags to not be None"
+ assert not isinstance(args.bar.tags, pulumi.Output), \
+ "expected args.bar.tags not to be an instance of pulumi.Output"
+ assert args.bar.tags["a"] == "world", \
+ f'expected args.bar.tags["a"] to equal "world" but got "{args.bar.tags["a"]}"'
+ assert isinstance(args.bar.tags["b"], pulumi.Output), 'expected args.bar.tags["b"] to be an instance of pulumi.Output'
+
+ def validate_b(v: str):
+ assert v == "shh", f'expected args.bar.tags["b"] to equal "shh" but got: "{v}"'
+ assert args.bar.tags["b"].apply(validate_b)
+
+
+class Provider(provider.Provider):
+ VERSION = "0.0.1"
+
+ def __init__(self):
+ super().__init__(Provider.VERSION)
+
+ def construct(self, name: str, resource_type: str, inputs: pulumi.Inputs,
+ options: Optional[pulumi.ResourceOptions] = None) -> provider.ConstructResult:
+
+ if resource_type != "testcomponent:index:Component":
+ raise Exception(f"unknown resource type {resource_type}")
+
+ component = Component(name, opts=options, args=ComponentArgs(
+ foo=FooArgs(**inputs["foo"]) if "foo" in inputs else None,
+ bar=BarArgs(**inputs["bar"]) if "bar" in inputs else None,
+ ))
+
+ return provider.ConstructResult(urn=component.urn, state={})
+
+
+if __name__ == "__main__":
+ provider.main(Provider(), sys.argv[1:])
diff --git a/tests/integration/construct_component_output_values/testcomponent/index.ts b/tests/integration/construct_component_output_values/testcomponent/index.ts
new file mode 100644
index 000000000..31d127f1d
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent/index.ts
@@ -0,0 +1,93 @@
+// Copyright 2016-2021, Pulumi Corporation. All rights reserved.
+
+import * as pulumi from "@pulumi/pulumi";
+import * as provider from "@pulumi/pulumi/provider";
+
+interface BarArgs {
+ tags?: pulumi.Input<{[key: string]: pulumi.Input}>;
+}
+
+interface FooArgs {
+ something?: pulumi.Input;
+}
+
+interface ComponentArgs {
+ bar?: pulumi.Input;
+ foo?: FooArgs;
+}
+
+class Component extends pulumi.ComponentResource {
+ constructor(name: string, args: ComponentArgs, opts?: pulumi.ComponentResourceOptions) {
+ super("testcomponent:index:Component", name, args, opts);
+
+ function isPromise(obj: any): obj is Promise {
+ return !!obj && obj.then === "function";
+ }
+
+ if (!args.foo) {
+ throw new Error("expected args.foo to be present");
+ }
+ if (pulumi.Output.isInstance(args.foo)) {
+ throw new Error("expected args.foo not to be an instance of pulumi.Output");
+ }
+ if (!args.foo.something) {
+ throw new Error("expected args.foo.something to be present");
+ }
+ if (args.foo.something !== "hello") {
+ throw new Error(`expected args.foo.something to equal "hello" but got "${args.foo.something}"`);
+ }
+
+ if (!args.bar) {
+ throw new Error("expected args.bar to be present");
+ }
+ if (pulumi.Output.isInstance(args.bar)) {
+ throw new Error("expected args.bar not to be an instance of pulumi.Output");
+ }
+ if (isPromise(args.bar)) {
+ throw new Error("expected args.bar not to be a promise");
+ }
+ if (!args.bar.tags) {
+ throw new Error("expected args.bar.tags to be present");
+ }
+ if (pulumi.Output.isInstance(args.bar.tags)) {
+ throw new Error("expected args.bar.tags not to be an instance of pulumi.Output");
+ }
+ if (isPromise(args.bar.tags)) {
+ throw new Error("expected args.bar.tags not to be a promise");
+ }
+ if (args.bar.tags.a !== "world") {
+ throw new Error(`expected args.bar.tags.a to equal "world" but got "${args.bar.tags.a}"`);
+ }
+ if (!pulumi.Output.isInstance(args.bar.tags.b)) {
+ throw new Error(`expected args.bar.tags.b to be an instance of pulumi.Output`);
+ }
+ args.bar.tags.b.apply(v => {
+ if (v != "shh") {
+ throw new Error(`expected args.bar.tags.b to equal "shh" but got "${v}"`);
+ }
+ });
+ }
+}
+
+class Provider implements provider.Provider {
+ public readonly version = "0.0.1";
+
+ async construct(name: string, type: string, inputs: pulumi.Inputs,
+ options: pulumi.ComponentResourceOptions): Promise {
+ if (type != "testcomponent:index:Component") {
+ throw new Error(`unknown resource type ${type}`);
+ }
+
+ const component = new Component(name, inputs, options);
+ return {
+ urn: component.urn,
+ state: inputs,
+ };
+ }
+}
+
+export function main(args: string[]) {
+ return provider.main(new Provider(), args);
+}
+
+main(process.argv.slice(2));
diff --git a/tests/integration/construct_component_output_values/testcomponent/package.json b/tests/integration/construct_component_output_values/testcomponent/package.json
new file mode 100644
index 000000000..377b005ae
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent/package.json
@@ -0,0 +1,11 @@
+{
+ "name": "pulumi-resource-testcomponent",
+ "main": "index.js",
+ "devDependencies": {
+ "typescript": "^3.0.0",
+ "@types/node": "latest"
+ },
+ "peerDependencies": {
+ "@pulumi/pulumi": "latest"
+ }
+}
diff --git a/tests/integration/construct_component_output_values/testcomponent/pulumi-resource-testcomponent b/tests/integration/construct_component_output_values/testcomponent/pulumi-resource-testcomponent
new file mode 100755
index 000000000..9d186db01
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent/pulumi-resource-testcomponent
@@ -0,0 +1,3 @@
+#!/bin/bash
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
+node $SCRIPT_DIR/bin $@
diff --git a/tests/integration/construct_component_output_values/testcomponent/pulumi-resource-testcomponent.cmd b/tests/integration/construct_component_output_values/testcomponent/pulumi-resource-testcomponent.cmd
new file mode 100644
index 000000000..75e94d26d
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent/pulumi-resource-testcomponent.cmd
@@ -0,0 +1,4 @@
+@echo off
+setlocal
+set SCRIPT_DIR=%~dp0
+@node "%SCRIPT_DIR%/bin" %*
diff --git a/tests/integration/construct_component_output_values/testcomponent/tsconfig.json b/tests/integration/construct_component_output_values/testcomponent/tsconfig.json
new file mode 100644
index 000000000..02005f7f5
--- /dev/null
+++ b/tests/integration/construct_component_output_values/testcomponent/tsconfig.json
@@ -0,0 +1,20 @@
+{
+ "compilerOptions": {
+ "strict": true,
+ "outDir": "bin",
+ "target": "es2016",
+ "module": "commonjs",
+ "moduleResolution": "node",
+ "declaration": true,
+ "sourceMap": false,
+ "stripInternal": true,
+ "experimentalDecorators": true,
+ "pretty": true,
+ "noFallthroughCasesInSwitch": true,
+ "noImplicitReturns": true,
+ "forceConsistentCasingInFileNames": true
+ },
+ "files": [
+ "index.ts",
+ ]
+}
diff --git a/tests/integration/integration_go_test.go b/tests/integration/integration_go_test.go
index a951fba4e..4d420aebe 100644
--- a/tests/integration/integration_go_test.go
+++ b/tests/integration/integration_go_test.go
@@ -765,3 +765,7 @@ func TestAboutGo(t *testing.T) {
// Assert we parsed the dependencies
assert.Contains(t, stdout, "github.com/BurntSushi/toml")
}
+
+func TestConstructOutputValuesGo(t *testing.T) {
+ testConstructOutputValues(t, "go", "github.com/pulumi/pulumi/sdk/v3")
+}
diff --git a/tests/integration/integration_nodejs_test.go b/tests/integration/integration_nodejs_test.go
index 870494bc5..aae476fdf 100644
--- a/tests/integration/integration_nodejs_test.go
+++ b/tests/integration/integration_nodejs_test.go
@@ -1169,3 +1169,7 @@ func TestAboutNodeJS(t *testing.T) {
assert.Containsf(t, stdout, "@types/node",
"Did not contain expected output. stderr: \n%q", stderr)
}
+
+func TestConstructOutputValuesNode(t *testing.T) {
+ testConstructOutputValues(t, "nodejs", "@pulumi/pulumi")
+}
diff --git a/tests/integration/integration_python_test.go b/tests/integration/integration_python_test.go
index 93e8169e9..e51d72675 100644
--- a/tests/integration/integration_python_test.go
+++ b/tests/integration/integration_python_test.go
@@ -1112,3 +1112,7 @@ func TestAboutPython(t *testing.T) {
// Assert we parsed the dependencies
assert.Contains(t, stdout, "pulumi-kubernetes")
}
+
+func TestConstructOutputValuesPython(t *testing.T) {
+ testConstructOutputValues(t, "python", filepath.Join("..", "..", "sdk", "python", "env", "src"))
+}
diff --git a/tests/integration/integration_test.go b/tests/integration/integration_test.go
index 4172ef18b..d60f530b5 100644
--- a/tests/integration/integration_test.go
+++ b/tests/integration/integration_test.go
@@ -8,7 +8,6 @@ import (
"context"
"encoding/json"
"fmt"
- "github.com/pulumi/pulumi/sdk/v3/go/common/apitype"
"os"
"os/exec"
"path/filepath"
@@ -18,6 +17,8 @@ import (
"testing"
"time"
+ "github.com/pulumi/pulumi/sdk/v3/go/common/apitype"
+
"github.com/stretchr/testify/assert"
"google.golang.org/grpc"
@@ -969,3 +970,37 @@ func TestExcludeProtected(t *testing.T) {
stdout, _ = e.RunCommand("pulumi", "destroy", "--skip-preview", "--yes", "--exclude-protected")
assert.Contains(t, stdout, "There were no unprotected resources to destroy. There are still 7")
}
+
+// nolint: unused,deadcode
+func testConstructOutputValues(t *testing.T, lang string, dependencies ...string) {
+ const testDir = "construct_component_output_values"
+ tests := []struct {
+ componentDir string
+ env []string
+ }{
+ {
+ componentDir: "testcomponent",
+ },
+ {
+ componentDir: "testcomponent-python",
+ env: []string{pulumiRuntimeVirtualEnv(t, filepath.Join("..", ".."))},
+ },
+ {
+ componentDir: "testcomponent-go",
+ },
+ }
+ for _, test := range tests {
+ t.Run(test.componentDir, func(t *testing.T) {
+ pathEnv := pathEnv(t,
+ filepath.Join("..", "testprovider"),
+ filepath.Join(testDir, test.componentDir))
+ integration.ProgramTest(t, &integration.ProgramTestOptions{
+ Env: append(test.env, pathEnv),
+ Dir: filepath.Join(testDir, lang),
+ Dependencies: dependencies,
+ Quick: true,
+ NoParallel: true, // avoid contention for Dir
+ })
+ })
+ }
+}