v2

package
v0.4.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2024 License: Apache-2.0 Imports: 20 Imported by: 1

Documentation

Index

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")
)
View Source
var (
	ErrNotMounted           = errors.New("not mounted")
	ErrAlreadyMounted       = errors.New("volume is already mounted")
	ErrMountPointIsNotEmpty = errors.New("mountpoint is not empty")
)

Functions

func MountAdapter

func MountAdapter(m *mountinfo.Info) codegen.Mount

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) Mount

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL