Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArchiveInfo ¶
func BuildArchive ¶
type ChecksumSHA256 ¶
type ChecksumSHA256 struct {
// contains filtered or unexported fields
}
func NewChecksumSHA256 ¶
func NewChecksumSHA256(f io.Writer) *ChecksumSHA256
func (*ChecksumSHA256) Sum ¶
func (c *ChecksumSHA256) Sum() string
type Mapping ¶
type Mapping struct { Path string ResolvedPath string RelativePath string Chroot string Relative bool }
Mapping represents a mapping of a file path to a destination path, including the chroot path and whether the path is relative or not.
func PathsToMappings ¶
PathsToMappings takes a slice of file paths and returns a slice of Mapping structs, which contain information about the destination path, chroot path, and whether the path is relative or not. It handles paths starting with "~/" by replacing them with the user's home directory.
Click to show internal directories.
Click to hide internal directories.