The delivery repository's contracts and SDK live under modules/ as mesh-delivery-contracts and mesh-delivery-sdk, their Go module paths renamed to match the folders (the TypeScript names already did), and every importer in mesh-delivery, mesh-catalog, mesh-host, mesh-tools and mesh-sdk follows in the same group: a design as it should be, one path per module, checked by the group's check building every importer. Builds: design 47 G §427, §88 Claude-Session: https://claude.ai/code/session_01NcbgfGKaxw984XyAPfLm4h
85 lines
2.6 KiB
JavaScript
85 lines
2.6 KiB
JavaScript
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
|
|
|
// The contract of the seat "container-image-registry", defined whole (seats/container-image-registry/seat.json): The mesh's container images, in the one artifact store: the OCI distribution protocol's read side, an image's tags and mirroring an outside image.
|
|
|
|
export const seat = "container-image-registry";
|
|
|
|
export const verbs = {
|
|
publish: "publish",
|
|
publishPart: "publish-part",
|
|
versions: "versions",
|
|
remove: "remove",
|
|
mirror: "mirror",
|
|
tags: "tags",
|
|
hold: "hold",
|
|
release: "release",
|
|
list: "list",
|
|
};
|
|
|
|
export const events = {
|
|
published: "published",
|
|
refused: "refused",
|
|
removed: "removed",
|
|
kept: "kept",
|
|
held: "held",
|
|
released: "released",
|
|
};
|
|
|
|
export const family = { name: "container-image-registry.events", maxAgeDays: 7 };
|
|
|
|
export const publishedSubject = "mesh.seat.container-image-registry.event.published";
|
|
|
|
export const refusedSubject = "mesh.seat.container-image-registry.event.refused";
|
|
|
|
export const removedSubject = "mesh.seat.container-image-registry.event.removed";
|
|
|
|
export const keptSubject = "mesh.seat.container-image-registry.event.kept";
|
|
|
|
export const heldSubject = "mesh.seat.container-image-registry.event.held";
|
|
|
|
export const releasedSubject = "mesh.seat.container-image-registry.event.released";
|
|
|
|
export const states = {
|
|
holds: "holds",
|
|
windows: "windows",
|
|
};
|
|
|
|
/** The key of one value of the state holds under the form "<seat>.<name>.<digest>". */
|
|
export function holdsBySeatNameDigestKey(seat, name, digest) {
|
|
return seat + "." + name + "." + digest;
|
|
}
|
|
|
|
/** The parts of a key of the form "<seat>.<name>.<digest>", or undefined for a key of another form. */
|
|
export function parseHoldsBySeatNameDigestKey(_key) {
|
|
let _rest = _key;
|
|
const _at0 = _rest.indexOf(".");
|
|
if (_at0 <= 0) return undefined;
|
|
const seat = _rest.slice(0, _at0);
|
|
_rest = _rest.slice(_at0 + 1);
|
|
const _at2 = _rest.indexOf(".");
|
|
if (_at2 <= 0) return undefined;
|
|
const name = _rest.slice(0, _at2);
|
|
_rest = _rest.slice(_at2 + 1);
|
|
if (_rest === "") return undefined;
|
|
const digest = _rest;
|
|
_rest = "";
|
|
if (_rest !== "") return undefined;
|
|
return { seat, name, digest };
|
|
}
|
|
|
|
/** The key of one value of the state windows under the form "<caller>". */
|
|
export function windowsByCallerKey(caller) {
|
|
return caller;
|
|
}
|
|
|
|
/** The parts of a key of the form "<caller>", or undefined for a key of another form. */
|
|
export function parseWindowsByCallerKey(_key) {
|
|
let _rest = _key;
|
|
if (_rest === "") return undefined;
|
|
const caller = _rest;
|
|
_rest = "";
|
|
if (_rest !== "") return undefined;
|
|
return { caller };
|
|
}
|
|
|