storage

package
v0.0.0-...-b36b742 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StorageModeJuiceFS    string = "juicefs"
	StorageModeCunoFS     string = "cunofs"
	StorageModeMountPoint string = "mountpoint"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CunoFsStorage

type CunoFsStorage struct {
	// contains filtered or unexported fields
}

func (*CunoFsStorage) Format

func (s *CunoFsStorage) Format(fsName string) error

func (*CunoFsStorage) Mount

func (s *CunoFsStorage) Mount(localPath string) error

func (*CunoFsStorage) Unmount

func (s *CunoFsStorage) Unmount(localPath string) error

type JuiceFsStorage

type JuiceFsStorage struct {
	// contains filtered or unexported fields
}

func (*JuiceFsStorage) Format

func (s *JuiceFsStorage) Format(fsName string) error

func (*JuiceFsStorage) Mount

func (s *JuiceFsStorage) Mount(localPath string) error

func (*JuiceFsStorage) Unmount

func (s *JuiceFsStorage) Unmount(localPath string) error

type MountPointStorage

type MountPointStorage struct {
	// contains filtered or unexported fields
}

func (*MountPointStorage) Format

func (s *MountPointStorage) Format(fsName string) error

func (*MountPointStorage) Mount

func (s *MountPointStorage) Mount(localPath string) error

func (*MountPointStorage) Unmount

func (s *MountPointStorage) Unmount(localPath string) error

type Storage

type Storage interface {
	Mount(localPath string) error
	Format(fsName string) error
	Unmount(localPath string) error
}

func NewCunoFsStorage

func NewCunoFsStorage(config types.CunoFSConfig) (Storage, error)

func NewJuiceFsStorage

func NewJuiceFsStorage(config types.JuiceFSConfig) (Storage, error)

func NewMountPointStorage

func NewMountPointStorage(config types.MountPointConfig) (Storage, error)

func NewStorage

func NewStorage(config types.StorageConfig) (Storage, error)

Jump to

Keyboard shortcuts

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