Documentation
¶
Overview ¶
nolint:revive // legacy naming
Index ¶
Constants ¶
View Source
const (
Version int32 = 1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatusValue ¶
type StatusValue struct {
UpdatedAt time.Time `json:"updated"`
WorkerID string `json:"worker"`
Target string `json:"target"`
TraceID string `json:"traceID"`
SpanID string `json:"spanID"`
State string `json:"state"`
Status json.RawMessage `json:"status"`
ResourceVersion int64 `json:"resourceVersion"` // for updates to server-service
MsgVersion int32 `json:"msgVersion"`
}
StatusValue is the canonical structure for reporting status of an ongoing firmware install
func (*StatusValue) MustBytes ¶
func (v *StatusValue) MustBytes() []byte
MustBytes sets the version field of the StatusValue so any callers don't have to deal with it. It will panic if we cannot serialize to JSON for some reason.
Click to show internal directories.
Click to hide internal directories.