Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
ErrNotFound should be returned by Backend.ReadBlob if a blob was not found.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface {
ReadBlob(name string) (io.ReadCloser, error)
WriteBlob(name string, r io.Reader) error
}
A Backend for a crypto repo
type Repo ¶
type Repo interface {
// GetRevisions should return all revisions in chronological order
GetRevisions() ([]Revision, error)
SaveNewRevision(rev Revision, packfile io.Reader) error
ReadPackfile(toRev int) (io.ReadCloser, error)
}
A Repo for git data
func NewJSONRepo ¶
NewJSONRepo returns a Repo implementation that stores revisions as json
Click to show internal directories.
Click to hide internal directories.