juicefs

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// DefaultCapacityBytes is 10 Pi
	DefaultCapacityBytes = 10 * 1024 * 1024 * 1024 * 1024 * 1024
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	mount.Interface
	JfsMount(volumeID string, secrets map[string]string, options []string) (Jfs, error)
	JfsUnmount(volumeID string)
	AuthFs(secrets map[string]string) ([]byte, error)
	MountFs(volumeID, name string, options []string) (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) error
}

Jfs is the interface of a mounted file system

Jump to

Keyboard shortcuts

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