Documentation ¶
Overview ¶
Package bl acts as a connector between database and application and keeps all the business logic.
Index ¶
- type Service
- func (s *Service) CleanUp() error
- func (s *Service) CreateSnapshotForVolume(vol domain.Volume, snapType domain.SnapshotType) (domain.Snapshot, error)
- func (s *Service) DeleteSnapshot(snap domain.Snapshot) error
- func (s *Service) Restore(snap domain.Snapshot) error
- func (s *Service) SnapshotsList(ids []uint64) ([]domain.Snapshot, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) CleanUp ¶
CleanUp removes all folders after another restore. When a new restore is called we can't just remove current root filesystem because current session will be broken. We can only move it to a different folder and cleanup on the run session.
func (*Service) CreateSnapshotForVolume ¶
Click to show internal directories.
Click to hide internal directories.