Documentation
¶
Overview ¶
Package feed is the shape of beekeeper://feed: the events of the shared state, each with an id, in a versioned schema the agent views share.
A change within a schema version only adds optional fields; anything else is a new version, served beside the old one until its readers moved.
Index ¶
Constants ¶
const Schema = "beekeeper.giantswarm.io/feed/v1"
Schema is the version every feed document names.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Event ¶
type Event struct {
// ID orders the events: a decimal string that sorts as a number and
// only grows, across restarts too. A reader prints the events whose ID
// is above the last one it printed.
ID string `json:"id"`
// Kind is the verb, <area>.<what>: lease.claim, note.answer,
// message.expired, ...
Kind string `json:"kind"`
// Subject is the record the event concerns, <Kind>/<name>, a team's
// namespace (Namespace/beekeeper-<team>) for one without a record.
Subject string `json:"subject"`
Actor Party `json:"actor"`
Time time.Time `json:"time"`
// Line is the event as the local watch and log print it, without the
// time.
Line string `json:"line"`
}
Event is one change of the shared state.