softwareupdate

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: May 4, 2023 License: Apache-2.0 Imports: 0 Imported by: 4

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