Documentation
¶
Index ¶
- Constants
- func DefaultVolumeSpec() blobcache.VolumeSpec
- func FmtURL(u blobcache.URL) string
- func Hash(x []byte) blobcache.CID
- func NewRemoteHelper(rem *Remote) gitrh.Server
- func SaveRoot(ctx context.Context, svr bcsdk.Saver, root Root) error
- func SyncGit(ctx context.Context, src bcsdk.RO, dst bcsdk.WO, id blobcache.CID) error
- type GitRef
- type RefIterator
- type Remote
- func (rem *Remote) Close() error
- func (rem *Remote) Fetch(ctx context.Context, ws bcsdk.WO, refs map[string]blobcache.CID, ...) error
- func (rem *Remote) GetRef(ctx context.Context, name string) (*GitRef, error)
- func (rem *Remote) OpenIterator(ctx context.Context) (*RefIterator, error)
- func (rem *Remote) Push(ctx context.Context, src bcsdk.RO, refs []GitRef) error
- type Root
- type Schema
Constants ¶
View Source
const HashAlgo = blobcache.HashAlgo_SHA2_256
Variables ¶
This section is empty.
Functions ¶
func DefaultVolumeSpec ¶
func DefaultVolumeSpec() blobcache.VolumeSpec
func NewRemoteHelper ¶
Types ¶
type RefIterator ¶
type RefIterator struct {
// contains filtered or unexported fields
}
func (*RefIterator) Close ¶
func (ri *RefIterator) Close() error
type Remote ¶
type Remote struct {
// contains filtered or unexported fields
}
Remote is a Git Remote backed by a Blobcache Volume
func OpenRemoteHelper ¶
func (*Remote) OpenIterator ¶
func (rem *Remote) OpenIterator(ctx context.Context) (*RefIterator, error)
OpenIterator returns an iterator impelementing steams.Iterator If a non-nil RetIterator is returned (only happens when err == nil) then it is the callers responsibility to close it or the underlying transaction will remain open.
Click to show internal directories.
Click to hide internal directories.