snapfs

package
v0.0.0-...-0579a83 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2015 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

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 New

func New(path string) *Snap

New returns a new Snapfs snap

func (*Snap) Build

func (s *Snap) Build(buildDir string) error

Build builds the snap

func (*Snap) Close

func (s *Snap) Close() error

Close is not doing anything for snapfs - COMPAT

func (*Snap) ControlMember

func (s *Snap) ControlMember(controlMember string) ([]byte, error)

ControlMember extracts from meta/ - COMPAT

func (*Snap) CopyBlob

func (s *Snap) CopyBlob(targetFile string) error

CopyBlob copies the snap to a new place

func (*Snap) ExtractHashes

func (s *Snap) ExtractHashes(dir string) error

ExtractHashes does notthing for snapfs snaps - COMAPT

func (*Snap) MetaMember

func (s *Snap) MetaMember(metaMember string) ([]byte, error)

MetaMember extracts from meta/ - COMPAT

func (*Snap) Name

func (s *Snap) Name() string

Name returns the Name of the backing file

func (*Snap) ReadFile

func (s *Snap) ReadFile(path string) (content []byte, err error)

ReadFile returns the content of a single file inside a snapfs snap

func (*Snap) Unpack

func (s *Snap) Unpack(src, dstDir string) error

Unpack unpacks the src (which may be a glob into the given target dir

func (*Snap) UnpackMeta

func (s *Snap) UnpackMeta(dst string) error

UnpackMeta unpacks just the meta/* directory of the given snap

func (*Snap) UnpackWithDropPrivs

func (s *Snap) UnpackWithDropPrivs(instDir, rootdir string) error

UnpackWithDropPrivs unpacks the meta and puts stuff in place - COMAPT

func (*Snap) Verify

func (s *Snap) Verify(unauthOk bool) error

Verify verifies the snap

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL