Documentation
¶
Index ¶
- Constants
- type Client
- type GitLabRepo
- func (gl GitLabRepo) BuildGitURL(baseURL string) string
- func (gl GitLabRepo) GetDefaultBranch() string
- func (gl GitLabRepo) GetForksCount() int
- func (gl GitLabRepo) GetHasDiscussion() bool
- func (gl GitLabRepo) GetHasIssues() bool
- func (gl GitLabRepo) GetHasWiki() bool
- func (gl GitLabRepo) GetIsEmpty() bool
- func (gl GitLabRepo) GetIsFork() bool
- func (gl GitLabRepo) GetIsTemplate() bool
- func (gl GitLabRepo) GetLicense() string
- func (gl GitLabRepo) GetOpenIssuesCount() int
- func (gl GitLabRepo) GetOrganizationID() int
- func (gl GitLabRepo) GetPrimaryLanguage() string
- func (gl GitLabRepo) GetProviderName() string
- func (gl GitLabRepo) GetRepoIdentifier() string
- func (gl GitLabRepo) GetRepositoryID() int
- func (gl GitLabRepo) GetSize() int
- func (gl GitLabRepo) GetStarsCount() int
- 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 ID int IsEmpty bool IssuesCount int HasIssues bool HasWiki bool License string DefaultBranch string }
func (GitLabRepo) BuildGitURL ¶
func (gl GitLabRepo) BuildGitURL(baseURL string) string
func (GitLabRepo) GetDefaultBranch ¶ added in v0.15.1
func (gl GitLabRepo) GetDefaultBranch() string
func (GitLabRepo) GetForksCount ¶ added in v0.15.1
func (gl GitLabRepo) GetForksCount() int
func (GitLabRepo) GetHasDiscussion ¶ added in v0.15.1
func (gl GitLabRepo) GetHasDiscussion() bool
func (GitLabRepo) GetHasIssues ¶ added in v0.15.1
func (gl GitLabRepo) GetHasIssues() bool
func (GitLabRepo) GetHasWiki ¶ added in v0.15.1
func (gl GitLabRepo) GetHasWiki() bool
func (GitLabRepo) GetIsEmpty ¶ added in v0.15.1
func (gl GitLabRepo) GetIsEmpty() bool
func (GitLabRepo) GetIsFork ¶ added in v0.10.0
func (gl GitLabRepo) GetIsFork() bool
func (GitLabRepo) GetIsTemplate ¶ added in v0.15.1
func (gl GitLabRepo) GetIsTemplate() bool
func (GitLabRepo) GetLicense ¶ added in v0.15.1
func (gl GitLabRepo) GetLicense() string
func (GitLabRepo) GetOpenIssuesCount ¶ added in v0.15.1
func (gl GitLabRepo) GetOpenIssuesCount() int
func (GitLabRepo) GetOrganizationID ¶ added in v0.15.1
func (gl GitLabRepo) GetOrganizationID() int
func (GitLabRepo) GetPrimaryLanguage ¶ added in v0.15.1
func (gl GitLabRepo) GetPrimaryLanguage() string
func (GitLabRepo) GetProviderName ¶
func (gl GitLabRepo) GetProviderName() string
func (GitLabRepo) GetRepoIdentifier ¶
func (gl GitLabRepo) GetRepoIdentifier() string
func (GitLabRepo) GetRepositoryID ¶ added in v0.15.1
func (gl GitLabRepo) GetRepositoryID() int
func (GitLabRepo) GetSize ¶ added in v0.15.1
func (gl GitLabRepo) GetSize() int
func (GitLabRepo) GetStarsCount ¶ added in v0.15.1
func (gl GitLabRepo) GetStarsCount() int
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.