Write into a file the machine shares instead of over it, and reload a service that re-reads its configuration instead of restarting it (hq ADR 0102)
This commit is contained in:
@@ -69,6 +69,19 @@ type Applied struct {
|
||||
// person who edits a managed file watches their change vanish every few minutes with nothing
|
||||
// anywhere saying why.
|
||||
Wrote string `json:"wrote,omitempty"`
|
||||
|
||||
// Into is set for a file written into rather than over (novox/hq ADR 0102): the format, what
|
||||
// each of the mesh's keys held before it set them, which of them were absent, and whether the
|
||||
// file itself was — so undeclaring it gives the machine back exactly what it had.
|
||||
Into *Into `json:"into,omitempty"`
|
||||
}
|
||||
|
||||
// Into is what a file written into held before the mesh's keys.
|
||||
type Into struct {
|
||||
Format string `json:"format"`
|
||||
Before map[string]json.RawMessage `json:"before,omitempty"`
|
||||
Absent []string `json:"absent,omitempty"`
|
||||
Created bool `json:"created,omitempty"`
|
||||
}
|
||||
|
||||
// State is the whole of what a node knows about what it has done.
|
||||
|
||||
Reference in New Issue
Block a user