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 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" )
Click to show internal directories.
Click to hide internal directories.