Documentation
¶
Index ¶
- func DefaultVolumeSpec() blobcache.VolumeSpec
- func NewGotKV() gotkv.Machine
- type MarkState
- type Root
- type Space
- func (s *Space) Create(ctx context.Context, name string, cfg marks.Metadata) (*marks.Info, error)
- func (s *Space) Delete(ctx context.Context, name string) error
- func (s *Space) Inspect(ctx context.Context, name string) (*marks.Info, error)
- func (s *Space) List(ctx context.Context, span marks.Span, limit int) ([]string, error)
- func (s *Space) Open(ctx context.Context, name string) (*marks.Mark, error)
- func (s *Space) Set(ctx context.Context, name string, cfg marks.Metadata) error
- type Tx
- func (tx *Tx) Abort(ctx context.Context) 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) ListNames(ctx context.Context, span marks.Span, limit int) ([]string, error)
- func (tx *Tx) LoadBranchRoot(ctx context.Context, name string, dst *[]byte) error
- func (tx *Tx) Put(ctx context.Context, name string, b MarkState) error
- func (tx *Tx) SaveMarkRoot(ctx context.Context, name string, data []byte) error
- type VirtVolume
- type VirtVolumeTx
- func (vvt *VirtVolumeTx) Abort(ctx context.Context) error
- func (vvt *VirtVolumeTx) Commit(ctx context.Context) error
- func (vvt *VirtVolumeTx) Exists(ctx context.Context, cids []blobcache.CID, dst []bool) error
- func (vvt *VirtVolumeTx) Get(ctx context.Context, cid blobcache.CID, buf []byte) (int, error)
- func (vvt *VirtVolumeTx) Hash(data []byte) blobcache.CID
- func (vvt *VirtVolumeTx) Load(ctx context.Context, dst *[]byte) error
- func (vvt *VirtVolumeTx) MaxSize() int
- func (vvt *VirtVolumeTx) Post(ctx context.Context, data []byte) (blobcache.CID, error)
- func (vvt *VirtVolumeTx) Save(ctx context.Context, src []byte) 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 Space ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
Tx is a transaction on a Namespace
func (*Tx) LoadBranchRoot ¶
type VirtVolume ¶
type VirtVolume struct {
// contains filtered or unexported fields
}
VirtVolume is a virtual volume containing the a Marks root as the VirtVolume root.
type VirtVolumeTx ¶
type VirtVolumeTx struct {
// contains filtered or unexported fields
}
VirtVolumeTx is a transaction on a branch volume.
func (*VirtVolumeTx) Abort ¶
func (vvt *VirtVolumeTx) Abort(ctx context.Context) error
Abort implements volumes.Tx.
func (*VirtVolumeTx) Commit ¶
func (vvt *VirtVolumeTx) Commit(ctx context.Context) error
Commit implements volumes.Tx.
func (*VirtVolumeTx) Hash ¶
func (vvt *VirtVolumeTx) Hash(data []byte) blobcache.CID
Hash implements volumes.Tx.
func (*VirtVolumeTx) Load ¶
func (vvt *VirtVolumeTx) Load(ctx context.Context, dst *[]byte) error
Load implements volumes.Tx.
func (*VirtVolumeTx) MaxSize ¶
func (vvt *VirtVolumeTx) MaxSize() int
MaxSize implements volumes.Tx.
Click to show internal directories.
Click to hide internal directories.