Documentation
¶
Overview ¶
Package git provides rebuilder-specific git abstractions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrRemoteNotTracked is returned when a reuse is attempted but the remote does not match. ErrRemoteNotTracked = errors.New("existing repository does not track desired remote") )
Functions ¶
Types ¶
type Cache ¶
type Cache struct { // IDClient is the HTTP client to use to access the cache service. IDClient *http.Client // APIClient is the HTTP client to use to access the underlying cache storage. APIClient *http.Client // URL is the address of the cache service. *url.URL // DefaultFreshness is the freshness bound to use if none is provided. DefaultFreshness time.Time }
Cache is an interface abstracting the rebuilder git-cache service.
type CloneFunc ¶
type CloneFunc func(context.Context, storage.Storer, billy.Filesystem, *git.CloneOptions) (*git.Repository, error)
CloneFunc defines an interface for cloning a git repo.
var Clone CloneFunc = git.CloneContext
Clone performs a normal clone operation.
Click to show internal directories.
Click to hide internal directories.