Documentation ¶
Index ¶
- type SquashFSParser
- func (s *SquashFSParser) CopyFile(filepath string, dstdir string) bool
- func (s *SquashFSParser) GetDirInfo(dirpath string) ([]fsparser.FileInfo, error)
- func (s *SquashFSParser) GetFileInfo(filepath string) (fsparser.FileInfo, error)
- func (s *SquashFSParser) ImageName() string
- func (f *SquashFSParser) Supported() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SquashFSParser ¶
type SquashFSParser struct {
// contains filtered or unexported fields
}
SquashFSParser parses SquashFS filesystem images.
func New ¶
func New(imagepath string, securityInfo bool) *SquashFSParser
New returns a new SquashFSParser instance for the given image file.
func (*SquashFSParser) CopyFile ¶
func (s *SquashFSParser) CopyFile(filepath string, dstdir string) bool
CopyFile copies the specified file to the specified destination.
func (*SquashFSParser) GetDirInfo ¶
func (s *SquashFSParser) GetDirInfo(dirpath string) ([]fsparser.FileInfo, error)
GetDirInfo returns information on the specified directory.
func (*SquashFSParser) GetFileInfo ¶
func (s *SquashFSParser) GetFileInfo(filepath string) (fsparser.FileInfo, error)
GetFileInfo returns information on the specified file.
func (*SquashFSParser) ImageName ¶
func (s *SquashFSParser) ImageName() string
ImageName returns the name of the filesystem image.
func (*SquashFSParser) Supported ¶
func (f *SquashFSParser) Supported() bool
Click to show internal directories.
Click to hide internal directories.