package
0.0.0-20240726205954-93d05801347e
Repository: https://github.com/wplapper/restic.git
Documentation: pkg.go.dev
# Functions
Chmod changes the mode of the named file to mode.
Chtimes changes the access and modification times of the named file, similar to the Unix utime() or utimes() functions.
Create creates the named file with mode 0666 (before umask), truncating it if it already exists.
DeviceID extracts the device ID from an os.FileInfo object by casting it to syscall.Stat_t.
ExtendedStat returns an ExtendedFileInfo constructed from the os.FileInfo.
GetVolumeNameForVolumeMountPoint add trailing backslash to input parameter and calls the equivalent windows api.
HasPathPrefix returns true if p is a subdir of (or a file within) base.
HasSufficientPrivilegesForVSS returns true if the user is allowed to use VSS.
IsAccessDenied checks if the error is due to permission error.
IsRegularFile returns true if fi belongs to a normal file.
Link creates newname as a hard link to oldname.
Lstat returns the FileInfo structure describing the named file.
Mkdir creates a new directory with the specified name and permission bits.
MkdirAll creates a directory named path, along with any necessary parents, and returns nil, or else returns an error.
No description provided by the author
NewLocalVss creates a new wrapper around the windows filesystem using volume shadow copy service to access locked files.
NewVSSConfig returns a new VSSConfig with the default values filled in.
NewVssSnapshot creates a new vss snapshot.
Open opens a file for reading.
OpenFile is the generalized open call; most users will use Open or Create instead.
ParseVSSConfig parses a VSS extended options to VSSConfig struct.
No description provided by the author
Readdirnames returns a list of file in a directory.
Readlink returns the destination of the named symbolic link.
Remove removes the named file or directory.
RemoveAll removes path and any children it contains.
RemoveIfExists removes a file, returning no error if it does not exist.
Rename renames (moves) oldpath to newpath.
ResetPermissions resets the permissions of the file at the specified path.
Stat returns a FileInfo structure describing the named file.
Symlink creates newname as a symbolic link to oldname.
TempFile creates a temporary file which has already been deleted (on supported platforms).
Walk walks the file tree rooted at root, calling walkFn for each file or directory in the tree, including root.
# Constants
append data to the file when writing.
create a new file if none exists.
used with O_CREATE, file must not exist.
O_NOFOLLOW instructs the kernel to not follow symlinks when opening a file.
don't block open on fifos etc.
open the file read-only.
open the file read-write.
open for synchronous I/O.
if possible, truncate file when opened.
open the file write-only.
# Variables
ErrFileEmpty is returned inside a *os.PathError by Read() for the file opened from the fs provided by Reader when no data could be read and AllowEmptyFile is not set.
# Structs
CommandReader wrap a command such that its standard output can be read using a io.ReadCloser.
ExtendedFileInfo is an extended stat_t, filled with attributes that are supported by most operating systems.
Local is the local file system.
LocalVss is a wrapper around the local file system which uses windows volume shadow copy service (VSS) in a transparent way.
MountPoint is a dummy for non-windows platforms to let client code compile.
Reader is a file system which provides a directory with a single file.
Track is a wrapper around another file system which installs finalizers for open files which call panic() when they are not closed when the garbage collector releases them.
VSSConfig holds extended options of windows volume shadow copy service.
VssSnapshot is a dummy for non-windows platforms to let client code compile.
# Type aliases
ErrorHandler is used to report errors via callback.
MessageHandler is used to report errors/messages via callbacks.
VolumeFilter is used to filter volumes by it's mount point or GUID path.