satlab

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const SatlabStableVersionKind = "satlab_stable_version"

Variables

This section is empty.

Functions

func DeleteSatlabStableVersionEntryByRawID

func DeleteSatlabStableVersionEntryByRawID(ctx context.Context, id string) error

DeleteSatlabStableVersionEntryByRawID takes an ID and deletes the associated entry.

func MakeSatlabStableVersionID

func MakeSatlabStableVersionID(hostname string, board string, model string) string

MakeSatlabStableVersionID takes a hostname, board, and model and combines them into an ID.

func PutSatlabStableVersionEntry

func PutSatlabStableVersionEntry(ctx context.Context, entry *SatlabStableVersionEntry) error

PutSatlabStableVersionEntry puts a single SatlabStableVersionEntry in datastore.

Types

type SatlabStableVersionEntry

type SatlabStableVersionEntry struct {

	// ID has the following format. Earlier entries have precedence over later ones.
	//
	//   hostname     -- for a version scoped to a specific device.
	//   board|model  -- for a version scoped to just the board and the model.
	//
	ID string `gae:"$id"`
	// Base64Req stores a base64-encoded SetSatlabStableVersionRequest.
	// This request can be used to reconstitute this entire entry if required.
	Base64Req string `gae:"base64_req"`
	OS        string `gae:"os"`
	FW        string `gae:"fw"`
	FWImage   string `gae:"fw_image"`
	// contains filtered or unexported fields
}

SatlabStableVersionEntry is a stable version entry.

func GetSatlabStableVersionEntryByID

func GetSatlabStableVersionEntryByID(ctx context.Context, req *fleet.GetStableVersionRequest) (*SatlabStableVersionEntry, error)

GetSatlabStableVersionEntryByID uses the ID to look up a satlab stable entry.

func GetSatlabStableVersionEntryByRawID

func GetSatlabStableVersionEntryByRawID(ctx context.Context, id string) (*SatlabStableVersionEntry, error)

GetSatlabStableVersionEntryByRawID uses the ID to look up a satlab stable entry.

func MakeSatlabStableVersionEntry

func MakeSatlabStableVersionEntry(req *fleet.SetSatlabStableVersionRequest, normalizeCase bool) (*SatlabStableVersionEntry, error)

MakeSatlabStableVersionEntry creates a stable version entry from a stable version request.

Jump to

Keyboard shortcuts

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