Documentation ¶
Index ¶
- Variables
- func BuildDate(path string) time.Time
- type Snap
- func (s *Snap) Build(sourceDir, snapType string, excludeFiles ...string) error
- func (s *Snap) BuildDate() time.Time
- func (s *Snap) Install(targetPath, mountDir string) error
- func (s *Snap) ListDir(dirPath string) ([]string, error)
- func (s *Snap) Path() string
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var Magic = []byte{'h', 's', 'q', 's'}
Magic is the magic prefix of squashfs snap files.
Functions ¶
Types ¶
type Snap ¶
type Snap struct {
// contains filtered or unexported fields
}
Snap is the squashfs based snap.
func (*Snap) BuildDate ¶
BuildDate returns the "Creation or last append time" as reported by unsquashfs.
type SnapFileOwner ¶
Click to show internal directories.
Click to hide internal directories.