git

package
v0.0.0-...-026089d Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CloneInit  = iota
	CloneClone = iota
)

Variables

This section is empty.

Functions

func NewClient

func NewClient(p GitClientParam) (*gitClient, error)

Types

type GitClientParam

type GitClientParam struct {
	CloneLocation string
	RemoteName    string
	RemoteURL     *url.URL
	CloneMethod   int
	PullDepth     int
	AutoPull      bool

	QueueSize        int
	QueueWorkerCount int
}

type GitClonerPuller

type GitClonerPuller interface {
	CloneOrPull(url string, pid int, defaultBranch string) (localRepoLoc string, err error)
}

Jump to

Keyboard shortcuts

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