Versions in this module Expand all Collapse all v1 v1.66.0 Aug 13, 2025 Changes in this version + func IsTokenConfigured(token string) bool v1.64.0 Jul 23, 2025 v1.63.0 Jul 15, 2025 v1.62.0 Jul 10, 2025 Changes in this version + const MaxPerPage + const NamespaceKindGroup + const NamespaceKindUser + var DefaultListLimit = 30 + var DeleteMR = func(client *gitlab.Client, projectID any, mrID int) error + var GetIssue = func(client *gitlab.Client, projectID any, issueID int) (*gitlab.Issue, error) + var GetMR = func(client *gitlab.Client, projectID any, mrID int, ...) (*gitlab.MergeRequest, error) + var GetProject = func(client *gitlab.Client, projectID any) (*gitlab.Project, error) + var ListAllMilestones = func(client *gitlab.Client, projectID any, opts *ListMilestonesOptions) ([]*Milestone, error) + var ListMRs = func(client *gitlab.Client, projectID any, ...) ([]*gitlab.BasicMergeRequest, error) + var UpdateIssue = func(client *gitlab.Client, projectID any, issueID int, ...) (*gitlab.Issue, error) + var UpdateMR = func(client *gitlab.Client, projectID any, mrID int, ...) (*gitlab.MergeRequest, error) + var UsersByNames = func(client *gitlab.Client, names []string) ([]*gitlab.User, error) + func Is404(err error) bool + func IsValidToken(token string) bool + func ListGroupMRs(client *gitlab.Client, projectID any, ...) ([]*gitlab.BasicMergeRequest, error) + func NewHTTPRequest(ctx context.Context, c *Client, method string, baseURL *url.URL, ...) (*http.Request, error) + func PipelineJobWithSha(client *gitlab.Client, pid any, sha, name string) (*gitlab.Job, error) + func PipelineJobsWithID(client *gitlab.Client, pid any, ppid int) ([]*gitlab.Job, []*gitlab.Bridge, error) + func PlayOrRetryJobs(client *gitlab.Client, repo string, jobID int, status string) (*gitlab.Job, error) + func UserByName(client *gitlab.Client, name string) (*gitlab.User, error) + type BuildInfo struct + Architecture string + Commit string + Platform string + Version string + func (i BuildInfo) UserAgent() string + type CliListMROption func(*cliListMROptions) + func WithMRAssignees(assigneeIds []int) CliListMROption + func WithMRReviewers(reviewerIds []int) CliListMROption + type Client struct + func NewClient(newAuthSource newAuthSource, options ...ClientOption) (*Client, error) + func NewClientFromConfig(repoHost string, cfg config.Config, isGraphQL bool, userAgent string) (*Client, error) + func (c *Client) AuthSource() gitlab.AuthSource + func (c *Client) HTTPClient() *http.Client + func (c *Client) Lab() *gitlab.Client + type ClientOption func(*Client) error + func WithBaseURL(baseURL string) ClientOption + func WithClientCertificate(certFile, keyFile string) ClientOption + func WithCustomCA(caFile string) ClientOption + func WithGitLabClient(client *gitlab.Client) ClientOption + func WithHTTPClient(httpClient *http.Client) ClientOption + func WithInsecureSkipVerify(skip bool) ClientOption + func WithUserAgent(userAgent string) ClientOption + type ListMilestonesOptions struct + IIDs []int + IncludeParentMilestones *bool + Page int + PerPage int + Search *string + State *string + Title *string + func (opts *ListMilestonesOptions) ListGroupMilestonesOptions() *gitlab.ListGroupMilestonesOptions + func (opts *ListMilestonesOptions) ListProjectMilestonesOptions() *gitlab.ListMilestonesOptions + type Milestone struct + ID int + Title string + func NewGroupMilestone(m *gitlab.GroupMilestone) *Milestone + func NewProjectMilestone(m *gitlab.Milestone) *Milestone