lvfscab

package
v0.0.0-...-f9ac3a8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package lvfscab allows to access LVFS metadata within a given Microsoft Cabinet file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(v1, v2 string) int

CompareVersions compares two versions used in LVFS. If both versions parse as semantic versions, compare them using semver. Otherwise fall back to a string comparison.

Types

type LVFSCabinet

type LVFSCabinet struct {
	*cabfile.Cabinet

	ID      string
	Version string
}

LVFSCabinet provides read-only access to Cabinet files shipped by the Linux Vendor Firmware Service (LVFS).

func New

func New(r io.ReadSeeker) (*LVFSCabinet, error)

New returns a new LVFSCabinet with the metadata already parsed.

Jump to

Keyboard shortcuts

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