Documentation
¶
Overview ¶
Package gitlab implements a GitLab API client.
Index ¶
- Variables
- func Bool(v bool) *bool
- func CheckResponse(r *http.Response) error
- func Int(v int) *int
- func ParseHook(eventType EventType, payload []byte) (event interface{}, err error)
- func ParseSystemhook(payload []byte) (event interface{}, err error)
- func ParseWebhook(eventType EventType, payload []byte) (event interface{}, err error)
- func String(v string) *string
- func Stringify(message interface{}) string
- func Time(v time.Time) *time.Time
- type AcceptMergeRequestOptions
- type AccessControlValue
- type AccessLevelValue
- type AccessRequest
- type AccessRequestsService
- func (s *AccessRequestsService) ApproveGroupAccessRequest(gid interface{}, user int, opt *ApproveAccessRequestOptions, ...) (*AccessRequest, *Response, error)
- func (s *AccessRequestsService) ApproveProjectAccessRequest(pid interface{}, user int, opt *ApproveAccessRequestOptions, ...) (*AccessRequest, *Response, error)
- func (s *AccessRequestsService) DenyGroupAccessRequest(gid interface{}, user int, options ...RequestOptionFunc) (*Response, error)
- func (s *AccessRequestsService) DenyProjectAccessRequest(pid interface{}, user int, options ...RequestOptionFunc) (*Response, error)
- func (s *AccessRequestsService) ListGroupAccessRequests(gid interface{}, opt *ListAccessRequestsOptions, options ...RequestOptionFunc) ([]*AccessRequest, *Response, error)
- func (s *AccessRequestsService) ListProjectAccessRequests(pid interface{}, opt *ListAccessRequestsOptions, options ...RequestOptionFunc) ([]*AccessRequest, *Response, error)
- func (s *AccessRequestsService) RequestGroupAccess(gid interface{}, options ...RequestOptionFunc) (*AccessRequest, *Response, error)
- func (s *AccessRequestsService) RequestProjectAccess(pid interface{}, options ...RequestOptionFunc) (*AccessRequest, *Response, error)
- type AddClusterOptions
- type AddCommitDiscussionNoteOptions
- type AddDeployKeyOptions
- type AddEmailOptions
- type AddEpicDiscussionNoteOptions
- type AddGroupBadgeOptions
- type AddGroupClusterOptions
- type AddGroupHookOptions
- type AddGroupLDAPLinkOptions
- type AddGroupMemberOptions
- type AddGroupPlatformKubernetesOptions
- type AddGroupPushRuleOptions
- type AddHookOptions
- type AddIssueDiscussionNoteOptions
- type AddLicenseOptions
- type AddManagedLicenseOptions
- type AddMergeRequestDiscussionNoteOptions
- type AddPipelineTriggerOptions
- type AddPlatformKubernetesOptions
- type AddProjectBadgeOptions
- type AddProjectHookOptions
- type AddProjectMemberOptions
- type AddProjectMirrorOptions
- type AddProjectPushRuleOptions
- type AddSSHKeyOptions
- type AddSnippetDiscussionNoteOptions
- type AddSpentTimeOptions
- type Application
- type ApplicationsService
- func (s *ApplicationsService) CreateApplication(opt *CreateApplicationOptions, options ...RequestOptionFunc) (*Application, *Response, error)
- func (s *ApplicationsService) DeleteApplication(application int, options ...RequestOptionFunc) (*Response, error)
- func (s *ApplicationsService) ListApplications(opt *ListApplicationsOptions, options ...RequestOptionFunc) ([]*Application, *Response, error)
- type ApproveAccessRequestOptions
- type ApproveMergeRequestOptions
- type ArchiveOptions
- type AuditEvent
- type AuditEventDetails
- type AuditEventsService
- func (s *AuditEventsService) GetGroupAuditEvent(gid interface{}, event int, options ...RequestOptionFunc) (*AuditEvent, *Response, error)
- func (s *AuditEventsService) GetInstanceAuditEvent(event int, options ...RequestOptionFunc) (*AuditEvent, *Response, error)
- func (s *AuditEventsService) GetProjectAuditEvent(pid interface{}, event int, options ...RequestOptionFunc) (*AuditEvent, *Response, error)
- func (s *AuditEventsService) ListGroupAuditEvents(gid interface{}, opt *ListAuditEventsOptions, options ...RequestOptionFunc) ([]*AuditEvent, *Response, error)
- func (s *AuditEventsService) ListInstanceAuditEvents(opt *ListAuditEventsOptions, options ...RequestOptionFunc) ([]*AuditEvent, *Response, error)
- func (s *AuditEventsService) ListProjectAuditEvents(pid interface{}, opt *ListAuditEventsOptions, options ...RequestOptionFunc) ([]*AuditEvent, *Response, error)
- type Author
- type AvailabilityValue
- type Avatar
- type AvatarRequestsService
- type AwardEmoji
- type AwardEmojiService
- func (s *AwardEmojiService) CreateIssueAwardEmoji(pid interface{}, issueIID int, opt *CreateAwardEmojiOptions, ...) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) CreateIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID int, opt *CreateAwardEmojiOptions, ...) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) CreateMergeRequestAwardEmoji(pid interface{}, mergeRequestIID int, opt *CreateAwardEmojiOptions, ...) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) CreateMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID int, opt *CreateAwardEmojiOptions, ...) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) CreateSnippetAwardEmoji(pid interface{}, snippetID int, opt *CreateAwardEmojiOptions, ...) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) CreateSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID int, opt *CreateAwardEmojiOptions, ...) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) DeleteIssueAwardEmoji(pid interface{}, issueIID, awardID int, options ...RequestOptionFunc) (*Response, error)
- func (s *AwardEmojiService) DeleteIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID, awardID int, options ...RequestOptionFunc) (*Response, error)
- func (s *AwardEmojiService) DeleteMergeRequestAwardEmoji(pid interface{}, mergeRequestIID, awardID int, options ...RequestOptionFunc) (*Response, error)
- func (s *AwardEmojiService) DeleteMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID, awardID int, ...) (*Response, error)
- func (s *AwardEmojiService) DeleteSnippetAwardEmoji(pid interface{}, snippetID, awardID int, options ...RequestOptionFunc) (*Response, error)
- func (s *AwardEmojiService) DeleteSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID, awardID int, options ...RequestOptionFunc) (*Response, error)
- func (s *AwardEmojiService) GetIssueAwardEmoji(pid interface{}, issueIID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) GetIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) GetMergeRequestAwardEmoji(pid interface{}, mergeRequestIID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) GetMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID, awardID int, ...) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) GetSnippetAwardEmoji(pid interface{}, snippetID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) GetSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) ListIssueAwardEmoji(pid interface{}, issueIID int, opt *ListAwardEmojiOptions, ...) ([]*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) ListIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID int, opt *ListAwardEmojiOptions, ...) ([]*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) ListMergeRequestAwardEmoji(pid interface{}, mergeRequestIID int, opt *ListAwardEmojiOptions, ...) ([]*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) ListMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID int, opt *ListAwardEmojiOptions, ...) ([]*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) ListSnippetAwardEmoji(pid interface{}, snippetID int, opt *ListAwardEmojiOptions, ...) ([]*AwardEmoji, *Response, error)
- func (s *AwardEmojiService) ListSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID int, opt *ListAwardEmojiOptions, ...) ([]*AwardEmoji, *Response, error)
- type BadgeKind
- type BaseSystemEvent
- type BasicProject
- type BasicUser
- type BillableGroupMember
- type Blob
- type BoardList
- type BoolValue
- type Branch
- type BranchAccessDescription
- type BranchPermissionOptions
- type BranchesService
- func (s *BranchesService) CreateBranch(pid interface{}, opt *CreateBranchOptions, options ...RequestOptionFunc) (*Branch, *Response, error)
- func (s *BranchesService) DeleteBranch(pid interface{}, branch string, options ...RequestOptionFunc) (*Response, error)
- func (s *BranchesService) DeleteMergedBranches(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *BranchesService) GetBranch(pid interface{}, branch string, options ...RequestOptionFunc) (*Branch, *Response, error)
- func (s *BranchesService) ListBranches(pid interface{}, opts *ListBranchesOptions, options ...RequestOptionFunc) ([]*Branch, *Response, error)
- func (s *BranchesService) ProtectBranch(pid interface{}, branch string, opts *ProtectBranchOptions, ...) (*Branch, *Response, error)
- func (s *BranchesService) UnprotectBranch(pid interface{}, branch string, options ...RequestOptionFunc) (*Branch, *Response, error)
- type Bridge
- type BroadcastMessage
- type BroadcastMessagesService
- func (s *BroadcastMessagesService) CreateBroadcastMessage(opt *CreateBroadcastMessageOptions, options ...RequestOptionFunc) (*BroadcastMessage, *Response, error)
- func (s *BroadcastMessagesService) DeleteBroadcastMessage(broadcast int, options ...RequestOptionFunc) (*Response, error)
- func (s *BroadcastMessagesService) GetBroadcastMessage(broadcast int, options ...RequestOptionFunc) (*BroadcastMessage, *Response, error)
- func (s *BroadcastMessagesService) ListBroadcastMessages(opt *ListBroadcastMessagesOptions, options ...RequestOptionFunc) ([]*BroadcastMessage, *Response, error)
- func (s *BroadcastMessagesService) UpdateBroadcastMessage(broadcast int, opt *UpdateBroadcastMessageOptions, ...) (*BroadcastMessage, *Response, error)
- type BuildEvent
- type BuildStateValue
- type BurndownChartEvent
- type CIYMLTemplate
- type CIYMLTemplatesService
- type ChangeAllowedApproversOptions
- type ChangeApprovalConfigurationOptions
- type ChangeMergeRequestAllowedApproversOptions
- type ChangeMergeRequestApprovalConfigurationOptions
- type CherryPickCommitOptions
- type Client
- func NewBasicAuthClient(username, password string, options ...ClientOptionFunc) (*Client, error)
- func NewClient(token string, options ...ClientOptionFunc) (*Client, error)
- func NewJobClient(token string, options ...ClientOptionFunc) (*Client, error)
- func NewOAuthClient(token string, options ...ClientOptionFunc) (*Client, error)
- type ClientOptionFunc
- func WithBaseURL(urlStr string) ClientOptionFunc
- func WithCustomBackoff(backoff retryablehttp.Backoff) ClientOptionFunc
- func WithCustomLeveledLogger(leveledLogger retryablehttp.LeveledLogger) ClientOptionFunc
- func WithCustomLimiter(limiter RateLimiter) ClientOptionFunc
- func WithCustomLogger(logger retryablehttp.Logger) ClientOptionFunc
- func WithCustomRetry(checkRetry retryablehttp.CheckRetry) ClientOptionFunc
- func WithHTTPClient(httpClient *http.Client) ClientOptionFunc
- func WithoutRetries() ClientOptionFunc
- type Commit
- type CommitActionOptions
- type CommitComment
- type CommitCommentEvent
- type CommitRef
- type CommitStats
- type CommitStatus
- type CommitsService
- func (s *CommitsService) CherryPickCommit(pid interface{}, sha string, opt *CherryPickCommitOptions, ...) (*Commit, *Response, error)
- func (s *CommitsService) CreateCommit(pid interface{}, opt *CreateCommitOptions, options ...RequestOptionFunc) (*Commit, *Response, error)
- func (s *CommitsService) GetCommit(pid interface{}, sha string, options ...RequestOptionFunc) (*Commit, *Response, error)
- func (s *CommitsService) GetCommitComments(pid interface{}, sha string, opt *GetCommitCommentsOptions, ...) ([]*CommitComment, *Response, error)
- func (s *CommitsService) GetCommitDiff(pid interface{}, sha string, opt *GetCommitDiffOptions, ...) ([]*Diff, *Response, error)
- func (s *CommitsService) GetCommitRefs(pid interface{}, sha string, opt *GetCommitRefsOptions, ...) ([]*CommitRef, *Response, error)
- func (s *CommitsService) GetCommitStatuses(pid interface{}, sha string, opt *GetCommitStatusesOptions, ...) ([]*CommitStatus, *Response, error)
- func (s *CommitsService) GetGPGSiganature(pid interface{}, sha string, options ...RequestOptionFunc) (*GPGSignature, *Response, error)
- func (s *CommitsService) GetMergeRequestsByCommit(pid interface{}, sha string, options ...RequestOptionFunc) ([]*MergeRequest, *Response, error)
- func (s *CommitsService) ListCommits(pid interface{}, opt *ListCommitsOptions, options ...RequestOptionFunc) ([]*Commit, *Response, error)
- func (s *CommitsService) PostCommitComment(pid interface{}, sha string, opt *PostCommitCommentOptions, ...) (*CommitComment, *Response, error)
- func (s *CommitsService) RevertCommit(pid interface{}, sha string, opt *RevertCommitOptions, ...) (*Commit, *Response, error)
- func (s *CommitsService) SetCommitStatus(pid interface{}, sha string, opt *SetCommitStatusOptions, ...) (*CommitStatus, *Response, error)
- type Compare
- type CompareOptions
- type CompoundMetrics
- type ContainerExpirationPolicy
- type ContainerExpirationPolicyAttributes
- type ContainerRegistryService
- func (s *ContainerRegistryService) DeleteRegistryRepository(pid interface{}, repository int, options ...RequestOptionFunc) (*Response, error)
- func (s *ContainerRegistryService) DeleteRegistryRepositoryTag(pid interface{}, repository int, tagName string, options ...RequestOptionFunc) (*Response, error)
- func (s *ContainerRegistryService) DeleteRegistryRepositoryTags(pid interface{}, repository int, opt *DeleteRegistryRepositoryTagsOptions, ...) (*Response, error)
- func (s *ContainerRegistryService) GetRegistryRepositoryTagDetail(pid interface{}, repository int, tagName string, options ...RequestOptionFunc) (*RegistryRepositoryTag, *Response, error)
- func (s *ContainerRegistryService) ListRegistryRepositories(pid interface{}, opt *ListRegistryRepositoriesOptions, ...) ([]*RegistryRepository, *Response, error)
- func (s *ContainerRegistryService) ListRegistryRepositoryTags(pid interface{}, repository int, opt *ListRegistryRepositoryTagsOptions, ...) ([]*RegistryRepositoryTag, *Response, error)
- type ContributionEvent
- type Contributor
- type CreateApplicationOptions
- type CreateAwardEmojiOptions
- type CreateBranchOptions
- type CreateBroadcastMessageOptions
- type CreateCommitDiscussionOptions
- type CreateCommitOptions
- type CreateEnvironmentOptions
- type CreateEpicDiscussionOptions
- type CreateEpicNoteOptions
- type CreateEpicOptions
- type CreateFileOptions
- type CreateFreezePeriodOptions
- type CreateGroupDeployTokenOptions
- type CreateGroupIssueBoardListOptions
- type CreateGroupIssueBoardOptions
- type CreateGroupLabelOptions
- type CreateGroupMilestoneOptions
- type CreateGroupOptions
- type CreateGroupVariableOptions
- type CreateGroupWikiPageOptions
- type CreateImpersonationTokenOptions
- type CreateInstanceVariableOptions
- type CreateIssueBoardListOptions
- type CreateIssueBoardOptions
- type CreateIssueDiscussionOptions
- type CreateIssueLinkOptions
- type CreateIssueNoteOptions
- type CreateIssueOptions
- type CreateLabelOptions
- type CreateMergeRequestApprovalRuleOptions
- type CreateMergeRequestDiscussionOptions
- type CreateMergeRequestNoteOptions
- type CreateMergeRequestOptions
- type CreateMilestoneOptions
- type CreatePagesDomainOptions
- type CreatePersonalAccessTokenOptions
- type CreatePipelineOptions
- type CreatePipelineScheduleOptions
- type CreatePipelineScheduleVariableOptions
- type CreateProjectAccessTokenOptions
- type CreateProjectDeployTokenOptions
- type CreateProjectDeploymentOptions
- type CreateProjectForUserOptions
- type CreateProjectLevelRuleOptions
- type CreateProjectOptions
- type CreateProjectSnippetOptions
- type CreateProjectVariableOptions
- type CreateReleaseLinkOptions
- type CreateReleaseNoteOptionsdeprecated
- type CreateReleaseOptions
- type CreateSnippetDiscussionOptions
- type CreateSnippetNoteOptions
- type CreateSnippetOptions
- type CreateTagOptions
- type CreateUserOptions
- type CreateWikiPageOptions
- type CustomAttribute
- type CustomAttributesService
- func (s *CustomAttributesService) DeleteCustomGroupAttribute(group int, key string, options ...RequestOptionFunc) (*Response, error)
- func (s *CustomAttributesService) DeleteCustomProjectAttribute(project int, key string, options ...RequestOptionFunc) (*Response, error)
- func (s *CustomAttributesService) DeleteCustomUserAttribute(user int, key string, options ...RequestOptionFunc) (*Response, error)
- func (s *CustomAttributesService) GetCustomGroupAttribute(group int, key string, options ...RequestOptionFunc) (*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) GetCustomProjectAttribute(project int, key string, options ...RequestOptionFunc) (*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) GetCustomUserAttribute(user int, key string, options ...RequestOptionFunc) (*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) ListCustomGroupAttributes(group int, options ...RequestOptionFunc) ([]*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) ListCustomProjectAttributes(project int, options ...RequestOptionFunc) ([]*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) ListCustomUserAttributes(user int, options ...RequestOptionFunc) ([]*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) SetCustomGroupAttribute(group int, c CustomAttribute, options ...RequestOptionFunc) (*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) SetCustomProjectAttribute(project int, c CustomAttribute, options ...RequestOptionFunc) (*CustomAttribute, *Response, error)
- func (s *CustomAttributesService) SetCustomUserAttribute(user int, c CustomAttribute, options ...RequestOptionFunc) (*CustomAttribute, *Response, error)
- type CustomIssueTrackerService
- type CustomIssueTrackerServiceProperties
- type DeleteFileOptions
- type DeleteGroupLDAPLinkWithCNOrFilterOptions
- type DeleteGroupLabelOptions
- type DeleteLabelOptions
- type DeleteRegisteredRunnerOptions
- type DeleteRegistryRepositoryTagsOptions
- type DeployKey
- type DeployKeysService
- func (s *DeployKeysService) AddDeployKey(pid interface{}, opt *AddDeployKeyOptions, options ...RequestOptionFunc) (*DeployKey, *Response, error)
- func (s *DeployKeysService) DeleteDeployKey(pid interface{}, deployKey int, options ...RequestOptionFunc) (*Response, error)
- func (s *DeployKeysService) EnableDeployKey(pid interface{}, deployKey int, options ...RequestOptionFunc) (*DeployKey, *Response, error)
- func (s *DeployKeysService) GetDeployKey(pid interface{}, deployKey int, options ...RequestOptionFunc) (*DeployKey, *Response, error)
- func (s *DeployKeysService) ListAllDeployKeys(options ...RequestOptionFunc) ([]*DeployKey, *Response, error)
- func (s *DeployKeysService) ListProjectDeployKeys(pid interface{}, opt *ListProjectDeployKeysOptions, ...) ([]*DeployKey, *Response, error)
- func (s *DeployKeysService) UpdateDeployKey(pid interface{}, deployKey int, opt *UpdateDeployKeyOptions, ...) (*DeployKey, *Response, error)
- type DeployToken
- type DeployTokensService
- func (s *DeployTokensService) CreateGroupDeployToken(gid interface{}, opt *CreateGroupDeployTokenOptions, ...) (*DeployToken, *Response, error)
- func (s *DeployTokensService) CreateProjectDeployToken(pid interface{}, opt *CreateProjectDeployTokenOptions, ...) (*DeployToken, *Response, error)
- func (s *DeployTokensService) DeleteGroupDeployToken(gid interface{}, deployToken int, options ...RequestOptionFunc) (*Response, error)
- func (s *DeployTokensService) DeleteProjectDeployToken(pid interface{}, deployToken int, options ...RequestOptionFunc) (*Response, error)
- func (s *DeployTokensService) ListAllDeployTokens(options ...RequestOptionFunc) ([]*DeployToken, *Response, error)
- func (s *DeployTokensService) ListGroupDeployTokens(gid interface{}, opt *ListGroupDeployTokensOptions, ...) ([]*DeployToken, *Response, error)
- func (s *DeployTokensService) ListProjectDeployTokens(pid interface{}, opt *ListProjectDeployTokensOptions, ...) ([]*DeployToken, *Response, error)
- type Deployment
- type DeploymentEvent
- type DeploymentStatusValue
- type DeploymentsService
- func (s *DeploymentsService) CreateProjectDeployment(pid interface{}, opt *CreateProjectDeploymentOptions, ...) (*Deployment, *Response, error)
- func (s *DeploymentsService) GetProjectDeployment(pid interface{}, deployment int, options ...RequestOptionFunc) (*Deployment, *Response, error)
- func (s *DeploymentsService) ListProjectDeployments(pid interface{}, opts *ListProjectDeploymentsOptions, ...) ([]*Deployment, *Response, error)
- func (s *DeploymentsService) UpdateProjectDeployment(pid interface{}, deployment int, opt *UpdateProjectDeploymentOptions, ...) (*Deployment, *Response, error)
- type DetailedStatus
- type Diff
- type Discussion
- type DiscussionsService
- func (s *DiscussionsService) AddCommitDiscussionNote(pid interface{}, commit string, discussion string, ...) (*Note, *Response, error)
- func (s *DiscussionsService) AddEpicDiscussionNote(gid interface{}, epic int, discussion string, ...) (*Note, *Response, error)
- func (s *DiscussionsService) AddIssueDiscussionNote(pid interface{}, issue int, discussion string, ...) (*Note, *Response, error)
- func (s *DiscussionsService) AddMergeRequestDiscussionNote(pid interface{}, mergeRequest int, discussion string, ...) (*Note, *Response, error)
- func (s *DiscussionsService) AddSnippetDiscussionNote(pid interface{}, snippet int, discussion string, ...) (*Note, *Response, error)
- func (s *DiscussionsService) CreateCommitDiscussion(pid interface{}, commit string, opt *CreateCommitDiscussionOptions, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) CreateEpicDiscussion(gid interface{}, epic int, opt *CreateEpicDiscussionOptions, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) CreateIssueDiscussion(pid interface{}, issue int, opt *CreateIssueDiscussionOptions, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) CreateMergeRequestDiscussion(pid interface{}, mergeRequest int, opt *CreateMergeRequestDiscussionOptions, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) CreateSnippetDiscussion(pid interface{}, snippet int, opt *CreateSnippetDiscussionOptions, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) DeleteCommitDiscussionNote(pid interface{}, commit string, discussion string, note int, ...) (*Response, error)
- func (s *DiscussionsService) DeleteEpicDiscussionNote(gid interface{}, epic int, discussion string, note int, ...) (*Response, error)
- func (s *DiscussionsService) DeleteIssueDiscussionNote(pid interface{}, issue int, discussion string, note int, ...) (*Response, error)
- func (s *DiscussionsService) DeleteMergeRequestDiscussionNote(pid interface{}, mergeRequest int, discussion string, note int, ...) (*Response, error)
- func (s *DiscussionsService) DeleteSnippetDiscussionNote(pid interface{}, snippet int, discussion string, note int, ...) (*Response, error)
- func (s *DiscussionsService) GetCommitDiscussion(pid interface{}, commit string, discussion string, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) GetEpicDiscussion(gid interface{}, epic int, discussion string, options ...RequestOptionFunc) (*Discussion, *Response, error)
- func (s *DiscussionsService) GetIssueDiscussion(pid interface{}, issue int, discussion string, options ...RequestOptionFunc) (*Discussion, *Response, error)
- func (s *DiscussionsService) GetMergeRequestDiscussion(pid interface{}, mergeRequest int, discussion string, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) GetSnippetDiscussion(pid interface{}, snippet int, discussion string, options ...RequestOptionFunc) (*Discussion, *Response, error)
- func (s *DiscussionsService) ListCommitDiscussions(pid interface{}, commit string, opt *ListCommitDiscussionsOptions, ...) ([]*Discussion, *Response, error)
- func (s *DiscussionsService) ListGroupEpicDiscussions(gid interface{}, epic int, opt *ListGroupEpicDiscussionsOptions, ...) ([]*Discussion, *Response, error)
- func (s *DiscussionsService) ListIssueDiscussions(pid interface{}, issue int, opt *ListIssueDiscussionsOptions, ...) ([]*Discussion, *Response, error)
- func (s *DiscussionsService) ListMergeRequestDiscussions(pid interface{}, mergeRequest int, opt *ListMergeRequestDiscussionsOptions, ...) ([]*Discussion, *Response, error)
- func (s *DiscussionsService) ListSnippetDiscussions(pid interface{}, snippet int, opt *ListSnippetDiscussionsOptions, ...) ([]*Discussion, *Response, error)
- func (s *DiscussionsService) ResolveMergeRequestDiscussion(pid interface{}, mergeRequest int, discussion string, ...) (*Discussion, *Response, error)
- func (s *DiscussionsService) UpdateCommitDiscussionNote(pid interface{}, commit string, discussion string, note int, ...) (*Note, *Response, error)
- func (s *DiscussionsService) UpdateEpicDiscussionNote(gid interface{}, epic int, discussion string, note int, ...) (*Note, *Response, error)
- func (s *DiscussionsService) UpdateIssueDiscussionNote(pid interface{}, issue int, discussion string, note int, ...) (*Note, *Response, error)
- func (s *DiscussionsService) UpdateMergeRequestDiscussionNote(pid interface{}, mergeRequest int, discussion string, note int, ...) (*Note, *Response, error)
- func (s *DiscussionsService) UpdateSnippetDiscussionNote(pid interface{}, snippet int, discussion string, note int, ...) (*Note, *Response, error)
- type DownloadArtifactsFileOptions
- type DroneCIService
- type DroneCIServiceProperties
- type EditClusterOptions
- type EditEnvironmentOptions
- type EditGroupBadgeOptions
- type EditGroupClusterOptions
- type EditGroupHookOptions
- type EditGroupMemberOptions
- type EditGroupPlatformKubernetesOptions
- type EditGroupPushRuleOptions
- type EditGroupWikiPageOptions
- type EditManagedLicenceOptions
- type EditPipelineScheduleOptions
- type EditPipelineScheduleVariableOptions
- type EditPipelineTriggerOptions
- type EditPlatformKubernetesOptions
- type EditProjectBadgeOptions
- type EditProjectHookOptions
- type EditProjectMemberOptions
- type EditProjectMirrorOptions
- type EditProjectOptions
- type EditProjectPushRuleOptions
- type EditWikiPageOptions
- type Email
- type EnableProjectRunnerOptions
- type Environment
- type EnvironmentAccessDescription
- type EnvironmentAccessOptions
- type EnvironmentsService
- func (s *EnvironmentsService) CreateEnvironment(pid interface{}, opt *CreateEnvironmentOptions, options ...RequestOptionFunc) (*Environment, *Response, error)
- func (s *EnvironmentsService) DeleteEnvironment(pid interface{}, environment int, options ...RequestOptionFunc) (*Response, error)
- func (s *EnvironmentsService) EditEnvironment(pid interface{}, environment int, opt *EditEnvironmentOptions, ...) (*Environment, *Response, error)
- func (s *EnvironmentsService) GetEnvironment(pid interface{}, environment int, options ...RequestOptionFunc) (*Environment, *Response, error)
- func (s *EnvironmentsService) ListEnvironments(pid interface{}, opts *ListEnvironmentsOptions, options ...RequestOptionFunc) ([]*Environment, *Response, error)
- func (s *EnvironmentsService) StopEnvironment(pid interface{}, environmentID int, options ...RequestOptionFunc) (*Response, error)
- type Epic
- type EpicAuthor
- type EpicIssueAssignment
- type EpicIssuesService
- func (s *EpicIssuesService) AssignEpicIssue(gid interface{}, epic, issue int, options ...RequestOptionFunc) (*EpicIssueAssignment, *Response, error)
- func (s *EpicIssuesService) ListEpicIssues(gid interface{}, epic int, opt *ListOptions, options ...RequestOptionFunc) ([]*Issue, *Response, error)
- func (s *EpicIssuesService) RemoveEpicIssue(gid interface{}, epic, epicIssue int, options ...RequestOptionFunc) (*EpicIssueAssignment, *Response, error)
- func (s *EpicIssuesService) UpdateEpicIssueAssignment(gid interface{}, epic, epicIssue int, opt *UpdateEpicIsssueAssignmentOptions, ...) ([]*Issue, *Response, error)
- type EpicsService
- func (s *EpicsService) CreateEpic(gid interface{}, opt *CreateEpicOptions, options ...RequestOptionFunc) (*Epic, *Response, error)
- func (s *EpicsService) DeleteEpic(gid interface{}, epic int, options ...RequestOptionFunc) (*Response, error)
- func (s *EpicsService) GetEpic(gid interface{}, epic int, options ...RequestOptionFunc) (*Epic, *Response, error)
- func (s *EpicsService) GetEpicLinks(gid interface{}, epic int, options ...RequestOptionFunc) ([]*Epic, *Response, error)
- func (s *EpicsService) ListGroupEpics(gid interface{}, opt *ListGroupEpicsOptions, options ...RequestOptionFunc) ([]*Epic, *Response, error)
- func (s *EpicsService) UpdateEpic(gid interface{}, epic int, opt *UpdateEpicOptions, ...) (*Epic, *Response, error)
- type ErrorResponse
- type EventTargetTypeValue
- type EventType
- type EventTypeValue
- type EventUser
- type EventsService
- func (s *EventsService) ListCurrentUserContributionEvents(opt *ListContributionEventsOptions, options ...RequestOptionFunc) ([]*ContributionEvent, *Response, error)
- func (s *EventsService) ListProjectVisibleEvents(pid interface{}, opt *ListContributionEventsOptions, ...) ([]*ContributionEvent, *Response, error)
- type ExploreSnippetsOptions
- type ExportStatus
- type ExternalWikiService
- type ExternalWikiServiceProperties
- type Feature
- type FeaturesService
- type File
- type FileActionValue
- type FileBlameRange
- type FileInfo
- type ForkParent
- type ForkProjectOptions
- type FreezePeriod
- type FreezePeriodsService
- func (s *FreezePeriodsService) CreateFreezePeriodOptions(pid interface{}, opt *CreateFreezePeriodOptions, options ...RequestOptionFunc) (*FreezePeriod, *Response, error)
- func (s *FreezePeriodsService) DeleteFreezePeriod(pid interface{}, freezePeriod int, options ...RequestOptionFunc) (*Response, error)
- func (s *FreezePeriodsService) GetFreezePeriod(pid interface{}, freezePeriod int, options ...RequestOptionFunc) (*FreezePeriod, *Response, error)
- func (s *FreezePeriodsService) ListFreezePeriods(pid interface{}, opt *ListFreezePeriodsOptions, options ...RequestOptionFunc) ([]*FreezePeriod, *Response, error)
- func (s *FreezePeriodsService) UpdateFreezePeriodOptions(pid interface{}, freezePeriod int, opt *UpdateFreezePeriodOptions, ...) (*FreezePeriod, *Response, error)
- type GPGSignature
- type Gate
- type GetAllImpersonationTokensOptions
- type GetAvatarOptions
- type GetCommitCommentsOptions
- type GetCommitDiffOptions
- type GetCommitRefsOptions
- type GetCommitStatusesOptions
- type GetFileBlameOptions
- type GetFileMetaDataOptions
- type GetFileOptions
- type GetGroupIssuesStatisticsOptions
- type GetGroupMilestoneBurndownChartEventsOptions
- type GetGroupMilestoneIssuesOptions
- type GetGroupMilestoneMergeRequestsOptions
- type GetGroupOptions
- type GetIssueBoardListsOptions
- type GetIssuesClosedOnMergeOptions
- type GetIssuesStatisticsOptions
- type GetJobTokensJobOptions
- type GetLicenseTemplateOptions
- type GetMergeRequestChangesOptions
- type GetMergeRequestCommitsOptions
- type GetMergeRequestDiffVersionsOptions
- type GetMergeRequestsOptions
- type GetMilestoneIssuesOptions
- type GetMilestoneMergeRequestsOptions
- type GetProjectEventsOptions
- type GetProjectIssuesStatisticsOptions
- type GetProjectOptions
- type GetRawFileOptions
- type GetUserActivitiesOptions
- type GetUserMembershipOptions
- type GetUsersOptions
- type GitIgnoreTemplate
- type GitIgnoreTemplatesService
- type GithubService
- type GithubServiceProperties
- type Group
- type GroupAccess
- type GroupBadge
- type GroupBadgePreviewOptions
- type GroupBadgesService
- func (s *GroupBadgesService) AddGroupBadge(gid interface{}, opt *AddGroupBadgeOptions, options ...RequestOptionFunc) (*GroupBadge, *Response, error)
- func (s *GroupBadgesService) DeleteGroupBadge(gid interface{}, badge int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupBadgesService) EditGroupBadge(gid interface{}, badge int, opt *EditGroupBadgeOptions, ...) (*GroupBadge, *Response, error)
- func (s *GroupBadgesService) GetGroupBadge(gid interface{}, badge int, options ...RequestOptionFunc) (*GroupBadge, *Response, error)
- func (s *GroupBadgesService) ListGroupBadges(gid interface{}, opt *ListGroupBadgesOptions, options ...RequestOptionFunc) ([]*GroupBadge, *Response, error)
- func (s *GroupBadgesService) PreviewGroupBadge(gid interface{}, opt *GroupBadgePreviewOptions, options ...RequestOptionFunc) (*GroupBadge, *Response, error)
- type GroupCluster
- type GroupClustersService
- func (s *GroupClustersService) AddCluster(pid interface{}, opt *AddGroupClusterOptions, options ...RequestOptionFunc) (*GroupCluster, *Response, error)
- func (s *GroupClustersService) DeleteCluster(pid interface{}, cluster int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupClustersService) EditCluster(pid interface{}, cluster int, opt *EditGroupClusterOptions, ...) (*GroupCluster, *Response, error)
- func (s *GroupClustersService) GetCluster(pid interface{}, cluster int, options ...RequestOptionFunc) (*GroupCluster, *Response, error)
- func (s *GroupClustersService) ListClusters(pid interface{}, options ...RequestOptionFunc) ([]*GroupCluster, *Response, error)
- type GroupHook
- type GroupImportExportService
- func (s *GroupImportExportService) ExportDownload(gid interface{}, options ...RequestOptionFunc) (*bytes.Reader, *Response, error)
- func (s *GroupImportExportService) ImportFile(opt *GroupImportFileOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupImportExportService) ScheduleExport(gid interface{}, options ...RequestOptionFunc) (*Response, error)
- type GroupImportFileOptions
- type GroupIssueBoard
- type GroupIssueBoardsService
- func (s *GroupIssueBoardsService) CreateGroupIssueBoard(gid interface{}, opt *CreateGroupIssueBoardOptions, ...) (*GroupIssueBoard, *Response, error)
- func (s *GroupIssueBoardsService) CreateGroupIssueBoardList(gid interface{}, board int, opt *CreateGroupIssueBoardListOptions, ...) (*BoardList, *Response, error)
- func (s *GroupIssueBoardsService) DeleteGroupIssueBoardList(gid interface{}, board, list int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupIssueBoardsService) DeleteIssueBoard(gid interface{}, board int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupIssueBoardsService) GetGroupIssueBoard(gid interface{}, board int, options ...RequestOptionFunc) (*GroupIssueBoard, *Response, error)
- func (s *GroupIssueBoardsService) GetGroupIssueBoardList(gid interface{}, board, list int, options ...RequestOptionFunc) (*BoardList, *Response, error)
- func (s *GroupIssueBoardsService) ListGroupIssueBoardLists(gid interface{}, board int, opt *ListGroupIssueBoardListsOptions, ...) ([]*BoardList, *Response, error)
- func (s *GroupIssueBoardsService) ListGroupIssueBoards(gid interface{}, opt *ListGroupIssueBoardsOptions, ...) ([]*GroupIssueBoard, *Response, error)
- func (s *GroupIssueBoardsService) UpdateIssueBoard(gid interface{}, board int, opt *UpdateGroupIssueBoardOptions, ...) (*GroupIssueBoard, *Response, error)
- func (s *GroupIssueBoardsService) UpdateIssueBoardList(gid interface{}, board, list int, opt *UpdateGroupIssueBoardListOptions, ...) ([]*BoardList, *Response, error)
- type GroupLabel
- type GroupLabelsService
- func (s *GroupLabelsService) CreateGroupLabel(gid interface{}, opt *CreateGroupLabelOptions, options ...RequestOptionFunc) (*GroupLabel, *Response, error)
- func (s *GroupLabelsService) DeleteGroupLabel(gid interface{}, opt *DeleteGroupLabelOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupLabelsService) GetGroupLabel(gid interface{}, labelID interface{}, options ...RequestOptionFunc) (*GroupLabel, *Response, error)
- func (s *GroupLabelsService) ListGroupLabels(gid interface{}, opt *ListGroupLabelsOptions, options ...RequestOptionFunc) ([]*GroupLabel, *Response, error)
- func (s *GroupLabelsService) SubscribeToGroupLabel(gid interface{}, labelID interface{}, options ...RequestOptionFunc) (*GroupLabel, *Response, error)
- func (s *GroupLabelsService) UnsubscribeFromGroupLabel(gid interface{}, labelID interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupLabelsService) UpdateGroupLabel(gid interface{}, opt *UpdateGroupLabelOptions, options ...RequestOptionFunc) (*GroupLabel, *Response, error)
- type GroupMember
- type GroupMemberSAMLIdentity
- type GroupMembersService
- func (s *GroupMembersService) AddGroupMember(gid interface{}, opt *AddGroupMemberOptions, options ...RequestOptionFunc) (*GroupMember, *Response, error)
- func (s *GroupMembersService) DeleteShareWithGroup(gid interface{}, groupID int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupMembersService) EditGroupMember(gid interface{}, user int, opt *EditGroupMemberOptions, ...) (*GroupMember, *Response, error)
- func (s *GroupMembersService) GetGroupMember(gid interface{}, user int, options ...RequestOptionFunc) (*GroupMember, *Response, error)
- func (s *GroupMembersService) RemoveGroupMember(gid interface{}, user int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupMembersService) ShareWithGroup(gid interface{}, opt *ShareWithGroupOptions, options ...RequestOptionFunc) (*Group, *Response, error)
- type GroupMilestone
- type GroupMilestonesService
- func (s *GroupMilestonesService) CreateGroupMilestone(gid interface{}, opt *CreateGroupMilestoneOptions, ...) (*GroupMilestone, *Response, error)
- func (s *GroupMilestonesService) GetGroupMilestone(gid interface{}, milestone int, options ...RequestOptionFunc) (*GroupMilestone, *Response, error)
- func (s *GroupMilestonesService) GetGroupMilestoneBurndownChartEvents(gid interface{}, milestone int, ...) ([]*BurndownChartEvent, *Response, error)
- func (s *GroupMilestonesService) GetGroupMilestoneIssues(gid interface{}, milestone int, opt *GetGroupMilestoneIssuesOptions, ...) ([]*Issue, *Response, error)
- func (s *GroupMilestonesService) GetGroupMilestoneMergeRequests(gid interface{}, milestone int, opt *GetGroupMilestoneMergeRequestsOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *GroupMilestonesService) ListGroupMilestones(gid interface{}, opt *ListGroupMilestonesOptions, options ...RequestOptionFunc) ([]*GroupMilestone, *Response, error)
- func (s *GroupMilestonesService) UpdateGroupMilestone(gid interface{}, milestone int, opt *UpdateGroupMilestoneOptions, ...) (*GroupMilestone, *Response, error)
- type GroupPushRules
- type GroupSystemEvent
- type GroupVariable
- type GroupVariablesService
- func (s *GroupVariablesService) CreateVariable(gid interface{}, opt *CreateGroupVariableOptions, options ...RequestOptionFunc) (*GroupVariable, *Response, error)
- func (s *GroupVariablesService) GetVariable(gid interface{}, key string, options ...RequestOptionFunc) (*GroupVariable, *Response, error)
- func (s *GroupVariablesService) ListVariables(gid interface{}, opt *ListGroupVariablesOptions, options ...RequestOptionFunc) ([]*GroupVariable, *Response, error)
- func (s *GroupVariablesService) RemoveVariable(gid interface{}, key string, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupVariablesService) UpdateVariable(gid interface{}, key string, opt *UpdateGroupVariableOptions, ...) (*GroupVariable, *Response, error)
- type GroupWiki
- type GroupWikisService
- func (s *GroupWikisService) CreateGroupWikiPage(gid interface{}, opt *CreateGroupWikiPageOptions, options ...RequestOptionFunc) (*GroupWiki, *Response, error)
- func (s *GroupWikisService) DeleteGroupWikiPage(gid interface{}, slug string, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupWikisService) EditGroupWikiPage(gid interface{}, slug string, opt *EditGroupWikiPageOptions, ...) (*GroupWiki, *Response, error)
- func (s *GroupWikisService) GetGroupWikiPage(gid interface{}, slug string, options ...RequestOptionFunc) (*GroupWiki, *Response, error)
- func (s *GroupWikisService) ListGroupWikis(gid interface{}, opt *ListGroupWikisOptions, options ...RequestOptionFunc) ([]*GroupWiki, *Response, error)
- type GroupsService
- func (s *GroupsService) AddGroupHook(gid interface{}, opt *AddGroupHookOptions, options ...RequestOptionFunc) (*GroupHook, *Response, error)
- func (s *GroupsService) AddGroupLDAPLink(gid interface{}, opt *AddGroupLDAPLinkOptions, options ...RequestOptionFunc) (*LDAPGroupLink, *Response, error)
- func (s *GroupsService) AddGroupPushRule(gid interface{}, opt *AddGroupPushRuleOptions, options ...RequestOptionFunc) (*GroupPushRules, *Response, error)
- func (s *GroupsService) CreateGroup(opt *CreateGroupOptions, options ...RequestOptionFunc) (*Group, *Response, error)
- func (s *GroupsService) DeleteGroup(gid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupsService) DeleteGroupHook(pid interface{}, hook int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupsService) DeleteGroupLDAPLink(gid interface{}, cn string, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupsService) DeleteGroupLDAPLinkForProvider(gid interface{}, provider, cn string, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupsService) DeleteGroupLDAPLinkWithCNOrFilter(gid interface{}, opts *DeleteGroupLDAPLinkWithCNOrFilterOptions, ...) (*Response, error)
- func (s *GroupsService) DeleteGroupPushRule(gid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupsService) EditGroupHook(pid interface{}, hook int, opt *EditGroupHookOptions, ...) (*GroupHook, *Response, error)
- func (s *GroupsService) EditGroupPushRule(gid interface{}, opt *EditGroupPushRuleOptions, options ...RequestOptionFunc) (*GroupPushRules, *Response, error)
- func (s *GroupsService) GetGroup(gid interface{}, opt *GetGroupOptions, options ...RequestOptionFunc) (*Group, *Response, error)
- func (s *GroupsService) GetGroupHook(pid interface{}, hook int, options ...RequestOptionFunc) (*GroupHook, *Response, error)
- func (s *GroupsService) GetGroupPushRules(gid interface{}, options ...RequestOptionFunc) (*GroupPushRules, *Response, error)
- func (s *GroupsService) ListAllGroupMembers(gid interface{}, opt *ListGroupMembersOptions, options ...RequestOptionFunc) ([]*GroupMember, *Response, error)
- func (s *GroupsService) ListBillableGroupMembers(gid interface{}, opt *ListBillableGroupMembersOptions, ...) ([]*BillableGroupMember, *Response, error)
- func (s *GroupsService) ListDescendantGroups(gid interface{}, opt *ListDescendantGroupsOptions, ...) ([]*Group, *Response, error)
- func (s *GroupsService) ListGroupHooks(gid interface{}) ([]*GroupHook, *Response, error)
- func (s *GroupsService) ListGroupLDAPLinks(gid interface{}, options ...RequestOptionFunc) ([]*LDAPGroupLink, *Response, error)
- func (s *GroupsService) ListGroupMembers(gid interface{}, opt *ListGroupMembersOptions, options ...RequestOptionFunc) ([]*GroupMember, *Response, error)
- func (s *GroupsService) ListGroupProjects(gid interface{}, opt *ListGroupProjectsOptions, options ...RequestOptionFunc) ([]*Project, *Response, error)
- func (s *GroupsService) ListGroups(opt *ListGroupsOptions, options ...RequestOptionFunc) ([]*Group, *Response, error)
- func (s *GroupsService) ListSubgroups(gid interface{}, opt *ListSubgroupsOptions, options ...RequestOptionFunc) ([]*Group, *Response, error)
- func (s *GroupsService) RemoveBillableGroupMember(gid interface{}, user int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupsService) RestoreGroup(gid interface{}, options ...RequestOptionFunc) (*Group, *Response, error)
- func (s *GroupsService) SearchGroup(query string, options ...RequestOptionFunc) ([]*Group, *Response, error)
- func (s *GroupsService) ShareGroupWithGroup(gid interface{}, opt *ShareGroupWithGroupOptions, options ...RequestOptionFunc) (*Group, *Response, error)
- func (s *GroupsService) TransferGroup(gid interface{}, pid interface{}, options ...RequestOptionFunc) (*Group, *Response, error)
- func (s *GroupsService) UnshareGroupFromGroup(gid interface{}, groupID int, options ...RequestOptionFunc) (*Response, error)
- func (s *GroupsService) UpdateGroup(gid interface{}, opt *UpdateGroupOptions, options ...RequestOptionFunc) (*Group, *Response, error)
- type Hook
- type HookEvent
- type ISOTime
- type ImpersonationToken
- type ImportFileOptions
- type ImportStatus
- type InstanceCluster
- type InstanceClustersService
- func (s *InstanceClustersService) AddCluster(opt *AddClusterOptions, options ...RequestOptionFunc) (*InstanceCluster, *Response, error)
- func (s *InstanceClustersService) DeleteCluster(cluster int, options ...RequestOptionFunc) (*Response, error)
- func (s *InstanceClustersService) EditCluster(cluster int, opt *EditClusterOptions, options ...RequestOptionFunc) (*InstanceCluster, *Response, error)
- func (s *InstanceClustersService) GetCluster(cluster int, options ...RequestOptionFunc) (*InstanceCluster, *Response, error)
- func (s *InstanceClustersService) ListClusters(options ...RequestOptionFunc) ([]*InstanceCluster, *Response, error)
- type InstanceVariable
- type InstanceVariablesService
- func (s *InstanceVariablesService) CreateVariable(opt *CreateInstanceVariableOptions, options ...RequestOptionFunc) (*InstanceVariable, *Response, error)
- func (s *InstanceVariablesService) GetVariable(key string, options ...RequestOptionFunc) (*InstanceVariable, *Response, error)
- func (s *InstanceVariablesService) ListVariables(opt *ListInstanceVariablesOptions, options ...RequestOptionFunc) ([]*InstanceVariable, *Response, error)
- func (s *InstanceVariablesService) RemoveVariable(key string, options ...RequestOptionFunc) (*Response, error)
- func (s *InstanceVariablesService) UpdateVariable(key string, opt *UpdateInstanceVariableOptions, options ...RequestOptionFunc) (*InstanceVariable, *Response, error)
- type InvitesOptions
- type InvitesResult
- type InvitesService
- func (s *InvitesService) GroupInvites(gid interface{}, opt *InvitesOptions, options ...RequestOptionFunc) (*InvitesResult, *Response, error)
- func (s *InvitesService) ListPendingGroupInvitations(gid interface{}, opt *ListPendingInvitationsOptions, ...) ([]*PendingInvite, *Response, error)
- func (s *InvitesService) ListPendingProjectInvitations(pid interface{}, opt *ListPendingInvitationsOptions, ...) ([]*PendingInvite, *Response, error)
- func (s *InvitesService) ProjectInvites(pid interface{}, opt *InvitesOptions, options ...RequestOptionFunc) (*InvitesResult, *Response, error)
- type Issue
- type IssueAssignee
- type IssueAuthor
- type IssueBoard
- type IssueBoardsService
- func (s *IssueBoardsService) CreateIssueBoard(pid interface{}, opt *CreateIssueBoardOptions, options ...RequestOptionFunc) (*IssueBoard, *Response, error)
- func (s *IssueBoardsService) CreateIssueBoardList(pid interface{}, board int, opt *CreateIssueBoardListOptions, ...) (*BoardList, *Response, error)
- func (s *IssueBoardsService) DeleteIssueBoard(pid interface{}, board int, options ...RequestOptionFunc) (*Response, error)
- func (s *IssueBoardsService) DeleteIssueBoardList(pid interface{}, board, list int, options ...RequestOptionFunc) (*Response, error)
- func (s *IssueBoardsService) GetIssueBoard(pid interface{}, board int, options ...RequestOptionFunc) (*IssueBoard, *Response, error)
- func (s *IssueBoardsService) GetIssueBoardList(pid interface{}, board, list int, options ...RequestOptionFunc) (*BoardList, *Response, error)
- func (s *IssueBoardsService) GetIssueBoardLists(pid interface{}, board int, opt *GetIssueBoardListsOptions, ...) ([]*BoardList, *Response, error)
- func (s *IssueBoardsService) ListIssueBoards(pid interface{}, opt *ListIssueBoardsOptions, options ...RequestOptionFunc) ([]*IssueBoard, *Response, error)
- func (s *IssueBoardsService) UpdateIssueBoard(pid interface{}, board int, opt *UpdateIssueBoardOptions, ...) (*IssueBoard, *Response, error)
- func (s *IssueBoardsService) UpdateIssueBoardList(pid interface{}, board, list int, opt *UpdateIssueBoardListOptions, ...) (*BoardList, *Response, error)
- type IssueCloser
- type IssueCommentEvent
- type IssueEvent
- type IssueLink
- type IssueLinks
- type IssueLinksService
- func (s *IssueLinksService) CreateIssueLink(pid interface{}, issueIID int, opt *CreateIssueLinkOptions, ...) (*IssueLink, *Response, error)
- func (s *IssueLinksService) DeleteIssueLink(pid interface{}, issueIID, issueLinkID int, options ...RequestOptionFunc) (*IssueLink, *Response, error)
- func (s *IssueLinksService) ListIssueRelations(pid interface{}, issueIID int, options ...RequestOptionFunc) ([]*Issue, *Response, error)
- type IssueReferences
- type IssuesService
- func (s *IssuesService) AddSpentTime(pid interface{}, issue int, opt *AddSpentTimeOptions, ...) (*TimeStats, *Response, error)
- func (s *IssuesService) CreateIssue(pid interface{}, opt *CreateIssueOptions, options ...RequestOptionFunc) (*Issue, *Response, error)
- func (s *IssuesService) CreateTodo(pid interface{}, issue int, options ...RequestOptionFunc) (*Todo, *Response, error)
- func (s *IssuesService) DeleteIssue(pid interface{}, issue int, options ...RequestOptionFunc) (*Response, error)
- func (s *IssuesService) GetIssue(pid interface{}, issue int, options ...RequestOptionFunc) (*Issue, *Response, error)
- func (s *IssuesService) GetParticipants(pid interface{}, issue int, options ...RequestOptionFunc) ([]*BasicUser, *Response, error)
- func (s *IssuesService) GetTimeSpent(pid interface{}, issue int, options ...RequestOptionFunc) (*TimeStats, *Response, error)
- func (s *IssuesService) ListGroupIssues(pid interface{}, opt *ListGroupIssuesOptions, options ...RequestOptionFunc) ([]*Issue, *Response, error)
- func (s *IssuesService) ListIssues(opt *ListIssuesOptions, options ...RequestOptionFunc) ([]*Issue, *Response, error)
- func (s *IssuesService) ListMergeRequestsClosingIssue(pid interface{}, issue int, opt *ListMergeRequestsClosingIssueOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *IssuesService) ListMergeRequestsRelatedToIssue(pid interface{}, issue int, opt *ListMergeRequestsRelatedToIssueOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *IssuesService) ListProjectIssues(pid interface{}, opt *ListProjectIssuesOptions, options ...RequestOptionFunc) ([]*Issue, *Response, error)
- func (s *IssuesService) MoveIssue(pid interface{}, issue int, opt *MoveIssueOptions, ...) (*Issue, *Response, error)
- func (s *IssuesService) ResetSpentTime(pid interface{}, issue int, options ...RequestOptionFunc) (*TimeStats, *Response, error)
- func (s *IssuesService) ResetTimeEstimate(pid interface{}, issue int, options ...RequestOptionFunc) (*TimeStats, *Response, error)
- func (s *IssuesService) SetTimeEstimate(pid interface{}, issue int, opt *SetTimeEstimateOptions, ...) (*TimeStats, *Response, error)
- func (s *IssuesService) SubscribeToIssue(pid interface{}, issue int, options ...RequestOptionFunc) (*Issue, *Response, error)
- func (s *IssuesService) UnsubscribeFromIssue(pid interface{}, issue int, options ...RequestOptionFunc) (*Issue, *Response, error)
- func (s *IssuesService) UpdateIssue(pid interface{}, issue int, opt *UpdateIssueOptions, ...) (*Issue, *Response, error)
- type IssuesStatistics
- type IssuesStatisticsService
- func (s *IssuesStatisticsService) GetGroupIssuesStatistics(gid interface{}, opt *GetGroupIssuesStatisticsOptions, ...) (*IssuesStatistics, *Response, error)
- func (s *IssuesStatisticsService) GetIssuesStatistics(opt *GetIssuesStatisticsOptions, options ...RequestOptionFunc) (*IssuesStatistics, *Response, error)
- func (s *IssuesStatisticsService) GetProjectIssuesStatistics(pid interface{}, opt *GetProjectIssuesStatisticsOptions, ...) (*IssuesStatistics, *Response, error)
- type JenkinsCIService
- type JenkinsCIServiceProperties
- type JiraService
- type JiraServiceProperties
- type Job
- type JobEvent
- type JobStats
- type JobsService
- func (s *JobsService) CancelJob(pid interface{}, jobID int, options ...RequestOptionFunc) (*Job, *Response, error)
- func (s *JobsService) DeleteArtifacts(pid interface{}, jobID int, options ...RequestOptionFunc) (*Job, *Response, error)
- func (s *JobsService) DownloadArtifactsFile(pid interface{}, refName string, opt *DownloadArtifactsFileOptions, ...) (*bytes.Reader, *Response, error)
- func (s *JobsService) DownloadSingleArtifactsFile(pid interface{}, jobID int, artifactPath string, options ...RequestOptionFunc) (*bytes.Reader, *Response, error)
- func (s *JobsService) EraseJob(pid interface{}, jobID int, options ...RequestOptionFunc) (*Job, *Response, error)
- func (s *JobsService) GetJob(pid interface{}, jobID int, options ...RequestOptionFunc) (*Job, *Response, error)
- func (s *JobsService) GetJobArtifacts(pid interface{}, jobID int, options ...RequestOptionFunc) (*bytes.Reader, *Response, error)
- func (s *JobsService) GetJobTokensJob(opts *GetJobTokensJobOptions, options ...RequestOptionFunc) (*Job, *Response, error)
- func (s *JobsService) GetTraceFile(pid interface{}, jobID int, options ...RequestOptionFunc) (*bytes.Reader, *Response, error)
- func (s *JobsService) KeepArtifacts(pid interface{}, jobID int, options ...RequestOptionFunc) (*Job, *Response, error)
- func (s *JobsService) ListPipelineBridges(pid interface{}, pipelineID int, opts *ListJobsOptions, ...) ([]*Bridge, *Response, error)
- func (s *JobsService) ListPipelineJobs(pid interface{}, pipelineID int, opts *ListJobsOptions, ...) ([]*Job, *Response, error)
- func (s *JobsService) ListProjectJobs(pid interface{}, opts *ListJobsOptions, options ...RequestOptionFunc) ([]*Job, *Response, error)
- func (s *JobsService) PlayJob(pid interface{}, jobID int, options ...RequestOptionFunc) (*Job, *Response, error)
- func (s *JobsService) RetryJob(pid interface{}, jobID int, options ...RequestOptionFunc) (*Job, *Response, error)
- type Key
- type KeySystemEvent
- type KeysService
- type LDAPGroupLink
- type Label
- type LabelDetails
- type LabelEvent
- type Labels
- type LabelsService
- func (s *LabelsService) CreateLabel(pid interface{}, opt *CreateLabelOptions, options ...RequestOptionFunc) (*Label, *Response, error)
- func (s *LabelsService) DeleteLabel(pid interface{}, opt *DeleteLabelOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *LabelsService) GetLabel(pid interface{}, labelID interface{}, options ...RequestOptionFunc) (*Label, *Response, error)
- func (s *LabelsService) ListLabels(pid interface{}, opt *ListLabelsOptions, options ...RequestOptionFunc) ([]*Label, *Response, error)
- func (s *LabelsService) PromoteLabel(pid interface{}, labelID interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *LabelsService) SubscribeToLabel(pid interface{}, labelID interface{}, options ...RequestOptionFunc) (*Label, *Response, error)
- func (s *LabelsService) UnsubscribeFromLabel(pid interface{}, labelID interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *LabelsService) UpdateLabel(pid interface{}, opt *UpdateLabelOptions, options ...RequestOptionFunc) (*Label, *Response, error)
- type License
- type LicenseApprovalStatusValue
- type LicenseService
- type LicenseTemplate
- type LicenseTemplatesService
- func (s *LicenseTemplatesService) GetLicenseTemplate(template string, opt *GetLicenseTemplateOptions, options ...RequestOptionFunc) (*LicenseTemplate, *Response, error)
- func (s *LicenseTemplatesService) ListLicenseTemplates(opt *ListLicenseTemplatesOptions, options ...RequestOptionFunc) ([]*LicenseTemplate, *Response, error)
- type LinePosition
- type LineRange
- type LinkTypeValue
- type Links
- type LintResult
- type ListAccessRequestsOptions
- type ListApplicationsOptions
- type ListAuditEventsOptions
- type ListAwardEmojiOptions
- type ListBillableGroupMembersOptions
- type ListBranchesOptions
- type ListBroadcastMessagesOptions
- type ListCIYMLTemplatesOptions
- type ListCommitDiscussionsOptions
- type ListCommitsOptions
- type ListContributionEventsOptions
- type ListContributorsOptions
- type ListDescendantGroupsOptions
- type ListEmailsForUserOptions
- type ListEnvironmentsOptions
- type ListEpicNotesOptions
- type ListFreezePeriodsOptions
- type ListGroupBadgesOptions
- type ListGroupDeployTokensOptions
- type ListGroupEpicDiscussionsOptions
- type ListGroupEpicsOptions
- type ListGroupIssueBoardListsOptions
- type ListGroupIssueBoardsOptions
- type ListGroupIssuesOptions
- type ListGroupLabelsOptions
- type ListGroupMembersOptions
- type ListGroupMergeRequestsOptions
- type ListGroupMilestonesOptions
- type ListGroupProjectsOptions
- type ListGroupVariablesOptions
- type ListGroupWikisOptions
- type ListGroupsOptions
- type ListGroupsRunnersOptions
- type ListInstanceVariablesOptions
- type ListIssueBoardsOptions
- type ListIssueDiscussionsOptions
- type ListIssueNotesOptions
- type ListIssuesOptions
- type ListJobsOptions
- type ListLabelEventsOptions
- type ListLabelsOptions
- type ListLicenseTemplatesOptions
- type ListMergeRequestDiscussionsOptions
- type ListMergeRequestNotesOptions
- type ListMergeRequestsClosingIssueOptions
- type ListMergeRequestsOptions
- type ListMergeRequestsRelatedToIssueOptions
- type ListMilestonesOptions
- type ListNamespacesOptions
- type ListOptions
- type ListPackageFilesOptions
- type ListPagesDomainsOptions
- type ListPendingInvitationsOptions
- type ListPipelineSchedulesOptions
- type ListPipelineTriggersOptions
- type ListProjectAccessTokensOptions
- type ListProjectBadgesOptions
- type ListProjectDeployKeysOptions
- type ListProjectDeployTokensOptions
- type ListProjectDeploymentsOptions
- type ListProjectGroupOptions
- type ListProjectHooksOptions
- type ListProjectIssuesOptions
- type ListProjectMembersOptions
- type ListProjectMergeRequestsOptions
- type ListProjectMirrorOptions
- type ListProjectPackagesOptions
- type ListProjectPipelinesOptions
- type ListProjectRunnersOptions
- type ListProjectSnippetsOptions
- type ListProjectUserOptions
- type ListProjectVariablesOptions
- type ListProjectsOptions
- type ListProtectedBranchesOptions
- type ListProtectedEnvironmentsOptions
- type ListProtectedTagsOptions
- type ListRegistryRepositoriesOptions
- type ListRegistryRepositoryTagsOptions
- type ListReleaseLinksOptions
- type ListReleasesOptions
- type ListRunnerJobsOptions
- type ListRunnersOptions
- type ListSSHKeysForUserOptions
- type ListSnippetDiscussionsOptions
- type ListSnippetNotesOptions
- type ListSnippetsOptions
- type ListStateEventsOptions
- type ListSubgroupsOptions
- type ListTagsOptions
- type ListTemplatesOptions
- type ListTodosOptions
- type ListTreeOptions
- type ListUsersOptions
- type ListWikisOptions
- type ManagedLicense
- type ManagedLicensesService
- func (s *ManagedLicensesService) AddManagedLicense(pid interface{}, opt *AddManagedLicenseOptions, options ...RequestOptionFunc) (*ManagedLicense, *Response, error)
- func (s *ManagedLicensesService) DeleteManagedLicense(pid, mlid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ManagedLicensesService) EditManagedLicense(pid, mlid interface{}, opt *EditManagedLicenceOptions, ...) (*ManagedLicense, *Response, error)
- func (s *ManagedLicensesService) GetManagedLicense(pid, mlid interface{}, options ...RequestOptionFunc) (*ManagedLicense, *Response, error)
- func (s *ManagedLicensesService) ListManagedLicenses(pid interface{}, options ...RequestOptionFunc) ([]*ManagedLicense, *Response, error)
- type ManagementProject
- type MattermostService
- type MattermostServiceProperties
- type MergeBaseOptions
- type MergeCommentEvent
- type MergeEvent
- type MergeMethodValue
- type MergeParams
- type MergeRequest
- type MergeRequestApprovalRule
- type MergeRequestApprovalState
- type MergeRequestApprovals
- type MergeRequestApprovalsService
- func (s *MergeRequestApprovalsService) ApproveMergeRequest(pid interface{}, mr int, opt *ApproveMergeRequestOptions, ...) (*MergeRequestApprovals, *Response, error)
- func (s *MergeRequestApprovalsService) ChangeAllowedApprovers(pid interface{}, mergeRequest int, ...) (*MergeRequest, *Response, error)
- func (s *MergeRequestApprovalsService) ChangeApprovalConfiguration(pid interface{}, mergeRequest int, ...) (*MergeRequest, *Response, error)
- func (s *MergeRequestApprovalsService) CreateApprovalRule(pid interface{}, mergeRequest int, opt *CreateMergeRequestApprovalRuleOptions, ...) (*MergeRequestApprovalRule, *Response, error)
- func (s *MergeRequestApprovalsService) DeleteApprovalRule(pid interface{}, mergeRequest int, approvalRule int, ...) (*Response, error)
- func (s *MergeRequestApprovalsService) GetApprovalRules(pid interface{}, mergeRequest int, options ...RequestOptionFunc) ([]*MergeRequestApprovalRule, *Response, error)
- func (s *MergeRequestApprovalsService) GetApprovalState(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*MergeRequestApprovalState, *Response, error)
- func (s *MergeRequestApprovalsService) GetConfiguration(pid interface{}, mr int, options ...RequestOptionFunc) (*MergeRequestApprovals, *Response, error)
- func (s *MergeRequestApprovalsService) UnapproveMergeRequest(pid interface{}, mr int, options ...RequestOptionFunc) (*Response, error)
- func (s *MergeRequestApprovalsService) UpdateApprovalRule(pid interface{}, mergeRequest int, approvalRule int, ...) (*MergeRequestApprovalRule, *Response, error)
- type MergeRequestApproverGroup
- type MergeRequestApproverUser
- type MergeRequestDiffVersion
- type MergeRequestsService
- func (s *MergeRequestsService) AcceptMergeRequest(pid interface{}, mergeRequest int, opt *AcceptMergeRequestOptions, ...) (*MergeRequest, *Response, error)
- func (s *MergeRequestsService) AddSpentTime(pid interface{}, mergeRequest int, opt *AddSpentTimeOptions, ...) (*TimeStats, *Response, error)
- func (s *MergeRequestsService) CancelMergeWhenPipelineSucceeds(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*MergeRequest, *Response, error)
- func (s *MergeRequestsService) CreateMergeRequest(pid interface{}, opt *CreateMergeRequestOptions, options ...RequestOptionFunc) (*MergeRequest, *Response, error)
- func (s *MergeRequestsService) CreateMergeRequestPipeline(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*PipelineInfo, *Response, error)
- func (s *MergeRequestsService) CreateTodo(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*Todo, *Response, error)
- func (s *MergeRequestsService) DeleteMergeRequest(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*Response, error)
- func (s *MergeRequestsService) GetIssuesClosedOnMerge(pid interface{}, mergeRequest int, opt *GetIssuesClosedOnMergeOptions, ...) ([]*Issue, *Response, error)
- func (s *MergeRequestsService) GetMergeRequest(pid interface{}, mergeRequest int, opt *GetMergeRequestsOptions, ...) (*MergeRequest, *Response, error)
- func (s *MergeRequestsService) GetMergeRequestApprovals(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*MergeRequestApprovals, *Response, error)
- func (s *MergeRequestsService) GetMergeRequestChanges(pid interface{}, mergeRequest int, opt *GetMergeRequestChangesOptions, ...) (*MergeRequest, *Response, error)
- func (s *MergeRequestsService) GetMergeRequestCommits(pid interface{}, mergeRequest int, opt *GetMergeRequestCommitsOptions, ...) ([]*Commit, *Response, error)
- func (s *MergeRequestsService) GetMergeRequestDiffVersions(pid interface{}, mergeRequest int, opt *GetMergeRequestDiffVersionsOptions, ...) ([]*MergeRequestDiffVersion, *Response, error)
- func (s *MergeRequestsService) GetMergeRequestParticipants(pid interface{}, mergeRequest int, options ...RequestOptionFunc) ([]*BasicUser, *Response, error)
- func (s *MergeRequestsService) GetSingleMergeRequestDiffVersion(pid interface{}, mergeRequest, version int, options ...RequestOptionFunc) (*MergeRequestDiffVersion, *Response, error)
- func (s *MergeRequestsService) GetTimeSpent(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*TimeStats, *Response, error)
- func (s *MergeRequestsService) ListGroupMergeRequests(gid interface{}, opt *ListGroupMergeRequestsOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *MergeRequestsService) ListMergeRequestPipelines(pid interface{}, mergeRequest int, options ...RequestOptionFunc) ([]*PipelineInfo, *Response, error)
- func (s *MergeRequestsService) ListMergeRequests(opt *ListMergeRequestsOptions, options ...RequestOptionFunc) ([]*MergeRequest, *Response, error)
- func (s *MergeRequestsService) ListProjectMergeRequests(pid interface{}, opt *ListProjectMergeRequestsOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *MergeRequestsService) RebaseMergeRequest(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*Response, error)
- func (s *MergeRequestsService) ResetSpentTime(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*TimeStats, *Response, error)
- func (s *MergeRequestsService) ResetTimeEstimate(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*TimeStats, *Response, error)
- func (s *MergeRequestsService) SetTimeEstimate(pid interface{}, mergeRequest int, opt *SetTimeEstimateOptions, ...) (*TimeStats, *Response, error)
- func (s *MergeRequestsService) SubscribeToMergeRequest(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*MergeRequest, *Response, error)
- func (s *MergeRequestsService) UnsubscribeFromMergeRequest(pid interface{}, mergeRequest int, options ...RequestOptionFunc) (*MergeRequest, *Response, error)
- func (s *MergeRequestsService) UpdateMergeRequest(pid interface{}, mergeRequest int, opt *UpdateMergeRequestOptions, ...) (*MergeRequest, *Response, error)
- type MicrosoftTeamsService
- type MicrosoftTeamsServiceProperties
- type Milestone
- type MilestonesService
- func (s *MilestonesService) CreateMilestone(pid interface{}, opt *CreateMilestoneOptions, options ...RequestOptionFunc) (*Milestone, *Response, error)
- func (s *MilestonesService) DeleteMilestone(pid interface{}, milestone int, options ...RequestOptionFunc) (*Response, error)
- func (s *MilestonesService) GetMilestone(pid interface{}, milestone int, options ...RequestOptionFunc) (*Milestone, *Response, error)
- func (s *MilestonesService) GetMilestoneIssues(pid interface{}, milestone int, opt *GetMilestoneIssuesOptions, ...) ([]*Issue, *Response, error)
- func (s *MilestonesService) GetMilestoneMergeRequests(pid interface{}, milestone int, opt *GetMilestoneMergeRequestsOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *MilestonesService) ListMilestones(pid interface{}, opt *ListMilestonesOptions, options ...RequestOptionFunc) ([]*Milestone, *Response, error)
- func (s *MilestonesService) UpdateMilestone(pid interface{}, milestone int, opt *UpdateMilestoneOptions, ...) (*Milestone, *Response, error)
- type ModifyUserOptions
- type MoveIssueOptions
- type Namespace
- type NamespaceExistance
- type NamespaceExistsOptions
- type NamespacesService
- func (s *NamespacesService) GetNamespace(id interface{}, options ...RequestOptionFunc) (*Namespace, *Response, error)
- func (s *NamespacesService) ListNamespaces(opt *ListNamespacesOptions, options ...RequestOptionFunc) ([]*Namespace, *Response, error)
- func (s *NamespacesService) NamespaceExists(id interface{}, opt *NamespaceExistsOptions, options ...RequestOptionFunc) (*NamespaceExistance, *Response, error)
- func (s *NamespacesService) SearchNamespace(query string, options ...RequestOptionFunc) ([]*Namespace, *Response, error)
- type Note
- type NotePosition
- type NoteTypeValue
- type NotesService
- func (s *NotesService) CreateEpicNote(gid interface{}, epic int, opt *CreateEpicNoteOptions, ...) (*Note, *Response, error)
- func (s *NotesService) CreateIssueNote(pid interface{}, issue int, opt *CreateIssueNoteOptions, ...) (*Note, *Response, error)
- func (s *NotesService) CreateMergeRequestNote(pid interface{}, mergeRequest int, opt *CreateMergeRequestNoteOptions, ...) (*Note, *Response, error)
- func (s *NotesService) CreateSnippetNote(pid interface{}, snippet int, opt *CreateSnippetNoteOptions, ...) (*Note, *Response, error)
- func (s *NotesService) DeleteEpicNote(gid interface{}, epic, note int, options ...RequestOptionFunc) (*Response, error)
- func (s *NotesService) DeleteIssueNote(pid interface{}, issue, note int, options ...RequestOptionFunc) (*Response, error)
- func (s *NotesService) DeleteMergeRequestNote(pid interface{}, mergeRequest, note int, options ...RequestOptionFunc) (*Response, error)
- func (s *NotesService) DeleteSnippetNote(pid interface{}, snippet, note int, options ...RequestOptionFunc) (*Response, error)
- func (s *NotesService) GetEpicNote(gid interface{}, epic, note int, options ...RequestOptionFunc) (*Note, *Response, error)
- func (s *NotesService) GetIssueNote(pid interface{}, issue, note int, options ...RequestOptionFunc) (*Note, *Response, error)
- func (s *NotesService) GetMergeRequestNote(pid interface{}, mergeRequest, note int, options ...RequestOptionFunc) (*Note, *Response, error)
- func (s *NotesService) GetSnippetNote(pid interface{}, snippet, note int, options ...RequestOptionFunc) (*Note, *Response, error)
- func (s *NotesService) ListEpicNotes(gid interface{}, epic int, opt *ListEpicNotesOptions, ...) ([]*Note, *Response, error)
- func (s *NotesService) ListIssueNotes(pid interface{}, issue int, opt *ListIssueNotesOptions, ...) ([]*Note, *Response, error)
- func (s *NotesService) ListMergeRequestNotes(pid interface{}, mergeRequest int, opt *ListMergeRequestNotesOptions, ...) ([]*Note, *Response, error)
- func (s *NotesService) ListSnippetNotes(pid interface{}, snippet int, opt *ListSnippetNotesOptions, ...) ([]*Note, *Response, error)
- func (s *NotesService) UpdateEpicNote(gid interface{}, epic, note int, opt *UpdateEpicNoteOptions, ...) (*Note, *Response, error)
- func (s *NotesService) UpdateIssueNote(pid interface{}, issue, note int, opt *UpdateIssueNoteOptions, ...) (*Note, *Response, error)
- func (s *NotesService) UpdateMergeRequestNote(pid interface{}, mergeRequest, note int, opt *UpdateMergeRequestNoteOptions, ...) (*Note, *Response, error)
- func (s *NotesService) UpdateSnippetNote(pid interface{}, snippet, note int, opt *UpdateSnippetNoteOptions, ...) (*Note, *Response, error)
- type NotificationEvents
- type NotificationLevelValue
- type NotificationSettings
- type NotificationSettingsOptions
- type NotificationSettingsService
- func (s *NotificationSettingsService) GetGlobalSettings(options ...RequestOptionFunc) (*NotificationSettings, *Response, error)
- func (s *NotificationSettingsService) GetSettingsForGroup(gid interface{}, options ...RequestOptionFunc) (*NotificationSettings, *Response, error)
- func (s *NotificationSettingsService) GetSettingsForProject(pid interface{}, options ...RequestOptionFunc) (*NotificationSettings, *Response, error)
- func (s *NotificationSettingsService) UpdateGlobalSettings(opt *NotificationSettingsOptions, options ...RequestOptionFunc) (*NotificationSettings, *Response, error)
- func (s *NotificationSettingsService) UpdateSettingsForGroup(gid interface{}, opt *NotificationSettingsOptions, ...) (*NotificationSettings, *Response, error)
- func (s *NotificationSettingsService) UpdateSettingsForProject(pid interface{}, opt *NotificationSettingsOptions, ...) (*NotificationSettings, *Response, error)
- type Package
- type PackageFile
- type PackageLinks
- type PackagesService
- func (s *PackagesService) DeleteProjectPackage(pid interface{}, pkg int, options ...RequestOptionFunc) (*Response, error)
- func (s *PackagesService) ListPackageFiles(pid interface{}, pkg int, opt *ListPackageFilesOptions, ...) ([]*PackageFile, *Response, error)
- func (s *PackagesService) ListProjectPackages(pid interface{}, opt *ListProjectPackagesOptions, options ...RequestOptionFunc) ([]*Package, *Response, error)
- type PagesDomain
- type PagesDomainsService
- func (s *PagesDomainsService) CreatePagesDomain(pid interface{}, opt *CreatePagesDomainOptions, options ...RequestOptionFunc) (*PagesDomain, *Response, error)
- func (s *PagesDomainsService) DeletePagesDomain(pid interface{}, domain string, options ...RequestOptionFunc) (*Response, error)
- func (s *PagesDomainsService) GetPagesDomain(pid interface{}, domain string, options ...RequestOptionFunc) (*PagesDomain, *Response, error)
- func (s *PagesDomainsService) ListAllPagesDomains(options ...RequestOptionFunc) ([]*PagesDomain, *Response, error)
- func (s *PagesDomainsService) ListPagesDomains(pid interface{}, opt *ListPagesDomainsOptions, options ...RequestOptionFunc) ([]*PagesDomain, *Response, error)
- func (s *PagesDomainsService) UpdatePagesDomain(pid interface{}, domain string, opt *UpdatePagesDomainOptions, ...) (*PagesDomain, *Response, error)
- type PagesService
- type PendingInvite
- type Permissions
- type PersonalAccessToken
- type Pipeline
- type PipelineEvent
- type PipelineInfo
- type PipelineSchedule
- type PipelineSchedulesService
- func (s *PipelineSchedulesService) CreatePipelineSchedule(pid interface{}, opt *CreatePipelineScheduleOptions, ...) (*PipelineSchedule, *Response, error)
- func (s *PipelineSchedulesService) CreatePipelineScheduleVariable(pid interface{}, schedule int, opt *CreatePipelineScheduleVariableOptions, ...) (*PipelineVariable, *Response, error)
- func (s *PipelineSchedulesService) DeletePipelineSchedule(pid interface{}, schedule int, options ...RequestOptionFunc) (*Response, error)
- func (s *PipelineSchedulesService) DeletePipelineScheduleVariable(pid interface{}, schedule int, key string, options ...RequestOptionFunc) (*PipelineVariable, *Response, error)
- func (s *PipelineSchedulesService) EditPipelineSchedule(pid interface{}, schedule int, opt *EditPipelineScheduleOptions, ...) (*PipelineSchedule, *Response, error)
- func (s *PipelineSchedulesService) EditPipelineScheduleVariable(pid interface{}, schedule int, key string, ...) (*PipelineVariable, *Response, error)
- func (s *PipelineSchedulesService) GetPipelineSchedule(pid interface{}, schedule int, options ...RequestOptionFunc) (*PipelineSchedule, *Response, error)
- func (s *PipelineSchedulesService) ListPipelineSchedules(pid interface{}, opt *ListPipelineSchedulesOptions, ...) ([]*PipelineSchedule, *Response, error)
- func (s *PipelineSchedulesService) RunPipelineSchedule(pid interface{}, schedule int, options ...RequestOptionFunc) (*Response, error)
- func (s *PipelineSchedulesService) TakeOwnershipOfPipelineSchedule(pid interface{}, schedule int, options ...RequestOptionFunc) (*PipelineSchedule, *Response, error)
- type PipelineTestCases
- type PipelineTestReport
- type PipelineTestSuites
- type PipelineTrigger
- type PipelineTriggersService
- func (s *PipelineTriggersService) AddPipelineTrigger(pid interface{}, opt *AddPipelineTriggerOptions, options ...RequestOptionFunc) (*PipelineTrigger, *Response, error)
- func (s *PipelineTriggersService) DeletePipelineTrigger(pid interface{}, trigger int, options ...RequestOptionFunc) (*Response, error)
- func (s *PipelineTriggersService) EditPipelineTrigger(pid interface{}, trigger int, opt *EditPipelineTriggerOptions, ...) (*PipelineTrigger, *Response, error)
- func (s *PipelineTriggersService) GetPipelineTrigger(pid interface{}, trigger int, options ...RequestOptionFunc) (*PipelineTrigger, *Response, error)
- func (s *PipelineTriggersService) ListPipelineTriggers(pid interface{}, opt *ListPipelineTriggersOptions, ...) ([]*PipelineTrigger, *Response, error)
- func (s *PipelineTriggersService) RunPipelineTrigger(pid interface{}, opt *RunPipelineTriggerOptions, options ...RequestOptionFunc) (*Pipeline, *Response, error)
- func (s *PipelineTriggersService) TakeOwnershipOfPipelineTrigger(pid interface{}, trigger int, options ...RequestOptionFunc) (*PipelineTrigger, *Response, error)
- type PipelineVariable
- type PipelinesEmailProperties
- type PipelinesEmailService
- type PipelinesService
- func (s *PipelinesService) CancelPipelineBuild(pid interface{}, pipeline int, options ...RequestOptionFunc) (*Pipeline, *Response, error)
- func (s *PipelinesService) CreatePipeline(pid interface{}, opt *CreatePipelineOptions, options ...RequestOptionFunc) (*Pipeline, *Response, error)
- func (s *PipelinesService) DeletePipeline(pid interface{}, pipeline int, options ...RequestOptionFunc) (*Response, error)
- func (s *PipelinesService) GetPipeline(pid interface{}, pipeline int, options ...RequestOptionFunc) (*Pipeline, *Response, error)
- func (s *PipelinesService) GetPipelineTestReport(pid interface{}, pipeline int) (*PipelineTestReport, *Response, error)
- func (s *PipelinesService) GetPipelineVariables(pid interface{}, pipeline int, options ...RequestOptionFunc) ([]*PipelineVariable, *Response, error)
- func (s *PipelinesService) ListProjectPipelines(pid interface{}, opt *ListProjectPipelinesOptions, ...) ([]*PipelineInfo, *Response, error)
- func (s *PipelinesService) RetryPipelineBuild(pid interface{}, pipeline int, options ...RequestOptionFunc) (*Pipeline, *Response, error)
- type PlatformKubernetes
- type PostCommitCommentOptions
- type ProcessMetrics
- type Project
- type ProjectAccess
- type ProjectAccessToken
- type ProjectAccessTokensService
- func (s *ProjectAccessTokensService) CreateProjectAccessToken(pid interface{}, opt *CreateProjectAccessTokenOptions, ...) (*ProjectAccessToken, *Response, error)
- func (s *ProjectAccessTokensService) DeleteProjectAccessToken(pid interface{}, id int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectAccessTokensService) ListProjectAccessTokens(pid interface{}, opt *ListProjectAccessTokensOptions, ...) ([]*ProjectAccessToken, *Response, error)
- type ProjectApprovalRule
- type ProjectApprovals
- type ProjectBadge
- type ProjectBadgePreviewOptions
- type ProjectBadgesService
- func (s *ProjectBadgesService) AddProjectBadge(pid interface{}, opt *AddProjectBadgeOptions, options ...RequestOptionFunc) (*ProjectBadge, *Response, error)
- func (s *ProjectBadgesService) DeleteProjectBadge(pid interface{}, badge int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectBadgesService) EditProjectBadge(pid interface{}, badge int, opt *EditProjectBadgeOptions, ...) (*ProjectBadge, *Response, error)
- func (s *ProjectBadgesService) GetProjectBadge(pid interface{}, badge int, options ...RequestOptionFunc) (*ProjectBadge, *Response, error)
- func (s *ProjectBadgesService) ListProjectBadges(pid interface{}, opt *ListProjectBadgesOptions, options ...RequestOptionFunc) ([]*ProjectBadge, *Response, error)
- func (s *ProjectBadgesService) PreviewProjectBadge(pid interface{}, opt *ProjectBadgePreviewOptions, options ...RequestOptionFunc) (*ProjectBadge, *Response, error)
- type ProjectCluster
- type ProjectClustersService
- func (s *ProjectClustersService) AddCluster(pid interface{}, opt *AddClusterOptions, options ...RequestOptionFunc) (*ProjectCluster, *Response, error)
- func (s *ProjectClustersService) DeleteCluster(pid interface{}, cluster int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectClustersService) EditCluster(pid interface{}, cluster int, opt *EditClusterOptions, ...) (*ProjectCluster, *Response, error)
- func (s *ProjectClustersService) GetCluster(pid interface{}, cluster int, options ...RequestOptionFunc) (*ProjectCluster, *Response, error)
- func (s *ProjectClustersService) ListClusters(pid interface{}, options ...RequestOptionFunc) ([]*ProjectCluster, *Response, error)
- type ProjectCreationLevelValue
- type ProjectEvent
- type ProjectFile
- type ProjectForkRelation
- type ProjectGroup
- type ProjectHook
- type ProjectImportExportService
- func (s *ProjectImportExportService) ExportDownload(pid interface{}, options ...RequestOptionFunc) ([]byte, *Response, error)
- func (s *ProjectImportExportService) ExportStatus(pid interface{}, options ...RequestOptionFunc) (*ExportStatus, *Response, error)
- func (s *ProjectImportExportService) ImportFile(opt *ImportFileOptions, options ...RequestOptionFunc) (*ImportStatus, *Response, error)
- func (s *ProjectImportExportService) ImportStatus(pid interface{}, options ...RequestOptionFunc) (*ImportStatus, *Response, error)
- func (s *ProjectImportExportService) ScheduleExport(pid interface{}, opt *ScheduleExportOptions, options ...RequestOptionFunc) (*Response, error)
- type ProjectLanguages
- type ProjectLicense
- type ProjectLintOptions
- type ProjectLintResult
- type ProjectMember
- type ProjectMembersService
- func (s *ProjectMembersService) AddProjectMember(pid interface{}, opt *AddProjectMemberOptions, options ...RequestOptionFunc) (*ProjectMember, *Response, error)
- func (s *ProjectMembersService) DeleteProjectMember(pid interface{}, user int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectMembersService) EditProjectMember(pid interface{}, user int, opt *EditProjectMemberOptions, ...) (*ProjectMember, *Response, error)
- func (s *ProjectMembersService) GetInheritedProjectMember(pid interface{}, user int, options ...RequestOptionFunc) (*ProjectMember, *Response, error)
- func (s *ProjectMembersService) GetProjectMember(pid interface{}, user int, options ...RequestOptionFunc) (*ProjectMember, *Response, error)
- func (s *ProjectMembersService) ListAllProjectMembers(pid interface{}, opt *ListProjectMembersOptions, options ...RequestOptionFunc) ([]*ProjectMember, *Response, error)
- func (s *ProjectMembersService) ListProjectMembers(pid interface{}, opt *ListProjectMembersOptions, options ...RequestOptionFunc) ([]*ProjectMember, *Response, error)
- type ProjectMirror
- type ProjectMirrorService
- func (s *ProjectMirrorService) AddProjectMirror(pid interface{}, opt *AddProjectMirrorOptions, options ...RequestOptionFunc) (*ProjectMirror, *Response, error)
- func (s *ProjectMirrorService) EditProjectMirror(pid interface{}, mirror int, opt *EditProjectMirrorOptions, ...) (*ProjectMirror, *Response, error)
- func (s *ProjectMirrorService) ListProjectMirror(pid interface{}, opt *ListProjectMirrorOptions, options ...RequestOptionFunc) ([]*ProjectMirror, *Response, error)
- type ProjectNamespace
- type ProjectNamespaceLintOptions
- type ProjectPushRules
- type ProjectSnippetsService
- func (s *ProjectSnippetsService) CreateSnippet(pid interface{}, opt *CreateProjectSnippetOptions, ...) (*Snippet, *Response, error)
- func (s *ProjectSnippetsService) DeleteSnippet(pid interface{}, snippet int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectSnippetsService) GetSnippet(pid interface{}, snippet int, options ...RequestOptionFunc) (*Snippet, *Response, error)
- func (s *ProjectSnippetsService) ListSnippets(pid interface{}, opt *ListProjectSnippetsOptions, options ...RequestOptionFunc) ([]*Snippet, *Response, error)
- func (s *ProjectSnippetsService) SnippetContent(pid interface{}, snippet int, options ...RequestOptionFunc) ([]byte, *Response, error)
- func (s *ProjectSnippetsService) UpdateSnippet(pid interface{}, snippet int, opt *UpdateProjectSnippetOptions, ...) (*Snippet, *Response, error)
- type ProjectStatistics
- type ProjectSystemEvent
- type ProjectUser
- type ProjectVariable
- type ProjectVariablesService
- func (s *ProjectVariablesService) CreateVariable(pid interface{}, opt *CreateProjectVariableOptions, ...) (*ProjectVariable, *Response, error)
- func (s *ProjectVariablesService) GetVariable(pid interface{}, key string, options ...RequestOptionFunc) (*ProjectVariable, *Response, error)
- func (s *ProjectVariablesService) ListVariables(pid interface{}, opt *ListProjectVariablesOptions, ...) ([]*ProjectVariable, *Response, error)
- func (s *ProjectVariablesService) RemoveVariable(pid interface{}, key string, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectVariablesService) UpdateVariable(pid interface{}, key string, opt *UpdateProjectVariableOptions, ...) (*ProjectVariable, *Response, error)
- type ProjectsService
- func (s *ProjectsService) AddProjectHook(pid interface{}, opt *AddProjectHookOptions, options ...RequestOptionFunc) (*ProjectHook, *Response, error)
- func (s *ProjectsService) AddProjectPushRule(pid interface{}, opt *AddProjectPushRuleOptions, options ...RequestOptionFunc) (*ProjectPushRules, *Response, error)
- func (s *ProjectsService) ArchiveProject(pid interface{}, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) ChangeAllowedApprovers(pid interface{}, opt *ChangeAllowedApproversOptions, ...) (*ProjectApprovals, *Response, error)
- func (s *ProjectsService) ChangeApprovalConfiguration(pid interface{}, opt *ChangeApprovalConfigurationOptions, ...) (*ProjectApprovals, *Response, error)
- func (s *ProjectsService) CreateProject(opt *CreateProjectOptions, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) CreateProjectApprovalRule(pid interface{}, opt *CreateProjectLevelRuleOptions, ...) (*ProjectApprovalRule, *Response, error)
- func (s *ProjectsService) CreateProjectForUser(user int, opt *CreateProjectForUserOptions, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) CreateProjectForkRelation(pid int, fork int, options ...RequestOptionFunc) (*ProjectForkRelation, *Response, error)
- func (s *ProjectsService) DeleteProject(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) DeleteProjectApprovalRule(pid interface{}, approvalRule int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) DeleteProjectForkRelation(pid int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) DeleteProjectHook(pid interface{}, hook int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) DeleteProjectPushRule(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) DeleteSharedProjectFromGroup(pid interface{}, groupID int, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) EditProject(pid interface{}, opt *EditProjectOptions, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) EditProjectHook(pid interface{}, hook int, opt *EditProjectHookOptions, ...) (*ProjectHook, *Response, error)
- func (s *ProjectsService) EditProjectPushRule(pid interface{}, opt *EditProjectPushRuleOptions, options ...RequestOptionFunc) (*ProjectPushRules, *Response, error)
- func (s *ProjectsService) ForkProject(pid interface{}, opt *ForkProjectOptions, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) GetApprovalConfiguration(pid interface{}, options ...RequestOptionFunc) (*ProjectApprovals, *Response, error)
- func (s *ProjectsService) GetProject(pid interface{}, opt *GetProjectOptions, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) GetProjectApprovalRules(pid interface{}, options ...RequestOptionFunc) ([]*ProjectApprovalRule, *Response, error)
- func (s *ProjectsService) GetProjectEvents(pid interface{}, opt *GetProjectEventsOptions, options ...RequestOptionFunc) ([]*ProjectEvent, *Response, error)
- func (s *ProjectsService) GetProjectHook(pid interface{}, hook int, options ...RequestOptionFunc) (*ProjectHook, *Response, error)
- func (s *ProjectsService) GetProjectLanguages(pid interface{}, options ...RequestOptionFunc) (*ProjectLanguages, *Response, error)
- func (s *ProjectsService) GetProjectPushRules(pid interface{}, options ...RequestOptionFunc) (*ProjectPushRules, *Response, error)
- func (s *ProjectsService) ListProjectForks(pid interface{}, opt *ListProjectsOptions, options ...RequestOptionFunc) ([]*Project, *Response, error)
- func (s *ProjectsService) ListProjectHooks(pid interface{}, opt *ListProjectHooksOptions, options ...RequestOptionFunc) ([]*ProjectHook, *Response, error)
- func (s *ProjectsService) ListProjects(opt *ListProjectsOptions, options ...RequestOptionFunc) ([]*Project, *Response, error)
- func (s *ProjectsService) ListProjectsGroups(pid interface{}, opt *ListProjectGroupOptions, options ...RequestOptionFunc) ([]*ProjectGroup, *Response, error)
- func (s *ProjectsService) ListProjectsUsers(pid interface{}, opt *ListProjectUserOptions, options ...RequestOptionFunc) ([]*ProjectUser, *Response, error)
- func (s *ProjectsService) ListUserProjects(uid interface{}, opt *ListProjectsOptions, options ...RequestOptionFunc) ([]*Project, *Response, error)
- func (s *ProjectsService) ShareProjectWithGroup(pid interface{}, opt *ShareWithGroupOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) StarProject(pid interface{}, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) StartMirroringProject(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ProjectsService) TransferProject(pid interface{}, opt *TransferProjectOptions, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) UnarchiveProject(pid interface{}, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) UnstarProject(pid interface{}, options ...RequestOptionFunc) (*Project, *Response, error)
- func (s *ProjectsService) UpdateProjectApprovalRule(pid interface{}, approvalRule int, opt *UpdateProjectLevelRuleOptions, ...) (*ProjectApprovalRule, *Response, error)
- func (s *ProjectsService) UploadFile(pid interface{}, file string, options ...RequestOptionFunc) (*ProjectFile, *Response, error)
- type PrometheusService
- type PrometheusServiceProperties
- type ProtectBranchOptions
- type ProtectRepositoryBranchesOptions
- type ProtectRepositoryEnvironmentsOptions
- type ProtectRepositoryTagsOptions
- type ProtectedBranch
- type ProtectedBranchesService
- func (s *ProtectedBranchesService) GetProtectedBranch(pid interface{}, branch string, options ...RequestOptionFunc) (*ProtectedBranch, *Response, error)
- func (s *ProtectedBranchesService) ListProtectedBranches(pid interface{}, opt *ListProtectedBranchesOptions, ...) ([]*ProtectedBranch, *Response, error)
- func (s *ProtectedBranchesService) ProtectRepositoryBranches(pid interface{}, opt *ProtectRepositoryBranchesOptions, ...) (*ProtectedBranch, *Response, error)
- func (s *ProtectedBranchesService) RequireCodeOwnerApprovals(pid interface{}, branch string, opt *RequireCodeOwnerApprovalsOptions, ...) (*Response, error)
- func (s *ProtectedBranchesService) UnprotectRepositoryBranches(pid interface{}, branch string, options ...RequestOptionFunc) (*Response, error)
- type ProtectedEnvironment
- type ProtectedEnvironmentsService
- func (s *ProtectedEnvironmentsService) GetProtectedEnvironment(pid interface{}, environment string, options ...RequestOptionFunc) (*ProtectedEnvironment, *Response, error)
- func (s *ProtectedEnvironmentsService) ListProtectedEnvironments(pid interface{}, opt *ListProtectedEnvironmentsOptions, ...) ([]*ProtectedEnvironment, *Response, error)
- func (s *ProtectedEnvironmentsService) ProtectRepositoryEnvironments(pid interface{}, opt *ProtectRepositoryEnvironmentsOptions, ...) (*ProtectedEnvironment, *Response, error)
- func (s *ProtectedEnvironmentsService) UnprotectEnvironment(pid interface{}, environment string, options ...RequestOptionFunc) (*Response, error)
- type ProtectedTag
- type ProtectedTagsService
- func (s *ProtectedTagsService) GetProtectedTag(pid interface{}, tag string, options ...RequestOptionFunc) (*ProtectedTag, *Response, error)
- func (s *ProtectedTagsService) ListProtectedTags(pid interface{}, opt *ListProtectedTagsOptions, options ...RequestOptionFunc) ([]*ProtectedTag, *Response, error)
- func (s *ProtectedTagsService) ProtectRepositoryTags(pid interface{}, opt *ProtectRepositoryTagsOptions, ...) (*ProtectedTag, *Response, error)
- func (s *ProtectedTagsService) UnprotectRepositoryTags(pid interface{}, tag string, options ...RequestOptionFunc) (*Response, error)
- type PushEvent
- type PushSystemEvent
- type QueueMetrics
- type RateLimiter
- type RecentFailures
- type RegisterNewRunnerInfoOptions
- type RegisterNewRunnerOptions
- type RegistryRepository
- type RegistryRepositoryTag
- type Release
- type ReleaseAssetLink
- type ReleaseAssets
- type ReleaseEvent
- type ReleaseLink
- type ReleaseLinksService
- func (s *ReleaseLinksService) CreateReleaseLink(pid interface{}, tagName string, opt *CreateReleaseLinkOptions, ...) (*ReleaseLink, *Response, error)
- func (s *ReleaseLinksService) DeleteReleaseLink(pid interface{}, tagName string, link int, options ...RequestOptionFunc) (*ReleaseLink, *Response, error)
- func (s *ReleaseLinksService) GetReleaseLink(pid interface{}, tagName string, link int, options ...RequestOptionFunc) (*ReleaseLink, *Response, error)
- func (s *ReleaseLinksService) ListReleaseLinks(pid interface{}, tagName string, opt *ListReleaseLinksOptions, ...) ([]*ReleaseLink, *Response, error)
- func (s *ReleaseLinksService) UpdateReleaseLink(pid interface{}, tagName string, link int, opt *UpdateReleaseLinkOptions, ...) (*ReleaseLink, *Response, error)
- type ReleaseNote
- type ReleasesService
- func (s *ReleasesService) CreateRelease(pid interface{}, opts *CreateReleaseOptions, options ...RequestOptionFunc) (*Release, *Response, error)
- func (s *ReleasesService) DeleteRelease(pid interface{}, tagName string, options ...RequestOptionFunc) (*Release, *Response, error)
- func (s *ReleasesService) GetRelease(pid interface{}, tagName string, options ...RequestOptionFunc) (*Release, *Response, error)
- func (s *ReleasesService) ListReleases(pid interface{}, opt *ListReleasesOptions, options ...RequestOptionFunc) ([]*Release, *Response, error)
- func (s *ReleasesService) UpdateRelease(pid interface{}, tagName string, opts *UpdateReleaseOptions, ...) (*Release, *Response, error)
- type RepositoriesService
- func (s *RepositoriesService) Archive(pid interface{}, opt *ArchiveOptions, options ...RequestOptionFunc) ([]byte, *Response, error)
- func (s *RepositoriesService) Blob(pid interface{}, sha string, options ...RequestOptionFunc) ([]byte, *Response, error)
- func (s *RepositoriesService) Compare(pid interface{}, opt *CompareOptions, options ...RequestOptionFunc) (*Compare, *Response, error)
- func (s *RepositoriesService) Contributors(pid interface{}, opt *ListContributorsOptions, options ...RequestOptionFunc) ([]*Contributor, *Response, error)
- func (s *RepositoriesService) ListTree(pid interface{}, opt *ListTreeOptions, options ...RequestOptionFunc) ([]*TreeNode, *Response, error)
- func (s *RepositoriesService) MergeBase(pid interface{}, opt *MergeBaseOptions, options ...RequestOptionFunc) (*Commit, *Response, error)
- func (s *RepositoriesService) RawBlobContent(pid interface{}, sha string, options ...RequestOptionFunc) ([]byte, *Response, error)
- func (s *RepositoriesService) StreamArchive(pid interface{}, w io.Writer, opt *ArchiveOptions, ...) (*Response, error)
- type Repository
- type RepositoryFilesService
- func (s *RepositoryFilesService) CreateFile(pid interface{}, fileName string, opt *CreateFileOptions, ...) (*FileInfo, *Response, error)
- func (s *RepositoryFilesService) DeleteFile(pid interface{}, fileName string, opt *DeleteFileOptions, ...) (*Response, error)
- func (s *RepositoryFilesService) GetFile(pid interface{}, fileName string, opt *GetFileOptions, ...) (*File, *Response, error)
- func (s *RepositoryFilesService) GetFileBlame(pid interface{}, file string, opt *GetFileBlameOptions, ...) ([]*FileBlameRange, *Response, error)
- func (s *RepositoryFilesService) GetFileMetaData(pid interface{}, fileName string, opt *GetFileMetaDataOptions, ...) (*File, *Response, error)
- func (s *RepositoryFilesService) GetRawFile(pid interface{}, fileName string, opt *GetRawFileOptions, ...) ([]byte, *Response, error)
- func (s *RepositoryFilesService) UpdateFile(pid interface{}, fileName string, opt *UpdateFileOptions, ...) (*FileInfo, *Response, error)
- type RepositoryUpdateSystemEvent
- type RequestOptionFunc
- type RequireCodeOwnerApprovalsOptions
- type ResolveMergeRequestDiscussionOptions
- type ResourceLabelEventsService
- func (s *ResourceLabelEventsService) GetGroupEpicLabelEvent(gid interface{}, epic int, event int, options ...RequestOptionFunc) (*LabelEvent, *Response, error)
- func (s *ResourceLabelEventsService) GetIssueLabelEvent(pid interface{}, issue int, event int, options ...RequestOptionFunc) (*LabelEvent, *Response, error)
- func (s *ResourceLabelEventsService) GetMergeRequestLabelEvent(pid interface{}, request int, event int, options ...RequestOptionFunc) (*LabelEvent, *Response, error)
- func (s *ResourceLabelEventsService) ListGroupEpicLabelEvents(gid interface{}, epic int, opt *ListLabelEventsOptions, ...) ([]*LabelEvent, *Response, error)
- func (s *ResourceLabelEventsService) ListIssueLabelEvents(pid interface{}, issue int, opt *ListLabelEventsOptions, ...) ([]*LabelEvent, *Response, error)
- func (s *ResourceLabelEventsService) ListMergeRequestsLabelEvents(pid interface{}, request int, opt *ListLabelEventsOptions, ...) ([]*LabelEvent, *Response, error)
- type ResourceStateEventsService
- func (s *ResourceStateEventsService) GetIssueStateEvent(pid interface{}, issue int, event int, options ...RequestOptionFunc) (*StateEvent, *Response, error)
- func (s *ResourceStateEventsService) GetMergeRequestStateEvent(pid interface{}, request int, event int, options ...RequestOptionFunc) (*StateEvent, *Response, error)
- func (s *ResourceStateEventsService) ListIssueStateEvents(pid interface{}, issue int, opt *ListStateEventsOptions, ...) ([]*StateEvent, *Response, error)
- func (s *ResourceStateEventsService) ListMergeStateEvents(pid interface{}, request int, opt *ListStateEventsOptions, ...) ([]*StateEvent, *Response, error)
- type Response
- type RevertCommitOptions
- type RunPipelineTriggerOptions
- type Runner
- type RunnerDetails
- type RunnersService
- func (s *RunnersService) DeleteRegisteredRunner(opt *DeleteRegisteredRunnerOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *RunnersService) DeleteRegisteredRunnerByID(rid int, options ...RequestOptionFunc) (*Response, error)
- func (s *RunnersService) DisableProjectRunner(pid interface{}, runner int, options ...RequestOptionFunc) (*Response, error)
- func (s *RunnersService) EnableProjectRunner(pid interface{}, opt *EnableProjectRunnerOptions, options ...RequestOptionFunc) (*Runner, *Response, error)
- func (s *RunnersService) GetRunnerDetails(rid interface{}, options ...RequestOptionFunc) (*RunnerDetails, *Response, error)
- func (s *RunnersService) ListAllRunners(opt *ListRunnersOptions, options ...RequestOptionFunc) ([]*Runner, *Response, error)
- func (s *RunnersService) ListGroupsRunners(gid interface{}, opt *ListGroupsRunnersOptions, options ...RequestOptionFunc) ([]*Runner, *Response, error)
- func (s *RunnersService) ListProjectRunners(pid interface{}, opt *ListProjectRunnersOptions, options ...RequestOptionFunc) ([]*Runner, *Response, error)
- func (s *RunnersService) ListRunnerJobs(rid interface{}, opt *ListRunnerJobsOptions, options ...RequestOptionFunc) ([]*Job, *Response, error)
- func (s *RunnersService) ListRunners(opt *ListRunnersOptions, options ...RequestOptionFunc) ([]*Runner, *Response, error)
- func (s *RunnersService) RegisterNewRunner(opt *RegisterNewRunnerOptions, options ...RequestOptionFunc) (*Runner, *Response, error)
- func (s *RunnersService) RemoveRunner(rid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *RunnersService) UpdateRunnerDetails(rid interface{}, opt *UpdateRunnerDetailsOptions, options ...RequestOptionFunc) (*RunnerDetails, *Response, error)
- func (s *RunnersService) VerifyRegisteredRunner(opt *VerifyRegisteredRunnerOptions, options ...RequestOptionFunc) (*Response, error)
- type SSHKey
- type ScheduleExportOptions
- type SearchOptions
- type SearchService
- func (s *SearchService) Blobs(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Blob, *Response, error)
- func (s *SearchService) BlobsByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*Blob, *Response, error)
- func (s *SearchService) BlobsByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*Blob, *Response, error)
- func (s *SearchService) Commits(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Commit, *Response, error)
- func (s *SearchService) CommitsByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*Commit, *Response, error)
- func (s *SearchService) CommitsByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*Commit, *Response, error)
- func (s *SearchService) Issues(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Issue, *Response, error)
- func (s *SearchService) IssuesByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*Issue, *Response, error)
- func (s *SearchService) IssuesByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*Issue, *Response, error)
- func (s *SearchService) MergeRequests(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*MergeRequest, *Response, error)
- func (s *SearchService) MergeRequestsByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *SearchService) MergeRequestsByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*MergeRequest, *Response, error)
- func (s *SearchService) Milestones(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Milestone, *Response, error)
- func (s *SearchService) MilestonesByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*Milestone, *Response, error)
- func (s *SearchService) MilestonesByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*Milestone, *Response, error)
- func (s *SearchService) NotesByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*Note, *Response, error)
- func (s *SearchService) Projects(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Project, *Response, error)
- func (s *SearchService) ProjectsByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*Project, *Response, error)
- func (s *SearchService) SnippetBlobs(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Snippet, *Response, error)
- func (s *SearchService) SnippetTitles(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Snippet, *Response, error)
- func (s *SearchService) Users(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*User, *Response, error)
- func (s *SearchService) UsersByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*User, *Response, error)
- func (s *SearchService) UsersByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*User, *Response, error)
- func (s *SearchService) WikiBlobs(query string, opt *SearchOptions, options ...RequestOptionFunc) ([]*Wiki, *Response, error)
- func (s *SearchService) WikiBlobsByGroup(gid interface{}, query string, opt *SearchOptions, ...) ([]*Wiki, *Response, error)
- func (s *SearchService) WikiBlobsByProject(pid interface{}, query string, opt *SearchOptions, ...) ([]*Wiki, *Response, error)
- type Service
- type ServicesService
- func (s *ServicesService) DeleteCustomIssueTrackerService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteDroneCIService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteExternalWikiService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteGitLabCIService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteGithubService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteHipChatService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteJenkinsCIService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteJiraService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteMattermostService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteMicrosoftTeamsService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeletePipelinesEmailService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeletePrometheusService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteSlackService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) DeleteYouTrackService(pid interface{}, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) GetCustomIssueTrackerService(pid interface{}, options ...RequestOptionFunc) (*CustomIssueTrackerService, *Response, error)
- func (s *ServicesService) GetDroneCIService(pid interface{}, options ...RequestOptionFunc) (*DroneCIService, *Response, error)
- func (s *ServicesService) GetExternalWikiService(pid interface{}, options ...RequestOptionFunc) (*ExternalWikiService, *Response, error)
- func (s *ServicesService) GetGithubService(pid interface{}, options ...RequestOptionFunc) (*GithubService, *Response, error)
- func (s *ServicesService) GetJenkinsCIService(pid interface{}, options ...RequestOptionFunc) (*JenkinsCIService, *Response, error)
- func (s *ServicesService) GetJiraService(pid interface{}, options ...RequestOptionFunc) (*JiraService, *Response, error)
- func (s *ServicesService) GetMattermostService(pid interface{}, options ...RequestOptionFunc) (*MattermostService, *Response, error)
- func (s *ServicesService) GetMicrosoftTeamsService(pid interface{}, options ...RequestOptionFunc) (*MicrosoftTeamsService, *Response, error)
- func (s *ServicesService) GetPipelinesEmailService(pid interface{}, options ...RequestOptionFunc) (*PipelinesEmailService, *Response, error)
- func (s *ServicesService) GetPrometheusService(pid interface{}, options ...RequestOptionFunc) (*PrometheusService, *Response, error)
- func (s *ServicesService) GetSlackService(pid interface{}, options ...RequestOptionFunc) (*SlackService, *Response, error)
- func (s *ServicesService) GetYouTrackService(pid interface{}, options ...RequestOptionFunc) (*YouTrackService, *Response, error)
- func (s *ServicesService) ListServices(pid interface{}, options ...RequestOptionFunc) ([]*Service, *Response, error)
- func (s *ServicesService) SetCustomIssueTrackerService(pid interface{}, opt *SetCustomIssueTrackerServiceOptions, ...) (*Response, error)
- func (s *ServicesService) SetDroneCIService(pid interface{}, opt *SetDroneCIServiceOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) SetExternalWikiService(pid interface{}, opt *SetExternalWikiServiceOptions, ...) (*Response, error)
- func (s *ServicesService) SetGitLabCIService(pid interface{}, opt *SetGitLabCIServiceOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) SetGithubService(pid interface{}, opt *SetGithubServiceOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) SetHipChatService(pid interface{}, opt *SetHipChatServiceOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) SetJenkinsCIService(pid interface{}, opt *SetJenkinsCIServiceOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) SetJiraService(pid interface{}, opt *SetJiraServiceOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) SetMattermostService(pid interface{}, opt *SetMattermostServiceOptions, ...) (*Response, error)
- func (s *ServicesService) SetMicrosoftTeamsService(pid interface{}, opt *SetMicrosoftTeamsServiceOptions, ...) (*Response, error)
- func (s *ServicesService) SetPipelinesEmailService(pid interface{}, opt *SetPipelinesEmailServiceOptions, ...) (*Response, error)
- func (s *ServicesService) SetPrometheusService(pid interface{}, opt *SetPrometheusServiceOptions, ...) (*Response, error)
- func (s *ServicesService) SetSlackService(pid interface{}, opt *SetSlackServiceOptions, options ...RequestOptionFunc) (*Response, error)
- func (s *ServicesService) SetYouTrackService(pid interface{}, opt *SetYouTrackServiceOptions, options ...RequestOptionFunc) (*Response, error)
- type SetCommitStatusOptions
- type SetCustomIssueTrackerServiceOptions
- type SetDroneCIServiceOptions
- type SetExternalWikiServiceOptions
- type SetGitLabCIServiceOptions
- type SetGithubServiceOptions
- type SetHipChatServiceOptions
- type SetJenkinsCIServiceOptions
- type SetJiraServiceOptions
- type SetMattermostServiceOptions
- type SetMicrosoftTeamsServiceOptions
- type SetPipelinesEmailServiceOptions
- type SetPrometheusServiceOptions
- type SetSlackServiceOptions
- type SetTimeEstimateOptions
- type SetYouTrackServiceOptions
- type Settings
- type SettingsService
- type ShareGroupWithGroupOptions
- type ShareWithGroupOptions
- type SharedRunnersSettingValue
- type SidekiqService
- func (s *SidekiqService) GetCompoundMetrics(options ...RequestOptionFunc) (*CompoundMetrics, *Response, error)
- func (s *SidekiqService) GetJobStats(options ...RequestOptionFunc) (*JobStats, *Response, error)
- func (s *SidekiqService) GetProcessMetrics(options ...RequestOptionFunc) (*ProcessMetrics, *Response, error)
- func (s *SidekiqService) GetQueueMetrics(options ...RequestOptionFunc) (*QueueMetrics, *Response, error)
- type SlackService
- type SlackServiceProperties
- type Snippet
- type SnippetCommentEvent
- type SnippetsService
- func (s *SnippetsService) CreateSnippet(opt *CreateSnippetOptions, options ...RequestOptionFunc) (*Snippet, *Response, error)
- func (s *SnippetsService) DeleteSnippet(snippet int, options ...RequestOptionFunc) (*Response, error)
- func (s *SnippetsService) ExploreSnippets(opt *ExploreSnippetsOptions, options ...RequestOptionFunc) ([]*Snippet, *Response, error)
- func (s *SnippetsService) GetSnippet(snippet int, options ...RequestOptionFunc) (*Snippet, *Response, error)
- func (s *SnippetsService) ListSnippets(opt *ListSnippetsOptions, options ...RequestOptionFunc) ([]*Snippet, *Response, error)
- func (s *SnippetsService) SnippetContent(snippet int, options ...RequestOptionFunc) ([]byte, *Response, error)
- func (s *SnippetsService) UpdateSnippet(snippet int, opt *UpdateSnippetOptions, options ...RequestOptionFunc) (*Snippet, *Response, error)
- type SquashOptionValue
- type StateEvent
- type StorageStatistics
- type SubGroupCreationLevelValue
- type SystemHooksService
- func (s *SystemHooksService) AddHook(opt *AddHookOptions, options ...RequestOptionFunc) (*Hook, *Response, error)
- func (s *SystemHooksService) DeleteHook(hook int, options ...RequestOptionFunc) (*Response, error)
- func (s *SystemHooksService) ListHooks(options ...RequestOptionFunc) ([]*Hook, *Response, error)
- func (s *SystemHooksService) TestHook(hook int, options ...RequestOptionFunc) (*HookEvent, *Response, error)
- type Tag
- type TagAccessDescription
- type TagEvent
- type TagPushSystemEvent
- type TagsService
- func (s *TagsService) CreateReleaseNote(pid interface{}, tag string, opt *CreateReleaseNoteOptions, ...) (*ReleaseNote, *Response, error)deprecated
- func (s *TagsService) CreateTag(pid interface{}, opt *CreateTagOptions, options ...RequestOptionFunc) (*Tag, *Response, error)
- func (s *TagsService) DeleteTag(pid interface{}, tag string, options ...RequestOptionFunc) (*Response, error)
- func (s *TagsService) GetTag(pid interface{}, tag string, options ...RequestOptionFunc) (*Tag, *Response, error)
- func (s *TagsService) ListTags(pid interface{}, opt *ListTagsOptions, options ...RequestOptionFunc) ([]*Tag, *Response, error)
- func (s *TagsService) UpdateReleaseNote(pid interface{}, tag string, opt *UpdateReleaseNoteOptions, ...) (*ReleaseNote, *Response, error)deprecated
- type TasksCompletionStatus
- type TimeStats
- type Todo
- type TodoAction
- type TodoTarget
- type TodoTargetType
- type TodosService
- type TransferProjectOptions
- type TreeNode
- type UpdateBroadcastMessageOptions
- type UpdateCommitDiscussionNoteOptions
- type UpdateDeployKeyOptions
- type UpdateEpicDiscussionNoteOptions
- type UpdateEpicIsssueAssignmentOptions
- type UpdateEpicNoteOptions
- type UpdateEpicOptions
- type UpdateFileOptions
- type UpdateFreezePeriodOptions
- type UpdateGroupIssueBoardListOptions
- type UpdateGroupIssueBoardOptions
- type UpdateGroupLabelOptions
- type UpdateGroupMilestoneOptions
- type UpdateGroupOptions
- type UpdateGroupVariableOptions
- type UpdateInstanceVariableOptions
- type UpdateIssueBoardListOptions
- type UpdateIssueBoardOptions
- type UpdateIssueDiscussionNoteOptions
- type UpdateIssueNoteOptions
- type UpdateIssueOptions
- type UpdateLabelOptions
- type UpdateMergeRequestApprovalRuleOptions
- type UpdateMergeRequestDiscussionNoteOptions
- type UpdateMergeRequestNoteOptions
- type UpdateMergeRequestOptions
- type UpdateMilestoneOptions
- type UpdatePagesDomainOptions
- type UpdateProjectDeploymentOptions
- type UpdateProjectLevelRuleOptions
- type UpdateProjectSnippetOptions
- type UpdateProjectVariableOptions
- type UpdateReleaseLinkOptions
- type UpdateReleaseNoteOptions
- type UpdateReleaseOptions
- type UpdateRunnerDetailsOptions
- type UpdateSettingsOptions
- type UpdateSnippetDiscussionNoteOptions
- type UpdateSnippetNoteOptions
- type UpdateSnippetOptions
- type User
- type UserActivity
- type UserGroupSystemEvent
- type UserIdentity
- type UserMembership
- type UserStatus
- type UserStatusOptions
- type UserSystemEvent
- type UserTeamSystemEvent
- type UsersService
- func (s *UsersService) ActivateUser(user int, options ...RequestOptionFunc) error
- func (s *UsersService) AddEmail(opt *AddEmailOptions, options ...RequestOptionFunc) (*Email, *Response, error)
- func (s *UsersService) AddEmailForUser(user int, opt *AddEmailOptions, options ...RequestOptionFunc) (*Email, *Response, error)
- func (s *UsersService) AddSSHKey(opt *AddSSHKeyOptions, options ...RequestOptionFunc) (*SSHKey, *Response, error)
- func (s *UsersService) AddSSHKeyForUser(user int, opt *AddSSHKeyOptions, options ...RequestOptionFunc) (*SSHKey, *Response, error)
- func (s *UsersService) BlockUser(user int, options ...RequestOptionFunc) error
- func (s *UsersService) CreateImpersonationToken(user int, opt *CreateImpersonationTokenOptions, options ...RequestOptionFunc) (*ImpersonationToken, *Response, error)
- func (s *UsersService) CreatePersonalAccessToken(user int, opt *CreatePersonalAccessTokenOptions, options ...RequestOptionFunc) (*PersonalAccessToken, *Response, error)
- func (s *UsersService) CreateUser(opt *CreateUserOptions, options ...RequestOptionFunc) (*User, *Response, error)
- func (s *UsersService) CurrentUser(options ...RequestOptionFunc) (*User, *Response, error)
- func (s *UsersService) CurrentUserStatus(options ...RequestOptionFunc) (*UserStatus, *Response, error)
- func (s *UsersService) DeactivateUser(user int, options ...RequestOptionFunc) error
- func (s *UsersService) DeleteEmail(email int, options ...RequestOptionFunc) (*Response, error)
- func (s *UsersService) DeleteEmailForUser(user, email int, options ...RequestOptionFunc) (*Response, error)
- func (s *UsersService) DeleteSSHKey(key int, options ...RequestOptionFunc) (*Response, error)
- func (s *UsersService) DeleteSSHKeyForUser(user, key int, options ...RequestOptionFunc) (*Response, error)
- func (s *UsersService) DeleteUser(user int, options ...RequestOptionFunc) (*Response, error)
- func (s *UsersService) GetAllImpersonationTokens(user int, opt *GetAllImpersonationTokensOptions, options ...RequestOptionFunc) ([]*ImpersonationToken, *Response, error)
- func (s *UsersService) GetEmail(email int, options ...RequestOptionFunc) (*Email, *Response, error)
- func (s *UsersService) GetImpersonationToken(user, token int, options ...RequestOptionFunc) (*ImpersonationToken, *Response, error)
- func (s *UsersService) GetSSHKey(key int, options ...RequestOptionFunc) (*SSHKey, *Response, error)
- func (s *UsersService) GetUser(user int, opt GetUsersOptions, options ...RequestOptionFunc) (*User, *Response, error)
- func (s *UsersService) GetUserActivities(opt *GetUserActivitiesOptions, options ...RequestOptionFunc) ([]*UserActivity, *Response, error)
- func (s *UsersService) GetUserMemberships(user int, opt *GetUserMembershipOptions, options ...RequestOptionFunc) ([]*UserMembership, *Response, error)
- func (s *UsersService) GetUserStatus(user int, options ...RequestOptionFunc) (*UserStatus, *Response, error)
- func (s *UsersService) ListEmails(options ...RequestOptionFunc) ([]*Email, *Response, error)
- func (s *UsersService) ListEmailsForUser(user int, opt *ListEmailsForUserOptions, options ...RequestOptionFunc) ([]*Email, *Response, error)
- func (s *UsersService) ListSSHKeys(options ...RequestOptionFunc) ([]*SSHKey, *Response, error)
- func (s *UsersService) ListSSHKeysForUser(user int, opt *ListSSHKeysForUserOptions, options ...RequestOptionFunc) ([]*SSHKey, *Response, error)
- func (s *UsersService) ListUserContributionEvents(uid interface{}, opt *ListContributionEventsOptions, ...) ([]*ContributionEvent, *Response, error)
- func (s *UsersService) ListUsers(opt *ListUsersOptions, options ...RequestOptionFunc) ([]*User, *Response, error)
- func (s *UsersService) ModifyUser(user int, opt *ModifyUserOptions, options ...RequestOptionFunc) (*User, *Response, error)
- func (s *UsersService) RevokeImpersonationToken(user, token int, options ...RequestOptionFunc) (*Response, error)
- func (s *UsersService) SetUserStatus(opt *UserStatusOptions, options ...RequestOptionFunc) (*UserStatus, *Response, error)
- func (s *UsersService) UnblockUser(user int, options ...RequestOptionFunc) error
- type ValidateService
- func (s *ValidateService) Lint(content string, options ...RequestOptionFunc) (*LintResult, *Response, error)
- func (s *ValidateService) ProjectLint(pid interface{}, opt *ProjectLintOptions, options ...RequestOptionFunc) (*ProjectLintResult, *Response, error)
- func (s *ValidateService) ProjectNamespaceLint(pid interface{}, opt *ProjectNamespaceLintOptions, ...) (*ProjectLintResult, *Response, error)
- type VariableTypeValue
- type VerifyRegisteredRunnerOptions
- type Version
- type VersionService
- type VisibilityValue
- type Wiki
- type WikiFormatValue
- type WikiPageEvent
- type WikisService
- func (s *WikisService) CreateWikiPage(pid interface{}, opt *CreateWikiPageOptions, options ...RequestOptionFunc) (*Wiki, *Response, error)
- func (s *WikisService) DeleteWikiPage(pid interface{}, slug string, options ...RequestOptionFunc) (*Response, error)
- func (s *WikisService) EditWikiPage(pid interface{}, slug string, opt *EditWikiPageOptions, ...) (*Wiki, *Response, error)
- func (s *WikisService) GetWikiPage(pid interface{}, slug string, options ...RequestOptionFunc) (*Wiki, *Response, error)
- func (s *WikisService) ListWikis(pid interface{}, opt *ListWikisOptions, options ...RequestOptionFunc) ([]*Wiki, *Response, error)
- type YouTrackService
- type YouTrackServiceProperties
Constants ¶
This section is empty.
Variables ¶
var ( ErrUserActivatePrevented = errors.New("Cannot activate a user that is blocked by admin or by LDAP synchronization") ErrUserBlockPrevented = errors.New("Cannot block a user that is already blocked by LDAP synchronization") ErrUserDeactivatePrevented = errors.New("Cannot deactivate a user that is blocked by admin or by LDAP synchronization, or that has any activity in past 180 days") ErrUserNotFound = errors.New("User does not exist") ErrUserUnblockPrevented = errors.New("Cannot unblock a user that is blocked by LDAP synchronization") )
List a couple of standard errors.
Functions ¶
func Bool ¶
Bool is a helper routine that allocates a new bool value to store v and returns a pointer to it.
func CheckResponse ¶
CheckResponse checks the API response for errors, and returns them if present.
func Int ¶
Int is a helper routine that allocates a new int32 value to store v and returns a pointer to it, but unlike Int32 its argument value is an int.
func ParseHook ¶ added in v0.24.0
ParseHook tries to parse both web- and system hooks.
Example usage:
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
payload, err := ioutil.ReadAll(r.Body) if err != nil { ... } event, err := gitlab.ParseHook(gitlab.HookEventType(r), payload) if err != nil { ... } switch event := event.(type) { case *gitlab.PushEvent: processPushEvent(event) case *gitlab.MergeEvent: processMergeEvent(event) ... }
}
func ParseSystemhook ¶ added in v0.24.0
ParseSystemhook parses the event payload. For recognized event types, a value of the corresponding struct type will be returned. An error will be returned for unrecognized event types.
Example usage:
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
payload, err := ioutil.ReadAll(r.Body) if err != nil { ... } event, err := gitlab.ParseSystemhook(payload) if err != nil { ... } switch event := event.(type) { case *gitlab.PushSystemEvent: processPushSystemEvent(event) case *gitlab.MergeSystemEvent: processMergeSystemEvent(event) ... }
}
func ParseWebhook ¶ added in v0.11.6
ParseWebhook parses the event payload. For recognized event types, a value of the corresponding struct type will be returned. An error will be returned for unrecognized event types.
Example usage:
func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) {
payload, err := ioutil.ReadAll(r.Body) if err != nil { ... } event, err := gitlab.ParseWebhook(gitlab.HookEventType(r), payload) if err != nil { ... } switch event := event.(type) { case *gitlab.PushEvent: processPushEvent(event) case *gitlab.MergeEvent: processMergeEvent(event) ... }
}
func String ¶
String is a helper routine that allocates a new string value to store v and returns a pointer to it.
Types ¶
type AcceptMergeRequestOptions ¶ added in v0.4.0
type AcceptMergeRequestOptions struct { MergeCommitMessage *string `url:"merge_commit_message,omitempty" json:"merge_commit_message,omitempty"` SquashCommitMessage *string `url:"squash_commit_message,omitempty" json:"squash_commit_message,omitempty"` Squash *bool `url:"squash,omitempty" json:"squash,omitempty"` ShouldRemoveSourceBranch *bool `url:"should_remove_source_branch,omitempty" json:"should_remove_source_branch,omitempty"` MergeWhenPipelineSucceeds *bool `url:"merge_when_pipeline_succeeds,omitempty" json:"merge_when_pipeline_succeeds,omitempty"` SHA *string `url:"sha,omitempty" json:"sha,omitempty"` }
AcceptMergeRequestOptions represents the available AcceptMergeRequest() options.
GitLab API docs: https://docs.gitlab.com/ce/api/merge_requests.html#accept-mr
type AccessControlValue ¶ added in v0.32.0
type AccessControlValue string
AccessControlValue represents an access control value within GitLab, used for managing access to certain project features.
GitLab API docs: https://docs.gitlab.com/ce/api/projects.html
const ( DisabledAccessControl AccessControlValue = "disabled" EnabledAccessControl AccessControlValue = "enabled" PrivateAccessControl AccessControlValue = "private" PublicAccessControl AccessControlValue = "public" )
List of available access control values.
GitLab API docs: https://docs.gitlab.com/ce/api/projects.html
func AccessControl ¶ added in v0.32.0
func AccessControl(v AccessControlValue) *AccessControlValue
AccessControl is a helper routine that allocates a new AccessControlValue to store v and returns a pointer to it.
type AccessLevelValue ¶ added in v0.2.0
type AccessLevelValue int
AccessLevelValue represents a permission level within GitLab.
GitLab API docs: https://docs.gitlab.com/ce/permissions/permissions.html
const ( NoPermissions AccessLevelValue = 0 MinimalAccessPermissions AccessLevelValue = 5 GuestPermissions AccessLevelValue = 10 ReporterPermissions AccessLevelValue = 20 DeveloperPermissions AccessLevelValue = 30 MaintainerPermissions AccessLevelValue = 40 OwnerPermissions AccessLevelValue = 50 // These are deprecated and should be removed in a future version MasterPermissions AccessLevelValue = 40 OwnerPermission AccessLevelValue = 50 )
List of available access levels
GitLab API docs: https://docs.gitlab.com/ce/permissions/permissions.html
func AccessLevel ¶
func AccessLevel(v AccessLevelValue) *AccessLevelValue
AccessLevel is a helper routine that allocates a new AccessLevelValue to store v and returns a pointer to it.
type AccessRequest ¶ added in v0.11.1
type AccessRequest struct { ID int `json:"id"` Username string `json:"username"` Name string `json:"name"` State string `json:"state"` CreatedAt *time.Time `json:"created_at"` RequestedAt *time.Time `json:"requested_at"` AccessLevel AccessLevelValue `json:"access_level"` }
AccessRequest represents a access request for a group or project.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html
type AccessRequestsService ¶ added in v0.11.1
type AccessRequestsService struct {
// contains filtered or unexported fields
}
AccessRequestsService handles communication with the project/group access requests related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html
func (*AccessRequestsService) ApproveGroupAccessRequest ¶ added in v0.11.1
func (s *AccessRequestsService) ApproveGroupAccessRequest(gid interface{}, user int, opt *ApproveAccessRequestOptions, options ...RequestOptionFunc) (*AccessRequest, *Response, error)
ApproveGroupAccessRequest approves an access request for the given user.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#approve-an-access-request
func (*AccessRequestsService) ApproveProjectAccessRequest ¶ added in v0.11.1
func (s *AccessRequestsService) ApproveProjectAccessRequest(pid interface{}, user int, opt *ApproveAccessRequestOptions, options ...RequestOptionFunc) (*AccessRequest, *Response, error)
ApproveProjectAccessRequest approves an access request for the given user.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#approve-an-access-request
func (*AccessRequestsService) DenyGroupAccessRequest ¶ added in v0.11.1
func (s *AccessRequestsService) DenyGroupAccessRequest(gid interface{}, user int, options ...RequestOptionFunc) (*Response, error)
DenyGroupAccessRequest denies an access request for the given user.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#deny-an-access-request
func (*AccessRequestsService) DenyProjectAccessRequest ¶ added in v0.11.1
func (s *AccessRequestsService) DenyProjectAccessRequest(pid interface{}, user int, options ...RequestOptionFunc) (*Response, error)
DenyProjectAccessRequest denies an access request for the given user.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#deny-an-access-request
func (*AccessRequestsService) ListGroupAccessRequests ¶ added in v0.11.1
func (s *AccessRequestsService) ListGroupAccessRequests(gid interface{}, opt *ListAccessRequestsOptions, options ...RequestOptionFunc) ([]*AccessRequest, *Response, error)
ListGroupAccessRequests gets a list of access requests viewable by the authenticated user.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#list-access-requests-for-a-group-or-project
func (*AccessRequestsService) ListProjectAccessRequests ¶ added in v0.11.1
func (s *AccessRequestsService) ListProjectAccessRequests(pid interface{}, opt *ListAccessRequestsOptions, options ...RequestOptionFunc) ([]*AccessRequest, *Response, error)
ListProjectAccessRequests gets a list of access requests viewable by the authenticated user.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#list-access-requests-for-a-group-or-project
func (*AccessRequestsService) RequestGroupAccess ¶ added in v0.11.1
func (s *AccessRequestsService) RequestGroupAccess(gid interface{}, options ...RequestOptionFunc) (*AccessRequest, *Response, error)
RequestGroupAccess requests access for the authenticated user to a group or project.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#request-access-to-a-group-or-project
func (*AccessRequestsService) RequestProjectAccess ¶ added in v0.11.1
func (s *AccessRequestsService) RequestProjectAccess(pid interface{}, options ...RequestOptionFunc) (*AccessRequest, *Response, error)
RequestProjectAccess requests access for the authenticated user to a group or project.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#request-access-to-a-group-or-project
type AddClusterOptions ¶ added in v0.14.1
type AddClusterOptions struct { Name *string `url:"name,omitempty" json:"name,omitempty"` Domain *string `url:"domain,omitempty" json:"domain,omitempty"` Enabled *bool `url:"enabled,omitempty" json:"enabled,omitempty"` Managed *bool `url:"managed,omitempty" json:"managed,omitempty"` EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"` PlatformKubernetes *AddPlatformKubernetesOptions `url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"` ManagementProjectID *string `url:"management_project_id,omitempty" json:"management_project_id,omitempty"` }
AddClusterOptions represents the available AddCluster() options.
GitLab API docs: https://docs.gitlab.com/ee/api/project_clusters.html#add-existing-cluster-to-project
type AddCommitDiscussionNoteOptions ¶ added in v0.11.2
type AddCommitDiscussionNoteOptions struct { Body *string `url:"body,omitempty" json:"body,omitempty"` CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"` }
AddCommitDiscussionNoteOptions represents the available AddCommitDiscussionNote() options.
GitLab API docs: https://docs.gitlab.com/ce/api/discussions.html#add-note-to-existing-commit-thread
type AddDeployKeyOptions ¶
type AddDeployKeyOptions struct { Title *string `url:"title,omitempty" json:"title,omitempty"` Key *string `url:"key,omitempty" json:"key,omitempty"` CanPush *bool `url:"can_push,omitempty" json:"can_push,omitempty"` }
AddDeployKeyOptions represents the available ADDDeployKey() options.
GitLab API docs: https://docs.gitlab.com/ce/api/deploy_keys.html#add-deploy-key
type AddEmailOptions ¶ added in v0.4.0
type AddEmailOptions struct {
Email *string `url:"email,omitempty" json:"email,omitempty"`
}
AddEmailOptions represents the available AddEmail() options.
GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#add-email
type AddEpicDiscussionNoteOptions ¶ added in v0.11.2
type AddEpicDiscussionNoteOptions struct { Body *string `url:"body,omitempty" json:"body,omitempty"` CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"` }
AddEpicDiscussionNoteOptions represents the available AddEpicDiscussionNote() options.
GitLab API docs: https://docs.gitlab.com/ce/api/discussions.html#add-note-to-existing-epic-thread
type AddGroupBadgeOptions ¶ added in v0.16.0
type AddGroupBadgeOptions struct { LinkURL *string `url:"link_url,omitempty" json:"link_url,omitempty"` ImageURL *string `url:"image_url,omitempty" json:"image_url,omitempty"` }
AddGroupBadgeOptions represents the available AddGroupBadge() options.
GitLab API docs: https://docs.gitlab.com/ee/api/group_badges.html#add-a-badge-to-a-group
type AddGroupClusterOptions ¶ added in v0.21.0
type AddGroupClusterOptions struct { Name *string `url:"name,omitempty" json:"name,omitempty"` Domain *string `url:"domain,omitempty" json:"domain,omitempty"` ManagementProjectID *string `url:"management_project_id,omitempty" json:"management_project_id,omitempty"` Enabled *bool `url:"enabled,omitempty" json:"enabled,omitempty"` Managed *bool `url:"managed,omitempty" json:"managed,omitempty"` EnvironmentScope *string `url:"environment_scope,omitempty" json:"environment_scope,omitempty"` PlatformKubernetes *AddGroupPlatformKubernetesOptions `url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"` }
AddGroupClusterOptions represents the available AddCluster() options.
GitLab API docs: https://docs.gitlab.com/ee/api/group_clusters.html#add-existing-cluster-to-group
type AddGroupHookOptions ¶ added in v0.30.0
type AddGroupHookOptions struct { URL *string `url:"url,omitempty" json:"url,omitempty"` PushEvents *bool `url:"push_events,omitempty" json:"push_events,omitempty"` IssuesEvents *bool `url:"issues_events,omitempty" json:"issues_events,omitempty"` ConfidentialIssuesEvents *bool `url:"confidential_issues_events,omitempty" json:"confidential_issues_events,omitempty"` ConfidentialNoteEvents *bool `url:"confidential_note_events,omitempty" json:"confidential_note_events,omitempty"` MergeRequestsEvents *bool `url:"merge_requests_events,omitempty" json:"merge_requests_events,omitempty"` TagPushEvents *bool `url:"tag_push_events,omitempty" json:"tag_push_events,omitempty"` NoteEvents *bool `url:"note_events,omitempty" json:"note_events,omitempty"` JobEvents *bool `url:"job_events,omitempty" json:"job_events,omitempty"` PipelineEvents *bool `url:"pipeline_events,omitempty" json:"pipeline_events,omitempty"` WikiPageEvents *bool `url:"wiki_page_events,omitempty" json:"wiki_page_events,omitempty"` DeploymentEvents *bool `url:"deployment_events,omitempty" json:"deployment_events,omitempty"` ReleasesEvents *bool `url:"releases_events,omitempty" json:"releases_events,omitempty"` EnableSSLVerification *bool `url:"enable_ssl_verification,omitempty" json:"enable_ssl_verification,omitempty"` Token *string `url:"token,omitempty" json:"token,omitempty"` }
AddGroupHookOptions represents the available AddGroupHook() options.
GitLab API docs: https://docs.gitlab.com/ee/api/groups.html#add-group-hook
type AddGroupLDAPLinkOptions ¶ added in v0.30.0
type AddGroupLDAPLinkOptions struct { CN *string `url:"cn,omitempty" json:"cn,omitempty"` Filter *string `url:"filter,omitempty" json:"filter,omitempty"` GroupAccess *AccessLevelValue `url:"group_access,omitempty" json:"group_access,omitempty"` Provider *string `url:"provider,omitempty" json:"provider,omitempty"` }
AddGroupLDAPLinkOptions represents the available AddGroupLDAPLink() options.
GitLab API docs: https://docs.gitlab.com/ee/api/groups.html#add-ldap-group-link-starter
type AddGroupMemberOptions ¶
type AddGroupMemberOptions struct { UserID *int `url:"user_id,omitempty" json:"user_id,omitempty"` AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"` ExpiresAt *string `url:"expires_at,omitempty" json:"expires_at"` }
AddGroupMemberOptions represents the available AddGroupMember() options.
GitLab API docs: https://docs.gitlab.com/ce/api/members.html#add-a-member-to-a-group-or-project
type AddGroupPlatformKubernetesOptions ¶ added in v0.21.0
type AddGroupPlatformKubernetesOptions struct { APIURL *string `url:"api_url,omitempty" json:"api_url,omitempty"` Token *string `url:"token,omitempty" json:"token,omitempty"` CaCert *string `url:"ca_cert,omitempty" json:"ca_cert,omitempty"` Namespace *string `url:"namespace,omitempty" json:"namespace,omitempty"` AuthorizationType *string `url:"authorization_type,omitempty" json:"authorization_type,omitempty"` }
AddGroupPlatformKubernetesOptions represents the available PlatformKubernetes options for adding.
type AddGroupPushRuleOptions ¶ added in v0.38.0
type AddGroupPushRuleOptions struct { AuthorEmailRegex *string `url:"author_email_regex,omitempty" json:"author_email_regex,omitempty"` BranchNameRegex *string `url:"branch_name_regex,omitempty" json:"branch_name_regex,omitempty"` CommitCommitterCheck *bool `url:"commit_committer_check,omitempty" json:"commit_committer_check,omitempty"` CommitMessageNegativeRegex *string `url:"commit_message_negative_regex,omitempty" json:"commit_message_negative_regex,omitempty"` CommitMessageRegex *string `url:"commit_message_regex,omitempty" json:"commit_message_regex,omitempty"` DenyDeleteTag *bool `url:"deny_delete_tag,omitempty" json:"deny_delete_tag,omitempty"` FileNameRegex *string `url:"file_name_regex,omitempty" json:"file_name_regex,omitempty"` MaxFileSize *int `url:"max_file_size,omitempty" json:"max_file_size,omitempty"` MemberCheck *bool `url:"member_check,omitempty" json:"member_check,omitempty"` PreventSecrets *bool `url:"prevent_secrets,omitempty" json:"prevent_secrets,omitempty"` RejectUnsignedCommits *bool `url:"reject_unsigned_commits,omitempty" json:"reject_unsigned_commits,omitempty"` }
AddGroupPushRuleOptions represents the available AddGroupPushRule() options.
GitLab API docs: https://docs.gitlab.com/ee/api/groups.html#add-group-push-rule
type AddHookOptions ¶
type AddHookOptions struct { URL *string `url:"url,omitempty" json:"url,omitempty"` Token *string `url:"token,omitempty" json:"token,omitempty"` PushEvents *bool `url:"push_events,omitempty" json:"push_events,omitempty"` TagPushEvents *bool `url:"tag_push_events,omitempty" json:"tag_push_events,omitempty"` MergeRequestsEvents *bool `url:"merge_requests_events,omitempty" json:"merge_requests_events,omitempty"` RepositoryUpdateEvents *bool `url:"repository_update_events,omitempty" json:"repository_update_events,omitempty"` EnableSSLVerification *bool `url:"enable_ssl_verification,omitempty" json:"enable_ssl_verification,omitempty"` }
AddHookOptions represents the available AddHook() options.
GitLab API docs: https://docs.gitlab.com/ce/api/system_hooks.html#add-new-system-hook-hook
type AddIssueDiscussionNoteOptions ¶ added in v0.11.2
type AddIssueDiscussionNoteOptions struct { Body *string `url:"body,omitempty" json:"body,omitempty"` CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"` }
AddIssueDiscussionNoteOptions represents the available AddIssueDiscussionNote() options.
GitLab API docs: https://docs.gitlab.com/ce/api/discussions.html#add-note-to-existing-issue-thread
type AddLicenseOptions ¶ added in v0.11.4
type AddLicenseOptions struct {
License *string `url:"license" json:"license"`
}
AddLicenseOptions represents the available AddLicense() options.
https://docs.gitlab.com/ee/api/license.html#add-a-new-license
type AddManagedLicenseOptions ¶ added in v0.50.0
type AddManagedLicenseOptions struct { Name *string `url:"name,omitempty" json:"name,omitempty"` ApprovalStatus *LicenseApprovalStatusValue `url:"approval_status,omitempty" json:"approval_status,omitempty"` }
AddManagedLicenseOptions represents the available AddManagedLicense() options.
GitLab API docs: https://docs.gitlab.com/ee/api/managed_licenses.html#create-a-new-managed-license
type AddMergeRequestDiscussionNoteOptions ¶ added in v0.11.2
type AddMergeRequestDiscussionNoteOptions struct { Body *string `url:"body,omitempty" json:"body,omitempty"` CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"` }
AddMergeRequestDiscussionNoteOptions represents the available AddMergeRequestDiscussionNote() options.
GitLab API docs: https://docs.gitlab.com/ce/api/discussions.html#add-note-to-existing-merge-request-discussion
type AddPipelineTriggerOptions ¶ added in v0.6.0
type AddPipelineTriggerOptions struct {
Description *string `url:"description,omitempty" json:"description,omitempty"`
}
AddPipelineTriggerOptions represents the available AddPipelineTrigger() options.
GitLab API docs: https://docs.gitlab.com/ce/api/pipeline_triggers.html#create-a-project-trigger
type AddPlatformKubernetesOptions ¶ added in v0.14.1
type AddPlatformKubernetesOptions struct { APIURL *string `url:"api_url,omitempty" json:"api_url,omitempty"` Token *string `url:"token,omitempty" json:"token,omitempty"` CaCert *string `url:"ca_cert,omitempty" json:"ca_cert,omitempty"` Namespace *string `url:"namespace,omitempty" json:"namespace,omitempty"` AuthorizationType *string `url:"authorization_type,omitempty" json:"authorization_type,omitempty"` }
AddPlatformKubernetesOptions represents the available PlatformKubernetes options for adding.
type AddProjectBadgeOptions ¶ added in v0.11.1
type AddProjectBadgeOptions struct { LinkURL *string `url:"link_url,omitempty" json:"link_url,omitempty"` ImageURL *string `url:"image_url,omitempty" json:"image_url,omitempty"` }
AddProjectBadgeOptions represents the available AddProjectBadge() options.
GitLab API docs: https://docs.gitlab.com/ee/api/project_badges.html#add-a-badge-to-a-project
type AddProjectHookOptions ¶
type AddProjectHookOptions struct { ConfidentialIssuesEvents *bool `url:"confidential_issues_events,omitempty" json:"confidential_issues_events,omitempty"` ConfidentialNoteEvents *bool `url:"confidential_note_events,omitempty" json:"confidential_note_events,omitempty"` DeploymentEvents *bool `url:"deployment_events,omitempty" json:"deployment_events,omitempty"` EnableSSLVerification *bool `url:"enable_ssl_verification,omitempty" json:"enable_ssl_verification,omitempty"` IssuesEvents *bool `url:"issues_events,omitempty" json:"issues_events,omitempty"` JobEvents *bool `url:"job_events,omitempty" json:"job_events,omitempty"` MergeRequestsEvents *bool `url:"merge_requests_events,omitempty" json:"merge_requests_events,omitempty"` NoteEvents *bool `url:"note_events,omitempty" json:"note_events,omitempty"` PipelineEvents *bool `url:"pipeline_events,omitempty" json:"pipeline_events,omitempty"` PushEvents *bool `url:"push_events,omitempty" json:"push_events,omitempty"` PushEventsBranchFilter *string `url:"push_events_branch_filter,omitempty" json:"push_events_branch_filter,omitempty"` ReleasesEvents *bool `url:"releases_events,omitempty" json:"releases_events,omitempty"` TagPushEvents *bool `url:"tag_push_events,omitempty" json:"tag_push_events,omitempty"` Token *string `url:"token,omitempty" json:"token,omitempty"` URL *string `url:"url,omitempty" json:"url,omitempty"` WikiPageEvents *bool `url:"wiki_page_events,omitempty" json:"wiki_page_events,omitempty"` }
AddProjectHookOptions represents the available AddProjectHook() options.
GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#add-project-hook
type AddProjectMemberOptions ¶
type AddProjectMemberOptions struct { UserID interface{} `url:"user_id,omitempty" json:"user_id,omitempty"` AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"` ExpiresAt *string `url:"expires_at,omitempty" json:"expires_at"` }
AddProjectMemberOptions represents the available AddProjectMember() options.
GitLab API docs: https://docs.gitlab.com/ce/api/members.html#add-a-member-to-a-group-or-project
type AddProjectMirrorOptions ¶ added in v0.33.0
type AddProjectMirrorOptions struct { URL *string `url:"url,omitempty" json:"url,omitempty"` Enabled *bool `url:"enabled,omitempty" json:"enabled,omitempty"` OnlyProtectedBranches *bool `url:"only_protected_branches,omitempty" json:"only_protected_branches,omitempty"` KeepDivergentRefs *bool `url:"keep_divergent_refs,omitempty" json:"keep_divergent_refs,omitempty"` }
AddProjectMirrorOptions contains the properties requires to create a new project mirror.
GitLab API docs: https://docs.gitlab.com/ce/api/remote_mirrors.html#create-a-remote-mirror
type AddProjectPushRuleOptions ¶ added in v0.11.5
type AddProjectPushRuleOptions struct { AuthorEmailRegex *string `url:"author_email_regex,omitempty" json:"author_email_regex,omitempty"` BranchNameRegex *string `url:"branch_name_regex,omitempty" json:"branch_name_regex,omitempty"` CommitCommitterCheck *bool `url:"commit_committer_check,omitempty" json:"commit_committer_check,omitempty"` CommitMessageNegativeRegex *string `url:"commit_message_negative_regex,omitempty" json:"commit_message_negative_regex,omitempty"` CommitMessageRegex *string `url:"commit_message_regex,omitempty" json:"commit_message_regex,omitempty"` DenyDeleteTag *bool `url:"deny_delete_tag,omitempty" json:"deny_delete_tag,omitempty"` FileNameRegex *string `url:"file_name_regex,omitempty" json:"file_name_regex,omitempty"` MaxFileSize *int `url:"max_file_size,omitempty" json:"max_file_size,omitempty"` MemberCheck *bool `url:"member_check,omitempty" json:"member_check,omitempty"` PreventSecrets *bool `url:"prevent_secrets,omitempty" json:"prevent_secrets,omitempty"` RejectUnsignedCommits *bool `url:"reject_unsigned_commits,omitempty" json:"reject_unsigned_commits,omitempty"` }
AddProjectPushRuleOptions represents the available AddProjectPushRule() options.
GitLab API docs: https://docs.gitlab.com/ee/api/projects.html#add-project-push-rule
type AddSSHKeyOptions ¶
type AddSSHKeyOptions struct { Title *string `url:"title,omitempty" json:"title,omitempty"` Key *string `url:"key,omitempty" json:"key,omitempty"` ExpiresAt *ISOTime `url:"expires_at,omitempty" json:"expires_at,omitempty"` }
AddSSHKeyOptions represents the available AddSSHKey() options.
GitLab API docs: https://docs.gitlab.com/ce/api/projects.html#add-ssh-key
type AddSnippetDiscussionNoteOptions ¶ added in v0.11.2
type AddSnippetDiscussionNoteOptions struct { Body *string `url:"body,omitempty" json:"body,omitempty"` CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"` }
AddSnippetDiscussionNoteOptions represents the available AddSnippetDiscussionNote() options.
GitLab API docs: https://docs.gitlab.com/ce/api/discussions.html#add-note-to-existing-snippet-thread
type AddSpentTimeOptions ¶ added in v0.4.0
type AddSpentTimeOptions struct {
Duration *string `url:"duration,omitempty" json:"duration,omitempty"`
}
AddSpentTimeOptions represents the available AddSpentTime() options.
GitLab docs: https://docs.gitlab.com/ce/workflow/time_tracking.html
type Application ¶ added in v0.30.0
type Application struct { ID int `json:"id"` ApplicationID string `json:"application_id"` ApplicationName string `json:"application_name"` Secret string `json:"secret"` CallbackURL string `json:"callback_url"` Confidential bool `json:"confidential"` }
Application represents a GitLab application
type ApplicationsService ¶ added in v0.30.0
type ApplicationsService struct {
// contains filtered or unexported fields
}
ApplicationsService handles communication with administrables applications of the Gitlab API.
Gitlab API docs : https://docs.gitlab.com/ee/api/applications.html
func (*ApplicationsService) CreateApplication ¶ added in v0.30.0
func (s *ApplicationsService) CreateApplication(opt *CreateApplicationOptions, options ...RequestOptionFunc) (*Application, *Response, error)
CreateApplication creates a new application owned by the authenticated user.
Gitlab API docs : https://docs.gitlab.com/ce/api/applications.html#create-an-application
func (*ApplicationsService) DeleteApplication ¶ added in v0.30.0
func (s *ApplicationsService) DeleteApplication(application int, options ...RequestOptionFunc) (*Response, error)
DeleteApplication removes a specific application.
GitLab API docs: https://docs.gitlab.com/ce/api/applications.html#delete-an-application
func (*ApplicationsService) ListApplications ¶ added in v0.30.0
func (s *ApplicationsService) ListApplications(opt *ListApplicationsOptions, options ...RequestOptionFunc) ([]*Application, *Response, error)
ListApplications get a list of administrables applications by the authenticated user
Gitlab API docs : https://docs.gitlab.com/ce/api/applications.html#list-all-applications
type ApproveAccessRequestOptions ¶ added in v0.11.1
type ApproveAccessRequestOptions struct {
AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"`
}
ApproveAccessRequestOptions represents the available ApproveProjectAccessRequest() and ApproveGroupAccessRequest() options.
GitLab API docs: https://docs.gitlab.com/ce/api/access_requests.html#approve-an-access-request
type ApproveMergeRequestOptions ¶ added in v0.10.0
type ApproveMergeRequestOptions struct {
SHA *string `url:"sha,omitempty" json:"sha,omitempty"`
}
ApproveMergeRequestOptions represents the available ApproveMergeRequest() options.
GitLab API docs: https://docs.gitlab.com/ee/api/merge_request_approvals.html#approve-merge-request
type ArchiveOptions ¶
type ArchiveOptions struct { Format *string `url:"-" json:"-"` SHA *string `url:"sha,omitempty" json:"sha,omitempty"` }
ArchiveOptions represents the available Archive() options.
GitLab API docs: https://docs.gitlab.com/ce/api/repositories.html#get-file-archive
type AuditEvent ¶ added in v0.43.0
type AuditEvent struct { ID int `json:"id"` AuthorID int `json:"author_id"` EntityID int `json:"entity_id"` EntityType string `json:"entity_type"` Details AuditEventDetails `json:"details"` CreatedAt *time.Time `json:"created_at"` }
AuditEvent represents an audit event for a group, a project or the instance.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
type AuditEventDetails ¶ added in v0.43.0
type AuditEventDetails struct { With string `json:"with"` Add string `json:"add"` As string `json:"as"` Change string `json:"change"` From string `json:"from"` To string `json:"to"` Remove string `json:"remove"` CustomMessage string `json:"custom_message"` AuthorName string `json:"author_name"` TargetID interface{} `json:"target_id"` TargetType string `json:"target_type"` TargetDetails string `json:"target_details"` IPAddress string `json:"ip_address"` EntityPath string `json:"entity_path"` FailedLogin string `json:"failed_login"` }
AuditEventDetails represents the details portion of an audit event for a group, a project or the instance. The exact fields that are returned for an audit event depend on the action being recorded.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
type AuditEventsService ¶ added in v0.43.0
type AuditEventsService struct {
// contains filtered or unexported fields
}
AuditEventsService handles communication with the project/group/instance audit event related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
func (*AuditEventsService) GetGroupAuditEvent ¶ added in v0.43.0
func (s *AuditEventsService) GetGroupAuditEvent(gid interface{}, event int, options ...RequestOptionFunc) (*AuditEvent, *Response, error)
GetGroupAuditEvent gets a specific group audit event.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
func (*AuditEventsService) GetInstanceAuditEvent ¶ added in v0.50.4
func (s *AuditEventsService) GetInstanceAuditEvent(event int, options ...RequestOptionFunc) (*AuditEvent, *Response, error)
GetInstanceAuditEvent gets a specific instance audit event. Authentication as Administrator is required.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
func (*AuditEventsService) GetProjectAuditEvent ¶ added in v0.43.0
func (s *AuditEventsService) GetProjectAuditEvent(pid interface{}, event int, options ...RequestOptionFunc) (*AuditEvent, *Response, error)
GetProjectAuditEvent gets a specific project audit event.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
func (*AuditEventsService) ListGroupAuditEvents ¶ added in v0.43.0
func (s *AuditEventsService) ListGroupAuditEvents(gid interface{}, opt *ListAuditEventsOptions, options ...RequestOptionFunc) ([]*AuditEvent, *Response, error)
ListGroupAuditEvents gets a list of audit events for the specified group viewable by the authenticated user.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
func (*AuditEventsService) ListInstanceAuditEvents ¶ added in v0.50.4
func (s *AuditEventsService) ListInstanceAuditEvents(opt *ListAuditEventsOptions, options ...RequestOptionFunc) ([]*AuditEvent, *Response, error)
ListInstanceAuditEvents gets a list of audit events for instance. Authentication as Administrator is required.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
func (*AuditEventsService) ListProjectAuditEvents ¶ added in v0.43.0
func (s *AuditEventsService) ListProjectAuditEvents(pid interface{}, opt *ListAuditEventsOptions, options ...RequestOptionFunc) ([]*AuditEvent, *Response, error)
ListProjectAuditEvents gets a list of audit events for the specified project viewable by the authenticated user.
GitLab API docs: https://docs.gitlab.com/ee/api/audit_events.html
type Author ¶
type Author struct { ID int `json:"id"` Username string `json:"username"` Email string `json:"email"` Name string `json:"name"` State string `json:"state"` Blocked bool `json:"blocked"` CreatedAt *time.Time `json:"created_at"` }
Author represents a GitLab commit author
type AvailabilityValue ¶ added in v0.50.4
type AvailabilityValue string
AvailabilityValue represents an availability value within GitLab.
const ( NotSet AvailabilityValue = "not_set" Busy AvailabilityValue = "busy" )
List of available availability values.
Undocummented, see code at: https://gitlab.com/gitlab-org/gitlab-foss/-/blob/master/app/models/user_status.rb#L22
func Availability ¶ added in v0.50.4
func Availability(v AvailabilityValue) *AvailabilityValue
Availability is a helper routine that allocates a new AvailabilityValue to store v and returns a pointer to it.
type Avatar ¶ added in v0.50.1
type Avatar struct {
AvatarURL string `json:"avatar_url"`
}
Avatar represents a GitLab avatar.
GitLab API docs: https://docs.gitlab.com/ee/api/avatar.html
type AvatarRequestsService ¶ added in v0.50.1
type AvatarRequestsService struct {
// contains filtered or unexported fields
}
AvatarRequestsService handles communication with the avatar related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ee/api/avatar.html
func (*AvatarRequestsService) GetAvatar ¶ added in v0.50.1
func (s *AvatarRequestsService) GetAvatar(opt *GetAvatarOptions, options ...RequestOptionFunc) (*Avatar, *Response, error)
GetAvatar gets the avatar URL for a user with the given email address.
GitLab API docs: https://docs.gitlab.com/ee/api/avatar.html#get-a-single-avatar-url
type AwardEmoji ¶ added in v0.8.0
type AwardEmoji struct { ID int `json:"id"` Name string `json:"name"` User struct { Name string `json:"name"` Username string `json:"username"` ID int `json:"id"` State string `json:"state"` AvatarURL string `json:"avatar_url"` WebURL string `json:"web_url"` } `json:"user"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"updated_at"` AwardableID int `json:"awardable_id"` AwardableType string `json:"awardable_type"` }
AwardEmoji represents a GitLab Award Emoji.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html
type AwardEmojiService ¶ added in v0.8.0
type AwardEmojiService struct {
// contains filtered or unexported fields
}
AwardEmojiService handles communication with the emoji awards related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html
func (*AwardEmojiService) CreateIssueAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) CreateIssueAwardEmoji(pid interface{}, issueIID int, opt *CreateAwardEmojiOptions, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
CreateIssueAwardEmoji get an award emoji from issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-a-new-emoji
func (*AwardEmojiService) CreateIssuesAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) CreateIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID int, opt *CreateAwardEmojiOptions, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
CreateIssuesAwardEmojiOnNote gets an award emoji on a note from an issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) CreateMergeRequestAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) CreateMergeRequestAwardEmoji(pid interface{}, mergeRequestIID int, opt *CreateAwardEmojiOptions, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
CreateMergeRequestAwardEmoji get an award emoji from merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-a-new-emoji
func (*AwardEmojiService) CreateMergeRequestAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) CreateMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID int, opt *CreateAwardEmojiOptions, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
CreateMergeRequestAwardEmojiOnNote gets an award emoji on a note from a merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) CreateSnippetAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) CreateSnippetAwardEmoji(pid interface{}, snippetID int, opt *CreateAwardEmojiOptions, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
CreateSnippetAwardEmoji get an award emoji from snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-a-new-emoji
func (*AwardEmojiService) CreateSnippetAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) CreateSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID int, opt *CreateAwardEmojiOptions, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
CreateSnippetAwardEmojiOnNote gets an award emoji on a note from a snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) DeleteIssueAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) DeleteIssueAwardEmoji(pid interface{}, issueIID, awardID int, options ...RequestOptionFunc) (*Response, error)
DeleteIssueAwardEmoji delete award emoji on an issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-a-new-emoji-on-a-note
func (*AwardEmojiService) DeleteIssuesAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) DeleteIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID, awardID int, options ...RequestOptionFunc) (*Response, error)
DeleteIssuesAwardEmojiOnNote deletes an award emoji on a note from an issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) DeleteMergeRequestAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) DeleteMergeRequestAwardEmoji(pid interface{}, mergeRequestIID, awardID int, options ...RequestOptionFunc) (*Response, error)
DeleteMergeRequestAwardEmoji delete award emoji on a merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-a-new-emoji-on-a-note
func (*AwardEmojiService) DeleteMergeRequestAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) DeleteMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID, awardID int, options ...RequestOptionFunc) (*Response, error)
DeleteMergeRequestAwardEmojiOnNote deletes an award emoji on a note from a merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) DeleteSnippetAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) DeleteSnippetAwardEmoji(pid interface{}, snippetID, awardID int, options ...RequestOptionFunc) (*Response, error)
DeleteSnippetAwardEmoji delete award emoji on a snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-a-new-emoji-on-a-note
func (*AwardEmojiService) DeleteSnippetAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) DeleteSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID, awardID int, options ...RequestOptionFunc) (*Response, error)
DeleteSnippetAwardEmojiOnNote deletes an award emoji on a note from a snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) GetIssueAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) GetIssueAwardEmoji(pid interface{}, issueIID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
GetIssueAwardEmoji get an award emoji from issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#list-an-awardable-39-s-award-emoji
func (*AwardEmojiService) GetIssuesAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) GetIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
GetIssuesAwardEmojiOnNote gets an award emoji on a note from an issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) GetMergeRequestAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) GetMergeRequestAwardEmoji(pid interface{}, mergeRequestIID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
GetMergeRequestAwardEmoji get an award emoji from merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#list-an-awardable-39-s-award-emoji
func (*AwardEmojiService) GetMergeRequestAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) GetMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
GetMergeRequestAwardEmojiOnNote gets an award emoji on a note from a merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) GetSnippetAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) GetSnippetAwardEmoji(pid interface{}, snippetID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
GetSnippetAwardEmoji get an award emoji from snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#list-an-awardable-39-s-award-emoji
func (*AwardEmojiService) GetSnippetAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) GetSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID, awardID int, options ...RequestOptionFunc) (*AwardEmoji, *Response, error)
GetSnippetAwardEmojiOnNote gets an award emoji on a note from a snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) ListIssueAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) ListIssueAwardEmoji(pid interface{}, issueIID int, opt *ListAwardEmojiOptions, options ...RequestOptionFunc) ([]*AwardEmoji, *Response, error)
ListIssueAwardEmoji gets a list of all award emoji on the issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#list-an-awardable-39-s-award-emoji
func (*AwardEmojiService) ListIssuesAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) ListIssuesAwardEmojiOnNote(pid interface{}, issueID, noteID int, opt *ListAwardEmojiOptions, options ...RequestOptionFunc) ([]*AwardEmoji, *Response, error)
ListIssuesAwardEmojiOnNote gets a list of all award emoji on a note from the issue.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) ListMergeRequestAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) ListMergeRequestAwardEmoji(pid interface{}, mergeRequestIID int, opt *ListAwardEmojiOptions, options ...RequestOptionFunc) ([]*AwardEmoji, *Response, error)
ListMergeRequestAwardEmoji gets a list of all award emoji on the merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#list-an-awardable-39-s-award-emoji
func (*AwardEmojiService) ListMergeRequestAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) ListMergeRequestAwardEmojiOnNote(pid interface{}, mergeRequestIID, noteID int, opt *ListAwardEmojiOptions, options ...RequestOptionFunc) ([]*AwardEmoji, *Response, error)
ListMergeRequestAwardEmojiOnNote gets a list of all award emoji on a note from the merge request.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
func (*AwardEmojiService) ListSnippetAwardEmoji ¶ added in v0.8.0
func (s *AwardEmojiService) ListSnippetAwardEmoji(pid interface{}, snippetID int, opt *ListAwardEmojiOptions, options ...RequestOptionFunc) ([]*AwardEmoji, *Response, error)
ListSnippetAwardEmoji gets a list of all award emoji on the snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#list-an-awardable-39-s-award-emoji
func (*AwardEmojiService) ListSnippetAwardEmojiOnNote ¶ added in v0.8.0
func (s *AwardEmojiService) ListSnippetAwardEmojiOnNote(pid interface{}, snippetIID, noteID int, opt *ListAwardEmojiOptions, options ...RequestOptionFunc) ([]*AwardEmoji, *Response, error)
ListSnippetAwardEmojiOnNote gets a list of all award emoji on a note from the snippet.
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-emoji-on-notes
type BaseSystemEvent ¶ added in v0.24.0
type BaseSystemEvent struct { EventName string `json:"event_name"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` }
BaseSystemEvent contains system hook's common properties.
GitLab API docs: https://docs.gitlab.com/ee/system_hooks/system_hooks.html
type BasicProject ¶ added in v0.50.1
type BasicProject struct { ID int `json:"id"` Description string `json:"description"` Name string `json:"name"` NameWithNamespace string `json:"name_with_namespace"` Path string `json:"path"` PathWithNamespace string `json:"path_with_namespace"` CreatedAt *time.Time `json:"created_at"` }
BasicProject included in other service responses (such as todos).
type BasicUser ¶ added in v0.21.0
type BasicUser struct { ID int `json:"id"` Username string `json:"username"` Name string `json:"name"` State string `json:"state"` CreatedAt *time.Time `json:"created_at"` AvatarURL string `json:"avatar_url"` WebURL string `json:"web_url"` }
BasicUser included in other service responses (such as merge requests, pipelines, etc).
type BillableGroupMember ¶ added in v0.44.0
type BillableGroupMember struct { ID int `json:"id"` Username string `json:"username"` Name string `json:"name"` State string `json:"state"` AvatarURL string `json:"avatar_url"` WebURL string `json:"web_url"` Email string `json:"email"` LastActivityOn ISOTime `json:"last_activity_on"` }
BillableGroupMember represents a GitLab billable group member.
GitLab API docs: https://docs.gitlab.com/ee/api/members.html#list-all-billable-members-of-a-group
type Blob ¶ added in v0.9.0
type Blob struct { Basename string `json:"basename"` Data string `json:"data"` Filename string `json:"filename"` ID int `json:"id"` Ref string `json:"ref"` Startline int `json:"startline"` ProjectID int `json:"project_id"` }
Blob represents a single blob.
type BoardList ¶ added in v0.8.0
type BoardList struct { ID int `json:"id"` Label *Label `json:"label"` Position int `json:"position"` }
BoardList represents a GitLab board list.
GitLab API docs: https://docs.gitlab.com/ce/api/boards.html
type BoolValue ¶ added in v0.11.0
type BoolValue bool
BoolValue is a boolean value with advanced json unmarshaling features.
func (*BoolValue) UnmarshalJSON ¶ added in v0.11.0
UnmarshalJSON allows 1, 0, "true", and "false" to be considered as boolean values Needed for: https://gitlab.com/gitlab-org/gitlab-ce/issues/50122 https://gitlab.com/gitlab-org/gitlab/-/issues/233941 https://github.com/gitlabhq/terraform-provider-gitlab/issues/348
type Branch ¶
type Branch struct { Commit *Commit `json:"commit"` Name string `json:"name"` Protected bool `json:"protected"` Merged bool `json:"merged"` Default bool `json:"default"` CanPush bool `json:"can_push"` DevelopersCanPush bool `json:"developers_can_push"` DevelopersCanMerge bool `json:"developers_can_merge"` WebURL string `json:"web_url"` }
Branch represents a GitLab branch.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html
type BranchAccessDescription ¶ added in v0.7.4
type BranchAccessDescription struct { AccessLevel AccessLevelValue `json:"access_level"` AccessLevelDescription string `json:"access_level_description"` UserID int `json:"user_id"` GroupID int `json:"group_id"` }
BranchAccessDescription represents the access description for a protected branch.
GitLab API docs: https://docs.gitlab.com/ce/api/protected_branches.html#protected-branches-api
type BranchPermissionOptions ¶ added in v0.44.0
type BranchPermissionOptions struct { UserID *int `url:"user_id,omitempty" json:"user_id,omitempty"` GroupID *int `url:"group_id,omitempty" json:"group_id,omitempty"` DeployKeyID *int `url:"deploy_key_id,omitempty" json:"deploy_key_id,omitempty"` AccessLevel *AccessLevelValue `url:"access_level,omitempty" json:"access_level,omitempty"` }
BranchPermissionOptions represents a branch permission option.
GitLab API docs: https://docs.gitlab.com/ce/api/protected_branches.html#protect-repository-branches
type BranchesService ¶
type BranchesService struct {
// contains filtered or unexported fields
}
BranchesService handles communication with the branch related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html
func (*BranchesService) CreateBranch ¶
func (s *BranchesService) CreateBranch(pid interface{}, opt *CreateBranchOptions, options ...RequestOptionFunc) (*Branch, *Response, error)
CreateBranch creates branch from commit SHA or existing branch.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#create-repository-branch
func (*BranchesService) DeleteBranch ¶
func (s *BranchesService) DeleteBranch(pid interface{}, branch string, options ...RequestOptionFunc) (*Response, error)
DeleteBranch deletes an existing branch.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#delete-repository-branch
func (*BranchesService) DeleteMergedBranches ¶ added in v0.6.0
func (s *BranchesService) DeleteMergedBranches(pid interface{}, options ...RequestOptionFunc) (*Response, error)
DeleteMergedBranches deletes all branches that are merged into the project's default branch.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#delete-merged-branches
func (*BranchesService) GetBranch ¶
func (s *BranchesService) GetBranch(pid interface{}, branch string, options ...RequestOptionFunc) (*Branch, *Response, error)
GetBranch gets a single project repository branch.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#get-single-repository-branch
func (*BranchesService) ListBranches ¶
func (s *BranchesService) ListBranches(pid interface{}, opts *ListBranchesOptions, options ...RequestOptionFunc) ([]*Branch, *Response, error)
ListBranches gets a list of repository branches from a project, sorted by name alphabetically.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#list-repository-branches
func (*BranchesService) ProtectBranch ¶
func (s *BranchesService) ProtectBranch(pid interface{}, branch string, opts *ProtectBranchOptions, options ...RequestOptionFunc) (*Branch, *Response, error)
ProtectBranch protects a single project repository branch. This is an idempotent function, protecting an already protected repository branch still returns a 200 OK status code.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#protect-repository-branch
func (*BranchesService) UnprotectBranch ¶
func (s *BranchesService) UnprotectBranch(pid interface{}, branch string, options ...RequestOptionFunc) (*Branch, *Response, error)
UnprotectBranch unprotects a single project repository branch. This is an idempotent function, unprotecting an already unprotected repository branch still returns a 200 OK status code.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#unprotect-repository-branch
type Bridge ¶ added in v0.40.0
type Bridge struct { Commit *Commit `json:"commit"` Coverage float64 `json:"coverage"` AllowFailure bool `json:"allow_failure"` CreatedAt *time.Time `json:"created_at"` StartedAt *time.Time `json:"started_at"` FinishedAt *time.Time `json:"finished_at"` Duration float64 `json:"duration"` ID int `json:"id"` Name string `json:"name"` Pipeline PipelineInfo `json:"pipeline"` Ref string `json:"ref"` Stage string `json:"stage"` Status string `json:"status"` Tag bool `json:"tag"` WebURL string `json:"web_url"` User *User `json:"user"` DownstreamPipeline *PipelineInfo `json:"downstream_pipeline"` }
Bridge represents a pipeline bridge.
GitLab API docs: https://docs.gitlab.com/ce/api/jobs.html#list-pipeline-bridges
type BroadcastMessage ¶ added in v0.8.1
type BroadcastMessage struct { Message string `json:"message"` StartsAt *time.Time `json:"starts_at"` EndsAt *time.Time `json:"ends_at"` Color string `json:"color"` Font string `json:"font"` ID int `json:"id"` Active bool `json:"active"` }
BroadcastMessage represents a GitLab issue board.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html#get-all-broadcast-messages
type BroadcastMessagesService ¶ added in v0.8.1
type BroadcastMessagesService struct {
// contains filtered or unexported fields
}
BroadcastMessagesService handles communication with the broadcast messages methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html
func (*BroadcastMessagesService) CreateBroadcastMessage ¶ added in v0.8.1
func (s *BroadcastMessagesService) CreateBroadcastMessage(opt *CreateBroadcastMessageOptions, options ...RequestOptionFunc) (*BroadcastMessage, *Response, error)
CreateBroadcastMessage creates a message to broadcast.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html#create-a-broadcast-message
func (*BroadcastMessagesService) DeleteBroadcastMessage ¶ added in v0.8.1
func (s *BroadcastMessagesService) DeleteBroadcastMessage(broadcast int, options ...RequestOptionFunc) (*Response, error)
DeleteBroadcastMessage deletes a broadcasted message.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html#delete-a-broadcast-message
func (*BroadcastMessagesService) GetBroadcastMessage ¶ added in v0.8.1
func (s *BroadcastMessagesService) GetBroadcastMessage(broadcast int, options ...RequestOptionFunc) (*BroadcastMessage, *Response, error)
GetBroadcastMessage gets a single broadcast message.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html#get-a-specific-broadcast-message
func (*BroadcastMessagesService) ListBroadcastMessages ¶ added in v0.8.1
func (s *BroadcastMessagesService) ListBroadcastMessages(opt *ListBroadcastMessagesOptions, options ...RequestOptionFunc) ([]*BroadcastMessage, *Response, error)
ListBroadcastMessages gets a list of all broadcasted messages.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html#get-all-broadcast-messages
func (*BroadcastMessagesService) UpdateBroadcastMessage ¶ added in v0.8.1
func (s *BroadcastMessagesService) UpdateBroadcastMessage(broadcast int, opt *UpdateBroadcastMessageOptions, options ...RequestOptionFunc) (*BroadcastMessage, *Response, error)
UpdateBroadcastMessage update a broadcasted message.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html#update-a-broadcast-message
type BuildEvent ¶ added in v0.4.0
type BuildEvent struct { ObjectKind string `json:"object_kind"` Ref string `json:"ref"` Tag bool `json:"tag"` BeforeSHA string `json:"before_sha"` SHA string `json:"sha"` BuildID int `json:"build_id"` BuildName string `json:"build_name"` BuildStage string `json:"build_stage"` BuildStatus string `json:"build_status"` BuildStartedAt string `json:"build_started_at"` BuildFinishedAt string `json:"build_finished_at"` BuildDuration float64 `json:"build_duration"` BuildAllowFailure bool `json:"build_allow_failure"` ProjectID int `json:"project_id"` ProjectName string `json:"project_name"` User *EventUser `json:"user"` Commit struct { ID int `json:"id"` SHA string `json:"sha"` Message string `json:"message"` AuthorName string `json:"author_name"` AuthorEmail string `json:"author_email"` Status string `json:"status"` Duration int `json:"duration"` StartedAt string `json:"started_at"` FinishedAt string `json:"finished_at"` } `json:"commit"` Repository *Repository `json:"repository"` }
BuildEvent represents a build event
GitLab API docs: https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#build-events
type BuildStateValue ¶ added in v0.8.0
type BuildStateValue string
BuildStateValue represents a GitLab build state.
const ( Pending BuildStateValue = "pending" Created BuildStateValue = "created" Running BuildStateValue = "running" Success BuildStateValue = "success" Failed BuildStateValue = "failed" Canceled BuildStateValue = "canceled" Skipped BuildStateValue = "skipped" Manual BuildStateValue = "manual" )
These constants represent all valid build states.
func BuildState ¶
func BuildState(v BuildStateValue) *BuildStateValue
BuildState is a helper routine that allocates a new BuildStateValue to store v and returns a pointer to it.
type BurndownChartEvent ¶ added in v0.33.0
type BurndownChartEvent struct { CreatedAt *time.Time `json:"created_at"` Weight *int `json:"weight"` Action *string `json:"action"` }
BurndownChartEvent reprensents a burnout chart event
GitLab API docs: https://docs.gitlab.com/ee/api/group_milestones.html#get-all-burndown-chart-events-for-a-single-milestone-starter
type CIYMLTemplate ¶ added in v0.11.1
CIYMLTemplate represents a GitLab CI YML template.
GitLab API docs: https://docs.gitlab.com/ce/api/templates/gitlab_ci_ymls.html
type CIYMLTemplatesService ¶ added in v0.11.1
type CIYMLTemplatesService struct {
// contains filtered or unexported fields
}
CIYMLTemplatesService handles communication with the gitlab CI YML templates related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ce/api/templates/gitlab_ci_ymls.html
func (*CIYMLTemplatesService) GetTemplate ¶ added in v0.11.1
func (s *CIYMLTemplatesService) GetTemplate(key string, options ...RequestOptionFunc) (*CIYMLTemplate, *Response, error)
GetTemplate get a single GitLab CI YML template.
GitLab API docs: https://docs.gitlab.com/ce/api/templates/gitlab_ci_ymls.html#single-gitlab-ci-yml-template
func (*CIYMLTemplatesService) ListAllTemplates ¶ added in v0.11.1
func (s *CIYMLTemplatesService) ListAllTemplates(opt *ListCIYMLTemplatesOptions, options ...RequestOptionFunc) ([]*CIYMLTemplate, *Response, error)
ListAllTemplates get all GitLab CI YML templates.
GitLab API docs: https://docs.gitlab.com/ce/api/templates/gitlab_ci_ymls.html#list-gitlab-ci-yml-templates
type ChangeAllowedApproversOptions ¶ added in v0.12.1
type ChangeAllowedApproversOptions struct { ApproverGroupIDs []int `url:"approver_group_ids,omitempty" json:"approver_group_ids,omitempty"` ApproverIDs []int `url:"approver_ids,omitempty" json:"approver_ids,omitempty"` }
ChangeAllowedApproversOptions represents the available ChangeAllowedApprovers() options.
GitLab API docs: https://docs.gitlab.com/ee/api/merge_request_approvals.html#change-allowed-approvers
type ChangeApprovalConfigurationOptions ¶ added in v0.12.1
type ChangeApprovalConfigurationOptions struct { ApprovalsBeforeMerge *int `url:"approvals_before_merge,omitempty" json:"approvals_before_merge,omitempty"` DisableOverridingApproversPerMergeRequest *bool `` /* 126-byte string literal not displayed */ MergeRequestsAuthorApproval *bool `url:"merge_requests_author_approval,omitempty" json:"merge_requests_author_approval,omitempty"` MergeRequestsDisableCommittersApproval *bool `url:"merge_requests_disable_committers_approval,omitempty" json:"merge_requests_disable_committers_approval,omitempty"` RequirePasswordToApprove *bool `url:"require_password_to_approve,omitempty" json:"require_password_to_approve,omitempty"` ResetApprovalsOnPush *bool `url:"reset_approvals_on_push,omitempty" json:"reset_approvals_on_push,omitempty"` }
ChangeApprovalConfigurationOptions represents the available ApprovalConfiguration() options.
GitLab API docs: https://docs.gitlab.com/ee/api/merge_request_approvals.html#change-configuration
type ChangeMergeRequestAllowedApproversOptions ¶ added in v0.21.0
type ChangeMergeRequestAllowedApproversOptions struct { ApproverIDs []int `url:"approver_ids" json:"approver_ids"` ApproverGroupIDs []int `url:"approver_group_ids" json:"approver_group_ids"` }
ChangeMergeRequestAllowedApproversOptions represents the available ChangeMergeRequestAllowedApprovers() options.
GitLab API docs: https://docs.gitlab.com/ee/api/merge_request_approvals.html#change-allowed-approvers-for-merge-request
type ChangeMergeRequestApprovalConfigurationOptions ¶ added in v0.21.0
type ChangeMergeRequestApprovalConfigurationOptions struct {
ApprovalsRequired *int `url:"approvals_required,omitempty" json:"approvals_required,omitempty"`
}
ChangeMergeRequestApprovalConfigurationOptions represents the available ChangeMergeRequestApprovalConfiguration() options.
GitLab API docs: https://docs.gitlab.com/ee/api/merge_request_approvals.html#change-approval-configuration
type CherryPickCommitOptions ¶ added in v0.4.1
type CherryPickCommitOptions struct { Branch *string `url:"branch,omitempty" json:"branch,omitempty"` DryRun *bool `url:"dry_run,omitempty" json:"dry_run,omitempty"` Message *string `url:"message,omitempty" json:"message,omitempty"` }
CherryPickCommitOptions represents the available CherryPickCommit() options.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#cherry-pick-a-commit
type Client ¶
type Client struct { // User agent used when communicating with the GitLab API. UserAgent string // Services used for talking to different parts of the GitLab API. AccessRequests *AccessRequestsService Applications *ApplicationsService AuditEvents *AuditEventsService Avatar *AvatarRequestsService AwardEmoji *AwardEmojiService Boards *IssueBoardsService Branches *BranchesService BroadcastMessage *BroadcastMessagesService CIYMLTemplate *CIYMLTemplatesService Commits *CommitsService ContainerRegistry *ContainerRegistryService CustomAttribute *CustomAttributesService DeployKeys *DeployKeysService DeployTokens *DeployTokensService Deployments *DeploymentsService Discussions *DiscussionsService Environments *EnvironmentsService EpicIssues *EpicIssuesService Epics *EpicsService Events *EventsService Features *FeaturesService FreezePeriods *FreezePeriodsService GitIgnoreTemplates *GitIgnoreTemplatesService GroupBadges *GroupBadgesService GroupCluster *GroupClustersService GroupImportExport *GroupImportExportService GroupIssueBoards *GroupIssueBoardsService GroupLabels *GroupLabelsService GroupMembers *GroupMembersService GroupMilestones *GroupMilestonesService GroupVariables *GroupVariablesService GroupWikis *GroupWikisService Groups *GroupsService InstanceCluster *InstanceClustersService InstanceVariables *InstanceVariablesService Invites *InvitesService IssueLinks *IssueLinksService Issues *IssuesService IssuesStatistics *IssuesStatisticsService Jobs *JobsService Keys *KeysService Labels *LabelsService License *LicenseService LicenseTemplates *LicenseTemplatesService ManagedLicenses *ManagedLicensesService MergeRequestApprovals *MergeRequestApprovalsService MergeRequests *MergeRequestsService Milestones *MilestonesService Namespaces *NamespacesService Notes *NotesService NotificationSettings *NotificationSettingsService Packages *PackagesService Pages *PagesService PagesDomains *PagesDomainsService PipelineSchedules *PipelineSchedulesService PipelineTriggers *PipelineTriggersService Pipelines *PipelinesService ProjectBadges *ProjectBadgesService ProjectAccessTokens *ProjectAccessTokensService ProjectCluster *ProjectClustersService ProjectImportExport *ProjectImportExportService ProjectMembers *ProjectMembersService ProjectMirrors *ProjectMirrorService ProjectSnippets *ProjectSnippetsService ProjectVariables *ProjectVariablesService Projects *ProjectsService ProtectedBranches *ProtectedBranchesService ProtectedEnvironments *ProtectedEnvironmentsService ProtectedTags *ProtectedTagsService ReleaseLinks *ReleaseLinksService Releases *ReleasesService Repositories *RepositoriesService RepositoryFiles *RepositoryFilesService ResourceLabelEvents *ResourceLabelEventsService ResourceStateEvents *ResourceStateEventsService Runners *RunnersService Search *SearchService Services *ServicesService Settings *SettingsService Sidekiq *SidekiqService Snippets *SnippetsService SystemHooks *SystemHooksService Tags *TagsService Todos *TodosService Users *UsersService Validate *ValidateService Version *VersionService Wikis *WikisService // contains filtered or unexported fields }
A Client manages communication with the GitLab API.
func NewBasicAuthClient ¶ added in v0.10.1
func NewBasicAuthClient(username, password string, options ...ClientOptionFunc) (*Client, error)
NewBasicAuthClient returns a new GitLab API client. To use API methods which require authentication, provide a valid username and password.
func NewClient ¶
func NewClient(token string, options ...ClientOptionFunc) (*Client, error)
NewClient returns a new GitLab API client. To use API methods which require authentication, provide a valid private or personal token.
func NewJobClient ¶ added in v0.51.0
func NewJobClient(token string, options ...ClientOptionFunc) (*Client, error)
NewJobClient returns a new GitLab API client. To use API methods which require authentication, provide a valid job token.
func NewOAuthClient ¶
func NewOAuthClient(token string, options ...ClientOptionFunc) (*Client, error)
NewOAuthClient returns a new GitLab API client. To use API methods which require authentication, provide a valid oauth token.
func (*Client) Do ¶
func (c *Client) Do(req *retryablehttp.Request, v interface{}) (*Response, error)
Do sends an API request and returns the API response. The API response is JSON decoded and stored in the value pointed to by v, or returned as an error if an API error has occurred. If v implements the io.Writer interface, the raw response body will be written to v, without attempting to first decode it.
func (*Client) NewRequest ¶
func (c *Client) NewRequest(method, path string, opt interface{}, options []RequestOptionFunc) (*retryablehttp.Request, error)
NewRequest creates an API request. A relative URL path can be provided in path, in which case it is resolved relative to the base URL of the Client. Relative URL paths should always be specified without a preceding slash. If specified, the value pointed to by body is JSON encoded and included as the request body.
type ClientOptionFunc ¶ added in v0.31.0
ClientOptionFunc can be used to customize a new GitLab API client.
func WithBaseURL ¶ added in v0.31.0
func WithBaseURL(urlStr string) ClientOptionFunc
WithBaseURL sets the base URL for API requests to a custom endpoint.
func WithCustomBackoff ¶ added in v0.31.0
func WithCustomBackoff(backoff retryablehttp.Backoff) ClientOptionFunc
WithCustomBackoff can be used to configure a custom backoff policy.
func WithCustomLeveledLogger ¶ added in v0.49.0
func WithCustomLeveledLogger(leveledLogger retryablehttp.LeveledLogger) ClientOptionFunc
WithCustomLeveledLogger can be used to configure a custom retryablehttp leveled logger.
func WithCustomLimiter ¶ added in v0.35.0
func WithCustomLimiter(limiter RateLimiter) ClientOptionFunc
WithCustomLimiter injects a custom rate limiter to the client.
func WithCustomLogger ¶ added in v0.49.0
func WithCustomLogger(logger retryablehttp.Logger) ClientOptionFunc
WithCustomLogger can be used to configure a custom retryablehttp logger.
func WithCustomRetry ¶ added in v0.31.0
func WithCustomRetry(checkRetry retryablehttp.CheckRetry) ClientOptionFunc
WithCustomRetry can be used to configure a custom retry policy.
func WithHTTPClient ¶ added in v0.31.0
func WithHTTPClient(httpClient *http.Client) ClientOptionFunc
WithHTTPClient can be used to configure a custom HTTP client.
func WithoutRetries ¶ added in v0.31.0
func WithoutRetries() ClientOptionFunc
WithoutRetries disables the default retry logic.
type Commit ¶
type Commit struct { ID string `json:"id"` ShortID string `json:"short_id"` Title string `json:"title"` AuthorName string `json:"author_name"` AuthorEmail string `json:"author_email"` AuthoredDate *time.Time `json:"authored_date"` CommitterName string `json:"committer_name"` CommitterEmail string `json:"committer_email"` CommittedDate *time.Time `json:"committed_date"` CreatedAt *time.Time `json:"created_at"` Message string `json:"message"` ParentIDs []string `json:"parent_ids"` Stats *CommitStats `json:"stats"` Status *BuildStateValue `json:"status"` LastPipeline *PipelineInfo `json:"last_pipeline"` ProjectID int `json:"project_id"` WebURL string `json:"web_url"` }
Commit represents a GitLab commit.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html
type CommitActionOptions ¶ added in v0.39.0
type CommitActionOptions struct { Action *FileActionValue `url:"action,omitempty" json:"action,omitempty"` FilePath *string `url:"file_path,omitempty" json:"file_path,omitempty"` PreviousPath *string `url:"previous_path,omitempty" json:"previous_path,omitempty"` Content *string `url:"content,omitempty" json:"content,omitempty"` Encoding *string `url:"encoding,omitempty" json:"encoding,omitempty"` LastCommitID *string `url:"last_commit_id,omitempty" json:"last_commit_id,omitempty"` ExecuteFilemode *bool `url:"execute_filemode,omitempty" json:"execute_filemode,omitempty"` }
CommitActionOptions represents the available options for a new single file action.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
type CommitComment ¶
type CommitComment struct { Note string `json:"note"` Path string `json:"path"` Line int `json:"line"` LineType string `json:"line_type"` Author Author `json:"author"` }
CommitComment represents a GitLab commit comment.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html
func (CommitComment) String ¶
func (c CommitComment) String() string
type CommitCommentEvent ¶ added in v0.3.1
type CommitCommentEvent struct { ObjectKind string `json:"object_kind"` User *User `json:"user"` ProjectID int `json:"project_id"` Project struct { Name string `json:"name"` Description string `json:"description"` AvatarURL string `json:"avatar_url"` GitSSHURL string `json:"git_ssh_url"` GitHTTPURL string `json:"git_http_url"` Namespace string `json:"namespace"` PathWithNamespace string `json:"path_with_namespace"` DefaultBranch string `json:"default_branch"` Homepage string `json:"homepage"` URL string `json:"url"` SSHURL string `json:"ssh_url"` HTTPURL string `json:"http_url"` WebURL string `json:"web_url"` Visibility VisibilityValue `json:"visibility"` } `json:"project"` Repository *Repository `json:"repository"` ObjectAttributes struct { ID int `json:"id"` Note string `json:"note"` NoteableType string `json:"noteable_type"` AuthorID int `json:"author_id"` CreatedAt string `json:"created_at"` UpdatedAt string `json:"updated_at"` ProjectID int `json:"project_id"` Attachment string `json:"attachment"` LineCode string `json:"line_code"` CommitID string `json:"commit_id"` NoteableID int `json:"noteable_id"` System bool `json:"system"` StDiff struct { Diff string `json:"diff"` NewPath string `json:"new_path"` OldPath string `json:"old_path"` AMode string `json:"a_mode"` BMode string `json:"b_mode"` NewFile bool `json:"new_file"` RenamedFile bool `json:"renamed_file"` DeletedFile bool `json:"deleted_file"` } `json:"st_diff"` Description string `json:"description"` URL string `json:"url"` } `json:"object_attributes"` Commit *struct { ID string `json:"id"` Title string `json:"title"` Message string `json:"message"` Timestamp *time.Time `json:"timestamp"` URL string `json:"url"` Author struct { Name string `json:"name"` Email string `json:"email"` } `json:"author"` } `json:"commit"` }
CommitCommentEvent represents a comment on a commit event.
GitLab API docs: https://docs.gitlab.com/ce/user/project/integrations/webhooks.html#comment-on-commit
type CommitRef ¶ added in v0.10.8
CommitRef represents the reference of branches/tags in a commit.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#get-references-a-commit-is-pushed-to
type CommitStats ¶ added in v0.4.1
type CommitStats struct { Additions int `json:"additions"` Deletions int `json:"deletions"` Total int `json:"total"` }
CommitStats represents the number of added and deleted files in a commit.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html
type CommitStatus ¶
type CommitStatus struct { ID int `json:"id"` SHA string `json:"sha"` Ref string `json:"ref"` Status string `json:"status"` CreatedAt *time.Time `json:"created_at"` StartedAt *time.Time `json:"started_at"` FinishedAt *time.Time `json:"finished_at"` Name string `json:"name"` AllowFailure bool `json:"allow_failure"` Author Author `json:"author"` Description string `json:"description"` TargetURL string `json:"target_url"` }
CommitStatus represents a GitLab commit status.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#get-the-status-of-a-commit
type CommitsService ¶
type CommitsService struct {
// contains filtered or unexported fields
}
CommitsService handles communication with the commit related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html
func (*CommitsService) CherryPickCommit ¶ added in v0.4.1
func (s *CommitsService) CherryPickCommit(pid interface{}, sha string, opt *CherryPickCommitOptions, options ...RequestOptionFunc) (*Commit, *Response, error)
CherryPickCommit cherry picks a commit to a given branch.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#cherry-pick-a-commit
func (*CommitsService) CreateCommit ¶ added in v0.4.1
func (s *CommitsService) CreateCommit(pid interface{}, opt *CreateCommitOptions, options ...RequestOptionFunc) (*Commit, *Response, error)
CreateCommit creates a commit with multiple files and actions.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
func (*CommitsService) GetCommit ¶
func (s *CommitsService) GetCommit(pid interface{}, sha string, options ...RequestOptionFunc) (*Commit, *Response, error)
GetCommit gets a specific commit identified by the commit hash or name of a branch or tag.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#get-a-single-commit
func (*CommitsService) GetCommitComments ¶
func (s *CommitsService) GetCommitComments(pid interface{}, sha string, opt *GetCommitCommentsOptions, options ...RequestOptionFunc) ([]*CommitComment, *Response, error)
GetCommitComments gets the comments of a commit in a project.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#get-the-comments-of-a-commit
func (*CommitsService) GetCommitDiff ¶
func (s *CommitsService) GetCommitDiff(pid interface{}, sha string, opt *GetCommitDiffOptions, options ...RequestOptionFunc) ([]*Diff, *Response, error)
GetCommitDiff gets the diff of a commit in a project..
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#get-the-diff-of-a-commit
func (*CommitsService) GetCommitRefs ¶ added in v0.10.8
func (s *CommitsService) GetCommitRefs(pid interface{}, sha string, opt *GetCommitRefsOptions, options ...RequestOptionFunc) ([]*CommitRef, *Response, error)
GetCommitRefs gets all references (from branches or tags) a commit is pushed to
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#get-references-a-commit-is-pushed-to
func (*CommitsService) GetCommitStatuses ¶
func (s *CommitsService) GetCommitStatuses(pid interface{}, sha string, opt *GetCommitStatusesOptions, options ...RequestOptionFunc) ([]*CommitStatus, *Response, error)
GetCommitStatuses gets the statuses of a commit in a project.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#get-the-status-of-a-commit
func (*CommitsService) GetGPGSiganature ¶ added in v0.19.0
func (s *CommitsService) GetGPGSiganature(pid interface{}, sha string, options ...RequestOptionFunc) (*GPGSignature, *Response, error)
GetGPGSiganature gets a GPG signature of a commit.
GitLab API docs: https://docs.gitlab.com/ee/api/commits.html#get-gpg-signature-of-a-commit
func (*CommitsService) GetMergeRequestsByCommit ¶ added in v0.11.0
func (s *CommitsService) GetMergeRequestsByCommit(pid interface{}, sha string, options ...RequestOptionFunc) ([]*MergeRequest, *Response, error)
GetMergeRequestsByCommit gets merge request associated with a commit.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#list-merge-requests-associated-with-a-commit
func (*CommitsService) ListCommits ¶
func (s *CommitsService) ListCommits(pid interface{}, opt *ListCommitsOptions, options ...RequestOptionFunc) ([]*Commit, *Response, error)
ListCommits gets a list of repository commits in a project.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#list-commits
func (*CommitsService) PostCommitComment ¶
func (s *CommitsService) PostCommitComment(pid interface{}, sha string, opt *PostCommitCommentOptions, options ...RequestOptionFunc) (*CommitComment, *Response, error)
PostCommitComment adds a comment to a commit. Optionally you can post comments on a specific line of a commit. Therefor both path, line_new and line_old are required.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#post-comment-to-commit
func (*CommitsService) RevertCommit ¶ added in v0.19.0
func (s *CommitsService) RevertCommit(pid interface{}, sha string, opt *RevertCommitOptions, options ...RequestOptionFunc) (*Commit, *Response, error)
RevertCommit reverts a commit in a given branch.
GitLab API docs: https://docs.gitlab.com/ee/api/commits.html#revert-a-commit
func (*CommitsService) SetCommitStatus ¶
func (s *CommitsService) SetCommitStatus(pid interface{}, sha string, opt *SetCommitStatusOptions, options ...RequestOptionFunc) (*CommitStatus, *Response, error)
SetCommitStatus sets the status of a commit in a project.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#post-the-status-to-commit
type Compare ¶
type Compare struct { Commit *Commit `json:"commit"` Commits []*Commit `json:"commits"` Diffs []*Diff `json:"diffs"` CompareTimeout bool `json:"compare_timeout"` CompareSameRef bool `json:"compare_same_ref"` }
Compare represents the result of a comparison of branches, tags or commits.
GitLab API docs: https://docs.gitlab.com/ce/api/repositories.html#compare-branches-tags-or-commits
type CompareOptions ¶
type CompareOptions struct { From *string `url:"from,omitempty" json:"from,omitempty"` To *string `url:"to,omitempty" json:"to,omitempty"` Straight *bool `url:"straight,omitempty" json:"straight,omitempty"` }
CompareOptions represents the available Compare() options.
GitLab API docs: https://docs.gitlab.com/ce/api/repositories.html#compare-branches-tags-or-commits
type CompoundMetrics ¶ added in v0.8.1
type CompoundMetrics struct { QueueMetrics ProcessMetrics JobStats }
CompoundMetrics represents the GitLab sidekiq compounded stats.
GitLab API docs: https://docs.gitlab.com/ce/api/sidekiq_metrics.html#get-a-compound-response-of-all-the-previously-mentioned-metrics
type ContainerExpirationPolicy ¶ added in v0.43.0
type ContainerExpirationPolicy struct { Cadence string `json:"cadence"` KeepN int `json:"keep_n"` OlderThan string `json:"older_than"` NameRegexDelete string `json:"name_regex_delete"` NameRegexKeep string `json:"name_regex_keep"` Enabled bool `json:"enabled"` NextRunAt *time.Time `json:"next_run_at"` }
ContainerExpirationPolicy represents the container expiration policy.
type ContainerExpirationPolicyAttributes ¶ added in v0.43.0
type ContainerExpirationPolicyAttributes struct { Cadence *string `url:"cadence,omitempty" json:"cadence,omitempty"` KeepN *int `url:"keep_n,omitempty" json:"keep_n,omitempty"` OlderThan *string `url:"older_than,omitempty" json:"older_than,omitempty"` NameRegexDelete *string `url:"name_regex_delete,omitempty" json:"name_regex_delete,omitempty"` NameRegexKeep *string `url:"name_regex_keep,omitempty" json:"name_regex_keep,omitempty"` Enabled *bool `url:"enabled,omitempty" json:"enabled,omitempty"` // Deprecated members NameRegex *string `url:"name_regex,omitempty" json:"name_regex,omitempty"` }
ContainerExpirationPolicyAttributes represents the available container expiration policy attributes.
GitLab API docs: https://docs.gitlab.com/ee/api/projects.html#create-project
type ContainerRegistryService ¶ added in v0.16.0
type ContainerRegistryService struct {
// contains filtered or unexported fields
}
ContainerRegistryService handles communication with the container registry related methods of the GitLab API.
GitLab API docs: https://docs.gitlab.com/ee/api/container_registry.html
func (*ContainerRegistryService) DeleteRegistryRepository ¶ added in v0.16.0
func (s *ContainerRegistryService) DeleteRegistryRepository(pid interface{}, repository int, options ...RequestOptionFunc) (*Response, error)
DeleteRegistryRepository deletes a repository in a registry.
GitLab API docs: https://docs.gitlab.com/ee/api/container_registry.html#delete-registry-repository
func (*ContainerRegistryService) DeleteRegistryRepositoryTag ¶ added in v0.16.0
func (s *ContainerRegistryService) DeleteRegistryRepositoryTag(pid interface{}, repository int, tagName string, options ...RequestOptionFunc) (*Response, error)
DeleteRegistryRepositoryTag deletes a registry repository tag.
GitLab API docs: https://docs.gitlab.com/ee/api/container_registry.html#delete-a-registry-repository-tag
func (*ContainerRegistryService) DeleteRegistryRepositoryTags ¶ added in v0.16.0
func (s *ContainerRegistryService) DeleteRegistryRepositoryTags(pid interface{}, repository int, opt *DeleteRegistryRepositoryTagsOptions, options ...RequestOptionFunc) (*Response, error)
DeleteRegistryRepositoryTags deletes repository tags in bulk based on given criteria.
GitLab API docs: https://docs.gitlab.com/ee/api/container_registry.html#delete-repository-tags-in-bulk
func (*ContainerRegistryService) GetRegistryRepositoryTagDetail ¶ added in v0.16.0
func (s *ContainerRegistryService) GetRegistryRepositoryTagDetail(pid interface{}, repository int, tagName string, options ...RequestOptionFunc) (*RegistryRepositoryTag, *Response, error)
GetRegistryRepositoryTagDetail get details of a registry repository tag
GitLab API docs: https://docs.gitlab.com/ee/api/container_registry.html#get-details-of-a-registry-repository-tag
func (*ContainerRegistryService) ListRegistryRepositories ¶ added in v0.16.0
func (s *ContainerRegistryService) ListRegistryRepositories(pid interface{}, opt *ListRegistryRepositoriesOptions, options ...RequestOptionFunc) ([]*RegistryRepository, *Response, error)
ListRegistryRepositories gets a list of registry repositories in a project.
GitLab API docs: https://docs.gitlab.com/ee/api/container_registry.html#list-registry-repositories
func (*ContainerRegistryService) ListRegistryRepositoryTags ¶ added in v0.16.0
func (s *ContainerRegistryService) ListRegistryRepositoryTags(pid interface{}, repository int, opt *ListRegistryRepositoryTagsOptions, options ...RequestOptionFunc) ([]*RegistryRepositoryTag, *Response, error)
ListRegistryRepositoryTags gets a list of tags for given registry repository.
GitLab API docs: https://docs.gitlab.com/ee/api/container_registry.html#list-registry-repository-tags
type ContributionEvent ¶ added in v0.8.0
type ContributionEvent struct { ID int `json:"id"` Title string `json:"title"` ProjectID int `json:"project_id"` ActionName string `json:"action_name"` TargetID int `json:"target_id"` TargetIID int `json:"target_iid"` TargetType string `json:"target_type"` AuthorID int `json:"author_id"` TargetTitle string `json:"target_title"` CreatedAt *time.Time `json:"created_at"` PushData struct { CommitCount int `json:"commit_count"` Action string `json:"action"` RefType string `json:"ref_type"` CommitFrom string `json:"commit_from"` CommitTo string `json:"commit_to"` Ref string `json:"ref"` CommitTitle string `json:"commit_title"` } `json:"push_data"` Note *Note `json:"note"` Author struct { Name string `json:"name"` Username string `json:"username"` ID int `json:"id"` State string `json:"state"` AvatarURL string `json:"avatar_url"` WebURL string `json:"web_url"` } `json:"author"` AuthorUsername string `json:"author_username"` }
ContributionEvent represents a user's contribution
GitLab API docs: https://docs.gitlab.com/ce/api/events.html#get-user-contribution-events
type Contributor ¶
type Contributor struct { Name string `json:"name"` Email string `json:"email"` Commits int `json:"commits"` Additions int `json:"additions"` Deletions int `json:"deletions"` }
Contributor represents a GitLap contributor.
GitLab API docs: https://docs.gitlab.com/ce/api/repositories.html#contributors
func (Contributor) String ¶
func (c Contributor) String() string
type CreateApplicationOptions ¶ added in v0.30.0
type CreateApplicationOptions struct { Name *string `url:"name,omitempty" json:"name,omitempty"` RedirectURI *string `url:"redirect_uri,omitempty" json:"redirect_uri,omitempty"` Scopes *string `url:"scopes,omitempty" json:"scopes,omitempty"` Confidential *bool `url:"confidential,omitempty" json:"confidential,omitempty"` }
CreateApplicationOptions represents the available CreateApplication() options.
GitLab API docs: https://docs.gitlab.com/ce/api/applications.html#create-an-application
type CreateAwardEmojiOptions ¶ added in v0.10.6
type CreateAwardEmojiOptions struct {
Name string `json:"name"`
}
CreateAwardEmojiOptions represents the available options for awarding emoji for a resource
GitLab API docs: https://docs.gitlab.com/ce/api/award_emoji.html#award-a-new-emoji
type CreateBranchOptions ¶
type CreateBranchOptions struct { Branch *string `url:"branch,omitempty" json:"branch,omitempty"` Ref *string `url:"ref,omitempty" json:"ref,omitempty"` }
CreateBranchOptions represents the available CreateBranch() options.
GitLab API docs: https://docs.gitlab.com/ce/api/branches.html#create-repository-branch
type CreateBroadcastMessageOptions ¶ added in v0.8.1
type CreateBroadcastMessageOptions struct { Message *string `url:"message" json:"message"` StartsAt *time.Time `url:"starts_at,omitempty" json:"starts_at,omitempty"` EndsAt *time.Time `url:"ends_at,omitempty" json:"ends_at,omitempty"` Color *string `url:"color,omitempty" json:"color,omitempty"` Font *string `url:"font,omitempty" json:"font,omitempty"` }
CreateBroadcastMessageOptions represents the available CreateBroadcastMessage() options.
GitLab API docs: https://docs.gitlab.com/ce/api/broadcast_messages.html#create-a-broadcast-message
type CreateCommitDiscussionOptions ¶ added in v0.11.2
type CreateCommitDiscussionOptions struct { Body *string `url:"body,omitempty" json:"body,omitempty"` CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"` Position *NotePosition `url:"position,omitempty" json:"position,omitempty"` }
CreateCommitDiscussionOptions represents the available CreateCommitDiscussion() options.
GitLab API docs: https://docs.gitlab.com/ce/api/discussions.html#create-new-commit-thread
type CreateCommitOptions ¶ added in v0.4.1
type CreateCommitOptions struct { Branch *string `url:"branch,omitempty" json:"branch,omitempty"` CommitMessage *string `url:"commit_message,omitempty" json:"commit_message,omitempty"` StartBranch *string `url:"start_branch,omitempty" json:"start_branch,omitempty"` StartSHA *string `url:"start_sha,omitempty" json:"start_sha,omitempty"` StartProject *string `url:"start_project,omitempty" json:"start_project,omitempty"` Actions []*CommitActionOptions `url:"actions" json:"actions"` AuthorEmail *string `url:"author_email,omitempty" json:"author_email,omitempty"` AuthorName *string `url:"author_name,omitempty" json:"author_name,omitempty"` Stats *bool `url:"stats,omitempty" json:"stats,omitempty"` Force *bool `url:"force,omitempty" json:"force,omitempty"` }
CreateCommitOptions represents the available options for a new commit.
GitLab API docs: https://docs.gitlab.com/ce/api/commits.html#create-a-commit-with-multiple-files-and-actions
type CreateEnvironmentOptions ¶ added in v0.7.0
type CreateEnvironmentOptions struct { Name *string `url:"name,omitempty" json:"name,omitempty"` ExternalURL *string `url:"external_url,omitempty" json:"external_url,omitempty"` }
CreateEnvironmentOptions represents the available CreateEnvironment() options.
GitLab API docs: https://docs.gitlab.com/ee/api/environments.html#create-a-new-environment
type CreateEpicDiscussionOptions ¶ added in v0.11.2
type CreateEpicDiscussionOptions struct { Body *string `url:"body,omitempty" json:"body,omitempty"` CreatedAt *time.Time `url:"created_at,omitempty" json:"created_at,omitempty"` }
CreateEpicDiscussionOptions represents the available CreateEpicDiscussion() options.
GitLab API docs: https://docs.gitlab.com/ce/api/discussions.html#add-note-to-existing-epic-thread
type CreateEpicNoteOptions ¶ added in v0.17.0
type CreateEpicNoteOptions struct {
Body *string `url:"body,omitempty" json:"body,omitempty"`
}
CreateEpicNoteOptions represents the available CreateEpicNote() options.
GitLab API docs: https://docs.gitlab.com/ee/api/notes.html#create-new-epic-note
type CreateEpicOptions ¶ added in v0.17.0
type CreateEpicOptions struct { Title *string `url:"title,omitempty" json:"title,omitempty"` Description *string `url:"description,omitempty" json:"description,omitempty"` Labels Labels `url:"labels,comma,omitempty" json:"labels,omitempty"` StartDateIsFixed *bool `url:"start_date_is_fixed,omitempty" json:"start_date_is_fixed,omitempty"` StartDateFixed *ISOTime `url:"start_date_fixed,omitempty" json:"start_date_fixed,omitempty"` DueDateIsFixed *bool `url:"due_date_is_fixed,omitempty" json:"due_date_is_fixed,omitempty"` DueDateFixed *ISOTime `url:"due_date_fixed,omitempty" json:"due_date_fixed,omitempty"` }
CreateEpicOptions represents the available CreateEpic() options.
GitLab API docs: https://docs.gitlab.com/ee/api/epics.html#new-epic
type CreateFileOptions ¶
type CreateFileOptions struct { Branch *string `url:"branch,omitempty" json:"branch,omitempty"` StartBranch *string `url:"start_branch,omitempty" json:"start_branch,omitempty"` Encoding *string `url:"encoding,omitempty" json:"encoding,omitempty"` AuthorEmail *string `url:"author_email,omitempty" json:"author_email,omitempty"` AuthorName *string `url:"author_name,omitempty" json:"author_name,omitempty"` Content *string `url:"content,omitempty" json:"content,omitempty"` CommitMessage *string `url:"commit_message,omitempty" json:"commit_message,omitempty"` }
CreateFileOptions represents the available CreateFile() options.
GitLab API docs: https://docs.gitlab.com/ce/api/repository_files.html#create-new-file-in-repository