volumes

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2016 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Vsc

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

Vsc is the Polly volume service

func New

func New(p *ptypes.Polly) *Vsc

New returns a Polly object

func (*Vsc) LibsVolumeID

func (v *Vsc) LibsVolumeID(pVolumeID string) (string, string, error)

LibsVolumeID translates a Polly VolumeID to a libStorage VolumeID

func (*Vsc) VolumeCreate

func (v *Vsc) VolumeCreate(request *types.VolumeCreateRequest) (*types.Volume, error)

VolumeCreate creates a volume from a request object

func (*Vsc) VolumeInspect

func (v *Vsc) VolumeInspect(volumeID string) (*types.Volume, error)

VolumeInspect returns details about a volume

func (*Vsc) VolumeLabel

func (v *Vsc) VolumeLabel(volumeID string, labels map[string]string) (*types.Volume, error)

VolumeLabel creates labels on volumes

func (*Vsc) VolumeLabelsRemove

func (v *Vsc) VolumeLabelsRemove(volumeID string, labels []string) (*types.Volume, error)

VolumeLabelsRemove removes labels from volumes

func (*Vsc) VolumeOffer

func (v *Vsc) VolumeOffer(volumeID string, schedulers []string) (*types.Volume, error)

VolumeOffer registers a volume for a scheduler

func (*Vsc) VolumeOfferRevoke

func (v *Vsc) VolumeOfferRevoke(volumeID string, schedulers []string) (*types.Volume, error)

VolumeOfferRevoke revokes a volume offer from schedulers

func (*Vsc) VolumeRemove

func (v *Vsc) VolumeRemove(volumeID string) error

VolumeRemove removes a volume

func (*Vsc) Volumes

func (v *Vsc) Volumes(vals url.Values) ([]*types.Volume, error)

Volumes lists the registered and filtered volumes

func (*Vsc) VolumesAll

func (v *Vsc) VolumesAll(vals url.Values) ([]*types.Volume, error)

VolumesAll lists all and filtered volumes

Jump to

Keyboard shortcuts

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