nodespace

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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) (nodestorage.SpaceStats, error)
	app.ComponentRunnable
}

func New

func New() Service

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