package
1.57.1
Repository: https://github.com/containers/storage.git
Documentation: pkg.go.dev

# Functions

CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter, is the system drive.
No description provided by the author
Chtimes changes the access time and modified time of a file at the given path.
CommandLineToArgv should not be used on Unix.
DefaultPathEnv is unix style list of directories to search for executables.
EnsureRemoveAll wraps `os.RemoveAll` to check for specific errors that can often be remedied.
ExtattrGetLink is not supported on platforms other than FreeBSD.
ExtattrListLink is not supported on platforms other than FreeBSD.
ExtattrSetLink is not supported on platforms other than FreeBSD.
FromStatT converts a syscall.Stat_t type to a system.Stat_t type This is exposed on Linux as pkg/archive/changes uses it.
Fstat takes an open file descriptor and returns a system.StatT type pertaining to that file.
GetExitCode returns the ExitStatus of the specified error if its type is exec.ExitError, returns 0 and an error otherwise.
IsEBUSY checks if the specified error is EBUSY.
IsProcessAlive returns true if process with a given pid is running.
KillProcess force-stops a process.
No description provided by the author
LCOWSupported returns true if Linux containers on Windows are supported.
Lgetxattr retrieves the value of the extended attribute identified by attr and associated with the given path in the file system.
Llistxattr lists extended attributes associated with the given path in the file system.
Lsetxattr sets the value of the extended attribute identified by attr and associated with the given path in the file system.
Lstat takes a path to a file and returns a system.StatT type pertaining to that file.
LUtimesNano is used to change access and modification time of the specified path.
Mkdev is used to build the value of linux devices (in /dev/) which specifies major and minor number of the newly created device special file.
Mknod creates a filesystem node (file, device special file or named pipe) named path with attributes specified by mode and dev.
ProcessExitCode process the specified error and returns the exit status code if the error was of type exec.ExitError, returns nothing otherwise.
ReadMemInfo retrieves memory statistics of the host system and returns a MemInfo type.
Stat takes a path to a file and returns a system.StatT type pertaining to that file.
Umask sets current process's file mode creation mask to newmask and returns oldmask.
Unmount is a platform-specific helper function to call the unmount syscall.

# Constants

Value is larger than the maximum size allowed.
Operation not supported.
Value is too small or too large for maximum size allowed.
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ErrNotSupportedPlatform means the platform is not supported.

# Structs

MemInfo contains memory statistics of the host system.
StatT type contains status of a file.