Documentation ¶
Index ¶
- Constants
- func CopyDir(source string, destination string) error
- func CopyFile(source string, destination string) error
- func DecryptFile(sourcePath string, targetPath string, passphrase string) error
- func DestinationPath(destination string, fallbackFilename string, incrementIfExists bool) (string, error)
- func EncryptFile(sourcePath string, targetPath string, passphrase string) error
- func GetFallbackName(hint string, fallback string, suffix string) string
- func IsDir(somePath string) bool
- func IsFileEncrypted(path string) bool
- func UnzipSource(source, target string) error
- func ZipSource(source []string, target string) error
- type Archive
- func (a *Archive) Cleanup() error
- func (a *Archive) CopyIntoDir(source string, destination string, useTimedName bool) (string, error)
- func (a *Archive) Decrypt(passphrase string) error
- func (a *Archive) Destination() string
- func (a *Archive) Encrypt(passphrase string) error
- func (a *Archive) TempDestination() string
- func (a *Archive) Unzip() error
- func (a *Archive) Zip(sources []string) error
Constants ¶
View Source
const DEFAULT_FILE_PERMISSIONS = 0755
View Source
const ENCRYPTED_FILE_SUFFIX = ".enc"
Variables ¶
This section is empty.
Functions ¶
func DestinationPath ¶
func IsFileEncrypted ¶
func UnzipSource ¶
Unzip source: https://stackoverflow.com/a/24792688
Types ¶
type Archive ¶
type Archive struct { TempLocation string IsEncrupted bool // contains filtered or unexported fields }
func (*Archive) CopyIntoDir ¶
func (*Archive) Destination ¶
func (*Archive) TempDestination ¶
Click to show internal directories.
Click to hide internal directories.