Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // Checkout clones the repo at "repoURL" and checks out "commit" — or HEAD if no commit is // provided — of "branch" to the specified path. The "path" directory (and subdirectories) // will be created if needed. A GitHub access token is required for private repos. Checkout(repoURL, branch, commit, path, gitHubAccessToken string) (commitSHA string, err error) }
Client provides repo related functionality (e.g cloning repos)
type Git ¶
type Git struct{}
Git provides a VCS interface implementation for git repositories.
func (*Git) Checkout ¶
func (git *Git) Checkout(repoURL, branch, commit, path, gitHubAccessToken string) (commitID string, err error)
Checkout clones the repo at "repoURL" and checks out "commit" — or HEAD if no commit is provided — of "branch" to the specified path. The "path" directory (and subdirectories) will be created if needed. A GitHub access token is required for private repos.
Click to show internal directories.
Click to hide internal directories.