 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFakeDriver ¶ added in v1.10.0
NewFakeDriver creates a new FakeDriver with the specified name
func NewFakeVolume ¶
NewFakeVolume creates a new fake volume for testing
Types ¶
type FakeDriver ¶
type FakeDriver struct {
	// contains filtered or unexported fields
}
    FakeDriver is a driver that generates fake volumes
func (*FakeDriver) Create ¶
Create initializes a fake volume. It returns an error if the options include an "error" key with a message
func (*FakeDriver) Get ¶ added in v1.10.0
func (d *FakeDriver) Get(name string) (volume.Volume, error)
Get gets the volume
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.