Documentation ¶
Index ¶
- func CreateTarFromFs(fs vfs.FileSystem, path string, compress func(w io.Writer) io.WriteCloser, ...) (err error)
- func ExtractArchiveToFs(fs vfs.FileSystem, path string, fss ...vfs.FileSystem) error
- func ExtractArchiveToFsWithInfo(fs vfs.FileSystem, path string, fss ...vfs.FileSystem) (int64, int64, error)
- func ExtractTarToFs(fs vfs.FileSystem, in io.Reader) error
- func ExtractTarToFsWithInfo(fs vfs.FileSystem, in io.Reader) (fcnt int64, bcnt int64, err error)
- func Gzip(w io.Writer) io.WriteCloser
- func ListArchiveContent(path string, fss ...vfs.FileSystem) ([]string, error)
- func ListArchiveContentFromReader(r io.Reader) ([]string, error)
- func PackFsIntoTar(fs vfs.FileSystem, root string, writer io.Writer, opts TarFileSystemOptions) error
- type TarFileSystemOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTarFromFs ¶ added in v0.3.0
func CreateTarFromFs(fs vfs.FileSystem, path string, compress func(w io.Writer) io.WriteCloser, fss ...vfs.FileSystem) (err error)
func ExtractArchiveToFs ¶ added in v0.3.0
func ExtractArchiveToFs(fs vfs.FileSystem, path string, fss ...vfs.FileSystem) error
ExtractArchiveToFs wunpacks an archive to a filesystem.
func ExtractArchiveToFsWithInfo ¶ added in v0.3.0
func ExtractArchiveToFsWithInfo(fs vfs.FileSystem, path string, fss ...vfs.FileSystem) (int64, int64, error)
ExtractArchiveToFsWithInfo wunpacks an archive to a filesystem.
func ExtractTarToFs ¶ added in v0.3.0
func ExtractTarToFs(fs vfs.FileSystem, in io.Reader) error
ExtractTarToFs writes a tar stream to a filesystem.
func ExtractTarToFsWithInfo ¶ added in v0.3.0
func ListArchiveContent ¶ added in v0.5.0
func ListArchiveContent(path string, fss ...vfs.FileSystem) ([]string, error)
func ListArchiveContentFromReader ¶ added in v0.5.0
func PackFsIntoTar ¶ added in v0.3.0
func PackFsIntoTar(fs vfs.FileSystem, root string, writer io.Writer, opts TarFileSystemOptions) error
PackFsIntoTar creates a tar archive from a filesystem.
Types ¶
type TarFileSystemOptions ¶
type TarFileSystemOptions struct { IncludeFiles []string ExcludeFiles []string // PreserveDir defines that the directory specified in the Path field should be included in the blob. // Only supported for Type dir. PreserveDir bool FollowSymlinks bool // contains filtered or unexported fields }
TarFileSystemOptions describes additional options for tarring a filesystem.
Click to show internal directories.
Click to hide internal directories.