Help us shape the future of Go! Take the 2026 Go Developer Survey

flexvolume

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2018 License: Apache-2.0 Imports: 17 Imported by: 0

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

Directories

Path Synopsis
cinder

Jump to

Keyboard shortcuts

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