Documentation
¶
Index ¶
- func Extract(origReader io.Reader, destFolder string, options ...Option) error
- func IsRecursiveSymlink(f os.FileInfo, symlinkPath string) bool
- func UnzipFolder(source, destination string) error
- func WriteTar(writer io.Writer, localPath string, compress bool) error
- type Archiver
- type FileInformation
- type Option
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRecursiveSymlink ¶
IsRecursiveSymlink checks if the provided non-resolved file info is a recursive symlink
func UnzipFolder ¶
Types ¶
type Archiver ¶
type Archiver struct {
// contains filtered or unexported fields
}
Archiver is responsible for compressing specific files and folders within a target directory
func NewArchiver ¶
NewArchiver creates a new archiver
func (*Archiver) AddToArchive ¶
AddToArchive adds a new path to the archive
type FileInformation ¶
type FileInformation struct {
Name string
Size int64
Mtime int64
MtimeNano int64
Mode os.FileMode
IsDirectory bool
IsSymbolicLink bool
ResolvedLink bool
Files int
}
FileInformation describes a path or file that is synced either in the remote container or locally
Click to show internal directories.
Click to hide internal directories.