mirror of https://github.com/pulumi/pulumi.git
43 lines
971 B
Go
43 lines
971 B
Go
package schema
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi/sdk/v3/go/common/util/contract"
|
|
)
|
|
|
|
func newPulumiPackage() *Package {
|
|
spec := PackageSpec{
|
|
Name: "pulumi",
|
|
DisplayName: "Pulumi",
|
|
Version: "1.0.0",
|
|
Description: "mock pulumi package",
|
|
Resources: map[string]ResourceSpec{
|
|
"pulumi:pulumi:StackReference": {
|
|
ObjectTypeSpec: ObjectTypeSpec{
|
|
Properties: map[string]PropertySpec{
|
|
"outputs": {TypeSpec: TypeSpec{Type: "object"}},
|
|
},
|
|
},
|
|
InputProperties: map[string]PropertySpec{
|
|
"name": {TypeSpec: TypeSpec{Type: "string"}},
|
|
},
|
|
},
|
|
},
|
|
Provider: ResourceSpec{
|
|
InputProperties: map[string]PropertySpec{
|
|
"name": {
|
|
Description: "fully qualified name of stack, i.e. <organization>/<project>/<stack>",
|
|
TypeSpec: TypeSpec{
|
|
Type: "string",
|
|
},
|
|
},
|
|
},
|
|
},
|
|
}
|
|
|
|
pkg, err := ImportSpec(spec, nil)
|
|
contract.AssertNoError(err)
|
|
return pkg
|
|
}
|
|
|
|
var DefaultPulumiPackage = newPulumiPackage()
|