Documentation ¶
Index ¶
- Variables
- type Snap
- func (s *Snap) Build(buildDir string) error
- func (s *Snap) HashDigest(hash crypto.Hash) (uint64, []byte, error)
- 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)
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 ¶
This section is empty.
Types ¶
type Snap ¶
type Snap struct {
// contains filtered or unexported fields
}
Snap is the squashfs based snap.
func (*Snap) HashDigest ¶
HashDigest computes a hash digest of the snap file using the given hash. It also returns its size.
Click to show internal directories.
Click to hide internal directories.