Crate update_package

Source
Expand description

Typesafe wrappers around an “update” package.

Re-exports§

pub use crate::images::parse_image_packages_json;
pub use crate::images::ImageMetadata;
pub use crate::images::ImageMetadataError;
pub use crate::images::ImagePackagesError;
pub use crate::images::ImagePackagesManifest;
pub use crate::images::ImagePackagesManifestBuilder;
pub use crate::images::ImagesMetadata;
pub use crate::images::ResolveImagesError;
pub use crate::images::VerifyError;
pub use crate::images::VersionedImagePackagesManifest;
pub use crate::images::ZbiAndOptionalVbmetaMetadata;

Modules§

images
The images and firmware that should be downloaded and written during the update.

Structs§

UpdateImagePackage
An open handle to an image package.
UpdatePackage
An open handle to an “update” package.

Enums§

HashError
An error encountered while extracting the package hash.
OpenImageError
An error encountered while opening an image.
ParseEpochError
An error encountered while parsing the epoch.json file.
ParsePackageError
ParsePackageError represents any error which might occur while reading packages.json from an update package.
ParseUpdateModeError
An error encountered while parsing the update-mode file.
ReadVersionError
An error encountered while reading the version.
SerializePackageError
SerializePackageError represents any error which might occur while writing packages.json for an update package.
SystemVersion
Represents the version of an update package.
UpdateMode
Enum to describe the supported update modes.
VerifyBoardError
An error encountered while verifying the board.
VerifyNameError
An error encountered while verifying the board.

Functions§

parse_packages_json
Returns structured packages.json data based on file contents string.
serialize_packages_json
Returns serialized packages.json contents based package URLs.