Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Platform ¶
type Platform interface {
// GetStagingPath returns the volume staging path that a platform uses.
// Not all drivers use the staging path, in which case no staging path
// can be found and an error is returned.
GetStagingPath(driver, volumeID string) (string, error)
// GetPublishPath returns the path where the volume is mounted and
// made available for apps/pods to use.
GetPublishPath(driver, volumeID string) (string, error)
// GetCSISocket returns the UNIX Domain Socket for a particular
// CSI-driver.
GetCSISocket(driver string) string
// ResolvePersistentVolumeName tries to identify the name of the
// PersistentVolume, based on the volumeID.
ResolvePersistentVolumeName(driver, volumeID string) (string, error)
}
Platform provides functions that a Driver can use to find details about the deployment. Different platforms use different directories and paths to communicate with drivers, and locations where volumes are mounted.
func GetPlatform ¶
func GetPlatform() Platform
GetPlatform returns the object with utility functions for the current running variant of Kubernetes.
Click to show internal directories.
Click to hide internal directories.