Documentation ¶
Overview ¶
Continuous is used to a git repository cached on disk.
Index ¶
- Variables
- func CacheRepo(url string, cacheDir string, sshPublicKey string) error
- func FetchRemote(repo *git.Repository, sshPublicKey *ssh.PublicKeys) (map[string]string, []string, error)
- func RepoRefs(repo *git.Repository) (map[string]string, map[string]string, error)
- func SSHPublicKey(url string, SSHKeyPath string) (*ssh.PublicKeys, error)
- type BuildResult
- type CI
Constants ¶
This section is empty.
Variables ¶
View Source
var EventNames = []string{
"BuildResult",
}
Functions ¶
func FetchRemote ¶
func FetchRemote(repo *git.Repository, sshPublicKey *ssh.PublicKeys) (map[string]string, []string, error)
FetchRemote performs a fetch of a given repository, returning a the new branch heads and new tags.
func RepoRefs ¶
RepoRefs is used to retrieve the references of a working repo. This is useful to check the state before and after a fetch, to determine the difference.
func SSHPublicKey ¶
func SSHPublicKey(url string, SSHKeyPath string) (*ssh.PublicKeys, error)
SSHPublicKey is used to load an SSH public key for use in authenticating to a git server.
Types ¶
type BuildResult ¶
type CI ¶
CI is the configuration for remote URLs, repo caching, and SSH authentication
func (*CI) CheckoutHash ¶
func (*CI) CheckoutTag ¶
Click to show internal directories.
Click to hide internal directories.