Documentation ¶
Index ¶
- func BlobPath(instDir string) string
- type Snap
- func (s *Snap) Build(buildDir string) error
- func (s *Snap) HashDigest(hash crypto.Hash) (uint64, []byte, error)
- func (s *Snap) Info() (*snap.Info, error)
- func (s *Snap) Install(instDir string) error
- func (s *Snap) MetaMember(metaMember string) ([]byte, error)
- func (s *Snap) Name() string
- func (s *Snap) ReadFile(path string) (content []byte, err error)
- func (s *Snap) Unpack(src, dstDir string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
func (*Snap) MetaMember ¶
MetaMember extracts from meta/. - COMPAT
Click to show internal directories.
Click to hide internal directories.