pulumi/pkg/resource
joeduffy 86bfe5961d Implement updates
This change is a first whack at implementing updates.

Creation and deletion plans are pretty straightforward; we just take
a single graph, topologically sort it, and perform the operations in
the right order.  For creation, this is in dependency order (things
that are depended upon must be created before dependents); for deletion,
this is in reverse-dependency order (things that depend on others must
be deleted before dependencies).  These are just special cases of the more
general idea of performing DAG operations in dependency order.

Updates must work in terms of this more general notion.  For example:

* It is an error to delete a resource while another refers to it; thus,
  resources are deleted after deleting dependents, or after updating
  dependent properties that reference the resource to new values.

* It is an error to depend on a create a resource before it is created;
  thus, resources must be created before dependents are created, and/or
  before updates to existing resource properties that would cause them
  to refer to the new resource.

Of course, all of this is tangled up in a graph of dependencies.  As a
result, we must create a DAG of the dependencies between creates, updates,
and deletes, and then topologically sort this DAG, in order to determine
the proper order of update operations.

To do this, we slightly generalize the existing graph infrastructure,
while also specializing two kinds of graphs; the existing one becomes a
heapstate.ObjectGraph, while this new one is resource.planGraph (internal).
2017-02-23 14:56:23 -08:00
..
context.go Echo resource provider outputs 2017-02-22 18:53:36 -08:00
moniker.go Implement updates 2017-02-23 14:56:23 -08:00
mugl.go Implement stable resource ordering 2017-02-22 17:33:08 -08:00
plan.go Implement updates 2017-02-23 14:56:23 -08:00
plan_graph.go Implement updates 2017-02-23 14:56:23 -08:00
plugin.go Echo resource provider outputs 2017-02-22 18:53:36 -08:00
properties.go Implement updates 2017-02-23 14:56:23 -08:00
provider.go Implement resource provider plugins 2017-02-19 11:08:06 -08:00
resource.go Implement updates 2017-02-23 14:56:23 -08:00
rpc.go Fix a few things 2017-02-20 13:55:09 -08:00
snapshot.go Implement updates 2017-02-23 14:56:23 -08:00
stable.go Begin resource modeling and planning 2017-02-17 12:31:48 -08:00