archive

package
v0.0.0-...-b258b02 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateFromDirectory

func CreateFromDirectory(dir string, ignorePaths []string) (io.Reader, error)

CreateFromDirectory creates an archive from a directory on the filesystem ignorePaths is a list of paths (relative to dir) that should be ignored and not archived

func ExtractToDirectory

func ExtractToDirectory(content io.Reader, dir string) error

ExtractToDirectory takes a tar, gzipped archive and extracts it to a directory on the filesystem

func Validate

func Validate(content io.Reader) error

Validate checks whether the archive is correctly formatted. error is nil if it validates.

Types

This section is empty.

Jump to

Keyboard shortcuts

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