nodespace

package
v0.4.11-testci.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: MIT Imports: 34 Imported by: 0

Documentation

Index

Constants

View Source
const CName = "node.nodespace"

Variables

View Source
var (
	ErrDoesntSupportStats   = errors.New("SpaceStorage doesn't support nodestorage.SpaceStats")
	ErrSpaceStorageIsLocked = errors.New("SpaceStorage is locked, try again later")
)

Functions

func NewStreamOpener added in v0.4.0

func NewStreamOpener() streamhandler.StreamHandler

Types

type NodeSpace added in v0.3.1

type NodeSpace interface {
	commonspace.Space
}

type Service

type Service interface {
	GetSpace(ctx context.Context, id string) (NodeSpace, error)
	PickSpace(ctx context.Context, id string) (NodeSpace, error)
	EvictSpace(ctx context.Context, id string) error
	Cache() ocache.OCache
	GetStats(ctx context.Context, id string, treeTop int) (SpaceStats, error)
	app.ComponentRunnable
}

func New

func New() Service

type SpaceStats added in v0.4.8

type SpaceStats struct {
	Storage nodestorage.SpaceStats `json:"storage"`
	Acl     struct {
		Readers int `json:"readers"`
		Writers int `json:"writers"`
	} `json:"acl"`
}

Directories

Path Synopsis
Package mock_nodespace is a generated GoMock package.
Package mock_nodespace is a generated GoMock package.

Jump to

Keyboard shortcuts

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