63 lines
2.0 KiB
JavaScript
63 lines
2.0 KiB
JavaScript
// Code generated by seatgen from the seat definitions; DO NOT EDIT.
|
|
|
|
// The contract of the seat "mesh-broker", defined whole (seats/mesh-broker/seat.json): The mesh's bus, and the bus state modules ask of it in requires (design 25 § 12). create, apply, recreate and drop are granted to the bus module's own credential alone.
|
|
|
|
export const seat = "mesh-broker";
|
|
|
|
export const verbs = {
|
|
list: "list",
|
|
show: "show",
|
|
check: "check",
|
|
orphans: "orphans",
|
|
create: "create",
|
|
apply: "apply",
|
|
recreate: "recreate",
|
|
drop: "drop",
|
|
snapshotGet: "snapshot-get",
|
|
snapshotRestore: "snapshot-restore",
|
|
snapshotRestoreCancel: "snapshot-restore-cancel",
|
|
snapshotRemove: "snapshot-remove",
|
|
};
|
|
|
|
export const events = {
|
|
created: "created",
|
|
refused: "refused",
|
|
drifted: "drifted",
|
|
driftCleared: "drift-cleared",
|
|
full: "full",
|
|
fullCleared: "full-cleared",
|
|
orphaned: "orphaned",
|
|
recreated: "recreated",
|
|
dropped: "dropped",
|
|
snapshotRestored: "snapshot-restored",
|
|
};
|
|
|
|
export const family = { name: "mesh-broker.events", maxAgeDays: 7 };
|
|
|
|
export const createdSubject = "mesh.seat.mesh-broker.event.created";
|
|
|
|
export const refusedSubject = "mesh.seat.mesh-broker.event.refused";
|
|
|
|
export const driftedSubject = "mesh.seat.mesh-broker.event.drifted";
|
|
|
|
export const driftClearedSubject = "mesh.seat.mesh-broker.event.drift-cleared";
|
|
|
|
export const fullSubject = "mesh.seat.mesh-broker.event.full";
|
|
|
|
export const fullClearedSubject = "mesh.seat.mesh-broker.event.full-cleared";
|
|
|
|
export const orphanedSubject = "mesh.seat.mesh-broker.event.orphaned";
|
|
|
|
export const recreatedSubject = "mesh.seat.mesh-broker.event.recreated";
|
|
|
|
export const droppedSubject = "mesh.seat.mesh-broker.event.dropped";
|
|
|
|
export const snapshotRestoredStream = "SEAT_mesh-broker_snapshot-restored";
|
|
|
|
export function snapshotRestoredSubject(request, act) {
|
|
return "mesh.seat.mesh-broker.event.snapshot-restored." + request + "." + act;
|
|
}
|
|
|
|
export const snapshotRestoredSubjectAll = "mesh.seat.mesh-broker.event.snapshot-restored.*.*";
|
|
|