Documentation ¶
Index ¶
- type CinderBaremetalUtil
- type FlexManager
- type FlexVolumeDriver
- func (d *FlexVolumeDriver) Attach(jsonOptions, nodeName string) (map[string]interface{}, error)
- func (d *FlexVolumeDriver) Detach(mountDev, nodeName string) (map[string]interface{}, error)
- func (d *FlexVolumeDriver) Init() (map[string]interface{}, error)
- func (d *FlexVolumeDriver) IsAttached(jsonOptions, nodeName string) (map[string]interface{}, error)
- func (d *FlexVolumeDriver) Mount(targetMountDir, jsonOptions string) (map[string]interface{}, error)
- func (d *FlexVolumeDriver) Unmount(targetMountDir string) (map[string]interface{}, error)
- func (d *FlexVolumeDriver) WaitForAttach(mountDev, jsonOptions string) (map[string]interface{}, error)
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, name string) *FlexVolumeDriver
NewFlexVolumeDriver returns a flex volume driver
func (*FlexVolumeDriver) Attach ¶ added in v1.12.0
func (d *FlexVolumeDriver) Attach(jsonOptions, nodeName string) (map[string]interface{}, error)
Invocation: <driver executable> attach <json options> <node name>
func (*FlexVolumeDriver) Detach ¶ added in v1.12.0
func (d *FlexVolumeDriver) Detach(mountDev, nodeName string) (map[string]interface{}, error)
Invocation: <driver executable> detach <mount device> <node name>
func (*FlexVolumeDriver) Init ¶ added in v1.12.0
func (d *FlexVolumeDriver) Init() (map[string]interface{}, error)
Invocation: <driver executable> init
func (*FlexVolumeDriver) IsAttached ¶ added in v1.12.0
func (d *FlexVolumeDriver) IsAttached(jsonOptions, nodeName string) (map[string]interface{}, error)
Invocation: <driver executable> isattached <json options> <node name>
func (*FlexVolumeDriver) Mount ¶ added in v1.12.0
func (d *FlexVolumeDriver) Mount(targetMountDir, jsonOptions string) (map[string]interface{}, error)
Invocation: <driver executable> mount <mount dir> <json options> mount will: 1. attach Cinder volume to target dir by AttachDisk 2. store meta data generated by AttachDisk into a json file in target dir
func (*FlexVolumeDriver) Unmount ¶ added in v1.12.0
func (d *FlexVolumeDriver) Unmount(targetMountDir string) (map[string]interface{}, error)
Invocation: <driver executable> unmount <mount dir>
func (*FlexVolumeDriver) WaitForAttach ¶ added in v1.12.0
func (d *FlexVolumeDriver) WaitForAttach(mountDev, jsonOptions string) (map[string]interface{}, error)
Invocation: <driver executable> waitforattach <mount device> <json options>