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

drivers

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// The driver name used in cinder-flexvolume
	DriverName = "rbd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RBDDriver

type RBDDriver struct {
}

The driver of cinder-flexvolume

func NewRBDDriver

func NewRBDDriver() (*RBDDriver, error)

NewRBDDriver initialize RBD driver

func (*RBDDriver) Format

func (d *RBDDriver) Format(volumeData map[string]interface{}, fsType string) error

Format formats rbd volume into specified file format

func (*RBDDriver) ToRBDVolume

func (d *RBDDriver) ToRBDVolume(volumeData map[string]interface{}) (*RBDVolume, error)

ToRBDVolume converts volumeData to RBDVolume

type RBDVolume

type RBDVolume struct {
	Keyring     string   `json:"keyring"`
	AuthEnabled bool     `json:"auth_enabled"`
	AuthUser    string   `json:"auth_username"`
	Hosts       []string `json:"hosts"`
	Ports       []string `json:"ports"`
	Name        string   `json:"name"`
	AccessMode  string   `json:"access_mode"`
	VolumeType  string   `json:"volume_type"`
}

The RBD volume used by Cinder

Jump to

Keyboard shortcuts

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