Documentation ¶
Index ¶
- Variables
- func CloneGitRepository(gitUrl string, key transport.AuthMethod, depth int) (r *gogit.Repository, err error)
- func ConfigKey(k string)
- func GetChanges(repo *gogit.Repository, hashOld, hashNew plumbing.Hash) *object.Changes
- func ShowChanges(r *gogit.Repository) error
- type Credential
- type GitRepo
- func (r *GitRepo) Branch(name string, hash interface{}) *GitRepo
- func (r *GitRepo) Checkout(hash interface{}) *GitRepo
- func (r *GitRepo) CheckoutBranch(name string) *GitRepo
- func (r *GitRepo) CheckoutTag(tag string) *GitRepo
- func (r *GitRepo) CloneToDir(path string) *GitRepo
- func (r *GitRepo) CloneToMemory() *GitRepo
- func (r *GitRepo) Depth(n int) *GitRepo
- func (r *GitRepo) Error() error
- func (r *GitRepo) FindTagHash(tag string) (hash plumbing.Hash, err error)
- func (r *GitRepo) GetHash(hash interface{}) (h plumbing.Hash)
- func (r *GitRepo) Pull() *GitRepo
- func (r *GitRepo) SetBasicAuth(username, password string) *GitRepo
- func (r *GitRepo) SetSshKey(pem []byte) *GitRepo
- func (r *GitRepo) Tag(tag string, hash interface{}) *GitRepo
- type GitRepository
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 GetChanges ¶
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 (*GitRepo) CheckoutBranch ¶
func (*GitRepo) CheckoutTag ¶
func (*GitRepo) CloneToDir ¶
func (*GitRepo) CloneToMemory ¶
func (*GitRepo) FindTagHash ¶
func (*GitRepo) SetBasicAuth ¶
type GitRepository ¶
type GitRepository struct {
gogit.Repository
}
Click to show internal directories.
Click to hide internal directories.