repos

package
v0.0.0-...-e6ef1c1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2019 License: EPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ares2LpFromGithub

func Ares2LpFromGithub(repos []string,
	fileSuffix string,
	printProgress bool,
	logger *log.Logger) <-chan *ares.LineParts

maps lines from ares files in Github repositories to LineParts

func Ares2LpFromLocalDir

func Ares2LpFromLocalDir(rootDir string,
	fileSuffix string,
	printProgress bool,
	logger *log.Logger) <-chan *ares.LineParts

maps lines from ares files in Github repositories to LineParts

func Clone

func Clone(path string, url string) (string, error)

func CloneConcurrently

func CloneConcurrently(path string, urls []string) error

Clone concurrently each repository to the parent directory specified in path. The directory will be created by the Clone function. Be aware that the contents of the root directory will be deleted if it already exists. This func runs nearly twice as fast as the CloneRepos func.

func CloneRepos

func CloneRepos(path string, urls []string) error

Clone sequentially each repository to the parent directory specified in path. The directory will be created by the Clone function. Be aware that the contents of the root directory will be deleted if it already exists.

func DirPath

func DirPath(parentDir, theUrl string) (string, error)

converts repository clone url into a path into which to clone the repository

func GetAllGithubRepos

func GetAllGithubRepos(name string, token string) ([]*github.Repository, error)

Get all the repositories for the supplied user name or org at github. Token: a github token. When you get back the array of repositories, you can access the values of repo properties using an asterisk, e.g. *repo.Name to get the repository name.

func GetProjects

func GetProjects(url string, token string) ([]*gitlab.Project, error)

Should return an array of all projects. But, the interface requires pagination. So, TODO: append projects and return the complete list.

func GetUsers

func GetUsers(url string, token string) ([]*gitlab.User, error)

Get a list of the Gitlab user accounts But, the interface requires pagination. So, TODO: append projects and return the complete list.

func ProcessRepoCommits

func ProcessRepoCommits(name string) error

Clone repo into memory and iterate over its commits

Types

This section is empty.

Jump to

Keyboard shortcuts

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