Skip to main content

Module resource

Module resource 

Source

Structs§

ActionSpec
Captures
What an action’s stdout yielded against the names it declared.
CheckpointSpec
How a resource captures branch-local state at checkpoint time.
CleanupSpec
How a resource tears its concrete instance down. Ownership decides whether the hook may run at all; this decides what running it means.
IdentitySpec
PortRequest
ResourceDefinition
A lifecycle unit that re-establishes per-branch state that can’t travel as content. Parsed from .newgit/resources/<name>.toml; the name comes from the filename.
RestoreSpec
How a resource re-establishes checkpointed state during undo.

Enums§

CheckpointMode
GraphProblem
A dependency graph that does not hold together. Reported rather than raised, because the commands that build the graph are the ones most likely to run while it is still incomplete.
Ownership
Who owns the concrete instance and what cleanup may touch. Operational, not a security label.
RestoreMode

Functions§

parse_captures
Read an action’s declared captures out of its stdout.
resolve_order
Order resources so dependencies come before dependents. Dependencies may name trackers (which only need to exist) or other resources.
topological_order
resolve_order for callers that require a whole graph.