repo

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrCloneFail = errors.New("git clone fail")

Functions

This section is empty.

Types

type Option

type Option func(repo *Repo)

func WithBranch

func WithBranch(branch string) Option

WithBranch set branch

type Repo

type Repo struct {
	// contains filtered or unexported fields
}

func NewRepo

func NewRepo(url, dist string, opts ...Option) *Repo

NewRepo

func (Repo) Clone

func (receiver Repo) Clone(ctx context.Context) error

Jump to

Keyboard shortcuts

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