Documentation ¶
Index ¶
- func Ares2LpFromGithub(repos []string, fileSuffix string, printProgress bool, logger *log.Logger) <-chan *ares.LineParts
- func Ares2LpFromLocalDir(rootDir string, fileSuffix string, printProgress bool, logger *log.Logger) <-chan *ares.LineParts
- func Clone(path string, url string) (string, error)
- func CloneConcurrently(path string, urls []string) error
- func CloneRepos(path string, urls []string) error
- func DirPath(parentDir, theUrl string) (string, error)
- func GetAllGithubRepos(name string, token string) ([]*github.Repository, error)
- func GetProjects(url string, token string) ([]*gitlab.Project, error)
- func GetUsers(url string, token string) ([]*gitlab.User, error)
- func ProcessRepoCommits(name string) error
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 CloneConcurrently ¶
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 ¶
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 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 ¶
Should return an array of all projects. But, the interface requires pagination. So, TODO: append projects and return the complete list.
func GetUsers ¶
Get a list of the Gitlab user accounts But, the interface requires pagination. So, TODO: append projects and return the complete list.
func ProcessRepoCommits ¶
Clone repo into memory and iterate over its commits
Types ¶
This section is empty.