Skip to main content

Module operation

Module operation 

Source
Expand description

What a plan will do to a target, as a closed set.

An operation names digests and never bytes. The bytes live in the plan’s blob store, so a plan can be read, printed, and compared without carrying a repository’s content around in it, and an apply cannot be handed content the plan never described.

There is no operation that runs a command. Every write is a typed write into one validated target-relative path, so what a plan can do is bounded by this enum rather than by what a string happens to say.

Structs§

DuplicateDestination
Two operations naming one destination.
TargetPath
A path an operation may name: relative, inside the target, and ordinary.
TargetPathError
A path no operation may name.

Enums§

Class
Who owns a file once it has landed.
Operation
One typed write a plan will make.

Functions§

no_duplicate_destination
Check that no destination is written twice.