v2

package
v0.4.5-alpha1 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: Apache-2.0 Imports: 20 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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