Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitHttpBasicAuth ¶
Set HTTP basic authentication user and password.
func InitSshKey ¶
Set the ssh private key in PEM format to use for authentication. If needed provide the password.
Types ¶
type ClonedRepo ¶
type ClonedRepo struct { Repo *git.Repository LocalDir string Auth transport.AuthMethod }
func CloneRepo ¶
func CloneRepo(url string) (*ClonedRepo, error)
Clone a given repository and return it. The url can be given in these formats: file://<path> -> path to repository in local filesystem git@<remote repo> -> ssh repository clone URL http(s)://<remote repo>
func (*ClonedRepo) Cleanup ¶
func (repo *ClonedRepo) Cleanup() error
Deletes any local content in TempDir.
Click to show internal directories.
Click to hide internal directories.