juicefs

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2022 License: Apache-2.0 Imports: 25 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(volumeID, mountPath string) error
	JfsCleanupMountPoint(mountPath string) error
	GetJfsVolUUID(name string) (string, error)
	Version() ([]byte, error)
}

Interface of juicefs provider

func NewJfsProvider

func NewJfsProvider(mounter *mount.SafeFormatAndMount, k8sClient *k8sclient.K8sClient) Interface

NewJfsProvider creates a provider for JuiceFS file system

type Jfs

type Jfs interface {
	GetBasePath() string
	CreateVol(volumeID, subPath 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