SD-M3: each whole seat's package lists its verbs and events
Claude-Session: https://claude.ai/code/session_01JG73KJNrH5EgFXMKKYSrig
This commit is contained in:
@@ -29,6 +29,16 @@ const (
|
||||
EventReleased = "released"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbPublish, VerbPublishPart, VerbVersions, VerbRemove, VerbMirror, VerbTags, VerbHold, VerbRelease}
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventPublished, EventRefused, EventRemoved, EventHeld, EventReleased}
|
||||
}
|
||||
|
||||
// Family is where the seat's events are kept.
|
||||
const (
|
||||
Family = "container-image-registry.events"
|
||||
|
||||
@@ -23,6 +23,16 @@ const (
|
||||
EventRemoved = "removed"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbPublish, VerbPublishPart, VerbVersions, VerbRemove}
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventPublished, EventRefused, EventRemoved}
|
||||
}
|
||||
|
||||
// Family is where the seat's events are kept.
|
||||
const (
|
||||
Family = "go-package-registry.events"
|
||||
|
||||
@@ -29,6 +29,16 @@ const (
|
||||
EventDropped = "dropped"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbList, VerbShow, VerbCheck, VerbOrphans, VerbCreate, VerbApply, VerbRecreate, VerbDrop}
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventCreated, EventRefused, EventDrifted, EventDriftCleared, EventFull, EventFullCleared, EventOrphaned, EventRecreated, EventDropped}
|
||||
}
|
||||
|
||||
// Family is where the seat's events are kept.
|
||||
const (
|
||||
Family = "mesh-broker.events"
|
||||
|
||||
@@ -11,6 +11,11 @@ const (
|
||||
VerbRenames = "renames"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbConfig, VerbRenames}
|
||||
}
|
||||
|
||||
// The holder's own events, listed beside the seat and published under the holder's subjects (ADR 0620 §2).
|
||||
const (
|
||||
HolderEventConfigChanged = "config-changed"
|
||||
|
||||
@@ -12,6 +12,11 @@ const (
|
||||
VerbTryEnd = "try-end"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbTry, VerbTryRead, VerbTryEnd}
|
||||
}
|
||||
|
||||
// The holder's own events, listed beside the seat and published under the holder's subjects (ADR 0620 §2).
|
||||
const (
|
||||
HolderEventVerdict = "verdict"
|
||||
|
||||
@@ -24,6 +24,11 @@ const (
|
||||
VerbRetire = "retire"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbGet, VerbSecretAsk, VerbIssued, VerbRotate, VerbMoveIn, VerbNodeKey, VerbOwn, VerbIssueAccount, VerbSign, VerbEnrolmentToken, VerbNodeAccount, VerbRotateNode, VerbNodeAccountConfirm, VerbAbandon, VerbRetire}
|
||||
}
|
||||
|
||||
// The holder's own events, listed beside the seat and published under the holder's subjects (ADR 0620 §2).
|
||||
const (
|
||||
HolderEventProvisioned = "provisioned"
|
||||
|
||||
@@ -23,6 +23,16 @@ const (
|
||||
EventRemoved = "removed"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbPublish, VerbPublishPart, VerbVersions, VerbRemove}
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventPublished, EventRefused, EventRemoved}
|
||||
}
|
||||
|
||||
// Family is where the seat's events are kept.
|
||||
const (
|
||||
Family = "npm-package-registry.events"
|
||||
|
||||
@@ -27,6 +27,16 @@ const (
|
||||
EventReleased = "released"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbPublish, VerbPublishPart, VerbVersions, VerbRemove, VerbHold, VerbRelease}
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventPublished, EventRefused, EventRemoved, EventHeld, EventReleased}
|
||||
}
|
||||
|
||||
// Family is where the seat's events are kept.
|
||||
const (
|
||||
Family = "oci-artifact-registry.events"
|
||||
|
||||
@@ -24,6 +24,16 @@ const (
|
||||
EventDecided = "decided"
|
||||
)
|
||||
|
||||
// Verbs is every verb the seat serves, in its definition's order: a new copy each call.
|
||||
func Verbs() []string {
|
||||
return []string{VerbOpen, VerbHistory, VerbNotify, VerbTell, VerbAsks}
|
||||
}
|
||||
|
||||
// Events is every event published on the seat's subject: a new copy each call.
|
||||
func Events() []string {
|
||||
return []string{EventDecided}
|
||||
}
|
||||
|
||||
// Family is where the seat's events are kept.
|
||||
const (
|
||||
Family = "operator-channel.decided"
|
||||
|
||||
Reference in New Issue
Block a user