Documentation
¶
Index ¶
Constants ¶
View Source
const ( SQUASHFS_MAGIC = 0x73717368 SQUASHFS_MAGIC_LE = 0x68737173 )
Known squashfs magic numbers
View Source
const SquashfsHeaderSize = int(unsafe.Sizeof(SquashfsHeader{}))
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SquashfsCompression ¶
type SquashfsCompression uint16
func (SquashfsCompression) MarshalJSON ¶
func (d SquashfsCompression) MarshalJSON() ([]byte, error)
func (SquashfsCompression) String ¶
func (v SquashfsCompression) String() string
type SquashfsHeader ¶
type SquashfsHeader struct { Magic SquashfsMagic Inodes uint32 MkfsTime SquashfsMkfsTime BlockSize uint32 Fragments uint32 Compression SquashfsCompression BlockLog uint16 Flags uint16 NoIds uint16 Version SquashfsVersion RootInode uint64 BytesUsed uint64 IdTableStart uint64 XattrTableStart uint64 InodeTableStart uint64 DirectoryTableStart uint64 FragmentTableStart uint64 ExportTableStart uint64 }
SquashfsHeader represents the squashfs superblock structure
func Info ¶
func Info(path string) (SquashfsHeader, error)
func (SquashfsHeader) Print ¶
func (header SquashfsHeader) Print() error
type SquashfsMagic ¶
type SquashfsMagic uint32
func (SquashfsMagic) MarshalJSON ¶
func (d SquashfsMagic) MarshalJSON() ([]byte, error)
func (SquashfsMagic) String ¶
func (m SquashfsMagic) String() string
type SquashfsMkfsTime ¶
type SquashfsMkfsTime uint32
func (SquashfsMkfsTime) MarshalJSON ¶
func (d SquashfsMkfsTime) MarshalJSON() ([]byte, error)
func (SquashfsMkfsTime) String ¶
func (t SquashfsMkfsTime) String() string
type SquashfsVersion ¶
type SquashfsVersion uint16
func (SquashfsVersion) MarshalJSON ¶
func (d SquashfsVersion) MarshalJSON() ([]byte, error)
func (SquashfsVersion) String ¶
func (v SquashfsVersion) String() string
Click to show internal directories.
Click to hide internal directories.