gitrepo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GitRepo

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

func NewGitRepo

func NewGitRepo(dir string, cloneOpts git.CloneOptions) (GitRepo, error)

func NewGitRepoWithAuth

func NewGitRepoWithAuth(dir string, url string, username string, accessToken string) (GitRepo, error)

func (*GitRepo) Checkout

func (g *GitRepo) Checkout(branch string) error

func (*GitRepo) Commit

func (g *GitRepo) Commit(path string, message string) error

func (*GitRepo) GetDirectory

func (g *GitRepo) GetDirectory() string

func (*GitRepo) Push

func (g *GitRepo) Push() error

Jump to

Keyboard shortcuts

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