Documentation
¶
Index ¶
- type Snap
- func (s *Snap) Build(buildDir string) error
- func (s *Snap) Close() error
- func (s *Snap) ControlMember(controlMember string) ([]byte, error)
- func (s *Snap) CopyBlob(targetFile string) error
- func (s *Snap) ExtractHashes(dir 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
- func (s *Snap) UnpackMeta(dst string) error
- func (s *Snap) UnpackWithDropPrivs(instDir, rootdir string) error
- func (s *Snap) Verify(unauthOk bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Snap ¶
type Snap struct {
// contains filtered or unexported fields
}
Snap is the squashfs based snap
func (*Snap) ControlMember ¶
ControlMember extracts from meta/ - COMPAT
func (*Snap) ExtractHashes ¶
ExtractHashes does notthing for snapfs snaps - COMAPT
func (*Snap) MetaMember ¶
MetaMember extracts from meta/ - COMPAT
func (*Snap) UnpackMeta ¶
UnpackMeta unpacks just the meta/* directory of the given snap
func (*Snap) UnpackWithDropPrivs ¶
UnpackWithDropPrivs unpacks the meta and puts stuff in place - COMAPT
Click to show internal directories.
Click to hide internal directories.