git

package
v0.0.0-...-c253f3e Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	SECRET_KEY = ""
)

Functions

func CloneGitRepository

func CloneGitRepository(gitUrl string, key transport.AuthMethod, depth int) (r *gogit.Repository, err error)

func ConfigKey

func ConfigKey(k string)

func GetChanges

func GetChanges(repo *gogit.Repository, hashOld, hashNew plumbing.Hash) *object.Changes

func ShowChanges

func ShowChanges(r *gogit.Repository) error

Types

type Credential

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

func (*Credential) GetPem

func (o *Credential) GetPem() (pem []byte, err error)

func (*Credential) GetUserPassword

func (o *Credential) GetUserPassword() (username, password string, err error)

type GitRepo

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

func NewRepo

func NewRepo(gitUrl string) (r *GitRepo)

func OpenRepo

func OpenRepo(path string) *GitRepo

func (*GitRepo) Branch

func (r *GitRepo) Branch(name string, hash interface{}) *GitRepo

func (*GitRepo) Checkout

func (r *GitRepo) Checkout(hash interface{}) *GitRepo

func (*GitRepo) CheckoutBranch

func (r *GitRepo) CheckoutBranch(name string) *GitRepo

func (*GitRepo) CheckoutTag

func (r *GitRepo) CheckoutTag(tag string) *GitRepo

func (*GitRepo) CloneToDir

func (r *GitRepo) CloneToDir(path string) *GitRepo

func (*GitRepo) CloneToMemory

func (r *GitRepo) CloneToMemory() *GitRepo

func (*GitRepo) Depth

func (r *GitRepo) Depth(n int) *GitRepo

func (*GitRepo) Error

func (r *GitRepo) Error() error

func (*GitRepo) FindTagHash

func (r *GitRepo) FindTagHash(tag string) (hash plumbing.Hash, err error)

func (*GitRepo) GetHash

func (r *GitRepo) GetHash(hash interface{}) (h plumbing.Hash)

func (*GitRepo) Pull

func (r *GitRepo) Pull() *GitRepo

func (*GitRepo) SetBasicAuth

func (r *GitRepo) SetBasicAuth(username, password string) *GitRepo

func (*GitRepo) SetSshKey

func (r *GitRepo) SetSshKey(pem []byte) *GitRepo

func (*GitRepo) Tag

func (r *GitRepo) Tag(tag string, hash interface{}) *GitRepo

type GitRepository

type GitRepository struct {
	gogit.Repository
}

Jump to

Keyboard shortcuts

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