manager

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: Apache-2.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeVolumeManager

type FakeVolumeManager struct {
	FakeInit   func() error
	FakeAttach func(image, pool, id, key, clusterName string) (string, error)
	FakeDetach func(image, pool, clusterName string, force bool) error
	FakeExpand func(image, pool, clusterName string, size uint64) error
}

FakeVolumeManager represents a fake (mocked) implementation of the VolumeManager interface for testing.

func (*FakeVolumeManager) Attach

func (f *FakeVolumeManager) Attach(image, pool, id, key, clusterName string) (string, error)

Attach a volume image to the node

func (*FakeVolumeManager) Detach

func (f *FakeVolumeManager) Detach(image, pool, id, key, clusterName string, force bool) error

Detach a volume image from a node

func (*FakeVolumeManager) Expand added in v1.1.0

func (f *FakeVolumeManager) Expand(image, pool, clusterName string, size uint64) error

func (*FakeVolumeManager) Init

func (f *FakeVolumeManager) Init() error

Init initializes the FakeVolumeManager

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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