Documentation
¶
Overview ¶
Package gitvol implements a Volume in terms of Git
Index ¶
- Constants
- type Volume
- func (v *Volume) CAS(ctx context.Context, actual *[]byte, prev, next []byte) (bool, error)
- func (v *Volume) Delete(ctx context.Context, id cadata.ID) error
- func (v *Volume) Exists(ctx context.Context, id cadata.ID) (bool, error)
- func (v *Volume) Get(ctx context.Context, id cadata.ID, buf []byte) (int, error)
- func (v *Volume) Hash(data []byte) cadata.ID
- func (v *Volume) List(ctx context.Context, span cadata.Span, buf []cadata.ID) (int, error)
- func (v *Volume) Load(ctx context.Context, dst *[]byte) error
- func (v *Volume) MaxSize() int
- func (v *Volume) Post(ctx context.Context, data []byte) (cadata.ID, error)
- func (v *Volume) Reset(ctx context.Context) error
Constants ¶
View Source
const ( BlobPrefix = "b" RootPath = "root" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.