Documentation ¶
Index ¶
- Constants
- 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
- type Entry
- type Extent
- type Fork
- type ForkChunk
- type MetaData
- type RIDIFF10
Constants ¶
View Source
const ( BlockSpecial entryType = 'B' CharacterSpecial entryType = 'C' Directory entryType = 'D' RegularFile entryType = 'F' SymbolicLink entryType = 'L' Metadata entryType = 'M' Fifo entryType = 'P' Socket entryType = 'S' )
View Source
const HeaderLen = 12
HeaderLen provides the length of the xz file header.
View Source
const (
RIDIFF10Magic = 0x3031464649444952
)
Variables ¶
This section is empty.
Functions ¶
func NewXZReader ¶
func NewXZReader(r io.Reader) (io.ReadCloser, error)
NewXZReader uses the xz command to extract the Apple Archives (xz streams) or falls back to the pure Golang xz decompression lib
Types ¶
type Entry ¶
type Entry struct { Type entryType // entry type Path string // entry path Link string // link path Uid uint16 // user id Gid uint16 // group id Mod fs.FileMode // access mode Flag uint32 // BSD flags Mtm time.Time // modification time Size uint32 // file data size Aft byte Afr uint32 Fli uint32 }
Entry is a YAA entry type
Click to show internal directories.
Click to hide internal directories.