eplugin

package
v0.0.0-...-b3952a1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2018 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EntropyPath - path to workdir
	EntropyPath = "/var/lib/ddsv"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver struct {
	volume.Driver
}

Driver - driver struct

func (Driver) Capabilities

func (d Driver) Capabilities() *volume.CapabilitiesResponse

Capabilities - returns Driver Capabilities - global

func (Driver) Create

func (d Driver) Create(req *volume.CreateRequest) error

Create - creates a new volume with the given name and options

func (Driver) Get

func (d Driver) Get(req *volume.GetRequest) (*volume.GetResponse, error)

Get - return information about give volume

func (Driver) List

func (d Driver) List() (*volume.ListResponse, error)

List - returns a list of all volumes

func (Driver) Mount

func (d Driver) Mount(req *volume.MountRequest) (*volume.MountResponse, error)

Mount - mounts give volume and return the mountpoint

func (Driver) Path

func (d Driver) Path(req *volume.PathRequest) (*volume.PathResponse, error)

Path - returns the mountpoint

func (Driver) Remove

func (d Driver) Remove(req *volume.RemoveRequest) error

Remove - removes the volume

func (Driver) Unmount

func (d Driver) Unmount(req *volume.UnmountRequest) error

Unmount - unmounts thew give volume

type EntropyPlugin

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

EntropyPlugin - plugin struct

func NewEntropyPlugin

func NewEntropyPlugin() *EntropyPlugin

NewEntropyPlugin - return new Plugin

func (*EntropyPlugin) Serve

func (e *EntropyPlugin) Serve()

Serve - serves unix socket

Jump to

Keyboard shortcuts

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