gitutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 7 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, error)

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