Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepoBackend ¶ added in v0.2.0
type RepoBackend struct{}
RepoBackend is used to fake a repo backend in testing.
func NewMockRepoBackend ¶
func NewMockRepoBackend() *RepoBackend
NewMockRepoBackend returns a new RepoBackend
func (*RepoBackend) GC ¶ added in v0.2.0
func (mrb *RepoBackend) GC() ([]h.Hash, error)
GC does nothing.
func (*RepoBackend) Init ¶ added in v0.2.0
func (mrb *RepoBackend) Init(folder string) error
Init does nothing to create a mock repo.
func (*RepoBackend) Name ¶ added in v0.2.0
func (mrb *RepoBackend) Name() string
Name returns "mock"
Click to show internal directories.
Click to hide internal directories.