Documentation
¶
Overview ¶
Package behavior provides filesystem behavior probing facilities.
Index ¶
- Variables
- func DecomposesUnicode(directory *filesystem.Directory, probeMode ProbeMode) (bool, bool, error)
- func DecomposesUnicodeByPath(path string, probeMode ProbeMode) (bool, bool, error)
- func PreservesExecutability(directory *filesystem.Directory, probeMode ProbeMode) (bool, bool, error)
- func PreservesExecutabilityByPath(path string, probeMode ProbeMode) (bool, bool, error)
- type ProbeMode
Constants ¶
This section is empty.
Variables ¶
var ProbeMode_name = map[int32]string{
0: "ProbeModeDefault",
1: "ProbeModeProbe",
2: "ProbeModeAssume",
}
var ProbeMode_value = map[string]int32{
"ProbeModeDefault": 0,
"ProbeModeProbe": 1,
"ProbeModeAssume": 2,
}
Functions ¶
func DecomposesUnicode ¶
DecomposesUnicode determines whether or not the specified directory (and its underlying filesystem) decomposes Unicode filenames. The second value returned by this function indicates whether or not probe files were used in determining behavior.
func DecomposesUnicodeByPath ¶
DecomposesUnicodeByPath determines whether or not the filesystem on which the directory at the specified path resides decomposes Unicode filenames. The second value returned by this function indicates whether or not probe files were used in determining behavior.
func PreservesExecutability ¶
func PreservesExecutability(directory *filesystem.Directory, probeMode ProbeMode) (bool, bool, error)
PreservesExecutability determines whether or not the specified directory (and its underlying filesystem) preserves POSIX executability bits. The second value returned by this function indicates whether or not probe files were used in determining behavior.
func PreservesExecutabilityByPath ¶
PreservesExecutabilityByPath determines whether or not the filesystem on which the directory at the specified path resides preserves POSIX executability bits. It allows for the path leaf to be a symbolic link. The second value returned by this function indicates whether or not probe files were used in determining behavior.
Types ¶
type ProbeMode ¶
type ProbeMode int32
ProbeMode specifies the mode for filesystem probing.
const ( // ProbeMode_ProbeModeDefault represents an unspecified probe mode. It // should be converted to one of the following values based on the desired // default behavior. ProbeMode_ProbeModeDefault ProbeMode = 0 // ProbeMode_ProbeModeProbe specifies that filesystem behavior should be // determined using temporary files or, if possible, a "fast-path" mechanism // (such as filesystem format detection) that provides quick but certain // determination of filesystem behavior. ProbeMode_ProbeModeProbe ProbeMode = 1 // ProbeMode_ProbeModeAssume specifies that filesystem behavior should be // assumed based on the underlying platform. This is not as accurate as // ProbeMode_ProbeModeProbe. ProbeMode_ProbeModeAssume ProbeMode = 2 )
func (ProbeMode) Description ¶
Description returns a human-readable description of a probe mode.
func (ProbeMode) EnumDescriptor ¶
func (ProbeMode) IsDefault ¶
IsDefault indicates whether or not the probe mode is ProbeMode_ProbeModeDefault.
func (ProbeMode) Supported ¶
Supported indicates whether or not a particular probe mode is a valid, non-default value.
func (*ProbeMode) UnmarshalText ¶
UnmarshalText implements the text unmarshalling interface used when loading from TOML files.