gitutil

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuth

func GetAuth(username, password, keyPath string) transport.AuthMethod

Types

type GitClient

type GitClient struct {
	AuthMethod transport.AuthMethod
}

func NewGitClient

func NewGitClient(username, password, keyPath string) *GitClient

func (*GitClient) CloneRepository

func (g *GitClient) CloneRepository(remoteURL, localPath string) (*git.Repository, error)

func (*GitClient) OpenRepository

func (g *GitClient) OpenRepository(localPath string) (*git.Repository, error)

func (*GitClient) PullChanges

func (g *GitClient) PullChanges(repo *git.Repository) error

Jump to

Keyboard shortcuts

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