Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewManager ¶
NewManager returns a new default clone manager.
func WithCloner ¶
func WithCloner(cloner Cloner) gitCloneTargetOption
WithCloner allows customising the default cloner. Mainly used for testing.
Types ¶
type Cloner ¶
type Cloner interface {
Clone(ctx context.Context) (*Repository, error)
}
Cloner is the contract for cloning repositories.
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository wraps a git repository to not leak deps.
Click to show internal directories.
Click to hide internal directories.