The numbering from before G goes (design 47 H §756, G §372): the builder keeps no state versions, marks no numbered entry on a registry seat's word and arms no numbered version's publish bound; the publishes' findings and the reservations still hear the same events (DQ-11), and a reserved version's bound is the reservation's (DQ-10). builder_versions keeps answering, from the reservations alone (DMC-5): what the seat mesh-builds' reserved answers for a name and, with a version and a digest, whether that version is reserved or released with that digest. Builds: design 47 H §756, G §372, G §381, H2 H-A-532 (DMC-5, DQ-10, DQ-11), spec 29, 41, 48
24 lines
765 B
Go
24 lines
765 B
Go
package versions
|
|
|
|
// The registry seats' events the builder hears on its durable consumer of each `<seat>.events` (design 51 *How a
|
|
// publish ends*, DLV-B4).
|
|
const (
|
|
HeardPublished = "published"
|
|
HeardRefused = "refused"
|
|
HeardRemoved = "removed"
|
|
HeardKept = "kept"
|
|
)
|
|
|
|
// Outcome is the body of a registry seat's published, refused and removed (mesh-contracts parts/registry Outcome), the
|
|
// fields the builder reads.
|
|
type Outcome struct {
|
|
Name string `json:"name"`
|
|
Version string `json:"version,omitempty"`
|
|
Digest string `json:"digest"`
|
|
Kind string `json:"kind"`
|
|
Holder string `json:"holder"`
|
|
Reason string `json:"reason,omitempty"`
|
|
// Tags are, on kept, the other tags still naming its digest.
|
|
Tags []string `json:"tags,omitempty"`
|
|
}
|