plugins

package
v0.0.0-...-66cb026 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Plugin

type Plugin interface {
	VolumeCreate(v *requests.VolumeCreateRequest) (*requests.VolumeInfoResp, error)
	VolumeDelete(id string) error
	VolumeInfo(id string) (*requests.VolumeInfoResp, error)
	VolumeResize(id string) (*requests.VolumeInfoResp, error)
	VolumeList() (*requests.VolumeListResponse, error)

	NodeAdd(v *requests.NodeAddRequest) (*requests.NodeInfoResp, error)
	NodeRemove(id string) error
	NodeInfo(id string) (*requests.NodeInfoResp, error)
	NodeList() (*requests.NodeListResponse, error)

	NodeAddDevice(id string, req *requests.DeviceAddRequest) error
	Close()
}

Volume interface for plugins

func NewPlugin

func NewPlugin(name string) Plugin

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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