cinder

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2021 License: Apache-2.0 Imports: 17 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 added in v0.3.1

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 added in v0.1.8

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 added in v0.1.8

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

func (*Driver) ExtendVolume added in v0.1.1

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 added in v0.3.2

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 added in v0.3.2

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

func (*Driver) Unset

func (d *Driver) Unset() error

Unset

func (*Driver) UpdateVolumeGroup added in v0.1.8

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

type ListPoolOpts added in v0.3.1

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 added in v0.3.1

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

type PoolArray added in v0.3.1

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

Struct of Pools listed by volumeType

type StoragePool added in v0.3.1

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

func ExtractStoragePools added in v0.5.0

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