Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CinderBaremetalUtil ¶
type CinderBaremetalUtil struct {
// contains filtered or unexported fields
}
CinderBaremetalUtil is a tool to operate Cinder volume without cloud provider
func (*CinderBaremetalUtil) AttachDiskBaremetal ¶
func (cb *CinderBaremetalUtil) AttachDiskBaremetal(b *FlexVolumeDriver, targetMountDir string) error
AttachDiskBaremetal mounts the device and detaches the disk from the kubelet's host machine.
func (*CinderBaremetalUtil) DetachDiskBaremetal ¶
func (cb *CinderBaremetalUtil) DetachDiskBaremetal(d *FlexVolumeDriver) error
DetachDiskBaremetal unmounts the device and detaches the disk from the kubelet's host machine.
type FlexManager ¶
type FlexManager struct {
// contains filtered or unexported fields
}
FlexManager is a wrapper of CinderBaremetalUtil
func NewFlexManager ¶
func NewFlexManager(cinderConfigFile string) (*FlexManager, error)
func (*FlexManager) AttachDisk ¶
func (m *FlexManager) AttachDisk(d *FlexVolumeDriver, targetMountDir string) error
func (*FlexManager) DetachDisk ¶
func (m *FlexManager) DetachDisk(d *FlexVolumeDriver) error
type FlexVolumeDriver ¶
type FlexVolumeDriver struct {
// contains filtered or unexported fields
}
func NewFlexVolumeDriver ¶
func NewFlexVolumeDriver(uuid string) *FlexVolumeDriver
NewFlexVolumeDriver returns a flex volume driver
func (*FlexVolumeDriver) Run ¶
func (d *FlexVolumeDriver) Run(args []string) string
Source Files ¶
Click to show internal directories.
Click to hide internal directories.