archive

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFileToArchive

func AddFileToArchive(tw *tar.Writer, srcDir string, uid, gid int, fileSet map[string]struct{}) error

func Untar

func Untar(r io.Reader, dest string) error

func WriteFilesToTar

func WriteFilesToTar(dest string, uid, gid int, files ...string) (string, map[string]struct{}, error)

func WriteTarArchive

func WriteTarArchive(w io.Writer, srcDir string, uid, gid int) error

func WriteTarFile

func WriteTarFile(sourceDir, dest string, uid, gid int) (string, error)

Types

type PathMode

type PathMode struct {
	Path string
	Mode os.FileMode
}

Jump to

Keyboard shortcuts

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