aboutsummaryrefslogblamecommitdiffstats
path: root/plumbing/storer/storer.go
blob: 1b7d2266f999f8e601373180aa21cdb1255809f5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                                               


                                                                           
                            



                                                                               





                                                                                   
package storer

// Storer is a basic storer for encoded objects and references.
type Storer interface {
	EncodedObjectStorer
	ReferenceStorer
}

// Initializer should be implemented by storers that require to perform any
// operation when creating a new repository (i.e. git init).
type Initializer interface {
	// Init performs initialization of the storer and returns the error, if
	// any.
	Init() error
}

// Options holds configuration for the storage.
type Options struct {
	// Static means that the filesystem is not modified while the repo is open.
	Static bool
}