package
2.5.1
Repository: https://github.com/rfjakob/gocryptfs.git
Documentation: pkg.go.dev

# Functions

Du returns the disk usage of the file "fd" points to, in bytes.
ExtractCmdExitCode extracts the exit code from an error value that was returned from exec / cmd.Run().
InitFS creates a new empty cipherdir and calls gocryptfs -q -init -extpass "echo test" -scryptn=10 $extraArgs $cipherdir It returns cipherdir without a trailing slash.
ListFds lists the open file descriptors for process "pid".
Md5fn returns an md5 string for file "filename".
Md5hex returns an md5 string for "buf".
Mount CIPHERDIR "c" on PLAINDIR "p" Creates "p" if it does not exist.
MountOrExit calls Mount() and exits on failure.
MountOrFatal calls Mount() and calls t.Fatal() on failure.
QueryCtlSock sends a request to the control socket at "socketPath" and returns the response.
ResetTmpDir deletes TmpDir, create new dir tree: TmpDir |-- DefaultPlainDir *-- DefaultCipherDir *-- gocryptfs.diriv.
TestMkdirRmdir creates and deletes a directory.
TestRename creates and renames a file.
UnmountErr tries to unmount "dir", retrying 10 times, and returns the resulting error.
UnmountPanic tries to umount "dir" and panics on error.
VerifyExistence checks in 3 ways that "path" exists: stat, open, readdir.
VerifySize checks that the file size equals "want".

# Constants

GocryptfsBinary is the assumed path to the gocryptfs build.
UnmountScript is the fusermount/umount compatibility wrapper script.

# Variables

DefaultCipherDir is TmpDir + "/default-cipher".
DefaultPlainDir is TmpDir + "/default-plain".
Indexed by mountpoint.
TmpDir is a unique temporary directory.
X255 contains 255 uppercase "X".