xad

package
v9.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2017 License: MIT Imports: 6 Imported by: 0

README

xad

XAD is the backend that uses The Unarchiver command-line tools, lsar and unar.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Types

type Entry

type Entry struct {
	XADFileName string
	XADFileSize int64
}

Entry contains the fields we care about most often

type FullEntry

type FullEntry struct {
	Entry

	XADIndex      int64
	XADPosixGroup int64
	XADPosixUser  int64
	// examples: "None",
	XADCompressionName string
	XADDataLength      int64
	ZipLocalDate       int64

	/////////////////////////////////////////
	// date format: "2016-09-27 02:15:12 +0200"
	/////////////////////////////////////////
	XADLastModificationDate string
	XADLastAccessDate       string

	/////////////////////////////////////////
	// zip-specific entries
	/////////////////////////////////////////
	ZipOS             int64
	ZipOSName         string
	ZipExtractVersion int64
	ZipFlags          int64
	ZipCRC32          int64
	ZipFileAttributes int64
}

type Handler

type Handler struct {
}

func (*Handler) Extract

func (h *Handler) Extract(params *archive.ExtractParams) error

func (*Handler) List

func (h *Handler) List(params *archive.ListParams) (archive.ListResult, error)

func (*Handler) Name

func (h *Handler) Name() string

type ListResult

type ListResult struct {
	// contains filtered or unexported fields
}

func (*ListResult) Entries

func (lr *ListResult) Entries() []*archive.Entry

func (*ListResult) FormatName

func (lr *ListResult) FormatName() string

func (*ListResult) Handler

func (lr *ListResult) Handler() archive.Handler

type LsarResult

type LsarResult struct {
	FormatVersion int64    `json:"lsarFormatVersion"`
	Contents      []*Entry `json:"lsarContents"`
	Encoding      string   `json:"lsarEncoding"`
	Confidence    int64    `json:"lsarConfidence"`
	FormatName    string   `json:"lsarFormatName"`
}

Jump to

Keyboard shortcuts

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