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 }
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. |
Click to show internal directories.
Click to hide internal directories.