v2

package
v0.3.7-alpha1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 18 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")
)
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) 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) Mount

func (*LocalStorageService) RemoveFromFStab

func (s *LocalStorageService) RemoveFromFStab(mountpoint string) error

func (*LocalStorageService) SaveToFStab

func (s *LocalStorageService) SaveToFStab(m codegen.Mount) error

func (*LocalStorageService) SetMerge

func (s *LocalStorageService) SetMerge(merge *model2.Merge) (*model2.Merge, error)

func (*LocalStorageService) Umount

func (s *LocalStorageService) Umount(mountpoint string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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