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, clusterName string) (string, error) FakeDetach func(image, pool, clusterName string, force bool) error }
FakeVolumeManager represents a fake (mocked) implementation of the VolumeManager interface for testing.
func (*FakeVolumeManager) Attach ¶
func (f *FakeVolumeManager) Attach(image, pool, clusterName string) (string, error)
Attach a volume image to the node
func (*FakeVolumeManager) Detach ¶
func (f *FakeVolumeManager) Detach(image, pool, clusterName string, force bool) error
Detach a volume image from a node
func (*FakeVolumeManager) Init ¶
func (f *FakeVolumeManager) Init() error
Init initializes the FakeVolumeManager
Click to show internal directories.
Click to hide internal directories.