2017-08-30 03:24:12 +02:00
|
|
|
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
|
|
|
|
|
|
package resource
|
|
|
|
|
|
|
|
import (
|
2017-09-22 04:18:21 +02:00
|
|
|
"github.com/pulumi/pulumi/pkg/tokens"
|
2017-08-30 03:24:12 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
// Goal is a desired state for a resource object.
|
|
|
|
type Goal struct {
|
|
|
|
Type tokens.Type // the type of resource.
|
|
|
|
Name tokens.QName // the name for the resource's URN.
|
|
|
|
Properties PropertyMap // the resource's property state.
|
|
|
|
}
|
|
|
|
|
|
|
|
// NewGoal allocates a new resource goal state.
|
|
|
|
func NewGoal(t tokens.Type, name tokens.QName, props PropertyMap) *Goal {
|
|
|
|
return &Goal{Type: t, Name: name, Properties: props}
|
|
|
|
}
|