gitlab

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

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 NewClient

func NewClient(ctx context.Context, baseUrl string, token string) (*Client, error)

func (*Client) GetProject

func (c *Client) GetProject(ctx context.Context, projectID string) (analyze.Repository, error)

func (*Client) ListGroupProjects

func (c *Client) ListGroupProjects(ctx context.Context, groupID string) <-chan analyze.RepoBatch

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

type ScmClient struct {
	analyze.ScmClient
	// contains filtered or unexported fields
}

func NewGitlabSCMClient

func NewGitlabSCMClient(ctx context.Context, baseURL string, token string) (*ScmClient, error)

func (*ScmClient) GetOrgRepos

func (s *ScmClient) GetOrgRepos(ctx context.Context, org string) <-chan analyze.RepoBatch

func (*ScmClient) GetProviderBaseURL

func (s *ScmClient) GetProviderBaseURL() string

func (*ScmClient) GetProviderName

func (s *ScmClient) GetProviderName() string

func (*ScmClient) GetProviderVersion

func (s *ScmClient) GetProviderVersion(ctx context.Context) (string, error)

func (*ScmClient) GetRepo

func (s *ScmClient) GetRepo(ctx context.Context, org string, name string) (analyze.Repository, error)

func (*ScmClient) GetToken

func (s *ScmClient) GetToken() string

func (*ScmClient) ParseRepoAndOrg

func (s *ScmClient) ParseRepoAndOrg(repoString string) (string, string, error)

Jump to

Keyboard shortcuts

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