Documentation ¶
Overview ¶
Package gitlabrepo implements clients.RepoClient for GitLab.
NOTE: In Gitlab repositories are called projects, however to ensure compatibility, this package will regard to Gitlab projects as repositories.
Index ¶
- func CreateGitlabClient(ctx context.Context, host string) (clients.RepoClient, error)
- func CreateGitlabClientWithToken(ctx context.Context, token, host string) (clients.RepoClient, error)
- func CreateOssFuzzRepoClient(ctx context.Context, logger *log.Logger) (clients.RepoClient, error)
- func MakeGitlabRepo(input string) (clients.Repo, error)
- type Client
- func (client *Client) Close() error
- func (client *Client) GetBranch(branch string) (*clients.BranchRef, error)
- func (client *Client) GetCreatedAt() (time.Time, error)
- func (client *Client) GetDefaultBranch() (*clients.BranchRef, error)
- func (client *Client) GetDefaultBranchName() (string, error)
- func (client *Client) GetFileContent(filename string) ([]byte, error)
- func (client *Client) GetOrgRepoClient(ctx context.Context) (clients.RepoClient, error)
- func (client *Client) InitRepo(inputRepo clients.Repo, commitSHA string, commitDepth int) error
- func (client *Client) IsArchived() (bool, error)
- func (client *Client) ListCheckRunsForRef(ref string) ([]clients.CheckRun, error)
- func (client *Client) ListCommits() ([]clients.Commit, error)
- func (client *Client) ListContributors() ([]clients.User, error)
- func (client *Client) ListFiles(predicate func(string) (bool, error)) ([]string, error)
- func (client *Client) ListIssues() ([]clients.Issue, error)
- func (client *Client) ListLicenses() ([]clients.License, error)
- func (client *Client) ListProgrammingLanguages() ([]clients.Language, error)
- func (client *Client) ListReleases() ([]clients.Release, error)
- func (client *Client) ListStatuses(ref string) ([]clients.Status, error)
- func (client *Client) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)
- func (client *Client) ListWebhooks() ([]clients.Webhook, error)
- func (client *Client) LocalPath() (string, error)
- func (client *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)
- func (client *Client) SearchCommits(request clients.SearchCommitsOptions) ([]clients.Commit, error)
- func (client *Client) URI() string
- type GitlabGID
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateGitlabClient ¶
func CreateOssFuzzRepoClient ¶
TODO(#2266): implement CreateOssFuzzRepoClient.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetDefaultBranch ¶
func (*Client) GetDefaultBranchName ¶
func (*Client) GetFileContent ¶
func (*Client) GetOrgRepoClient ¶
func (*Client) InitRepo ¶
InitRepo sets up the GitLab project in local storage for improving performance and GitLab token usage efficiency.
func (*Client) IsArchived ¶
func (*Client) ListCheckRunsForRef ¶
func (*Client) ListLicenses ¶
ListLicenses implements RepoClient.ListLicenses.
func (*Client) ListProgrammingLanguages ¶
func (*Client) ListStatuses ¶
func (*Client) ListSuccessfulWorkflowRuns ¶
func (client *Client) ListSuccessfulWorkflowRuns(filename string) ([]clients.WorkflowRun, error)
func (*Client) Search ¶
func (client *Client) Search(request clients.SearchRequest) (clients.SearchResponse, error)
func (*Client) SearchCommits ¶
Click to show internal directories.
Click to hide internal directories.