volume

package
v0.0.0-...-eb548cc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenStackVolumeService

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

func NewOpenStackVolumeService

func NewOpenStackVolumeService(
	blockstorageService *gophercloud.ServiceClient,
	uuidGen boshuuid.Generator,
	logger boshlog.Logger,
) OpenStackVolumeService

func (OpenStackVolumeService) Create

func (v OpenStackVolumeService) Create(size int, volumeType string, availabilityZone string) (string, error)

func (OpenStackVolumeService) Delete

func (v OpenStackVolumeService) Delete(id string) error

func (OpenStackVolumeService) Find

type Service

type Service interface {
	Create(size int, volumeType string, zone string) (string, error)
	Delete(id string) error
	Find(id string) (Volume, bool, error)
}

type Volume

type Volume struct {
	ID               string
	Name             string
	Status           string
	AvailabilityZone string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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