git

package
v0.0.0-...-e00f16c Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepoSpec

type RepoSpec struct {
	URL         string
	Credentials transport.AuthMethod
	Progress    io.Writer
	// contains filtered or unexported fields
}

func NewRepoSpec

func NewRepoSpec(url string, credentials transport.AuthMethod) *RepoSpec

func (*RepoSpec) Checkout

func (rs *RepoSpec) Checkout(ctx context.Context, reference plumbing.ReferenceName) (*git.Repository, string, error)

func (*RepoSpec) CloneDirectory

func (rs *RepoSpec) CloneDirectory(branch string) string

func (*RepoSpec) Name

func (rs *RepoSpec) Name() string

func (*RepoSpec) Open

func (rs *RepoSpec) Open(ctx context.Context) (*git.Repository, error)

Jump to

Keyboard shortcuts

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