platform

package
v0.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL