juicefs

package
v0.13.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	mount.Interface
	JfsMount(volumeID string, target string, secrets, volCtx map[string]string, options []string) (Jfs, error)
	JfsCreateVol(volumeID string, subPath string, secrets map[string]string) error
	JfsDeleteVol(volumeID string, target string, secrets map[string]string) error
	JfsUnmount(mountPath string) error
	JfsCleanupMountPoint(mountPath string) error
	Version() ([]byte, error)
}

Interface of juicefs provider

func NewJfsProvider

func NewJfsProvider(mounter *mount.SafeFormatAndMount) (Interface, error)

NewJfsProvider creates a provider for JuiceFS file system

type Jfs

type Jfs interface {
	GetBasePath() string
	CreateVol(volumeID, subPath string) (string, error)
	DeleteVol(volumeID string, secrets map[string]string) error
}

Jfs is the interface of a mounted file system

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
mocks
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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