Documentation
¶
Index ¶
- Constants
- type Client
- type GitLabRepo
- type ScmClient
- func (s *ScmClient) GetOrgRepos(ctx context.Context, org string) <-chan analyze.RepoBatch
- func (s *ScmClient) GetProviderBaseURL() string
- func (s *ScmClient) GetProviderName() string
- func (s *ScmClient) GetProviderVersion(ctx context.Context) (string, error)
- func (s *ScmClient) GetRepo(ctx context.Context, org string, name string) (analyze.Repository, error)
- func (s *ScmClient) GetToken() string
- func (s *ScmClient) ParseRepoAndOrg(repoString string) (string, string, error)
Constants ¶
View Source
const GitLab string = "gitlab"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
Token string
// contains filtered or unexported fields
}
func (*Client) GetProject ¶
type GitLabRepo ¶
type GitLabRepo struct {
analyze.Repository
NameWithNamespace string
IsFork bool
IsPrivate bool
IsMirror bool
IsArchived bool
StarCount int
ForksCount int
}
func (GitLabRepo) BuildGitURL ¶
func (gl GitLabRepo) BuildGitURL(baseURL string) string
func (GitLabRepo) GetIsFork ¶ added in v0.10.0
func (gl GitLabRepo) GetIsFork() bool
func (GitLabRepo) GetProviderName ¶
func (gl GitLabRepo) GetProviderName() string
func (GitLabRepo) GetRepoIdentifier ¶
func (gl GitLabRepo) GetRepoIdentifier() string
type ScmClient ¶
func NewGitlabSCMClient ¶
func (*ScmClient) GetOrgRepos ¶
func (*ScmClient) GetProviderBaseURL ¶
func (*ScmClient) GetProviderName ¶
func (*ScmClient) GetProviderVersion ¶
Click to show internal directories.
Click to hide internal directories.