vcs

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: May 31, 2020 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

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