softwareupdate

package
v2.6.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2025 License: Apache-2.0 Imports: 0 Imported by: 3 modules, 4 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	ResourceType = "oic.r.softwareupdate"
	ResourceURI  = "/oc/swu"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Signer

type Signer string
const (
	Signer_VENDOR Signer = "vendor"
)

type SoftwareUpdate

type SoftwareUpdate struct {
	ResourceTypes []string     `json:"rt,omitempty"`
	Interfaces    []string     `json:"if,omitempty"`
	NewVersion    string       `json:"nv,omitempty"`
	PackageURL    string       `json:"purl,omitempty"`
	UpdateAction  UpdateAction `json:"swupdateaction,omitempty"`
	UpdateState   UpdateState  `json:"swupdatestate,omitempty"`
	UpdateResult  *int         `json:"swupdateresult,omitempty"`
	LastUpdate    string       `json:"lastupdate,omitempty"`
	Signed        Signer       `json:"signed,omitempty"`
	UpdateTime    string       `json:"updatetime,omitempty"`
}

func (*SoftwareUpdate) GetUpdateResult

func (sw *SoftwareUpdate) GetUpdateResult() int

type UpdateAction

type UpdateAction string
const (
	UpdateAction_IDLE                  UpdateAction = "idle"
	UpdateAction_CHECK_IS_AVAILABLE    UpdateAction = "isac"
	UpdateAction_DOWNLOAD_AND_VALIDATE UpdateAction = "isvv"
	UpdateAction_UPGRADE               UpdateAction = "upgrade"
)

type UpdateState

type UpdateState string
const (
	UpdateState_IDLE                   UpdateState = "idle"
	UpdateState_NEW_SOFTWARE_AVAILABLE UpdateState = "nsa"
	UpdateState_DOWNLOADING_VALIDATING UpdateState = "svv"
	UpdateState_DOWNLOAED_VALIDATED    UpdateState = "sva"
	UpdateState_UPGRADING              UpdateState = "upgrading"
)

Jump to

Keyboard shortcuts

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