types

package
v1.4.8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 24, 2025 License: Apache-2.0 Imports: 2 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL