packer

package
v0.0.0-...-3fab4bf Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2016 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Pack

func Pack(f string)

func Unpack

func Unpack(conf common.ConfigLinny, adPackFile string) bool

Types

type AdPackFile

type AdPackFile struct {
	Writer *zip.Writer
	Name   string
}

func (*AdPackFile) AddAll

func (z *AdPackFile) AddAll(dir string, includeCurrentFolder bool) error

AddAll adds all files from dir in archive, recursively. Directories receive a zero-size entry in the archive, with a trailing slash in the header name, and no compression

func (*AdPackFile) Close

func (z *AdPackFile) Close() error

func (*AdPackFile) Create

func (z *AdPackFile) Create(name string) error

Create new file adPackFile

Jump to

Keyboard shortcuts

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