Documentation ¶
Index ¶
- type DockHub
- func (d *DockHub) CreateSnapshot(opt *pb.CreateVolumeSnapshotOpts) (*model.VolumeSnapshotSpec, error)
- func (d *DockHub) CreateVolume(opt *pb.CreateVolumeOpts) (*model.VolumeSpec, error)
- func (d *DockHub) CreateVolumeAttachment(opt *pb.CreateAttachmentOpts) (*model.VolumeAttachmentSpec, error)
- func (d *DockHub) DeleteSnapshot(opt *pb.DeleteVolumeSnapshotOpts) error
- func (d *DockHub) DeleteVolume(opt *pb.DeleteVolumeOpts) error
- func (d *DockHub) DeleteVolumeAttachment(opt *pb.DeleteAttachmentOpts) error
- func (d *DockHub) ExtendVolume(opt *pb.ExtendVolumeOpts) (*model.VolumeSpec, error)
- func (d *DockHub) TriggerDiscovery() error
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 ...
Click to show internal directories.
Click to hide internal directories.