fsrepo

package
v0.0.0-...-b7c645d Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultMountInfo = map[string]interface{}{
	"level": map[string]interface{}{
		"path":   "kv",
		"prefix": "/",
	},
	"flatfs": map[string]interface{}{
		"path":      "blocks",
		"prefix":    "blocks",
		"shardFunc": "/repo/flatfs/shard/v1/next-to-last/2",
		"sync":      true,
	},
}

Functions

func CreateOrOpen

func CreateOrOpen(c config.Config) (repo.Repo, error)

func Init

func Init(path string, c config.Config) error

func IsInitialized

func IsInitialized(path string) bool

func Open

func Open(path string) (repo.Repo, error)

Types

type ActiveRepo

type ActiveRepo struct {
	Active *fsRepo
	RefCnt int
}

type Datastore

type Datastore interface {
	ds.Batching
	Mounts() ([]MountInfo, error)
}

type MountInfo

type MountInfo struct {
	Path   string
	Prefix string
	Usage  uint64
}

Jump to

Keyboard shortcuts

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