target

package
v1.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTarget

func NewTarget(conf *git.Conf, cloner Cloner, opts ...gitCloneTargetOption) (*gitCloneTarget, error)

NewTarget returns a new git clone target.

func WithClock

func WithClock(clock clockwork.Clock) gitCloneTargetOption

WithClock allows customising the default clock. Mainly used for testing.

Types

type Cloner

type Cloner interface {
	Clone(ctx context.Context) (*git.Repository, error)
}

Cloner is the contract for cloning repositories.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL