demo

package
v0.0.0-...-1b9e8c6 Latest Latest
Warning

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

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

type Demo struct {
}

Demo represents demo volume driver.

func (*Demo) Create

func (d *Demo) Create(ctx driver.Context, v *types.Volume, s *types.Storage) error

Create a demo volume.

func (*Demo) Name

func (d *Demo) Name(ctx driver.Context) string

Name returns volume driver's name.

func (*Demo) Path

func (d *Demo) Path(ctx driver.Context, v *types.Volume) (string, error)

Path returns demo volume path.

func (*Demo) Remove

func (d *Demo) Remove(ctx driver.Context, v *types.Volume, s *types.Storage) error

Remove a demo volume.

func (*Demo) StoreMode

func (d *Demo) StoreMode(ctx driver.Context) driver.VolumeStoreMode

StoreMode returns demo driver's store mode.

Jump to

Keyboard shortcuts

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