Documentation ¶
Index ¶
- Variables
- func MountAdapter(m *mountinfo.Info) codegen.Mount
- type LocalStorageService
- func (s *LocalStorageService) CheckMergeMount()
- func (s *LocalStorageService) CreateMerge(merge *model2.Merge) error
- func (s *LocalStorageService) CreateMergeInDB(merge *model2.Merge) error
- func (s *LocalStorageService) GetFirstMergeFromDB(mountPoint string) (*model2.Merge, error)
- func (s *LocalStorageService) GetMergeAllFromDB(mountPoint *string) ([]model2.Merge, error)
- func (s *LocalStorageService) GetMerges(mountPoint *string) ([]model2.Merge, error)
- func (s *LocalStorageService) GetMounts(params codegen.GetMountsParams) ([]codegen.Mount, error)
- func (s *LocalStorageService) Mount(m codegen.Mount) (*codegen.Mount, error)
- func (s *LocalStorageService) RemoveFromFStab(mountpoint string) error
- func (s *LocalStorageService) SaveToFStab(m codegen.Mount) error
- func (s *LocalStorageService) Umount(mountpoint string) error
- func (s *LocalStorageService) UpdateMerge(merge *model2.Merge) error
- func (s *LocalStorageService) UpdateMergeSourcesInDB(existingMergeInDB *model2.Merge) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMergeMountPointAlreadyExists = errors.New("merge mount point already exists") ErrMergeMountPointDoesNotExist = errors.New("merge mount point does not exist") ErrMergeMountPointSourceConflict = errors.New("source mount point should not be a child path of the merge mount point") ErrNilReference = errors.New("reference is nil") )
Functions ¶
Types ¶
type LocalStorageService ¶
type LocalStorageService struct {
// contains filtered or unexported fields
}
func NewLocalStorageService ¶
func NewLocalStorageService(db *gorm.DB, mountinfo wrapper.MountInfoWrapper) *LocalStorageService
func (*LocalStorageService) CheckMergeMount ¶
func (s *LocalStorageService) CheckMergeMount()
func (*LocalStorageService) CreateMerge ¶
func (s *LocalStorageService) CreateMerge(merge *model2.Merge) error
func (*LocalStorageService) CreateMergeInDB ¶
func (s *LocalStorageService) CreateMergeInDB(merge *model2.Merge) error
func (*LocalStorageService) GetFirstMergeFromDB ¶
func (s *LocalStorageService) GetFirstMergeFromDB(mountPoint string) (*model2.Merge, error)
func (*LocalStorageService) GetMergeAllFromDB ¶
func (s *LocalStorageService) GetMergeAllFromDB(mountPoint *string) ([]model2.Merge, error)
func (*LocalStorageService) GetMerges ¶
func (s *LocalStorageService) GetMerges(mountPoint *string) ([]model2.Merge, error)
func (*LocalStorageService) GetMounts ¶
func (s *LocalStorageService) GetMounts(params codegen.GetMountsParams) ([]codegen.Mount, error)
func (*LocalStorageService) RemoveFromFStab ¶
func (s *LocalStorageService) RemoveFromFStab(mountpoint string) error
func (*LocalStorageService) SaveToFStab ¶
func (s *LocalStorageService) SaveToFStab(m codegen.Mount) error
func (*LocalStorageService) Umount ¶
func (s *LocalStorageService) Umount(mountpoint string) error
func (*LocalStorageService) UpdateMerge ¶
func (s *LocalStorageService) UpdateMerge(merge *model2.Merge) error
func (*LocalStorageService) UpdateMergeSourcesInDB ¶
func (s *LocalStorageService) UpdateMergeSourcesInDB(existingMergeInDB *model2.Merge) error
Click to show internal directories.
Click to hide internal directories.