Documentation
¶
Index ¶
- Variables
- func MountAdapter(m *mountinfo.Info) codegen.Mount
- type LocalStorageService
- func (s *LocalStorageService) CheckMergeMount()
- func (s *LocalStorageService) GetMergeAll(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) SetMerge(merge *model2.Merge) (*model2.Merge, error)
- func (s *LocalStorageService) Umount(mountpoint string) 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") )
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) GetMergeAll ¶
func (s *LocalStorageService) GetMergeAll(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
Click to show internal directories.
Click to hide internal directories.