dock

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2018 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 DockHub

type DockHub struct {
	// Discoverer represents the mechanism of DockHub discovering the storage
	// capabilities from different backends.
	Discoverer *discovery.DockDiscoverer
	// Driver represents the specified backend resource. This field is used
	// for initializing the specified volume driver.
	Driver drivers.VolumeDriver
}

DockHub is a reference structure with fields that represent some required parameters for initializing and controlling the volume driver.

var Brain *DockHub

Brain is a global variable that controls the dock module.

func NewDockHub

func NewDockHub() *DockHub

NewDockHub method creates a new DockHub and returns its pointer.

func (*DockHub) CreateSnapshot

func (d *DockHub) CreateSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)

CreateSnapshot

func (*DockHub) CreateVolume

func (d *DockHub) CreateVolume(opt *pb.CreateVolumeOpts) (*model.VolumeSpec, error)

CreateVolume

func (*DockHub) CreateVolumeAttachment

func (d *DockHub) CreateVolumeAttachment(opt *pb.CreateAttachmentOpts) (*model.VolumeAttachmentSpec, error)

CreateVolumeAttachment

func (*DockHub) DeleteSnapshot

func (d *DockHub) DeleteSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error

DeleteSnapshot

func (*DockHub) DeleteVolume

func (d *DockHub) DeleteVolume(opt *pb.DeleteVolumeOpts) error

DeleteVolume

func (*DockHub) DeleteVolumeAttachment

func (d *DockHub) DeleteVolumeAttachment(opt *pb.DeleteAttachmentOpts) error

DeleteVolumeAttachment

func (*DockHub) ExtendVolume added in v0.1.1

func (d *DockHub) ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)

ExtendVolume ...

func (*DockHub) TriggerDiscovery

func (d *DockHub) TriggerDiscovery() error

TriggerDiscovery

Directories

Path Synopsis
Package proto is a generated protocol buffer package.
Package proto is a generated protocol buffer package.

Jump to

Keyboard shortcuts

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