Versions in this module Expand all Collapse all v0 v0.4.1 Mar 10, 2022 v0.4.0 Feb 7, 2022 Changes in this version + type Filter struct + BranchMatch *regexp.Regexp + LabelMatch *regexp.Regexp + PathsExist []string + RepositoryMatch *regexp.Regexp + type GithubProvider struct + func NewGithubProvider(ctx context.Context, organization string, token string, url string, ...) (*GithubProvider, error) + func (g *GithubProvider) ListRepos(ctx context.Context, cloneProtocol string) ([]*Repository, error) + func (g *GithubProvider) RepoHasPath(ctx context.Context, repo *Repository, path string) (bool, error) + type GitlabProvider struct + func NewGitlabProvider(ctx context.Context, organization string, token string, url string, ...) (*GitlabProvider, error) + func (g *GitlabProvider) ListRepos(ctx context.Context, cloneProtocol string) ([]*Repository, error) + func (g *GitlabProvider) RepoHasPath(_ context.Context, repo *Repository, path string) (bool, error) + type MockProvider struct + Repos []*Repository + func (*MockProvider) RepoHasPath(_ context.Context, repo *Repository, path string) (bool, error) + func (m *MockProvider) ListRepos(_ context.Context, _ string) ([]*Repository, error) + type Repository struct + Branch string + Labels []string + Organization string + Repository string + SHA string + URL string + func ListRepos(ctx context.Context, provider SCMProviderService, ...) ([]*Repository, error) + type SCMProviderService interface + ListRepos func(context.Context, string) ([]*Repository, error) + RepoHasPath func(context.Context, *Repository, string) (bool, error)