Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fetch ¶
func Fetch(gitURL string, haves map[string]struct{}, msgW io.Writer, bwCounter *expvar.Int) (refs map[string]string, r io.ReadCloser, err error)
Fetch fetches the git repo at gitURL and the returns the refs.
It supports git:// and http(s):// URLs.
Sideband messages from the git server are writetn to msgW, and the number of bytes fetched is incremented in bwCounter. bwCounter is incremented here to get fine-grained metrics.
Types ¶
type GitParseError ¶
type GitParseError struct {
// contains filtered or unexported fields
}
func (GitParseError) Error ¶
func (e GitParseError) Error() string
type RemoteError ¶
type RemoteError struct {
Message string
}
func (RemoteError) Error ¶
func (e RemoteError) Error() string
Click to show internal directories.
Click to hide internal directories.