package archive
import "k8s.io/kubernetes/contrib/mesos/pkg/archive"
Package archive provides utilities to archive and unarchive filesystem hierarchies.
Index ¶
- func UnzipDir(data []byte, destPath string) error
- func ZipDir(path string) ([]byte, []string, error)
- func ZipWalker(zw *zip.Writer) filepath.WalkFunc
Functions ¶
func UnzipDir ¶
UnzipDir unzips all files from a given zip byte array into a given directory. The directory is created if it does not exist yet.
func ZipDir ¶
Create a zip of all files in a directory recursively, return a byte array and the number of files archived.
func ZipWalker ¶
ZipWalker returns a filepath.WalkFunc that adds every filesystem node to the given *zip.Writer.
Source Files ¶
doc.go zip.go
- Version
- v1.1.4-beta.0
- Published
- Dec 7, 2015
- Platform
- js/wasm
- Imports
- 7 packages
- Last checked
- 18 minutes ago –
Tools for package owners.