Documentation ¶
Overview ¶
Package source provides an abstraction of a "repository source" which is any service that hosts source repositories that can be searched and cloned by Grit.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type List ¶
type List []Source
List is a collection of sources.
type LocalRepo ¶
type LocalRepo struct { sourcedriver.RemoteRepo Source Source // AbsoluteCloneDir is the absolute path to the directory containing the // local clone. AbsoluteCloneDir string }
LocalRepo represents a local clone of a remote repository.
type Source ¶
type Source struct { // Name is the unique name for the repository source. Name string // Description is a human-readable description of the source. Description string // BaseCloneDir is the directory containing repositories cloned from this // source. BaseCloneDir string // BaseURL is the base URL for that the daemon's HTTP server route's to the // source's HTTP handler implementation. BaseURL *url.URL // Driver is the source implementation provided by the driver, used to // perform repository operations for this source. Driver sourcedriver.Source }
Source is a repository source.
Click to show internal directories.
Click to hide internal directories.