Documentation
¶
Index ¶
- func DefaultVolumeSpec() blobcache.VolumeSpec
- func NewGotKV() gotkv.Machine
- type MarkState
- type Root
- type Space
- type SpaceTx
- func (s *SpaceTx) All(ctx context.Context) iter.Seq2[string, error]
- func (s *SpaceTx) Create(ctx context.Context, name string, md gotcore.Metadata) (*gotcore.Info, error)
- func (s *SpaceTx) Delete(ctx context.Context, name string) error
- func (s *SpaceTx) GetTarget(ctx context.Context, name string, dst *gdat.Ref) (bool, error)
- func (s *SpaceTx) Inspect(ctx context.Context, name string) (*gotcore.Info, error)
- func (s *SpaceTx) SetMetadata(ctx context.Context, name string, md gotcore.Metadata) error
- func (s *SpaceTx) SetTarget(ctx context.Context, name string, ref gdat.Ref) error
- func (s *SpaceTx) Stores() [3]stores.RW
- type Tx
- func (tx *Tx) Abort(ctx context.Context) error
- func (tx *Tx) AllNames(ctx context.Context) iter.Seq2[string, error]
- func (tx *Tx) Commit(ctx context.Context) error
- func (tx *Tx) Delete(ctx context.Context, name string) error
- func (tx *Tx) Get(ctx context.Context, name string) (*MarkState, error)
- func (tx *Tx) Put(ctx context.Context, name string, b MarkState) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultVolumeSpec ¶
func DefaultVolumeSpec() blobcache.VolumeSpec
Types ¶
type MarkState ¶
type Root ¶
type Root struct {
Marks gotkv.Root
// BrokenSet is the set of CIDs which the Space cannot dereference.
// This is used to correctly Sync even with incomplete structures.
BrokenSet gotkv.Root
}
Root is the root of a gotns namespace
type SpaceTx ¶ added in v0.3.0
type SpaceTx struct {
// contains filtered or unexported fields
}
func (*SpaceTx) Create ¶ added in v0.3.0
func (s *SpaceTx) Create(ctx context.Context, name string, md gotcore.Metadata) (*gotcore.Info, error)
Create implements gotcore.Space.
func (*SpaceTx) SetMetadata ¶ added in v0.3.0
Set implements gotcore.Space.
Click to show internal directories.
Click to hide internal directories.