Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeVolume ¶
NewFakeVolume creates a new fake volume for testing
Types ¶
type FakeDriver ¶
type FakeDriver struct{}
FakeDriver is a driver that generates fake volumes
type FakeVolume ¶
type FakeVolume struct {
// contains filtered or unexported fields
}
FakeVolume is a fake volume with a random name
func (FakeVolume) DriverName ¶
func (FakeVolume) DriverName() string
DriverName is the name of the driver
func (FakeVolume) Mount ¶
func (FakeVolume) Mount() (string, error)
Mount mounts the volume in the container
func (FakeVolume) Unmount ¶
func (FakeVolume) Unmount() error
Unmount unmounts the volume from the container
type NoopVolume ¶
type NoopVolume struct{}
NoopVolume is a volume that doesn't perform any operation
func (NoopVolume) DriverName ¶
func (NoopVolume) DriverName() string
DriverName is the name of the driver
func (NoopVolume) Mount ¶
func (NoopVolume) Mount() (string, error)
Mount mounts the volume in the container
func (NoopVolume) Unmount ¶
func (NoopVolume) Unmount() error
Unmount unmounts the volume from the container
Click to show internal directories.
Click to hide internal directories.