Documentation ¶
Index ¶
- type EndpointFilter
- type Index
- func (i *Index) Add(dir string) error
- func (i *Index) Close()
- func (i *Index) Find(slug string) []string
- func (i *Index) FindByDir(dir string) (s []string, d string)
- func (i *Index) Has(dir string) (ok bool)
- func (i *Index) ListClones() []string
- func (i *Index) ListSlugs(p string) []string
- func (i *Index) Prune(w io.Writer) error
- func (i *Index) Remove(dir string) error
- func (i *Index) Scan(w io.Writer, f EndpointFilter, dirs ...string) error
- func (i *Index) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EndpointFilter ¶
EndpointFilter is a function that returns true if the given endpoint should be included for indexing when scanning.
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
Index is an index of repository locations.
func (*Index) FindByDir ¶
FindByDir returns a list of slugs that match dir. dir may be a sub-directory of the clone. d is the indexed directory, i.e. the clone root.
func (*Index) ListClones ¶
ListClones returns a list of all clone directories.
Click to show internal directories.
Click to hide internal directories.