Versions in this module Expand all Collapse all v1 v1.0.0 Oct 17, 2018 Changes in this version + type MemRepoStore struct + func NewMemRepoStore() *MemRepoStore + func (mrs *MemRepoStore) CreateRepo(repo *Repository) error + func (mrs *MemRepoStore) GetRepo(id string) (*Repository, error) + func (mrs *MemRepoStore) RemoveRepo(id string) error + func (mrs *MemRepoStore) UpdateRepo(repo *Repository) error + type Repository struct + ID string + Refs *RepositoryReferences + func NewRepository(id string) *Repository + func (repo *Repository) String() string + type RepositoryHead struct + Hash plumbing.Hash + Ref string + type RepositoryReferences struct + Head RepositoryHead + Heads map[string]plumbing.Hash + Tags map[string]plumbing.Hash + func NewRepositoryReferences() *RepositoryReferences + func (refs *RepositoryReferences) MarshalJSON() ([]byte, error) + func (refs *RepositoryReferences) SetHead(ref string) (plumbing.Hash, error) + func (refs *RepositoryReferences) UpdateRef(ref string, prev, curr plumbing.Hash) error + type RepositoryStore interface + CreateRepo func(*Repository) error + GetRepo func(string) (*Repository, error) + RemoveRepo func(string) error + UpdateRepo func(*Repository) error