package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/larashed/cli.git
Documentation: pkg.go.dev
# Functions
CheckSystemDriveAndRemoveDriveLetter verifies that a path, if it includes a drive letter, is the system drive.
Chtimes changes the access time and modified time of a file at the given path.
CommandLineToArgv should not be used on Unix.
CreateSequential creates the named file with mode 0666 (before umask), truncating it if it already exists.
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.
FromStatT converts a syscall.Stat_t type to a system.Stat_t type This is exposed on Linux as pkg/archive/changes uses it.
GetExitCode returns the ExitStatus of the specified error if its type is exec.ExitError, returns 0 and an error otherwise.
InitLCOW does nothing since LCOW is a windows only feature.
IsAbs is a platform-specific wrapper for filepath.IsAbs.
IsProcessAlive returns true if process with a given pid is running.
KillProcess force-stops a process.
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.
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.
MkdirAll creates a directory named path along with any necessary parents, with permission specified by attribute perm for all dir created.
MkdirAllWithACL is a wrapper for MkdirAll on unix systems.
Mknod creates a filesystem node (file, device special file or named pipe) named path with attributes specified by mode and dev.
OpenFileSequential is the generalized open call; most users will use Open or Create instead.
OpenSequential opens the named file for reading.
ParsePlatform parses a platform string in the format os[/arch[/variant] into an OCI image-spec platform structure.
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.
TempFileSequential creates a new temporary file in the directory dir with a name beginning with prefix, opens the file for reading and writing, and returns the resulting *os.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.
ValidatePlatform determines if a platform structure is valid.
# Variables
ErrNotSupportedPlatform means the platform is not supported.