cinder

package
v0.0.0-...-295c363 Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KCinderVolumeId = "cinderVolumeId"
	KCinderSnapId   = "cinderSnapId"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthOptions

type AuthOptions struct {
	NoAuth           bool   `yaml:"noAuth,omitempty"`
	CinderEndpoint   string `yaml:"cinderEndpoint,omitempty"`
	IdentityEndpoint string `yaml:"endpoint,omitempty"`
	DomainID         string `yaml:"domainId,omitempty"`
	DomainName       string `yaml:"domainName,omitempty"`
	Username         string `yaml:"username,omitempty"`
	Password         string `yaml:"password,omitempty"`
	PwdEncrypter     string `yaml:"PwdEncrypter,omitempty"`
	EnableEncrypted  bool   `yaml:"EnableEncrypted,omitempty"`
	TenantID         string `yaml:"tenantId,omitempty"`
	TenantName       string `yaml:"tenantName,omitempty"`
}

AuthOptions

type Capabilities

type Capabilities struct {
	FreeCapacityGB  float64 `json:"free_capacity_gb"`
	TotalCapacityGB float64 `json:"total_capacity_gb"`
}

type CinderConfig

type CinderConfig struct {
	AuthOptions `yaml:"authOptions"`
	Pool        map[string]PoolProperties `yaml:"pool,flow"`
}

CinderConfig

type Driver

type Driver struct {
	// contains filtered or unexported fields
}

Driver is a struct of Cinder backend, which can be called to manage block storage service defined in gophercloud.

func (*Driver) CreateSnapshot

func (d *Driver) CreateSnapshot(req *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)

CreateSnapshot

func (*Driver) CreateVolume

func (d *Driver) CreateVolume(req *pb.CreateVolumeOpts) (*model.VolumeSpec, error)

CreateVolume

func (*Driver) CreateVolumeGroup

func (d *Driver) CreateVolumeGroup(opt *pb.CreateVolumeGroupOpts) (*model.VolumeGroupSpec, error)

func (*Driver) DeleteSnapshot

func (d *Driver) DeleteSnapshot(req *pb.DeleteVolumeSnapshotOpts) error

DeleteSnapshot

func (*Driver) DeleteVolume

func (d *Driver) DeleteVolume(req *pb.DeleteVolumeOpts) error

DeleteVolume

func (*Driver) DeleteVolumeGroup

func (d *Driver) DeleteVolumeGroup(opt *pb.DeleteVolumeGroupOpts) error

func (*Driver) ExtendVolume

func (d *Driver) ExtendVolume(req *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)

ExtendVolume ...

func (*Driver) InitializeConnection

func (d *Driver) InitializeConnection(req *pb.CreateVolumeAttachmentOpts) (*model.ConnectionInfo, error)

InitializeConnection

func (*Driver) InitializeSnapshotConnection

func (d *Driver) InitializeSnapshotConnection(opt *pb.CreateSnapshotAttachmentOpts) (*model.ConnectionInfo, error)

func (*Driver) ListPools

func (d *Driver) ListPools() ([]*model.StoragePoolSpec, error)

ListPools

func (*Driver) PullSnapshot

func (d *Driver) PullSnapshot(snapID string) (*model.VolumeSnapshotSpec, error)

PullSnapshot

func (*Driver) PullVolume

func (d *Driver) PullVolume(volID string) (*model.VolumeSpec, error)

PullVolume

func (*Driver) Setup

func (d *Driver) Setup() error

Setup

func (*Driver) TerminateConnection

func (d *Driver) TerminateConnection(req *pb.DeleteVolumeAttachmentOpts) error

TerminateConnection

func (*Driver) TerminateSnapshotConnection

func (d *Driver) TerminateSnapshotConnection(opt *pb.DeleteSnapshotAttachmentOpts) error

func (*Driver) Unset

func (d *Driver) Unset() error

Unset

func (*Driver) UpdateVolumeGroup

func (d *Driver) UpdateVolumeGroup(opt *pb.UpdateVolumeGroupOpts) (*model.VolumeGroupSpec, error)

type ListPoolOpts

type ListPoolOpts struct {
	// ID of the tenant to look up storage pools for.
	TenantID string `q:"tenant_id"`
	// Whether to list extended details.
	Detail bool `q:"detail"`
	// Volume_Type of the StoragePool
	VolumeType string `q:"volume_type"`
}

ListPoolOpts

func (ListPoolOpts) ToStoragePoolsListQuery

func (opts ListPoolOpts) ToStoragePoolsListQuery() (string, error)

type PoolArray

type PoolArray struct {
	Pools []StoragePool `json:"pools"`
}

Struct of Pools listed by volumeType

type StoragePool

type StoragePool struct {
	Name         string       `json:"name"`
	Capabilities Capabilities `json:"capabilities"`
}

func ExtractStoragePools

func ExtractStoragePools(p pagination.Page) ([]StoragePool, error)

Jump to

Keyboard shortcuts

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