rpc

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rpc provides an RPC-based update client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
}

Client is an implementation of the Local interface which uses RPCs to the TrustedOS to perform the updates.

func (Client) GetInstalledVersions

func (r Client) GetInstalledVersions() (os, applet semver.Version, err error)

GetInstalledVersions returns the semantic versions of the OS and Applet installed on this device. These will be the same versions that are currently running.

func (Client) InstallApplet

func (r Client) InstallApplet(fb firmware.Bundle) error

InstallApplet updates the Applet to the version contained in the firmware bundle. If the update is successful, the RPC will not return.

func (Client) InstallOS

func (r Client) InstallOS(fb firmware.Bundle) error

InstallOS updates the OS to the version contained in the firmware bundle. If the update is successful, the RPC will not return.

func (Client) Reboot

func (r Client) Reboot()

Reboot instructs the device to reboot after new firmware is installed. This call will not return and deferred functions will not be run.

Jump to

Keyboard shortcuts

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