MCPcopy Create free account
hub / github.com/blobcache/blobcache / NewRemote

Function NewRemote

src/schema/bcgit/remote.go:39–46  ·  view source on GitHub ↗
(svc blobcache.Service, volh blobcache.Handle)

Source from the content-addressed store, hash-verified

37}
38
39func NewRemote(svc blobcache.Service, volh blobcache.Handle) *Remote {
40 return &Remote{
41 svc: svc,
42 volh: volh,
43
44 tmach: tries.NewMachine(nil, blobcache.HashAlgo_SHA2_256.KeyedHash),
45 }
46}
47
48func (rem *Remote) putRefs(ctx context.Context, refs []GitRef) error {
49 tx, err := bcsdk.BeginTx(ctx, rem.svc, rem.volh, blobcache.TxParams{Modify: true})

Callers 4

TestLsRemoteFunction · 0.85
TestPushTagsFunction · 0.85
TestPushBranchFunction · 0.85
OpenRemoteHelperFunction · 0.85

Calls 1

NewMachineFunction · 0.92

Tested by 3

TestLsRemoteFunction · 0.68
TestPushTagsFunction · 0.68
TestPushBranchFunction · 0.68