Documentation
¶
Index ¶
Constants ¶
View Source
const ( VolumeConditionHealthy = "VolumeConditionHealthy" VolumeConditionAbnormal = "VolumeConditionAbnormal" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSIVolume ¶
type CSIVolume interface {
// GetDriver returns the name of the CSI-driver that is responsible
// for this volume.
GetDriver() string
// GetVolumeID returns the ID (volume-handle) of the volume.
GetVolumeID() string
}
CSIVolume describes an attached volume.
func NewCSIVolume ¶
NewCSIVolume creates a new CSIVolume with the given drivername and volumeID.
type Driver ¶
type Driver interface {
// GetDrivername returns the name of the CSI-driver.
GetDrivername() string
// SupportsVolumeCondition can be used to check if the CSI-driver
// supports reporting the VolumeCondition (if the node has the
// VOLUME_CONDITION capability).
SupportsVolumeCondition() bool
// GetVolumeCondition requests the VolumeCondition from the
// CSI-driver.
GetVolumeCondition(CSIVolume) (VolumeCondition, error)
}
Driver provides the API for communicating with a CSI-driver.
type VolumeCondition ¶
Click to show internal directories.
Click to hide internal directories.