package
0.3.5
Repository: https://github.com/google/fscrypt.git
Documentation: pkg.go.dev

# Functions

AllFilesystems lists all mounted filesystems ordered by path to their "main" Mount.
EscapeString is the reverse of unescapeString.
FindMount returns the main Mount object for the filesystem which contains the file at the specified path.
GetMount is like FindMount, except GetMount also returns an error if the path doesn't name the same file as the filesystem's "main" Mount.
HaveReadAccessTo returns true if the process has read access to a file or directory, without actually opening it.
OpenFileOverridingUmask calls os.OpenFile but with the umask overridden so that no permission bits are masked out if the file is created.
UpdateMountInfo updates the filesystem mountpoint maps with the current state of the filesystem mountpoints.

# Constants

SingleUserWritable specifies to make the fscrypt metadata directories writable by a single user (usually root) only.
WorldWritable specifies to make the fscrypt metadata directories world-writable (with the sticky bit set).

# Variables

SortDescriptorsByLastMtime indicates whether descriptors are sorted by last modification time when being listed.

# Structs

ErrAlreadySetup indicates that a filesystem is already setup for fscrypt.
ErrCorruptMetadata indicates that an fscrypt metadata file is corrupt.
ErrEncryptionNotEnabled indicates that encryption is not enabled on the given filesystem.
ErrEncryptionNotSupported indicates that encryption is not supported on the given filesystem.
ErrFollowLink indicates that a protector link can't be followed.
ErrInsecurePermissions indicates that a filesystem is not considered to be setup for fscrypt because a metadata directory has insecure permissions.
ErrMakeLink indicates that a protector link can't be created.
ErrMountOwnedByAnotherUser indicates that the mountpoint root directory is owned by a user that isn't trusted in the current context, so we don't consider fscrypt to be properly setup on the filesystem.
ErrNoCreatePermission indicates that the current user lacks permission to create fscrypt metadata on the given filesystem.
ErrNotAMountpoint indicates that a path is not a mountpoint.
ErrNotSetup indicates that a filesystem is not setup for fscrypt.
ErrPolicyNotFound indicates that the policy metadata was not found.
ErrProtectorNotFound indicates that the protector metadata was not found.
ErrSetupByAnotherUser indicates that one or more of the fscrypt metadata directories is owned by a user that isn't trusted in the current context, so we don't consider fscrypt to be properly setup on the filesystem.
ErrSetupNotSupported indicates that the given filesystem type is not supported for fscrypt setup.
Mount contains information for a specific mounted filesystem.

# Type aliases

DeviceNumber represents a combined major:minor device number.
PathSorter allows mounts to be sorted by Path.
SetupMode is a mode for creating the fscrypt metadata directories.