Documentation ¶
Index ¶
- Variables
- type DeleteMethod
- type Register
- func (r *Register) Add(gitDir string) error
- func (r *Register) Clone(url string, destDir string) error
- func (r *Register) Fetch(options string) error
- func (r *Register) List()
- func (r *Register) LoadRemotes()
- func (r *Register) RemoveInvalidEntries(m DeleteMethod) bool
- func (r *Register) Status(key string, sorted string, reverse bool)
- func (r *Register) Store()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotAGitDir = errors.New("No git structure found in directory")
)
Functions ¶
This section is empty.
Types ¶
type Register ¶
type Register struct {
Repos map[string]directoryContent
}
Register stores a map of all registered repositories
func CurrentRegister ¶
func (*Register) LoadRemotes ¶
func (r *Register) LoadRemotes()
LoadRemotes looks up the currently available remotes of a repository (directory) and adds them to the Register
func (*Register) RemoveInvalidEntries ¶
func (r *Register) RemoveInvalidEntries(m DeleteMethod) bool
RemoveInvalidEntries remove entries which are not marked valid from the storage
Click to show internal directories.
Click to hide internal directories.