Documentation
¶
Overview ¶
Package manager provides a concrete implementation of the volume.Service interface
Index ¶
- type Manager
- func (m *Manager) Backup(ctx context.Context, name string, options volumepkg.BackupOptions) (io.ReadCloser, error)
- func (m *Manager) CleanupExpiredContainers()
- func (m *Manager) Create(ctx context.Context, name string, options volumepkg.CreateOptions) (*models.Volume, error)
- func (m *Manager) Get(ctx context.Context, name string, options volumepkg.GetOptions) (*models.Volume, error)
- func (m *Manager) GetEvents(ctx context.Context, options volumepkg.EventOptions) (<-chan events.Message, <-chan error)
- func (m *Manager) InspectRaw(ctx context.Context, name string) (dockertypesvolume.Volume, error)
- func (m *Manager) List(ctx context.Context, options volumepkg.ListOptions) ([]*models.Volume, error)
- func (m *Manager) Prune(ctx context.Context, options volumepkg.PruneOptions) (*dockertypesvolume.PruneReport, error)
- func (m *Manager) Remove(ctx context.Context, name string, options volumepkg.RemoveOptions) error
- func (m *Manager) Restore(ctx context.Context, name string, reader io.Reader, ...) error
- func (m *Manager) Update(ctx context.Context, name string, metadata map[string]string, ...) error
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager implements the volume.Service interface
func (*Manager) Backup ¶
func (m *Manager) Backup(ctx context.Context, name string, options volumepkg.BackupOptions) (io.ReadCloser, error)
Backup creates a backup of a volume
func (*Manager) CleanupExpiredContainers ¶
func (m *Manager) CleanupExpiredContainers()
CleanupExpiredContainers periodically checks and cleans up expired temporary containers
func (*Manager) Create ¶
func (m *Manager) Create(ctx context.Context, name string, options volumepkg.CreateOptions) (*models.Volume, error)
Create creates a new volume
func (*Manager) Get ¶
func (m *Manager) Get(ctx context.Context, name string, options volumepkg.GetOptions) (*models.Volume, error)
Get gets a volume by name
func (*Manager) GetEvents ¶
func (m *Manager) GetEvents(ctx context.Context, options volumepkg.EventOptions) (<-chan events.Message, <-chan error)
GetEvents subscribes to volume events
func (*Manager) InspectRaw ¶
InspectRaw gets the raw information about a volume
func (*Manager) List ¶
func (m *Manager) List(ctx context.Context, options volumepkg.ListOptions) ([]*models.Volume, error)
List lists volumes
func (*Manager) Prune ¶
func (m *Manager) Prune(ctx context.Context, options volumepkg.PruneOptions) (*dockertypesvolume.PruneReport, error)
Prune removes unused volumes Use dockertypesvolume.PruneReport as return type
Click to show internal directories.
Click to hide internal directories.