juicefs

package
v0.17.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: Apache-2.0 Imports: 26 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(ctx context.Context, volumeID string, target string, secrets, volCtx map[string]string, options []string) (Jfs, error)
	JfsCreateVol(ctx context.Context, volumeID string, subPath string, secrets, volCtx map[string]string) error
	JfsDeleteVol(ctx context.Context, volumeID string, target string, secrets, volCtx map[string]string) error
	JfsUnmount(ctx context.Context, volumeID, mountPath string) error
	JfsCleanupMountPoint(ctx context.Context, mountPath string) error
	GetJfsVolUUID(ctx context.Context, name string) (string, 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(ctx context.Context, volumeID, subPath string) (string, error)
	BindTarget(ctx context.Context, bindSource, target 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