Documentation
¶
Overview ¶
Package gitrepo is the git source: a repository shallow-cloned into a cache directory and kept fresh by polling. Pure Go (go-git), so air-gapped hosts need no git binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
func New ¶
New builds a git source. cacheDir is where the working copy lives (typically <data_dir>/git/<kb>-<source>). token may be empty for public repositories.
Click to show internal directories.
Click to hide internal directories.