We are renaming Lumi to Pulumi Fabric. This change simply renames the pulumi/lumi repo to pulumi/pulumi-fabric, without the CLI tools and other changes that will follow soon afterwards.
26 lines
1 KiB
Go
26 lines
1 KiB
Go
// Copyright 2016-2017, Pulumi Corporation. All rights reserved.
|
|
|
|
package deploy
|
|
|
|
import (
|
|
"github.com/pulumi/pulumi-fabric/pkg/resource"
|
|
"github.com/pulumi/pulumi-fabric/pkg/tokens"
|
|
)
|
|
|
|
// Snapshot is a view of a collection of resources in an environment at a point in time. It describes resources; their
|
|
// IDs, names, and properties; their dependencies; and more. A snapshot is a diffable entity and can be used to create
|
|
// or apply an infrastructure deployment plan in order to make reality match the snapshot state.
|
|
type Snapshot struct {
|
|
Namespace tokens.QName // the namespace target being deployed into.
|
|
Resources []*resource.State // fetches all resources and their associated states.
|
|
Info interface{} // optional information about the source.
|
|
}
|
|
|
|
// NewSnapshot creates a snapshot from the given arguments. The resources must be in topologically sorted order.
|
|
func NewSnapshot(ns tokens.QName, resources []*resource.State, info interface{}) *Snapshot {
|
|
return &Snapshot{
|
|
Namespace: ns,
|
|
Resources: resources,
|
|
Info: info,
|
|
}
|
|
}
|