Documentation ¶
Index ¶
- func NewManager(conf *Conf) (*manager, error)
- func NewTarget(conf *Conf, opts ...gitCloneTargetOption) (*gitCloneTarget, error)
- func WithClock(clock clockwork.Clock) gitCloneTargetOption
- func WithCloner(cloner Cloner) gitCloneTargetOption
- func WithFS(fs billy.Filesystem) gitCloneTargetOption
- type Cloner
- type Conf
- type ConfAuth
- type Repository
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.