Documentation
¶
Index ¶
- Constants
- type BasicDirectory
- type BasicFile
- type BasicSymlink
- type DirInfo
- type Directory
- type DirectoryEntry
- type DirectoryHeader
- type DirectoryIndex
- type ExtendedDirectory
- type ExtendedFile
- type ExtendedSymlink
- type File
- type FileInfo
- type FragmentBlockEntry
- type InodeHeader
- type SqfsFile
- type SquashFS
- type SquashInfo
- type Superblock
Constants ¶
View Source
const ( UncompressedInodes = 0x0001 UncompressedData = 0x0002 Check = 0x0004 UncompressedFragments = 0x0008 NoFragments = 0x0010 AlwaysFragments = 0x0020 Duplicates = 0x0040 Exportable = 0x0080 UncompressedXAttrs = 0x0100 NoXAttrs = 0x0200 CompressorOptions = 0x0400 UncompressedIds = 0x0800 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicDirectory ¶
type BasicSymlink ¶
type DirectoryEntry ¶
type DirectoryEntry struct { Offset uint16 InodeOffset int16 InodeNumber uint32 Start uint32 NameSize uint16 // contains filtered or unexported fields }
func (DirectoryEntry) IsDir ¶
func (d DirectoryEntry) IsDir() bool
func (DirectoryEntry) Name ¶
func (d DirectoryEntry) Name() string
func (DirectoryEntry) Type ¶
func (d DirectoryEntry) Type() fs.FileMode
type DirectoryHeader ¶
type DirectoryIndex ¶
type ExtendedDirectory ¶
type ExtendedFile ¶
type ExtendedSymlink ¶
type FileInfo ¶
type FileInfo struct {
// contains filtered or unexported fields
}
func (FileInfo) SymlinkTarget ¶
type FragmentBlockEntry ¶
type InodeHeader ¶
type SqfsFile ¶
type SqfsFile interface {
// contains filtered or unexported methods
}
prefixed with i, because the fields are named the same and we only have this interface to dedupe some code between extended and basic file, i don't want to have to always to through getters/setters
type SquashInfo ¶
the default file info struct doesn't contain uid/gid, or info about symlinks and possibly other things. However Sys() let's us return anything. So I suppose callers will have to call Sys() and then dynamically check if it implements the SquashInfo interface.
type Superblock ¶
type Superblock struct { Magic uint32 InodeCount uint32 ModificationTime uint32 BlockSize uint32 FragmentEntryCount uint32 CompressionId uint16 BlockLog uint16 Flags uint16 IdCount uint16 VersionMajor uint16 VersionMinor uint16 RootInodeRef uint64 BytesUsed uint64 IdTableStart uint64 XattrIdTableStart uint64 InodeTableStart uint64 DirectoryTableStart uint64 FragmentTableStart uint64 ExportTableStart uint64 }
Click to show internal directories.
Click to hide internal directories.