H2 composition-diff: the node-engine seat's read verb composition-diff
The node-engine serves seat verbs and has no tools bundle, so the composed values read by resource are a read verb beside composition: given a module and a revision or digest, the entries that differ between the running composition and the other, per resource, environment entries by name, a secret masked. Packages generated again by seatgen (seatgen -check clean). Builds: design 47 H2 §813 (3); H-A-349 DQ-12b
This commit is contained in:
Vendored
+44
@@ -13,6 +13,7 @@ export declare const verbs: {
|
||||
readonly acts: "acts";
|
||||
readonly packages: "packages";
|
||||
readonly composition: "composition";
|
||||
readonly compositionDiff: "composition-diff";
|
||||
readonly compose: "compose";
|
||||
readonly composeCandidate: "compose-candidate";
|
||||
readonly manifestReads: "manifest-reads";
|
||||
@@ -304,6 +305,26 @@ export interface Composed {
|
||||
"v": number;
|
||||
}
|
||||
|
||||
/** one entry that differs between the running composition and the other */
|
||||
export interface CompositionDiffEntry {
|
||||
/** the value is a secret, so neither value is given */
|
||||
"masked"?: boolean;
|
||||
/** the entry: an environment entry by its name, else the part of the resource that differs */
|
||||
"name": string;
|
||||
/** its value in the other composition; absent where the other lacks it or the value is a secret */
|
||||
"other"?: string;
|
||||
/** its value in the running composition; absent where the running one lacks it or the value is a secret */
|
||||
"running"?: string;
|
||||
}
|
||||
|
||||
/** one resource with the entries of it that differ */
|
||||
export interface CompositionDiffResource {
|
||||
/** the entries of the resource that differ */
|
||||
"entries": CompositionDiffEntry[];
|
||||
/** the resource, as the composition names it */
|
||||
"resource": string;
|
||||
}
|
||||
|
||||
/** a group */
|
||||
export interface DeclaredGroup {
|
||||
"gid": number;
|
||||
@@ -963,6 +984,29 @@ export interface CompositionAnswer {
|
||||
"withheld-unknown"?: string;
|
||||
}
|
||||
|
||||
/** is what composition-diff takes. */
|
||||
export interface CompositionDiffInput {
|
||||
/** the digest (sha256:…) of the composition to compare with; give it or revision */
|
||||
"digest"?: string;
|
||||
/** the module, as placed on this machine; node for the node's own */
|
||||
"module": string;
|
||||
/** the revision of the module's composition key to compare with, from the revisions the bucket keeps; give it or digest */
|
||||
"revision"?: number;
|
||||
}
|
||||
|
||||
/** is what composition-diff answers. */
|
||||
export interface CompositionDiffAnswer {
|
||||
/** the module */
|
||||
"module": string;
|
||||
/** the node */
|
||||
"node": string;
|
||||
"other"?: Revision;
|
||||
/** each resource with an entry that differs; empty when none differs */
|
||||
"resources": CompositionDiffResource[];
|
||||
/** the digest of the composition that runs; absent when nothing runs */
|
||||
"running"?: string;
|
||||
}
|
||||
|
||||
/** is what compose takes. */
|
||||
export interface ComposeInput {
|
||||
/** a module placed on this machine whose apply is also tried again (optional) */
|
||||
|
||||
@@ -13,6 +13,7 @@ export const verbs = {
|
||||
acts: "acts",
|
||||
packages: "packages",
|
||||
composition: "composition",
|
||||
compositionDiff: "composition-diff",
|
||||
compose: "compose",
|
||||
composeCandidate: "compose-candidate",
|
||||
manifestReads: "manifest-reads",
|
||||
|
||||
Reference in New Issue
Block a user