flist

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2025 License: Apache-2.0 Imports: 28 Imported by: 0

README

Flist module

How to run the tests of this module

Because 0-fs requires root permission to mount the filesystems, you need to run the tests using the root user

An easy way to configure your system to have all your user GOPATH in the root directory is to create a symlink to /root/go. Because if $GOPATH is not set, go automatically use $HOME/go

ln -s $GOPATH /root/go

Then to the tests:

su
go test -v

RPC test

Because RPC tests requires to have a local redis running, RPC tests are not run by default. In order to run the RPC test, you need to have redis running and listening on port 6379 and pass the -rpc flag to the go test command.

go test -v -rpc

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrAlreadyMounted is returned when checking if a path has already
	// something mounted on it
	ErrAlreadyMounted                  = errors.New("path is already mounted")
	ErrNotMountPoint                   = errors.New("path is not a mountpoint")
	ErrTransportEndpointIsNotConencted = errors.New("transport endpoint is not connected")
	ErrZFSProcessNotFound              = errors.New("0-fs process not found")
	ErrHashNotSupported                = errors.New("hash not supported by flist host")
	ErrHashInvalidLen                  = errors.New("invalid hash length")
)

Functions

func New

func New(root string, storage *stubs.StorageModuleStub) pkg.Flister

New creates a new flistModule

Types

type Cleaner

type Cleaner interface {
	// CacheCleaner runs the clean process, CacheCleaner should be
	// blocking. Caller then can do `go CacheCleaner()` to run it in the background
	CacheCleaner(ctx context.Context, every time.Duration, age time.Duration)
}

Cleaner interface, implementer of this interface can start a cleaner job

type Hash

type Hash string

Hash type

type Path

type Path string

Path type

Jump to

Keyboard shortcuts

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