Documentation ¶
Index ¶
- Constants
- func ErrorDuplicatePath(path string) error
- func TarToFile(input *Input, destDir string) (strset.Set, error)
- func TarToMem(input *Input) ([]byte, strset.Set, error)
- func TarToWriter(input *Input, writer io.Writer) (strset.Set, error)
- func TgzToFile(input *Input, destDir string) (strset.Set, error)
- func TgzToMem(input *Input) ([]byte, strset.Set, error)
- func TgzToWriter(input *Input, writer io.Writer) (strset.Set, error)
- func UntarFileToDir(src string, destDir string) (strset.Set, error)
- func UntarFileToMem(src string) (map[string][]byte, error)
- func UntarMemToMem(tarBytes []byte) (map[string][]byte, error)
- func UntarReaderToDir(reader io.Reader, destDir string) (strset.Set, error)
- func UntarReaderToMem(reader io.Reader) (map[string][]byte, error)
- func UntgzFileToDir(src string, destDir string) (strset.Set, error)
- func UntgzFileToMem(src string) (map[string][]byte, error)
- func UntgzMemToMem(tgzBytes []byte) (map[string][]byte, error)
- func UntgzReaderToDir(reader io.Reader, destDir string) (strset.Set, error)
- func UntgzReaderToMem(reader io.Reader) (map[string][]byte, error)
- func UnzipFileToDir(src string, destDir string) (strset.Set, error)
- func UnzipFileToMem(src string) (map[string][]byte, error)
- func UnzipMemToMem(zipBytes []byte) (map[string][]byte, error)
- func ZipToFile(input *Input, destDir string) (strset.Set, error)
- func ZipToMem(input *Input) ([]byte, strset.Set, error)
- func ZipToWriter(input *Input, writer io.Writer) (strset.Set, error)
- type BytesInput
- type DirInput
- type FileInput
- type FileListInput
- type Input
Constants ¶
View Source
const (
ErrDuplicatePath = "archive.duplicate_path"
)
Variables ¶
This section is empty.
Functions ¶
func ErrorDuplicatePath ¶
func UntarFileToDir ¶
Will create destDir if missing
func UntarReaderToDir ¶
Will create destDir if missing
func UntgzFileToDir ¶
Will create destDir if missing
func UntgzReaderToDir ¶
Will create destDir if missing
func UnzipFileToDir ¶
Will create destDir if missing
Types ¶
type BytesInput ¶
type FileListInput ¶
type Input ¶
type Input struct { Files []FileInput Bytes []BytesInput Dirs []DirInput FileLists []FileListInput AddPrefix string // Gets added to every item EmptyFiles []string // Empty files to be created AllowOverwrite bool // Don't error if a file in the zip is overwritten }
Click to show internal directories.
Click to hide internal directories.