Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusNotSupported = flexvolume.StatusNotSupported StatusSuccess = flexvolume.StatusSuccess StatusFailure = "Failure" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VolumeOptions ¶
type VolumeOptions map[string]interface{}
type VolumePlugin ¶
type VolumePlugin interface { Init() VolumeResult Attach(options VolumeOptions, node string) VolumeResult Detach(pvOrVolumeName string, node string) VolumeResult MountDevice(dir, device string, options VolumeOptions) VolumeResult UnmountDevice(dir string) VolumeResult WaitForAttach(device string, options VolumeOptions) VolumeResult GetVolumeName(options VolumeOptions) VolumeResult IsAttached(options VolumeOptions, node string) VolumeResult }
type VolumeResult ¶
type VolumeResult flexvolume.DriverStatus
func NewVolumeError ¶
func NewVolumeError(msg string, args ...interface{}) VolumeResult
NewVolumeError creates failure error with given message
func NewVolumeNotSupported ¶
func NewVolumeNotSupported(msg string) VolumeResult
func NewVolumeSuccess ¶
func NewVolumeSuccess() VolumeResult
func (VolumeResult) Error ¶
func (v VolumeResult) Error() string
func (VolumeResult) ToJson ¶
func (v VolumeResult) ToJson() string
func (VolumeResult) WithAttached ¶
func (v VolumeResult) WithAttached(attached bool) VolumeResult
func (VolumeResult) WithDevicePath ¶
func (v VolumeResult) WithDevicePath(devicePath string) VolumeResult
func (VolumeResult) WithVolumeName ¶
func (v VolumeResult) WithVolumeName(volumeName string) VolumeResult
Click to show internal directories.
Click to hide internal directories.