Skip to content

gRPC API Documentation

Methods

GetAvailableUpdateBundles

Signature

func GetAvailableUpdateBundles(req GetAvailableUpdateBundlesRequest) GetAvailableUpdateBundlesResponse

Description

Retrieves a list of available update bundles from the specified update URL.

GetAvailableUpdateBundlesRequest Fields
FieldTypeDescription
updateUrlstringURL to the update source to check updates

These update URLs are currently supported:

URLDescription
usb:directory-pathUSB-Stick
file://update-filefile in local filesystem
http://cloud-servicecloud update
https://cloud-servicecloud update
GetAvailableUpdateBundlesResponse Fields
FieldTypeDescription
engineVersionstringVersion of the update engine.
isErrorboolIndicates if an error occurred.
messagestringAdditional information or error message.
currentVersionstringCurrent version of installed bundle.
installedComponentsmap[string]stringInstalled components and their versions.
availableBundles[]UpdateBundleList of available update bundles.

InstallUpdateBundle

Signature

func InstallUpdateBundle(req InstallUpdateBundleRequest) (stream InstallUpdateBundleResponse)

Description

Initiates the installation of a specified update bundle.

InstallUpdateBundleRequest Fields
FieldTypeDescription
bundleUrlstringURL of the update bundle to install.
InstallUpdateBundleResponse Fields
FieldTypeDescription
progressfloatProgress of the installation (percentage).
isDoneboolIndicates if the installation is complete.
isErrorboolIndicates if an error occurred.
messagestringAdditional information or error message.

Reboot

Signature

func Reboot() EmptyResponse

Description

Performs a system reboot operation.

EmptyResponse Fields

No fields (empty response).

GetStatus

Signature

func GetStatus() GetStatusResponse

Description

Retrieves the current status, indicating if a rollback is needed.

GetStatusResponse Fields
FieldTypeDescription
shouldRollbackboolIndicates if a rollback should be performed.

Rollback

Signature

func Rollback() RollbackResponse

Description

Executes a rollback to the previous state.

RollbackResponse Fields
FieldTypeDescription
isErrorboolIndicates if an error occurred.
messagestringAdditional information or error message.

GetClientInformation

Signature

func GetClientInformation() GetClientInformationResponse

Description

Retrieves information specific to the client device or application.

GetClientInformationResponse Fields
FieldTypeDescription
sourcestringBundle source url used for initial installation
bootStrapstringBootstrap program that starts when no firmware is installed.
tmpDirstringTemporary directory path.
customerstringCustomer identifier.
productstringProduct identifier.
infosmap[string]stringAdditional user-defined key-value information.

GetInstalledBundleInformation

Signature

func GetInstalledBundleInformation() GetInstalledBundleInformationResponse

Description

Retrieves information about the currently installed update bundle.

GetInstalledBundleInformationResponse Fields
FieldTypeDescription
componentVersionsmap[string]stringVersions of components in the bundle.
userInformationmap[string]stringUser-specific information in the bundle.

Structures

UpdateBundle

Description

UpdateBundle represents an update bundle with its URL, version, and associated component and user data.

Fields

FieldTypeDescription
bundleUrlstringURL of the update bundle.
bundleVersionstringVersion of the update bundle.
componentVersionsmap[string]stringVersions of individual components in the bundle.
userDatamap[string]stringAdditional user-specific data.