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)
Click to show internal directories.
Click to hide internal directories.