Versions in this module Expand all Collapse all v0 v0.1.0 Nov 12, 2022 v0.0.1 Nov 10, 2022 Changes in this version + func BuildDate(path string) time.Time + func FileHasSquashfsHeader(path string) bool + type BuildOpts struct + Compression string + ExcludeFiles []string + SnapType string + type MksquashfsError struct + func (m MksquashfsError) Error() string + type Snap struct + func New(snapPath string) *Snap + func (s *Snap) Build(sourceDir string, opts *BuildOpts) error + func (s *Snap) BuildDate() time.Time + func (s *Snap) Install(targetPath, mountDir string, opts *snap.InstallOptions) (bool, error) + func (s *Snap) ListDir(dirPath string) ([]string, error) + func (s *Snap) Path() string + func (s *Snap) RandomAccessFile(filePath string) (interface{ ... }, error) + func (s *Snap) ReadFile(filePath string) (content []byte, err error) + func (s *Snap) Size() (size int64, err error) + func (s *Snap) Unpack(src, dstDir string) error + func (s *Snap) Walk(relative string, walkFn filepath.WalkFunc) error + type SnapFileOwner struct + GID uint32 + UID uint32