package
1.8.0-alpha.2
Repository: https://github.com/lxpollitt/kubernetes.git
Documentation: pkg.go.dev
# Packages
Package nestedpendingoperations is a modified implementation of
pkg/util/goroutinemap.
Package operationexecutor implements interfaces that enable execution of attach, detach, mount, and unmount operations with a nestedpendingoperations so that more than one operation is never triggered on the same volume for the same pod.
Package types defines types used only by volume components.
Package volumehelper contains consts and helper methods used by various volume components (attach/detach controller, kubelet, etc.).
# Functions
CheckNodeAffinity looks at the PV node affinity, and checks if the node has the same corresponding labels This ensures that we don't mount a volume that doesn't belong to this node.
No description provided by the author
Find uses the equivalent of the command `find <path> -dev -printf '.' | wc -c` to count files and directories.
FSInfo linux returns (available bytes, byte capacity, byte usage, total inodes, inodes free, inode usage, error) for the filesystem that path resides upon.
No description provided by the author
GetSecretForPod locates secret by name in the pod's namespace and returns secret map.
GetSecretForPV locates secret by name and namespace, verifies the secret type, and returns secret map.
IsReady checks for the existence of a regular file called 'ready' in the given directory and returns true if that file exists.
LoadPodFromFile will read, decode, and return a Pod from a file.
NewAtomicWriter creates a new AtomicWriter configured to write to the given target directory, or returns an error if the target directory does not exist.
NewDeviceHandler Create a new IoHandler implementation.
NewIOHandler Create a new IoHandler implementation.
PathExists returns true if the specified path exists.
SetReady creates a file called 'ready' in the given directory.
UnmountMountPoint is a common unmount routine that unmounts the given path and deletes the remaining directory if successful.
UnmountPath is a common unmount routine that unmounts the given path and deletes the remaining directory if successful.
# Structs
AtomicWriter handles atomically projecting content for a set of files into a target directory.
No description provided by the author
# Interfaces
DeviceUtil is a util for common device methods.
IoUtil is a mockable util for common IO operations.