unpack

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Box

type Box interface {
	Walk(walkFunc packr.WalkFunc) error
}

type File

type File interface {
	io.ReadWriteCloser
	Chmod(mode os.FileMode) error
}

type Filesystem

type Filesystem interface {
	Create(name string) (File, error)
	MkdirAll(path string, perm os.FileMode) error
}

type LocalFilesystem

type LocalFilesystem struct{}

func (LocalFilesystem) Create

func (LocalFilesystem) Create(name string) (File, error)

func (LocalFilesystem) MkdirAll

func (LocalFilesystem) MkdirAll(path string, perm os.FileMode) error

type Unpacker

type Unpacker struct {
	Box        Box
	Filesystem Filesystem
}

func NewUnpacker

func NewUnpacker() *Unpacker

func (*Unpacker) Unpack

func (u *Unpacker) Unpack(destDir string) error

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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