Documentation ¶
Index ¶
- Variables
- func IsHostMountedVolume(volumeParser parser.Parser, dir string, volumes ...string) (bool, error)
- type CacheContainersManager
- type ErrVolumeAlreadyDefined
- type Manager
- type ManagerConfig
- type MockCacheContainersManager
- func (_m *MockCacheContainersManager) Cleanup(ctx context.Context, ids []string) chan bool
- func (_m *MockCacheContainersManager) Create(containerName string, containerPath string) (string, error)
- func (_m *MockCacheContainersManager) FindOrCleanExisting(containerName string, containerPath string) string
- type MockManager
Constants ¶
This section is empty.
Variables ¶
var ErrCacheVolumesDisabled = errors.New("cache volumes feature disabled")
Functions ¶
Types ¶
type CacheContainersManager ¶
type CacheContainersManager interface { FindOrCleanExisting(containerName string, containerPath string) string Create(containerName string, containerPath string) (string, error) Cleanup(ctx context.Context, ids []string) chan bool }
func NewCacheContainerManager ¶
func NewCacheContainerManager(ctx context.Context, logger debugLogger, cClient containerClient, helperImage *types.ImageInspect) CacheContainersManager
type ErrVolumeAlreadyDefined ¶
type ErrVolumeAlreadyDefined struct {
// contains filtered or unexported fields
}
func NewErrVolumeAlreadyDefined ¶
func NewErrVolumeAlreadyDefined(containerPath string) *ErrVolumeAlreadyDefined
func (*ErrVolumeAlreadyDefined) Error ¶
func (e *ErrVolumeAlreadyDefined) Error() string
type Manager ¶
type Manager interface { Create(volume string) error CreateTemporary(containerPath string) error Binds() []string ContainerIDs() []string Cleanup(ctx context.Context) chan bool }
func NewManager ¶
func NewManager(logger debugLogger, volumeParser parser.Parser, ccManager CacheContainersManager, config ManagerConfig) Manager
type ManagerConfig ¶
type MockCacheContainersManager ¶
MockCacheContainersManager is an autogenerated mock type for the CacheContainersManager type
func (*MockCacheContainersManager) Cleanup ¶
func (_m *MockCacheContainersManager) Cleanup(ctx context.Context, ids []string) chan bool
Cleanup provides a mock function with given fields: ctx, ids
func (*MockCacheContainersManager) Create ¶
func (_m *MockCacheContainersManager) Create(containerName string, containerPath string) (string, error)
Create provides a mock function with given fields: containerName, containerPath
func (*MockCacheContainersManager) FindOrCleanExisting ¶
func (_m *MockCacheContainersManager) FindOrCleanExisting(containerName string, containerPath string) string
FindOrCleanExisting provides a mock function with given fields: containerName, containerPath
type MockManager ¶
MockManager is an autogenerated mock type for the Manager type
func (*MockManager) Binds ¶
func (_m *MockManager) Binds() []string
Binds provides a mock function with given fields:
func (*MockManager) Cleanup ¶
func (_m *MockManager) Cleanup(ctx context.Context) chan bool
Cleanup provides a mock function with given fields: ctx
func (*MockManager) ContainerIDs ¶
func (_m *MockManager) ContainerIDs() []string
ContainerIDs provides a mock function with given fields:
func (*MockManager) Create ¶
func (_m *MockManager) Create(volume string) error
Create provides a mock function with given fields: volume
func (*MockManager) CreateTemporary ¶
func (_m *MockManager) CreateTemporary(containerPath string) error
CreateTemporary provides a mock function with given fields: containerPath