Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrInodeNotFile is given when giving an inode, but the function requires a file inode. ErrInodeNotFile = errors.New("Given inode is NOT a file type") //ErrInodeOnlyFragment is given when trying to make a DataReader from an inode, but the inode only had data in a fragment ErrInodeOnlyFragment = errors.New("Given inode ONLY has fragment data") )
View Source
var ( //ErrNoMagic is returned if the magic number in the superblock isn't correct. ErrNoMagic = errors.New("Magic number doesn't match. Either isn't a squashfs or corrupted") //ErrIncompatibleCompression is returned if the compression type in the superblock doesn't work. ErrIncompatibleCompression = errors.New("Compression type unsupported") //ErrCompressorOptions is returned if compressor options is present. It's not currently supported. ErrCompressorOptions = errors.New("Compressor options is not currently supported") //ErrFragmentTableIssues is returned if there's trouble reading the fragment table when creating a reader. //When this is returned, the reader is still returned. ErrFragmentTableIssues = errors.New("Trouble while reading the fragment table") )
View Source
var ( //ErrNotFound means that the given path is NOT present in the archive ErrNotFound = errors.New("Path not found") )
View Source
var ( //ErrPathIsNotFile returns when trying to read from a file, but the given path is NOT a file. ErrPathIsNotFile = errors.New("The given path is not a file") )
Functions ¶
This section is empty.
Types ¶
type FileReader ¶
type FileReader struct { FileSize int //FileSize is the total size of the given file // contains filtered or unexported fields }
FileReader provides a io.Reader interface for files within a squashfs archive
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader processes and reads a squashfs archive. TODO: Give a way to actually read files :P
func NewSquashfsReader ¶
NewSquashfsReader returns a new squashfs.Reader from an io.ReaderAt
func (*Reader) GetFilesList ¶
GetFilesList returns a list of ALL files in the squashfs, going down every folder. Folders end in /
Source Files ¶
Click to show internal directories.
Click to hide internal directories.