Skip to content

pandemicsyn/git-foundation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-foundation - a FoundationDB backend for go-git

A FoundationDB storage backend for use with go-git.

This package is a WIP and is a naive implementation of go-git's storer interface. Its roughly modeled on the go-git memory implementation but obviously using FoundationDB instead of in mem semantics.

Current implementation status:

  • storer.ReferenceStorer
  • storer.ShallowStorer
  • storer.IndexStorer
  • config.ConfigStorer
  • ModuleStore
  • EncodedObjectStorer (Mostly working including sharding objects within foundation, missing IterEncodedObjects implementation)

See https://github.com/go-git/go-git/tree/master/plumbing/storer to figure out what this means.

Note I don't get to work with Go day to day anymore, this package mostly exists as an execuse for me to write some Go.

Installation

foundationdb install is a bit...rough but this is working with the following

foundationdb 7.1.17 pre-release installed via debs
go get -u github.com/apple/foundationdb/bindings/go/src/[email protected]
go get .

handy fdb cli commands while testing

# list first 25 keys
make ls-keys
--
# delete all the things!
fdb> writemode on
fdb> clearrange "" \xFF
fdb> getrange "" \xFF

About

Messing around with a git server backed by foundation db

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published