tarutils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 8 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TarFileSystem

func TarFileSystem(fs vfs.FileSystem, root string, writer io.Writer, opts TarFileSystemOptions) error

TarFileSystem 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.

func (*TarFileSystemOptions) Included

func (opts *TarFileSystemOptions) Included(path string) (bool, error)

Included determines whether a file should be included.

Jump to

Keyboard shortcuts

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