plumbing/storer/storer.go
raw| 1 | package storer |
| 2 | |
| 3 | // Storer is a basic storer for encoded objects and references. |
| 4 | type Storer interface { |
| 5 | EncodedObjectStorer |
| 6 | ReferenceStorer |
| 7 | } |
| 8 | |
| 9 | // Initializer should be implemented by storers that require to perform any |
| 10 | // operation when creating a new repository (i.e. git init). |
| 11 | type Initializer interface { |
| 12 | // Init performs initialization of the storer and returns the error, if |
| 13 | // any. |
| 14 | Init() error |
| 15 | } |