drivers

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2016 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package drivers contains the internal representation of cinder volume

drivers.

Index

Constants

View Source
const (
	DriverName = "rbd"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type RBDDriver

type RBDDriver struct {
}

func (*RBDDriver) Attach

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

func (*RBDDriver) Detach

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

func (*RBDDriver) Format

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

func (*RBDDriver) ToRBDVolume

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

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"`
}

Jump to

Keyboard shortcuts

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