These changes refactor the engine's entrypoints--Deploy, Destroy, and Preview--to be update-centric rather than stack-centric. Each of these methods now takes a value of a new type, Update, that abstracts away the vagaries of fetching and maintaining the update's state. This refactoring also reinforces Pulumi.yaml as a CLI concept rather than an engine concept; the CLI is now the only reader/writer of this format. These changes will smooth the way for a few refactorings on the service side that will aid in update isolation.
17 lines
537 B
Go
17 lines
537 B
Go
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
|
|
package deploy
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi/pkg/resource/config"
|
|
"github.com/pulumi/pulumi/pkg/tokens"
|
|
)
|
|
|
|
// Target represents information about a deployment target.
|
|
type Target struct {
|
|
Name tokens.QName // the target stack name.
|
|
Config config.Map // optional configuration key/value pairs.
|
|
Decrypter config.Decrypter // decrypter for secret configuration values.
|
|
Snapshot *Snapshot // the last snapshot deployed to the target.
|
|
}
|