Versions in this module Expand all Collapse all v0 v0.1.0 Sep 7, 2023 Changes in this version + const BlockSpecial + const CharacterSpecial + const Directory + const Fifo + const HeaderLen + const Metadata + const RIDIFF10Magic + const RegularFile + const Socket + const SymbolicLink + func Extract(otaZIP, extractPattern, folder string) error + func List(otaZIP string) ([]os.FileInfo, error) + func ListZip(otaZIP string) ([]os.FileInfo, error) + func NewXZReader(r io.Reader) (io.ReadCloser, error) + func Parse(payload *zip.File, folder, extractPattern string) (bool, string, error) + func RemoteExtract(zr *zip.Reader, extractPattern, destPath string, shouldStop func(string) bool) error + func RemoteList(zr *zip.Reader) ([]os.FileInfo, error) + type Control struct + Offset uint64 + Size uint64 + type Entry struct + Afr uint32 + Aft byte + Flag uint32 + Fli uint32 + Gid uint16 + Link string + Mod fs.FileMode + Mtm time.Time + Path string + Size uint32 + Type entryType + Uid uint16 + type Extent struct + Offset uint64 + Size uint64 + type Fork struct + Algorithm uint8 + Compressed uint64 + ExtentCount uint64 + ExtentIndex uint64 + ForkHeader uint64 + Size uint64 + Variant uint64 + type ForkChunk struct + Size uint32 + Total uint64 + type MetaData struct + Extents []Extent + Forks []Fork + type RIDIFF10 struct + Controls []Control + MetaData []byte + PatchData [][]byte + PatchDataOffset []uint64 + PatchSize uint64 + func ParseRawImageDiff10(r *bytes.Reader) (*RIDIFF10, error)