Documentation
¶
Index ¶
- Constants
- func ConvertJob(jf JobFields) (types.Job, error)
- func ConvertJobArtifact(jaf JobArtifactFields) (types.JobArtifact, error)
- func ConvertJobReference(job JobReferenceFields, pipeline PipelineReferenceFields, ...) (types.JobReference, error)
- func ConvertMergeRequest(mrf MergeRequestFields) (types.MergeRequest, error)
- func ConvertMergeRequestNoteEvent(nf MergeRequestNoteFields) (types.MergeRequestNoteEvent, error)
- func ConvertPipeline(pf PipelineFields) (types.Pipeline, error)
- func ConvertProject(pf ProjectFields) (types.Project, error)
- func FormatId(id int64, prefix string) string
- func ParseId(s string, prefix string) (int64, error)
- type CiJobKind
- type CiJobStatus
- type Client
- func (c *Client) GetProjectPipeline(ctx context.Context, projectId string, pipelineId string) (PipelineFields, error)
- func (c *Client) GetProjectPipelineJobsArtifacts(ctx context.Context, projectPath string, pipelineIid string) ([]JobArtifactFields, error)
- func (c *Client) GetProjects(ctx context.Context, ids []string, updatedAfter *time.Time, ...) ([]ListProjectsResult, error)
- func (c *Client) GetProjectsMergeRequests(ctx context.Context, ids []string, opts GetMergeRequestsOptions) ([]MergeRequestFields, error)
- func (c *Client) GetProjectsMergeRequestsNotes(ctx context.Context, projectGids []string, opts GetMergeRequestsOptions) ([]MergeRequestNoteFields, error)
- func (c *Client) GetProjectsPipelines(ctx context.Context, ids []string, opts GetPipelinesOptions) ([]PipelineFields, error)
- func (c *Client) GetProjectsPipelinesJobs(ctx context.Context, ids []string, opts GetPipelinesOptions) ([]JobFields, error)
- func (c *Client) ListProjects(ctx context.Context, ids []string, updatedAfter *time.Time, ...) error
- type DetailedMergeStatus
- type GetMergeRequestsOptions
- type GetPipelinesOptions
- type JobArtifactFields
- type JobArtifactFieldsCore
- type JobArtifactFileType
- type JobFields
- type JobFieldsCore
- func (v *JobFieldsCore) GetAllowFailure() bool
- func (v *JobFieldsCore) GetCoverage() *float64
- func (v *JobFieldsCore) GetCreatedAt() time.Time
- func (v *JobFieldsCore) GetDuration() *int
- func (v *JobFieldsCore) GetErasedAt() *time.Time
- func (v *JobFieldsCore) GetFailureMessage() *string
- func (v *JobFieldsCore) GetFinishedAt() *time.Time
- func (v *JobFieldsCore) GetName() *string
- func (v *JobFieldsCore) GetQueuedAt() *time.Time
- func (v *JobFieldsCore) GetQueuedDuration() *float64
- func (v *JobFieldsCore) GetRefName() *string
- func (v *JobFieldsCore) GetStartedAt() *time.Time
- func (v *JobFieldsCore) GetStatus() *CiJobStatus
- type JobFieldsExtra
- func (v *JobFieldsExtra) GetDownstreamPipeline() *JobFieldsExtraDownstreamPipeline
- func (v *JobFieldsExtra) GetKind() CiJobKind
- func (v *JobFieldsExtra) GetManualJob() *bool
- func (v *JobFieldsExtra) GetRetried() *bool
- func (v *JobFieldsExtra) GetRetryable() bool
- func (v *JobFieldsExtra) GetRunner() *JobFieldsExtraRunnerCiRunner
- func (v *JobFieldsExtra) GetStage() *JobFieldsExtraStageCiStage
- func (v *JobFieldsExtra) GetTags() []string
- type JobFieldsExtraDownstreamPipeline
- type JobFieldsExtraDownstreamPipelineProject
- type JobFieldsExtraRunnerCiRunner
- type JobFieldsExtraStageCiStage
- type JobReferenceFields
- type ListProjectsResult
- type MergeRequestFields
- type MergeRequestFieldsCore
- func (v *MergeRequestFieldsCore) GetApproved() bool
- func (v *MergeRequestFieldsCore) GetClosedAt() *time.Time
- func (v *MergeRequestFieldsCore) GetConflicts() bool
- func (v *MergeRequestFieldsCore) GetCreatedAt() time.Time
- func (v *MergeRequestFieldsCore) GetDetailedMergeStatus() *DetailedMergeStatus
- func (v *MergeRequestFieldsCore) GetDraft() bool
- func (v *MergeRequestFieldsCore) GetLabels() *MergeRequestFieldsCoreLabelsLabelConnection
- func (v *MergeRequestFieldsCore) GetMergeError() *string
- func (v *MergeRequestFieldsCore) GetMergeable() bool
- func (v *MergeRequestFieldsCore) GetMergedAt() *time.Time
- func (v *MergeRequestFieldsCore) GetName() *string
- func (v *MergeRequestFieldsCore) GetState() MergeRequestState
- func (v *MergeRequestFieldsCore) GetTitle() string
- func (v *MergeRequestFieldsCore) GetUpdatedAt() time.Time
- type MergeRequestFieldsCoreLabelsLabelConnection
- type MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel
- type MergeRequestFieldsExtra
- func (v *MergeRequestFieldsExtra) GetCommitCount() *int
- func (v *MergeRequestFieldsExtra) GetDiffRefs() *MergeRequestFieldsExtraDiffRefs
- func (v *MergeRequestFieldsExtra) GetDiffStatsSummary() *MergeRequestFieldsExtraDiffStatsSummary
- func (v *MergeRequestFieldsExtra) GetMergeCommitSha() *string
- func (v *MergeRequestFieldsExtra) GetMilestone() *MergeRequestFieldsExtraMilestone
- func (v *MergeRequestFieldsExtra) GetRebaseCommitSha() *string
- func (v *MergeRequestFieldsExtra) GetSourceBranch() string
- func (v *MergeRequestFieldsExtra) GetSourceProjectId() *int
- func (v *MergeRequestFieldsExtra) GetTargetBranch() string
- func (v *MergeRequestFieldsExtra) GetTargetProjectId() int
- func (v *MergeRequestFieldsExtra) GetUserNotesCount() *int
- type MergeRequestFieldsExtraDiffRefs
- type MergeRequestFieldsExtraDiffStatsSummary
- type MergeRequestFieldsExtraMilestone
- type MergeRequestFieldsExtraMilestoneProject
- type MergeRequestFieldsParticipants
- func (v *MergeRequestFieldsParticipants) GetApprovedBy() *MergeRequestFieldsParticipantsApprovedByUserCoreConnection
- func (v *MergeRequestFieldsParticipants) GetAssignees() *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection
- func (v *MergeRequestFieldsParticipants) GetAuthor() *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor
- func (v *MergeRequestFieldsParticipants) GetMergeUser() *MergeRequestFieldsParticipantsMergeUserUserCore
- func (v *MergeRequestFieldsParticipants) GetReviewers() *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection
- type MergeRequestFieldsParticipantsApprovedByUserCoreConnection
- type MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore
- func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetId() string
- func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetName() string
- func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetUsername() string
- func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) MarshalJSON() ([]byte, error)
- func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) UnmarshalJSON(b []byte) error
- type MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection
- type MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee
- func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetId() string
- func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetName() string
- func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetUsername() string
- func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) MarshalJSON() ([]byte, error)
- func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) UnmarshalJSON(b []byte) error
- type MergeRequestFieldsParticipantsAuthorMergeRequestAuthor
- func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetId() string
- func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetName() string
- func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetUsername() string
- func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) MarshalJSON() ([]byte, error)
- func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) UnmarshalJSON(b []byte) error
- type MergeRequestFieldsParticipantsMergeUserUserCore
- func (v *MergeRequestFieldsParticipantsMergeUserUserCore) GetId() string
- func (v *MergeRequestFieldsParticipantsMergeUserUserCore) GetName() string
- func (v *MergeRequestFieldsParticipantsMergeUserUserCore) GetUsername() string
- func (v *MergeRequestFieldsParticipantsMergeUserUserCore) MarshalJSON() ([]byte, error)
- func (v *MergeRequestFieldsParticipantsMergeUserUserCore) UnmarshalJSON(b []byte) error
- type MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection
- type MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer
- func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetId() string
- func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetName() string
- func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetUsername() string
- func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) MarshalJSON() ([]byte, error)
- func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) UnmarshalJSON(b []byte) error
- type MergeRequestNoteFields
- type MergeRequestNotesFieldsCore
- func (v *MergeRequestNotesFieldsCore) GetAuthor() *MergeRequestNotesFieldsCoreAuthorUserCore
- func (v *MergeRequestNotesFieldsCore) GetBody() string
- func (v *MergeRequestNotesFieldsCore) GetCreatedAt() time.Time
- func (v *MergeRequestNotesFieldsCore) GetId() string
- func (v *MergeRequestNotesFieldsCore) GetInternal() *bool
- func (v *MergeRequestNotesFieldsCore) GetResolvable() bool
- func (v *MergeRequestNotesFieldsCore) GetResolved() bool
- func (v *MergeRequestNotesFieldsCore) GetResolvedAt() *time.Time
- func (v *MergeRequestNotesFieldsCore) GetResolvedBy() *MergeRequestNotesFieldsCoreResolvedByUserCore
- func (v *MergeRequestNotesFieldsCore) GetSystem() bool
- func (v *MergeRequestNotesFieldsCore) GetUpdatedAt() time.Time
- type MergeRequestNotesFieldsCoreAuthorUserCore
- func (v *MergeRequestNotesFieldsCoreAuthorUserCore) GetId() string
- func (v *MergeRequestNotesFieldsCoreAuthorUserCore) GetName() string
- func (v *MergeRequestNotesFieldsCoreAuthorUserCore) GetUsername() string
- func (v *MergeRequestNotesFieldsCoreAuthorUserCore) MarshalJSON() ([]byte, error)
- func (v *MergeRequestNotesFieldsCoreAuthorUserCore) UnmarshalJSON(b []byte) error
- type MergeRequestNotesFieldsCoreResolvedByUserCore
- func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) GetId() string
- func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) GetName() string
- func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) GetUsername() string
- func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) MarshalJSON() ([]byte, error)
- func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) UnmarshalJSON(b []byte) error
- type MergeRequestReferenceFields
- type MergeRequestState
- type NamespaceReferenceFields
- type PipelineFields
- type PipelineFieldsCore
- func (v *PipelineFieldsCore) GetChild() bool
- func (v *PipelineFieldsCore) GetCommittedAt() *time.Time
- func (v *PipelineFieldsCore) GetCoverage() *float64
- func (v *PipelineFieldsCore) GetCreatedAt() time.Time
- func (v *PipelineFieldsCore) GetDuration() *int
- func (v *PipelineFieldsCore) GetFailureReason() *string
- func (v *PipelineFieldsCore) GetFinishedAt() *time.Time
- func (v *PipelineFieldsCore) GetMergeRequest() *PipelineFieldsCoreMergeRequest
- func (v *PipelineFieldsCore) GetName() *string
- func (v *PipelineFieldsCore) GetQueuedDuration() *float64
- func (v *PipelineFieldsCore) GetRef() *string
- func (v *PipelineFieldsCore) GetSha() *string
- func (v *PipelineFieldsCore) GetSource() *string
- func (v *PipelineFieldsCore) GetStartedAt() *time.Time
- func (v *PipelineFieldsCore) GetStatus() PipelineStatusEnum
- func (v *PipelineFieldsCore) GetUpdatedAt() time.Time
- func (v *PipelineFieldsCore) GetUpstream() *PipelineFieldsCoreUpstreamPipeline
- func (v *PipelineFieldsCore) GetUser() *PipelineFieldsCoreUserUserCore
- func (v *PipelineFieldsCore) GetWarnings() bool
- func (v *PipelineFieldsCore) GetYamlErrors() bool
- type PipelineFieldsCoreMergeRequest
- func (v *PipelineFieldsCoreMergeRequest) GetId() string
- func (v *PipelineFieldsCoreMergeRequest) GetIid() string
- func (v *PipelineFieldsCoreMergeRequest) GetProject() PipelineFieldsCoreMergeRequestProject
- func (v *PipelineFieldsCoreMergeRequest) MarshalJSON() ([]byte, error)
- func (v *PipelineFieldsCoreMergeRequest) UnmarshalJSON(b []byte) error
- type PipelineFieldsCoreMergeRequestProject
- type PipelineFieldsCoreUpstreamPipeline
- func (v *PipelineFieldsCoreUpstreamPipeline) GetId() string
- func (v *PipelineFieldsCoreUpstreamPipeline) GetIid() string
- func (v *PipelineFieldsCoreUpstreamPipeline) GetProject() *PipelineFieldsCoreUpstreamPipelineProject
- func (v *PipelineFieldsCoreUpstreamPipeline) MarshalJSON() ([]byte, error)
- func (v *PipelineFieldsCoreUpstreamPipeline) UnmarshalJSON(b []byte) error
- type PipelineFieldsCoreUpstreamPipelineProject
- func (v *PipelineFieldsCoreUpstreamPipelineProject) GetFullPath() string
- func (v *PipelineFieldsCoreUpstreamPipelineProject) GetId() string
- func (v *PipelineFieldsCoreUpstreamPipelineProject) MarshalJSON() ([]byte, error)
- func (v *PipelineFieldsCoreUpstreamPipelineProject) UnmarshalJSON(b []byte) error
- type PipelineFieldsCoreUserUserCore
- func (v *PipelineFieldsCoreUserUserCore) GetId() string
- func (v *PipelineFieldsCoreUserUserCore) GetName() string
- func (v *PipelineFieldsCoreUserUserCore) GetUsername() string
- func (v *PipelineFieldsCoreUserUserCore) MarshalJSON() ([]byte, error)
- func (v *PipelineFieldsCoreUserUserCore) UnmarshalJSON(b []byte) error
- type PipelineReferenceFields
- type PipelineStatusEnum
- type ProjectFields
- type ProjectFieldsCore
- func (v *ProjectFieldsCore) GetArchived() *bool
- func (v *ProjectFieldsCore) GetCreatedAt() *time.Time
- func (v *ProjectFieldsCore) GetDescription() *string
- func (v *ProjectFieldsCore) GetForksCount() int
- func (v *ProjectFieldsCore) GetLastActivityAt() *time.Time
- func (v *ProjectFieldsCore) GetName() string
- func (v *ProjectFieldsCore) GetNameWithNamespace() string
- func (v *ProjectFieldsCore) GetPath() string
- func (v *ProjectFieldsCore) GetStarCount() int
- func (v *ProjectFieldsCore) GetStatistics() *ProjectFieldsCoreStatisticsProjectStatistics
- func (v *ProjectFieldsCore) GetUpdatedAt() *time.Time
- func (v *ProjectFieldsCore) GetVisibility() *string
- type ProjectFieldsCoreStatisticsProjectStatistics
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetBuildArtifactsSize() float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetCommitCount() float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetContainerRegistrySize() *float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetLfsObjectsSize() float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetPackagesSize() float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetPipelineArtifactsSize() *float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetRepositorySize() float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetSnippetsSize() *float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetStorageSize() float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetUploadsSize() *float64
- func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetWikiSize() *float64
- type ProjectReferenceFields
- type TestReportSummaryFields
- func (v *TestReportSummaryFields) GetCount() *int
- func (v *TestReportSummaryFields) GetError() *int
- func (v *TestReportSummaryFields) GetFailed() *int
- func (v *TestReportSummaryFields) GetSkipped() *int
- func (v *TestReportSummaryFields) GetSuccess() *int
- func (v *TestReportSummaryFields) GetTime() *float64
- type TestSuiteSummaryFields
- func (v *TestSuiteSummaryFields) GetBuildIds() []string
- func (v *TestSuiteSummaryFields) GetErrorCount() *int
- func (v *TestSuiteSummaryFields) GetFailedCount() *int
- func (v *TestSuiteSummaryFields) GetName() *string
- func (v *TestSuiteSummaryFields) GetSkippedCount() *int
- func (v *TestSuiteSummaryFields) GetSuccessCount() *int
- func (v *TestSuiteSummaryFields) GetSuiteError() *string
- func (v *TestSuiteSummaryFields) GetTotalCount() *int
- func (v *TestSuiteSummaryFields) GetTotalTime() *float64
- type UserReferenceFields
- type UserReferenceFieldsAddOnUser
- type UserReferenceFieldsAutocompletedUser
- type UserReferenceFieldsCurrentUser
- type UserReferenceFieldsMergeRequestAssignee
- type UserReferenceFieldsMergeRequestAuthor
- type UserReferenceFieldsMergeRequestParticipant
- type UserReferenceFieldsMergeRequestReviewer
- type UserReferenceFieldsUserCore
Constants ¶
const ( GlobalIdPrefix = "gid://gitlab/" GlobalIdProjectPrefix = GlobalIdPrefix + "Project/" GlobalIdPipelinePrefix = GlobalIdPrefix + "Ci::Pipeline/" GlobalIdMergeRequestPrefix = GlobalIdPrefix + "MergeRequest/" GlobalIdMilestonePrefix = GlobalIdPrefix + "Milestone/" GlobalIdNotePrefix = GlobalIdPrefix + "Note/" GlobalIdUserPrefix = GlobalIdPrefix + "User/" )
Variables ¶
This section is empty.
Functions ¶
func ConvertJobArtifact ¶ added in v0.12.0
func ConvertJobArtifact(jaf JobArtifactFields) (types.JobArtifact, error)
func ConvertJobReference ¶ added in v0.12.0
func ConvertJobReference(job JobReferenceFields, pipeline PipelineReferenceFields, project ProjectReferenceFields) (types.JobReference, error)
func ConvertMergeRequest ¶
func ConvertMergeRequest(mrf MergeRequestFields) (types.MergeRequest, error)
func ConvertMergeRequestNoteEvent ¶
func ConvertMergeRequestNoteEvent(nf MergeRequestNoteFields) (types.MergeRequestNoteEvent, error)
func ConvertPipeline ¶
func ConvertPipeline(pf PipelineFields) (types.Pipeline, error)
func ConvertProject ¶
func ConvertProject(pf ProjectFields) (types.Project, error)
Types ¶
type CiJobStatus ¶
type CiJobStatus string
const ( // A job that is created. CiJobStatusCreated CiJobStatus = "CREATED" // A job that is waiting for resource. CiJobStatusWaitingForResource CiJobStatus = "WAITING_FOR_RESOURCE" // A job that is preparing. CiJobStatusPreparing CiJobStatus = "PREPARING" // A job that is waiting for callback. CiJobStatusWaitingForCallback CiJobStatus = "WAITING_FOR_CALLBACK" // A job that is pending. CiJobStatusPending CiJobStatus = "PENDING" // A job that is running. CiJobStatusRunning CiJobStatus = "RUNNING" // A job that is success. CiJobStatusSuccess CiJobStatus = "SUCCESS" // A job that is failed. CiJobStatusFailed CiJobStatus = "FAILED" // A job that is canceling. CiJobStatusCanceling CiJobStatus = "CANCELING" // A job that is canceled. CiJobStatusCanceled CiJobStatus = "CANCELED" // A job that is skipped. CiJobStatusSkipped CiJobStatus = "SKIPPED" // A job that is manual. CiJobStatusManual CiJobStatus = "MANUAL" // A job that is scheduled. CiJobStatusScheduled CiJobStatus = "SCHEDULED" )
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) GetProjectPipeline ¶
func (*Client) GetProjectPipelineJobsArtifacts ¶ added in v0.12.0
func (*Client) GetProjects ¶
func (*Client) GetProjectsMergeRequests ¶
func (c *Client) GetProjectsMergeRequests(ctx context.Context, ids []string, opts GetMergeRequestsOptions) ([]MergeRequestFields, error)
func (*Client) GetProjectsMergeRequestsNotes ¶
func (c *Client) GetProjectsMergeRequestsNotes(ctx context.Context, projectGids []string, opts GetMergeRequestsOptions) ([]MergeRequestNoteFields, error)
func (*Client) GetProjectsPipelines ¶
func (c *Client) GetProjectsPipelines(ctx context.Context, ids []string, opts GetPipelinesOptions) ([]PipelineFields, error)
func (*Client) GetProjectsPipelinesJobs ¶
type DetailedMergeStatus ¶
type DetailedMergeStatus string
Detailed representation of whether a GitLab merge request can be merged.
const ( // Merge status has not been checked. DetailedMergeStatusUnchecked DetailedMergeStatus = "UNCHECKED" // Currently checking for mergeability. DetailedMergeStatusChecking DetailedMergeStatus = "CHECKING" // Branch can be merged. DetailedMergeStatusMergeable DetailedMergeStatus = "MERGEABLE" // Source branch exists and contains commits. DetailedMergeStatusCommitsStatus DetailedMergeStatus = "COMMITS_STATUS" // Pipeline must succeed before merging. DetailedMergeStatusCiMustPass DetailedMergeStatus = "CI_MUST_PASS" // Pipeline is still running. DetailedMergeStatusCiStillRunning DetailedMergeStatus = "CI_STILL_RUNNING" // Discussions must be resolved before merging. DetailedMergeStatusDiscussionsNotResolved DetailedMergeStatus = "DISCUSSIONS_NOT_RESOLVED" // Merge request must not be draft before merging. DetailedMergeStatusDraftStatus DetailedMergeStatus = "DRAFT_STATUS" // Merge request must be open before merging. DetailedMergeStatusNotOpen DetailedMergeStatus = "NOT_OPEN" // Merge request must be approved before merging. DetailedMergeStatusNotApproved DetailedMergeStatus = "NOT_APPROVED" // Merge request dependencies must be merged. DetailedMergeStatusBlockedStatus DetailedMergeStatus = "BLOCKED_STATUS" // Status checks must pass. DetailedMergeStatusExternalStatusChecks DetailedMergeStatus = "EXTERNAL_STATUS_CHECKS" // Merge request diff is being created. DetailedMergeStatusPreparing DetailedMergeStatus = "PREPARING" // Either the title or description must reference a Jira issue. DetailedMergeStatusJiraAssociation DetailedMergeStatus = "JIRA_ASSOCIATION" // There are conflicts between the source and target branches. DetailedMergeStatusConflict DetailedMergeStatus = "CONFLICT" // Merge request needs to be rebased. DetailedMergeStatusNeedRebase DetailedMergeStatus = "NEED_REBASE" // Merge request approvals currently syncing. DetailedMergeStatusApprovalsSyncing DetailedMergeStatus = "APPROVALS_SYNCING" // Merge request includes locked paths. DetailedMergeStatusLockedPaths DetailedMergeStatus = "LOCKED_PATHS" // Merge request includes locked LFS files. DetailedMergeStatusLockedLfsFiles DetailedMergeStatus = "LOCKED_LFS_FILES" // All security policies must be evaluated. DetailedMergeStatusSecurityPoliciesEvaluating DetailedMergeStatus = "SECURITY_POLICIES_EVALUATING" // Merge request may not be merged until after the specified time. DetailedMergeStatusMergeTime DetailedMergeStatus = "MERGE_TIME" // All policy rules must be satisfied. DetailedMergeStatusSecurityPoliciesViolations DetailedMergeStatus = "SECURITY_POLICIES_VIOLATIONS" // Indicates a reviewer has requested changes. DetailedMergeStatusRequestedChanges DetailedMergeStatus = "REQUESTED_CHANGES" )
type GetMergeRequestsOptions ¶
type GetPipelinesOptions ¶
type JobArtifactFields ¶ added in v0.12.0
type JobArtifactFields struct { Job JobReferenceFields Pipeline PipelineReferenceFields Project ProjectReferenceFields JobArtifactFieldsCore }
type JobArtifactFieldsCore ¶ added in v0.12.0
type JobArtifactFieldsCore struct { // File type of the artifact. FileType *JobArtifactFileType `json:"fileType"` // File name of the artifact. Name *string `json:"name"` // URL for downloading the artifact's file. DownloadPath *string `json:"downloadPath"` }
JobArtifactFieldsCore includes the GraphQL fields of CiJobArtifact requested by the fragment JobArtifactFieldsCore.
func (*JobArtifactFieldsCore) GetDownloadPath ¶ added in v0.12.0
func (v *JobArtifactFieldsCore) GetDownloadPath() *string
GetDownloadPath returns JobArtifactFieldsCore.DownloadPath, and is useful for accessing the field via an interface.
func (*JobArtifactFieldsCore) GetFileType ¶ added in v0.12.0
func (v *JobArtifactFieldsCore) GetFileType() *JobArtifactFileType
GetFileType returns JobArtifactFieldsCore.FileType, and is useful for accessing the field via an interface.
func (*JobArtifactFieldsCore) GetName ¶ added in v0.12.0
func (v *JobArtifactFieldsCore) GetName() *string
GetName returns JobArtifactFieldsCore.Name, and is useful for accessing the field via an interface.
type JobArtifactFileType ¶ added in v0.12.0
type JobArtifactFileType string
const ( // ARCHIVE job artifact file type. JobArtifactFileTypeArchive JobArtifactFileType = "ARCHIVE" // METADATA job artifact file type. JobArtifactFileTypeMetadata JobArtifactFileType = "METADATA" // TRACE job artifact file type. JobArtifactFileTypeTrace JobArtifactFileType = "TRACE" // JUNIT job artifact file type. JobArtifactFileTypeJunit JobArtifactFileType = "JUNIT" // METRICS job artifact file type. JobArtifactFileTypeMetrics JobArtifactFileType = "METRICS" // METRICS REFEREE job artifact file type. JobArtifactFileTypeMetricsReferee JobArtifactFileType = "METRICS_REFEREE" // NETWORK REFEREE job artifact file type. JobArtifactFileTypeNetworkReferee JobArtifactFileType = "NETWORK_REFEREE" // DOTENV job artifact file type. JobArtifactFileTypeDotenv JobArtifactFileType = "DOTENV" // COBERTURA job artifact file type. JobArtifactFileTypeCobertura JobArtifactFileType = "COBERTURA" // JACOCO job artifact file type. JobArtifactFileTypeJacoco JobArtifactFileType = "JACOCO" // CLUSTER APPLICATIONS job artifact file type. JobArtifactFileTypeClusterApplications JobArtifactFileType = "CLUSTER_APPLICATIONS" // LSIF job artifact file type. JobArtifactFileTypeLsif JobArtifactFileType = "LSIF" // CYCLONEDX job artifact file type. JobArtifactFileTypeCyclonedx JobArtifactFileType = "CYCLONEDX" // ANNOTATIONS job artifact file type. JobArtifactFileTypeAnnotations JobArtifactFileType = "ANNOTATIONS" // REPOSITORY XRAY job artifact file type. JobArtifactFileTypeRepositoryXray JobArtifactFileType = "REPOSITORY_XRAY" // SAST job artifact file type. JobArtifactFileTypeSast JobArtifactFileType = "SAST" // SECRET DETECTION job artifact file type. JobArtifactFileTypeSecretDetection JobArtifactFileType = "SECRET_DETECTION" // DEPENDENCY SCANNING job artifact file type. JobArtifactFileTypeDependencyScanning JobArtifactFileType = "DEPENDENCY_SCANNING" // CONTAINER SCANNING job artifact file type. JobArtifactFileTypeContainerScanning JobArtifactFileType = "CONTAINER_SCANNING" // CLUSTER IMAGE SCANNING job artifact file type. JobArtifactFileTypeClusterImageScanning JobArtifactFileType = "CLUSTER_IMAGE_SCANNING" // DAST job artifact file type. JobArtifactFileTypeDast JobArtifactFileType = "DAST" // LICENSE SCANNING job artifact file type. JobArtifactFileTypeLicenseScanning JobArtifactFileType = "LICENSE_SCANNING" // ACCESSIBILITY job artifact file type. JobArtifactFileTypeAccessibility JobArtifactFileType = "ACCESSIBILITY" // CODE QUALITY job artifact file type. JobArtifactFileTypeCodequality JobArtifactFileType = "CODEQUALITY" // PERFORMANCE job artifact file type. JobArtifactFileTypePerformance JobArtifactFileType = "PERFORMANCE" // BROWSER PERFORMANCE job artifact file type. JobArtifactFileTypeBrowserPerformance JobArtifactFileType = "BROWSER_PERFORMANCE" // LOAD PERFORMANCE job artifact file type. JobArtifactFileTypeLoadPerformance JobArtifactFileType = "LOAD_PERFORMANCE" // TERRAFORM job artifact file type. JobArtifactFileTypeTerraform JobArtifactFileType = "TERRAFORM" // REQUIREMENTS job artifact file type. JobArtifactFileTypeRequirements JobArtifactFileType = "REQUIREMENTS" // REQUIREMENTS V2 job artifact file type. JobArtifactFileTypeRequirementsV2 JobArtifactFileType = "REQUIREMENTS_V2" // COVERAGE FUZZING job artifact file type. JobArtifactFileTypeCoverageFuzzing JobArtifactFileType = "COVERAGE_FUZZING" // API FUZZING job artifact file type. JobArtifactFileTypeApiFuzzing JobArtifactFileType = "API_FUZZING" )
type JobFields ¶
type JobFields struct { JobReferenceFields Pipeline PipelineReferenceFields Project ProjectReferenceFields JobFieldsCore JobFieldsExtra }
type JobFieldsCore ¶
type JobFieldsCore struct { // Name of the job. Name *string `json:"name"` // Ref name of the job. RefName *string `json:"refName"` // Status of the job. Status *CiJobStatus `json:"status"` // When the job was created. CreatedAt time.Time `json:"createdAt"` // When the job was enqueued and marked as pending. QueuedAt *time.Time `json:"queuedAt"` // When the job was started. StartedAt *time.Time `json:"startedAt"` // When a job has finished running. FinishedAt *time.Time `json:"finishedAt"` // When the job was erased. ErasedAt *time.Time `json:"erasedAt"` // Duration of the job in seconds. Duration *int `json:"duration"` // How long the job was enqueued before starting. QueuedDuration *float64 `json:"queuedDuration"` // Coverage level of the job. Coverage *float64 `json:"coverage"` // Whether the job is allowed to fail. AllowFailure bool `json:"allowFailure"` // Message on why the job failed. FailureMessage *string `json:"failureMessage"` }
JobFieldsCore includes the GraphQL fields of CiJob requested by the fragment JobFieldsCore.
func (*JobFieldsCore) GetAllowFailure ¶
func (v *JobFieldsCore) GetAllowFailure() bool
GetAllowFailure returns JobFieldsCore.AllowFailure, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetCoverage ¶
func (v *JobFieldsCore) GetCoverage() *float64
GetCoverage returns JobFieldsCore.Coverage, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetCreatedAt ¶
func (v *JobFieldsCore) GetCreatedAt() time.Time
GetCreatedAt returns JobFieldsCore.CreatedAt, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetDuration ¶
func (v *JobFieldsCore) GetDuration() *int
GetDuration returns JobFieldsCore.Duration, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetErasedAt ¶
func (v *JobFieldsCore) GetErasedAt() *time.Time
GetErasedAt returns JobFieldsCore.ErasedAt, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetFailureMessage ¶
func (v *JobFieldsCore) GetFailureMessage() *string
GetFailureMessage returns JobFieldsCore.FailureMessage, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetFinishedAt ¶
func (v *JobFieldsCore) GetFinishedAt() *time.Time
GetFinishedAt returns JobFieldsCore.FinishedAt, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetName ¶
func (v *JobFieldsCore) GetName() *string
GetName returns JobFieldsCore.Name, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetQueuedAt ¶
func (v *JobFieldsCore) GetQueuedAt() *time.Time
GetQueuedAt returns JobFieldsCore.QueuedAt, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetQueuedDuration ¶
func (v *JobFieldsCore) GetQueuedDuration() *float64
GetQueuedDuration returns JobFieldsCore.QueuedDuration, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetRefName ¶
func (v *JobFieldsCore) GetRefName() *string
GetRefName returns JobFieldsCore.RefName, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetStartedAt ¶
func (v *JobFieldsCore) GetStartedAt() *time.Time
GetStartedAt returns JobFieldsCore.StartedAt, and is useful for accessing the field via an interface.
func (*JobFieldsCore) GetStatus ¶
func (v *JobFieldsCore) GetStatus() *CiJobStatus
GetStatus returns JobFieldsCore.Status, and is useful for accessing the field via an interface.
type JobFieldsExtra ¶
type JobFieldsExtra struct { // Stage of the job. Stage *JobFieldsExtraStageCiStage `json:"stage"` // Tags for the current job. Tags []string `json:"tags"` // Whether the job has a manual action. ManualJob *bool `json:"manualJob"` // Indicates the job can be retried. Retryable bool `json:"retryable"` // Indicates that the job has been retried. Retried *bool `json:"retried"` // Indicates the type of job. Kind CiJobKind `json:"kind"` // Downstream pipeline for a bridge. DownstreamPipeline *JobFieldsExtraDownstreamPipeline `json:"downstreamPipeline"` // Runner assigned to execute the job. Runner *JobFieldsExtraRunnerCiRunner `json:"runner"` }
JobFieldsExtra includes the GraphQL fields of CiJob requested by the fragment JobFieldsExtra.
func (*JobFieldsExtra) GetDownstreamPipeline ¶
func (v *JobFieldsExtra) GetDownstreamPipeline() *JobFieldsExtraDownstreamPipeline
GetDownstreamPipeline returns JobFieldsExtra.DownstreamPipeline, and is useful for accessing the field via an interface.
func (*JobFieldsExtra) GetKind ¶
func (v *JobFieldsExtra) GetKind() CiJobKind
GetKind returns JobFieldsExtra.Kind, and is useful for accessing the field via an interface.
func (*JobFieldsExtra) GetManualJob ¶
func (v *JobFieldsExtra) GetManualJob() *bool
GetManualJob returns JobFieldsExtra.ManualJob, and is useful for accessing the field via an interface.
func (*JobFieldsExtra) GetRetried ¶
func (v *JobFieldsExtra) GetRetried() *bool
GetRetried returns JobFieldsExtra.Retried, and is useful for accessing the field via an interface.
func (*JobFieldsExtra) GetRetryable ¶
func (v *JobFieldsExtra) GetRetryable() bool
GetRetryable returns JobFieldsExtra.Retryable, and is useful for accessing the field via an interface.
func (*JobFieldsExtra) GetRunner ¶
func (v *JobFieldsExtra) GetRunner() *JobFieldsExtraRunnerCiRunner
GetRunner returns JobFieldsExtra.Runner, and is useful for accessing the field via an interface.
func (*JobFieldsExtra) GetStage ¶
func (v *JobFieldsExtra) GetStage() *JobFieldsExtraStageCiStage
GetStage returns JobFieldsExtra.Stage, and is useful for accessing the field via an interface.
func (*JobFieldsExtra) GetTags ¶
func (v *JobFieldsExtra) GetTags() []string
GetTags returns JobFieldsExtra.Tags, and is useful for accessing the field via an interface.
type JobFieldsExtraDownstreamPipeline ¶
type JobFieldsExtraDownstreamPipeline struct { // ID of the pipeline. Id string `json:"id"` // Internal ID of the pipeline. Iid string `json:"iid"` // Project the pipeline belongs to. Project *JobFieldsExtraDownstreamPipelineProject `json:"project"` }
JobFieldsExtraDownstreamPipeline includes the requested fields of the GraphQL type Pipeline.
func (*JobFieldsExtraDownstreamPipeline) GetId ¶
func (v *JobFieldsExtraDownstreamPipeline) GetId() string
GetId returns JobFieldsExtraDownstreamPipeline.Id, and is useful for accessing the field via an interface.
func (*JobFieldsExtraDownstreamPipeline) GetIid ¶
func (v *JobFieldsExtraDownstreamPipeline) GetIid() string
GetIid returns JobFieldsExtraDownstreamPipeline.Iid, and is useful for accessing the field via an interface.
func (*JobFieldsExtraDownstreamPipeline) GetProject ¶
func (v *JobFieldsExtraDownstreamPipeline) GetProject() *JobFieldsExtraDownstreamPipelineProject
GetProject returns JobFieldsExtraDownstreamPipeline.Project, and is useful for accessing the field via an interface.
type JobFieldsExtraDownstreamPipelineProject ¶
type JobFieldsExtraDownstreamPipelineProject struct { // ID of the project. Id string `json:"id"` // Full path of the project. FullPath string `json:"fullPath"` }
JobFieldsExtraDownstreamPipelineProject includes the requested fields of the GraphQL type Project.
func (*JobFieldsExtraDownstreamPipelineProject) GetFullPath ¶
func (v *JobFieldsExtraDownstreamPipelineProject) GetFullPath() string
GetFullPath returns JobFieldsExtraDownstreamPipelineProject.FullPath, and is useful for accessing the field via an interface.
func (*JobFieldsExtraDownstreamPipelineProject) GetId ¶
func (v *JobFieldsExtraDownstreamPipelineProject) GetId() string
GetId returns JobFieldsExtraDownstreamPipelineProject.Id, and is useful for accessing the field via an interface.
type JobFieldsExtraRunnerCiRunner ¶
type JobFieldsExtraRunnerCiRunner struct { // ID of the runner. Id string `json:"id"` }
JobFieldsExtraRunnerCiRunner includes the requested fields of the GraphQL type CiRunner.
func (*JobFieldsExtraRunnerCiRunner) GetId ¶
func (v *JobFieldsExtraRunnerCiRunner) GetId() string
GetId returns JobFieldsExtraRunnerCiRunner.Id, and is useful for accessing the field via an interface.
type JobFieldsExtraStageCiStage ¶
type JobFieldsExtraStageCiStage struct { // Name of the stage. Name *string `json:"name"` }
JobFieldsExtraStageCiStage includes the requested fields of the GraphQL type CiStage.
func (*JobFieldsExtraStageCiStage) GetName ¶
func (v *JobFieldsExtraStageCiStage) GetName() *string
GetName returns JobFieldsExtraStageCiStage.Name, and is useful for accessing the field via an interface.
type JobReferenceFields ¶
type JobReferenceFields struct { // ID of the job. Id *string `json:"id"` }
JobReferenceFields includes the GraphQL fields of CiJob requested by the fragment JobReferenceFields.
func (*JobReferenceFields) GetId ¶
func (v *JobReferenceFields) GetId() *string
GetId returns JobReferenceFields.Id, and is useful for accessing the field via an interface.
type ListProjectsResult ¶
type ListProjectsResult struct { ProjectFields ProjectFields PipelinesCount int MergeRequestsCount int }
type MergeRequestFields ¶
type MergeRequestFields struct { MergeRequestReferenceFields Project ProjectReferenceFields MergeRequestFieldsCore MergeRequestFieldsExtra MergeRequestFieldsParticipants }
type MergeRequestFieldsCore ¶
type MergeRequestFieldsCore struct { // Timestamp of when the merge request was created. CreatedAt time.Time `json:"createdAt"` // Timestamp of when the merge request was last updated. UpdatedAt time.Time `json:"updatedAt"` // Timestamp of when the merge request was merged, null if not merged. MergedAt *time.Time `json:"mergedAt"` // Timestamp of when the merge request was closed, null if not closed. ClosedAt *time.Time `json:"closedAt"` // Name or title of this object. Name *string `json:"name"` // Title of the merge request. Title string `json:"title"` // Labels of the merge request. Labels *MergeRequestFieldsCoreLabelsLabelConnection `json:"labels"` // State of the merge request. State MergeRequestState `json:"state"` // Detailed merge status of the merge request. DetailedMergeStatus *DetailedMergeStatus `json:"detailedMergeStatus"` // Error message due to a merge error. MergeError *string `json:"mergeError"` // Indicates if the merge request has all the required approvals. Approved bool `json:"approved"` // Indicates if the merge request has conflicts. Conflicts bool `json:"conflicts"` // Indicates if the merge request is a draft. Draft bool `json:"draft"` // Indicates if the merge request is mergeable. Mergeable bool `json:"mergeable"` }
MergeRequestFieldsCore includes the GraphQL fields of MergeRequest requested by the fragment MergeRequestFieldsCore.
func (*MergeRequestFieldsCore) GetApproved ¶
func (v *MergeRequestFieldsCore) GetApproved() bool
GetApproved returns MergeRequestFieldsCore.Approved, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetClosedAt ¶
func (v *MergeRequestFieldsCore) GetClosedAt() *time.Time
GetClosedAt returns MergeRequestFieldsCore.ClosedAt, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetConflicts ¶
func (v *MergeRequestFieldsCore) GetConflicts() bool
GetConflicts returns MergeRequestFieldsCore.Conflicts, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetCreatedAt ¶
func (v *MergeRequestFieldsCore) GetCreatedAt() time.Time
GetCreatedAt returns MergeRequestFieldsCore.CreatedAt, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetDetailedMergeStatus ¶
func (v *MergeRequestFieldsCore) GetDetailedMergeStatus() *DetailedMergeStatus
GetDetailedMergeStatus returns MergeRequestFieldsCore.DetailedMergeStatus, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetDraft ¶
func (v *MergeRequestFieldsCore) GetDraft() bool
GetDraft returns MergeRequestFieldsCore.Draft, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetLabels ¶
func (v *MergeRequestFieldsCore) GetLabels() *MergeRequestFieldsCoreLabelsLabelConnection
GetLabels returns MergeRequestFieldsCore.Labels, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetMergeError ¶
func (v *MergeRequestFieldsCore) GetMergeError() *string
GetMergeError returns MergeRequestFieldsCore.MergeError, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetMergeable ¶
func (v *MergeRequestFieldsCore) GetMergeable() bool
GetMergeable returns MergeRequestFieldsCore.Mergeable, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetMergedAt ¶
func (v *MergeRequestFieldsCore) GetMergedAt() *time.Time
GetMergedAt returns MergeRequestFieldsCore.MergedAt, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetName ¶
func (v *MergeRequestFieldsCore) GetName() *string
GetName returns MergeRequestFieldsCore.Name, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetState ¶
func (v *MergeRequestFieldsCore) GetState() MergeRequestState
GetState returns MergeRequestFieldsCore.State, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetTitle ¶
func (v *MergeRequestFieldsCore) GetTitle() string
GetTitle returns MergeRequestFieldsCore.Title, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsCore) GetUpdatedAt ¶
func (v *MergeRequestFieldsCore) GetUpdatedAt() time.Time
GetUpdatedAt returns MergeRequestFieldsCore.UpdatedAt, and is useful for accessing the field via an interface.
type MergeRequestFieldsCoreLabelsLabelConnection ¶
type MergeRequestFieldsCoreLabelsLabelConnection struct { // A list of nodes. Nodes []*MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel `json:"nodes"` }
MergeRequestFieldsCoreLabelsLabelConnection includes the requested fields of the GraphQL type LabelConnection. The GraphQL type's documentation follows.
The connection type for Label.
func (*MergeRequestFieldsCoreLabelsLabelConnection) GetNodes ¶
func (v *MergeRequestFieldsCoreLabelsLabelConnection) GetNodes() []*MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel
GetNodes returns MergeRequestFieldsCoreLabelsLabelConnection.Nodes, and is useful for accessing the field via an interface.
type MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel ¶
type MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel struct { // Content of the label. Title string `json:"title"` }
MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel includes the requested fields of the GraphQL type Label.
func (*MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel) GetTitle ¶
func (v *MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel) GetTitle() string
GetTitle returns MergeRequestFieldsCoreLabelsLabelConnectionNodesLabel.Title, and is useful for accessing the field via an interface.
type MergeRequestFieldsExtra ¶
type MergeRequestFieldsExtra struct { // ID of the merge request source project. SourceProjectId *int `json:"sourceProjectId"` // ID of the merge request target project. TargetProjectId int `json:"targetProjectId"` // Source branch of the merge request. SourceBranch string `json:"sourceBranch"` // Target branch of the merge request. TargetBranch string `json:"targetBranch"` // SHA of the merge request commit (set once merged). MergeCommitSha *string `json:"mergeCommitSha"` // Rebase commit SHA of the merge request. RebaseCommitSha *string `json:"rebaseCommitSha"` // References of the base SHA, the head SHA, and the start SHA for this merge request. DiffRefs *MergeRequestFieldsExtraDiffRefs `json:"diffRefs"` // Summary of which files were changed in this merge request. DiffStatsSummary *MergeRequestFieldsExtraDiffStatsSummary `json:"diffStatsSummary"` // Number of commits in the merge request. CommitCount *int `json:"commitCount"` // User notes count of the merge request. UserNotesCount *int `json:"userNotesCount"` // Milestone of the merge request. Milestone *MergeRequestFieldsExtraMilestone `json:"milestone"` }
MergeRequestFieldsExtra includes the GraphQL fields of MergeRequest requested by the fragment MergeRequestFieldsExtra.
func (*MergeRequestFieldsExtra) GetCommitCount ¶
func (v *MergeRequestFieldsExtra) GetCommitCount() *int
GetCommitCount returns MergeRequestFieldsExtra.CommitCount, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetDiffRefs ¶
func (v *MergeRequestFieldsExtra) GetDiffRefs() *MergeRequestFieldsExtraDiffRefs
GetDiffRefs returns MergeRequestFieldsExtra.DiffRefs, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetDiffStatsSummary ¶
func (v *MergeRequestFieldsExtra) GetDiffStatsSummary() *MergeRequestFieldsExtraDiffStatsSummary
GetDiffStatsSummary returns MergeRequestFieldsExtra.DiffStatsSummary, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetMergeCommitSha ¶
func (v *MergeRequestFieldsExtra) GetMergeCommitSha() *string
GetMergeCommitSha returns MergeRequestFieldsExtra.MergeCommitSha, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetMilestone ¶
func (v *MergeRequestFieldsExtra) GetMilestone() *MergeRequestFieldsExtraMilestone
GetMilestone returns MergeRequestFieldsExtra.Milestone, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetRebaseCommitSha ¶
func (v *MergeRequestFieldsExtra) GetRebaseCommitSha() *string
GetRebaseCommitSha returns MergeRequestFieldsExtra.RebaseCommitSha, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetSourceBranch ¶
func (v *MergeRequestFieldsExtra) GetSourceBranch() string
GetSourceBranch returns MergeRequestFieldsExtra.SourceBranch, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetSourceProjectId ¶
func (v *MergeRequestFieldsExtra) GetSourceProjectId() *int
GetSourceProjectId returns MergeRequestFieldsExtra.SourceProjectId, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetTargetBranch ¶
func (v *MergeRequestFieldsExtra) GetTargetBranch() string
GetTargetBranch returns MergeRequestFieldsExtra.TargetBranch, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetTargetProjectId ¶
func (v *MergeRequestFieldsExtra) GetTargetProjectId() int
GetTargetProjectId returns MergeRequestFieldsExtra.TargetProjectId, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtra) GetUserNotesCount ¶
func (v *MergeRequestFieldsExtra) GetUserNotesCount() *int
GetUserNotesCount returns MergeRequestFieldsExtra.UserNotesCount, and is useful for accessing the field via an interface.
type MergeRequestFieldsExtraDiffRefs ¶
type MergeRequestFieldsExtraDiffRefs struct { // Merge base of the branch the comment was made on. BaseSha *string `json:"baseSha"` // SHA of the HEAD at the time the comment was made. HeadSha string `json:"headSha"` // SHA of the branch being compared against. StartSha string `json:"startSha"` }
MergeRequestFieldsExtraDiffRefs includes the requested fields of the GraphQL type DiffRefs.
func (*MergeRequestFieldsExtraDiffRefs) GetBaseSha ¶
func (v *MergeRequestFieldsExtraDiffRefs) GetBaseSha() *string
GetBaseSha returns MergeRequestFieldsExtraDiffRefs.BaseSha, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraDiffRefs) GetHeadSha ¶
func (v *MergeRequestFieldsExtraDiffRefs) GetHeadSha() string
GetHeadSha returns MergeRequestFieldsExtraDiffRefs.HeadSha, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraDiffRefs) GetStartSha ¶
func (v *MergeRequestFieldsExtraDiffRefs) GetStartSha() string
GetStartSha returns MergeRequestFieldsExtraDiffRefs.StartSha, and is useful for accessing the field via an interface.
type MergeRequestFieldsExtraDiffStatsSummary ¶
type MergeRequestFieldsExtraDiffStatsSummary struct { // Number of lines added. Additions int `json:"additions"` // Number of lines changed. Changes int `json:"changes"` // Number of lines deleted. Deletions int `json:"deletions"` // Number of files changed. FileCount int `json:"fileCount"` }
MergeRequestFieldsExtraDiffStatsSummary includes the requested fields of the GraphQL type DiffStatsSummary. The GraphQL type's documentation follows.
Aggregated summary of changes
func (*MergeRequestFieldsExtraDiffStatsSummary) GetAdditions ¶
func (v *MergeRequestFieldsExtraDiffStatsSummary) GetAdditions() int
GetAdditions returns MergeRequestFieldsExtraDiffStatsSummary.Additions, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraDiffStatsSummary) GetChanges ¶
func (v *MergeRequestFieldsExtraDiffStatsSummary) GetChanges() int
GetChanges returns MergeRequestFieldsExtraDiffStatsSummary.Changes, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraDiffStatsSummary) GetDeletions ¶
func (v *MergeRequestFieldsExtraDiffStatsSummary) GetDeletions() int
GetDeletions returns MergeRequestFieldsExtraDiffStatsSummary.Deletions, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraDiffStatsSummary) GetFileCount ¶
func (v *MergeRequestFieldsExtraDiffStatsSummary) GetFileCount() int
GetFileCount returns MergeRequestFieldsExtraDiffStatsSummary.FileCount, and is useful for accessing the field via an interface.
type MergeRequestFieldsExtraMilestone ¶
type MergeRequestFieldsExtraMilestone struct { // ID of the milestone. Id string `json:"id"` // Internal ID of the milestone. Iid string `json:"iid"` // Project of the milestone. Project *MergeRequestFieldsExtraMilestoneProject `json:"project"` }
MergeRequestFieldsExtraMilestone includes the requested fields of the GraphQL type Milestone. The GraphQL type's documentation follows.
Represents a milestone
func (*MergeRequestFieldsExtraMilestone) GetId ¶
func (v *MergeRequestFieldsExtraMilestone) GetId() string
GetId returns MergeRequestFieldsExtraMilestone.Id, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraMilestone) GetIid ¶
func (v *MergeRequestFieldsExtraMilestone) GetIid() string
GetIid returns MergeRequestFieldsExtraMilestone.Iid, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraMilestone) GetProject ¶
func (v *MergeRequestFieldsExtraMilestone) GetProject() *MergeRequestFieldsExtraMilestoneProject
GetProject returns MergeRequestFieldsExtraMilestone.Project, and is useful for accessing the field via an interface.
type MergeRequestFieldsExtraMilestoneProject ¶
type MergeRequestFieldsExtraMilestoneProject struct { // ID of the project. Id string `json:"id"` // Full path of the project. FullPath string `json:"fullPath"` }
MergeRequestFieldsExtraMilestoneProject includes the requested fields of the GraphQL type Project.
func (*MergeRequestFieldsExtraMilestoneProject) GetFullPath ¶
func (v *MergeRequestFieldsExtraMilestoneProject) GetFullPath() string
GetFullPath returns MergeRequestFieldsExtraMilestoneProject.FullPath, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsExtraMilestoneProject) GetId ¶
func (v *MergeRequestFieldsExtraMilestoneProject) GetId() string
GetId returns MergeRequestFieldsExtraMilestoneProject.Id, and is useful for accessing the field via an interface.
type MergeRequestFieldsParticipants ¶
type MergeRequestFieldsParticipants struct { // User who created this merge request. Author *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor `json:"author"` // Assignees of the merge request. Assignees *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection `json:"assignees"` // Users from whom a review has been requested. Reviewers *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection `json:"reviewers"` // Users who approved the merge request. ApprovedBy *MergeRequestFieldsParticipantsApprovedByUserCoreConnection `json:"approvedBy"` // User who merged this merge request or set it to auto-merge. MergeUser *MergeRequestFieldsParticipantsMergeUserUserCore `json:"mergeUser"` }
MergeRequestFieldsParticipants includes the GraphQL fields of MergeRequest requested by the fragment MergeRequestFieldsParticipants.
func (*MergeRequestFieldsParticipants) GetApprovedBy ¶
func (v *MergeRequestFieldsParticipants) GetApprovedBy() *MergeRequestFieldsParticipantsApprovedByUserCoreConnection
GetApprovedBy returns MergeRequestFieldsParticipants.ApprovedBy, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipants) GetAssignees ¶
func (v *MergeRequestFieldsParticipants) GetAssignees() *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection
GetAssignees returns MergeRequestFieldsParticipants.Assignees, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipants) GetAuthor ¶
func (v *MergeRequestFieldsParticipants) GetAuthor() *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor
GetAuthor returns MergeRequestFieldsParticipants.Author, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipants) GetMergeUser ¶
func (v *MergeRequestFieldsParticipants) GetMergeUser() *MergeRequestFieldsParticipantsMergeUserUserCore
GetMergeUser returns MergeRequestFieldsParticipants.MergeUser, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipants) GetReviewers ¶
func (v *MergeRequestFieldsParticipants) GetReviewers() *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection
GetReviewers returns MergeRequestFieldsParticipants.Reviewers, and is useful for accessing the field via an interface.
type MergeRequestFieldsParticipantsApprovedByUserCoreConnection ¶
type MergeRequestFieldsParticipantsApprovedByUserCoreConnection struct { // A list of nodes. Nodes []*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore `json:"nodes"` }
MergeRequestFieldsParticipantsApprovedByUserCoreConnection includes the requested fields of the GraphQL type UserCoreConnection. The GraphQL type's documentation follows.
The connection type for UserCore.
func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnection) GetNodes ¶
func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnection) GetNodes() []*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore
GetNodes returns MergeRequestFieldsParticipantsApprovedByUserCoreConnection.Nodes, and is useful for accessing the field via an interface.
type MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore ¶
type MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore struct {
UserReferenceFieldsUserCore `json:"-"`
}
MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore includes the requested fields of the GraphQL type UserCore. The GraphQL type's documentation follows.
Core representation of a GitLab user.
func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetId ¶
GetId returns MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore.Id, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetName ¶ added in v0.13.2
func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetName() string
GetName returns MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore.Name, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetUsername ¶
func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetUsername() string
GetUsername returns MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore.Username, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) MarshalJSON ¶
func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) MarshalJSON() ([]byte, error)
func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) UnmarshalJSON ¶
func (v *MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) UnmarshalJSON(b []byte) error
type MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection ¶
type MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection struct { // A list of nodes. Nodes []*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee `json:"nodes"` }
MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection includes the requested fields of the GraphQL type MergeRequestAssigneeConnection. The GraphQL type's documentation follows.
The connection type for MergeRequestAssignee.
func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection) GetNodes ¶
func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection) GetNodes() []*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee
GetNodes returns MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnection.Nodes, and is useful for accessing the field via an interface.
type MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee ¶
type MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee struct {
UserReferenceFieldsMergeRequestAssignee `json:"-"`
}
MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee includes the requested fields of the GraphQL type MergeRequestAssignee. The GraphQL type's documentation follows.
A user assigned to a merge request.
func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetId ¶
func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetId() string
GetId returns MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee.Id, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetName ¶ added in v0.13.2
func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetName() string
GetName returns MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee.Name, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetUsername ¶
func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetUsername() string
GetUsername returns MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee.Username, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) MarshalJSON ¶
func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) MarshalJSON() ([]byte, error)
func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) UnmarshalJSON ¶
func (v *MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) UnmarshalJSON(b []byte) error
type MergeRequestFieldsParticipantsAuthorMergeRequestAuthor ¶
type MergeRequestFieldsParticipantsAuthorMergeRequestAuthor struct {
UserReferenceFieldsMergeRequestAuthor `json:"-"`
}
MergeRequestFieldsParticipantsAuthorMergeRequestAuthor includes the requested fields of the GraphQL type MergeRequestAuthor. The GraphQL type's documentation follows.
The author of the merge request.
func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetId ¶
func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetId() string
GetId returns MergeRequestFieldsParticipantsAuthorMergeRequestAuthor.Id, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetName ¶ added in v0.13.2
func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetName() string
GetName returns MergeRequestFieldsParticipantsAuthorMergeRequestAuthor.Name, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetUsername ¶
func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetUsername() string
GetUsername returns MergeRequestFieldsParticipantsAuthorMergeRequestAuthor.Username, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) MarshalJSON ¶
func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) MarshalJSON() ([]byte, error)
func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) UnmarshalJSON ¶
func (v *MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) UnmarshalJSON(b []byte) error
type MergeRequestFieldsParticipantsMergeUserUserCore ¶
type MergeRequestFieldsParticipantsMergeUserUserCore struct {
UserReferenceFieldsUserCore `json:"-"`
}
MergeRequestFieldsParticipantsMergeUserUserCore includes the requested fields of the GraphQL type UserCore. The GraphQL type's documentation follows.
Core representation of a GitLab user.
func (*MergeRequestFieldsParticipantsMergeUserUserCore) GetId ¶
func (v *MergeRequestFieldsParticipantsMergeUserUserCore) GetId() string
GetId returns MergeRequestFieldsParticipantsMergeUserUserCore.Id, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsMergeUserUserCore) GetName ¶ added in v0.13.2
func (v *MergeRequestFieldsParticipantsMergeUserUserCore) GetName() string
GetName returns MergeRequestFieldsParticipantsMergeUserUserCore.Name, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsMergeUserUserCore) GetUsername ¶
func (v *MergeRequestFieldsParticipantsMergeUserUserCore) GetUsername() string
GetUsername returns MergeRequestFieldsParticipantsMergeUserUserCore.Username, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsMergeUserUserCore) MarshalJSON ¶
func (v *MergeRequestFieldsParticipantsMergeUserUserCore) MarshalJSON() ([]byte, error)
func (*MergeRequestFieldsParticipantsMergeUserUserCore) UnmarshalJSON ¶
func (v *MergeRequestFieldsParticipantsMergeUserUserCore) UnmarshalJSON(b []byte) error
type MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection ¶
type MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection struct { // A list of nodes. Nodes []*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer `json:"nodes"` }
MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection includes the requested fields of the GraphQL type MergeRequestReviewerConnection. The GraphQL type's documentation follows.
The connection type for MergeRequestReviewer.
func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection) GetNodes ¶
func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection) GetNodes() []*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer
GetNodes returns MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnection.Nodes, and is useful for accessing the field via an interface.
type MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer ¶
type MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer struct {
UserReferenceFieldsMergeRequestReviewer `json:"-"`
}
MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer includes the requested fields of the GraphQL type MergeRequestReviewer. The GraphQL type's documentation follows.
A user assigned to a merge request as a reviewer.
func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetId ¶
func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetId() string
GetId returns MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer.Id, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetName ¶ added in v0.13.2
func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetName() string
GetName returns MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer.Name, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetUsername ¶
func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetUsername() string
GetUsername returns MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer.Username, and is useful for accessing the field via an interface.
func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) MarshalJSON ¶
func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) MarshalJSON() ([]byte, error)
func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) UnmarshalJSON ¶
func (v *MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) UnmarshalJSON(b []byte) error
type MergeRequestNoteFields ¶
type MergeRequestNoteFields struct { MergeRequest MergeRequestReferenceFields Project ProjectReferenceFields MergeRequestNotesFieldsCore }
type MergeRequestNotesFieldsCore ¶
type MergeRequestNotesFieldsCore struct { // ID of the note. Id string `json:"id"` // Timestamp of the note creation. CreatedAt time.Time `json:"createdAt"` // Timestamp of the note's last activity. UpdatedAt time.Time `json:"updatedAt"` // User who wrote the note. Author *MergeRequestNotesFieldsCoreAuthorUserCore `json:"author"` // Content of the note. Body string `json:"body"` // Indicates if the note is internal. Internal *bool `json:"internal"` // Indicates whether the note was created by the system or by a user. System bool `json:"system"` // Indicates if the object can be resolved. Resolvable bool `json:"resolvable"` // Indicates if the object is resolved. Resolved bool `json:"resolved"` // Timestamp of when the object was resolved. ResolvedAt *time.Time `json:"resolvedAt"` // User who resolved the object. ResolvedBy *MergeRequestNotesFieldsCoreResolvedByUserCore `json:"resolvedBy"` }
MergeRequestNotesFieldsCore includes the GraphQL fields of Note requested by the fragment MergeRequestNotesFieldsCore.
func (*MergeRequestNotesFieldsCore) GetAuthor ¶
func (v *MergeRequestNotesFieldsCore) GetAuthor() *MergeRequestNotesFieldsCoreAuthorUserCore
GetAuthor returns MergeRequestNotesFieldsCore.Author, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetBody ¶
func (v *MergeRequestNotesFieldsCore) GetBody() string
GetBody returns MergeRequestNotesFieldsCore.Body, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetCreatedAt ¶
func (v *MergeRequestNotesFieldsCore) GetCreatedAt() time.Time
GetCreatedAt returns MergeRequestNotesFieldsCore.CreatedAt, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetId ¶
func (v *MergeRequestNotesFieldsCore) GetId() string
GetId returns MergeRequestNotesFieldsCore.Id, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetInternal ¶
func (v *MergeRequestNotesFieldsCore) GetInternal() *bool
GetInternal returns MergeRequestNotesFieldsCore.Internal, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetResolvable ¶
func (v *MergeRequestNotesFieldsCore) GetResolvable() bool
GetResolvable returns MergeRequestNotesFieldsCore.Resolvable, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetResolved ¶
func (v *MergeRequestNotesFieldsCore) GetResolved() bool
GetResolved returns MergeRequestNotesFieldsCore.Resolved, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetResolvedAt ¶
func (v *MergeRequestNotesFieldsCore) GetResolvedAt() *time.Time
GetResolvedAt returns MergeRequestNotesFieldsCore.ResolvedAt, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetResolvedBy ¶
func (v *MergeRequestNotesFieldsCore) GetResolvedBy() *MergeRequestNotesFieldsCoreResolvedByUserCore
GetResolvedBy returns MergeRequestNotesFieldsCore.ResolvedBy, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetSystem ¶
func (v *MergeRequestNotesFieldsCore) GetSystem() bool
GetSystem returns MergeRequestNotesFieldsCore.System, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCore) GetUpdatedAt ¶
func (v *MergeRequestNotesFieldsCore) GetUpdatedAt() time.Time
GetUpdatedAt returns MergeRequestNotesFieldsCore.UpdatedAt, and is useful for accessing the field via an interface.
type MergeRequestNotesFieldsCoreAuthorUserCore ¶
type MergeRequestNotesFieldsCoreAuthorUserCore struct {
UserReferenceFieldsUserCore `json:"-"`
}
MergeRequestNotesFieldsCoreAuthorUserCore includes the requested fields of the GraphQL type UserCore. The GraphQL type's documentation follows.
Core representation of a GitLab user.
func (*MergeRequestNotesFieldsCoreAuthorUserCore) GetId ¶
func (v *MergeRequestNotesFieldsCoreAuthorUserCore) GetId() string
GetId returns MergeRequestNotesFieldsCoreAuthorUserCore.Id, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCoreAuthorUserCore) GetName ¶ added in v0.13.2
func (v *MergeRequestNotesFieldsCoreAuthorUserCore) GetName() string
GetName returns MergeRequestNotesFieldsCoreAuthorUserCore.Name, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCoreAuthorUserCore) GetUsername ¶
func (v *MergeRequestNotesFieldsCoreAuthorUserCore) GetUsername() string
GetUsername returns MergeRequestNotesFieldsCoreAuthorUserCore.Username, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCoreAuthorUserCore) MarshalJSON ¶
func (v *MergeRequestNotesFieldsCoreAuthorUserCore) MarshalJSON() ([]byte, error)
func (*MergeRequestNotesFieldsCoreAuthorUserCore) UnmarshalJSON ¶
func (v *MergeRequestNotesFieldsCoreAuthorUserCore) UnmarshalJSON(b []byte) error
type MergeRequestNotesFieldsCoreResolvedByUserCore ¶
type MergeRequestNotesFieldsCoreResolvedByUserCore struct {
UserReferenceFieldsUserCore `json:"-"`
}
MergeRequestNotesFieldsCoreResolvedByUserCore includes the requested fields of the GraphQL type UserCore. The GraphQL type's documentation follows.
Core representation of a GitLab user.
func (*MergeRequestNotesFieldsCoreResolvedByUserCore) GetId ¶
func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) GetId() string
GetId returns MergeRequestNotesFieldsCoreResolvedByUserCore.Id, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCoreResolvedByUserCore) GetName ¶ added in v0.13.2
func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) GetName() string
GetName returns MergeRequestNotesFieldsCoreResolvedByUserCore.Name, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCoreResolvedByUserCore) GetUsername ¶
func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) GetUsername() string
GetUsername returns MergeRequestNotesFieldsCoreResolvedByUserCore.Username, and is useful for accessing the field via an interface.
func (*MergeRequestNotesFieldsCoreResolvedByUserCore) MarshalJSON ¶
func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) MarshalJSON() ([]byte, error)
func (*MergeRequestNotesFieldsCoreResolvedByUserCore) UnmarshalJSON ¶
func (v *MergeRequestNotesFieldsCoreResolvedByUserCore) UnmarshalJSON(b []byte) error
type MergeRequestReferenceFields ¶
type MergeRequestReferenceFields struct { // ID of the merge request. Id string `json:"id"` // Internal ID of the merge request. Iid string `json:"iid"` }
MergeRequestReferenceFields includes the GraphQL fields of MergeRequest requested by the fragment MergeRequestReferenceFields.
func (*MergeRequestReferenceFields) GetId ¶
func (v *MergeRequestReferenceFields) GetId() string
GetId returns MergeRequestReferenceFields.Id, and is useful for accessing the field via an interface.
func (*MergeRequestReferenceFields) GetIid ¶
func (v *MergeRequestReferenceFields) GetIid() string
GetIid returns MergeRequestReferenceFields.Iid, and is useful for accessing the field via an interface.
type MergeRequestState ¶
type MergeRequestState string
State of a GitLab merge request
const ( // Merge request has been merged. MergeRequestStateMerged MergeRequestState = "merged" // Opened merge request. MergeRequestStateOpened MergeRequestState = "opened" // In closed state. MergeRequestStateClosed MergeRequestState = "closed" // Discussion has been locked. MergeRequestStateLocked MergeRequestState = "locked" // All available. MergeRequestStateAll MergeRequestState = "all" )
type NamespaceReferenceFields ¶
type NamespaceReferenceFields struct { // ID of the namespace. Id string `json:"id"` // Full path of the namespace. FullPath string `json:"fullPath"` }
NamespaceReferenceFields includes the GraphQL fields of Namespace requested by the fragment NamespaceReferenceFields.
func (*NamespaceReferenceFields) GetFullPath ¶
func (v *NamespaceReferenceFields) GetFullPath() string
GetFullPath returns NamespaceReferenceFields.FullPath, and is useful for accessing the field via an interface.
func (*NamespaceReferenceFields) GetId ¶
func (v *NamespaceReferenceFields) GetId() string
GetId returns NamespaceReferenceFields.Id, and is useful for accessing the field via an interface.
type PipelineFields ¶
type PipelineFields struct { PipelineReferenceFields Project ProjectReferenceFields PipelineFieldsCore }
type PipelineFieldsCore ¶
type PipelineFieldsCore struct { // Name of the pipeline. Name *string `json:"name"` // Reference to the branch from which the pipeline was triggered. Ref *string `json:"ref"` // Status of the pipeline (CREATED, WAITING_FOR_RESOURCE, PREPARING, // WAITING_FOR_CALLBACK, PENDING, RUNNING, FAILED, SUCCESS, CANCELED, CANCELING, // SKIPPED, MANUAL, SCHEDULED) Status PipelineStatusEnum `json:"status"` // Source of the pipeline. Source *string `json:"source"` // SHA of the pipeline's commit. Sha *string `json:"sha"` // Timestamp of the pipeline's commit. CommittedAt *time.Time `json:"committedAt"` // Timestamp of the pipeline's creation. CreatedAt time.Time `json:"createdAt"` // Timestamp of the pipeline's last activity. UpdatedAt time.Time `json:"updatedAt"` // Timestamp when the pipeline was started. StartedAt *time.Time `json:"startedAt"` // Timestamp of the pipeline's completion. FinishedAt *time.Time `json:"finishedAt"` // How long the pipeline was queued before starting. QueuedDuration *float64 `json:"queuedDuration"` // Duration of the pipeline in seconds. Duration *int `json:"duration"` // Coverage percentage. Coverage *float64 `json:"coverage"` // Reason why the pipeline failed. FailureReason *string `json:"failureReason"` // Indicates if a pipeline has warnings. Warnings bool `json:"warnings"` // If the pipeline has YAML errors. YamlErrors bool `json:"yamlErrors"` // If the pipeline is a child or not. Child bool `json:"child"` // Pipeline that triggered the pipeline. Upstream *PipelineFieldsCoreUpstreamPipeline `json:"upstream"` // MR which the Pipeline is attached to. MergeRequest *PipelineFieldsCoreMergeRequest `json:"mergeRequest"` // Pipeline user. User *PipelineFieldsCoreUserUserCore `json:"user"` }
PipelineFieldsCore includes the GraphQL fields of Pipeline requested by the fragment PipelineFieldsCore.
func (*PipelineFieldsCore) GetChild ¶
func (v *PipelineFieldsCore) GetChild() bool
GetChild returns PipelineFieldsCore.Child, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetCommittedAt ¶
func (v *PipelineFieldsCore) GetCommittedAt() *time.Time
GetCommittedAt returns PipelineFieldsCore.CommittedAt, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetCoverage ¶
func (v *PipelineFieldsCore) GetCoverage() *float64
GetCoverage returns PipelineFieldsCore.Coverage, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetCreatedAt ¶
func (v *PipelineFieldsCore) GetCreatedAt() time.Time
GetCreatedAt returns PipelineFieldsCore.CreatedAt, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetDuration ¶
func (v *PipelineFieldsCore) GetDuration() *int
GetDuration returns PipelineFieldsCore.Duration, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetFailureReason ¶
func (v *PipelineFieldsCore) GetFailureReason() *string
GetFailureReason returns PipelineFieldsCore.FailureReason, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetFinishedAt ¶
func (v *PipelineFieldsCore) GetFinishedAt() *time.Time
GetFinishedAt returns PipelineFieldsCore.FinishedAt, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetMergeRequest ¶
func (v *PipelineFieldsCore) GetMergeRequest() *PipelineFieldsCoreMergeRequest
GetMergeRequest returns PipelineFieldsCore.MergeRequest, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetName ¶
func (v *PipelineFieldsCore) GetName() *string
GetName returns PipelineFieldsCore.Name, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetQueuedDuration ¶
func (v *PipelineFieldsCore) GetQueuedDuration() *float64
GetQueuedDuration returns PipelineFieldsCore.QueuedDuration, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetRef ¶
func (v *PipelineFieldsCore) GetRef() *string
GetRef returns PipelineFieldsCore.Ref, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetSha ¶
func (v *PipelineFieldsCore) GetSha() *string
GetSha returns PipelineFieldsCore.Sha, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetSource ¶
func (v *PipelineFieldsCore) GetSource() *string
GetSource returns PipelineFieldsCore.Source, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetStartedAt ¶
func (v *PipelineFieldsCore) GetStartedAt() *time.Time
GetStartedAt returns PipelineFieldsCore.StartedAt, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetStatus ¶
func (v *PipelineFieldsCore) GetStatus() PipelineStatusEnum
GetStatus returns PipelineFieldsCore.Status, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetUpdatedAt ¶
func (v *PipelineFieldsCore) GetUpdatedAt() time.Time
GetUpdatedAt returns PipelineFieldsCore.UpdatedAt, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetUpstream ¶
func (v *PipelineFieldsCore) GetUpstream() *PipelineFieldsCoreUpstreamPipeline
GetUpstream returns PipelineFieldsCore.Upstream, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetUser ¶
func (v *PipelineFieldsCore) GetUser() *PipelineFieldsCoreUserUserCore
GetUser returns PipelineFieldsCore.User, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetWarnings ¶
func (v *PipelineFieldsCore) GetWarnings() bool
GetWarnings returns PipelineFieldsCore.Warnings, and is useful for accessing the field via an interface.
func (*PipelineFieldsCore) GetYamlErrors ¶
func (v *PipelineFieldsCore) GetYamlErrors() bool
GetYamlErrors returns PipelineFieldsCore.YamlErrors, and is useful for accessing the field via an interface.
type PipelineFieldsCoreMergeRequest ¶
type PipelineFieldsCoreMergeRequest struct { MergeRequestReferenceFields `json:"-"` // Alias for target_project. Project PipelineFieldsCoreMergeRequestProject `json:"project"` }
PipelineFieldsCoreMergeRequest includes the requested fields of the GraphQL type MergeRequest.
func (*PipelineFieldsCoreMergeRequest) GetId ¶
func (v *PipelineFieldsCoreMergeRequest) GetId() string
GetId returns PipelineFieldsCoreMergeRequest.Id, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreMergeRequest) GetIid ¶
func (v *PipelineFieldsCoreMergeRequest) GetIid() string
GetIid returns PipelineFieldsCoreMergeRequest.Iid, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreMergeRequest) GetProject ¶
func (v *PipelineFieldsCoreMergeRequest) GetProject() PipelineFieldsCoreMergeRequestProject
GetProject returns PipelineFieldsCoreMergeRequest.Project, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreMergeRequest) MarshalJSON ¶
func (v *PipelineFieldsCoreMergeRequest) MarshalJSON() ([]byte, error)
func (*PipelineFieldsCoreMergeRequest) UnmarshalJSON ¶
func (v *PipelineFieldsCoreMergeRequest) UnmarshalJSON(b []byte) error
type PipelineFieldsCoreMergeRequestProject ¶
type PipelineFieldsCoreMergeRequestProject struct {
ProjectReferenceFields `json:"-"`
}
PipelineFieldsCoreMergeRequestProject includes the requested fields of the GraphQL type Project.
func (*PipelineFieldsCoreMergeRequestProject) GetFullPath ¶
func (v *PipelineFieldsCoreMergeRequestProject) GetFullPath() string
GetFullPath returns PipelineFieldsCoreMergeRequestProject.FullPath, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreMergeRequestProject) GetId ¶
func (v *PipelineFieldsCoreMergeRequestProject) GetId() string
GetId returns PipelineFieldsCoreMergeRequestProject.Id, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreMergeRequestProject) MarshalJSON ¶
func (v *PipelineFieldsCoreMergeRequestProject) MarshalJSON() ([]byte, error)
func (*PipelineFieldsCoreMergeRequestProject) UnmarshalJSON ¶
func (v *PipelineFieldsCoreMergeRequestProject) UnmarshalJSON(b []byte) error
type PipelineFieldsCoreUpstreamPipeline ¶
type PipelineFieldsCoreUpstreamPipeline struct { PipelineReferenceFields `json:"-"` // Project the pipeline belongs to. Project *PipelineFieldsCoreUpstreamPipelineProject `json:"project"` }
PipelineFieldsCoreUpstreamPipeline includes the requested fields of the GraphQL type Pipeline.
func (*PipelineFieldsCoreUpstreamPipeline) GetId ¶
func (v *PipelineFieldsCoreUpstreamPipeline) GetId() string
GetId returns PipelineFieldsCoreUpstreamPipeline.Id, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUpstreamPipeline) GetIid ¶
func (v *PipelineFieldsCoreUpstreamPipeline) GetIid() string
GetIid returns PipelineFieldsCoreUpstreamPipeline.Iid, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUpstreamPipeline) GetProject ¶
func (v *PipelineFieldsCoreUpstreamPipeline) GetProject() *PipelineFieldsCoreUpstreamPipelineProject
GetProject returns PipelineFieldsCoreUpstreamPipeline.Project, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUpstreamPipeline) MarshalJSON ¶
func (v *PipelineFieldsCoreUpstreamPipeline) MarshalJSON() ([]byte, error)
func (*PipelineFieldsCoreUpstreamPipeline) UnmarshalJSON ¶
func (v *PipelineFieldsCoreUpstreamPipeline) UnmarshalJSON(b []byte) error
type PipelineFieldsCoreUpstreamPipelineProject ¶
type PipelineFieldsCoreUpstreamPipelineProject struct {
ProjectReferenceFields `json:"-"`
}
PipelineFieldsCoreUpstreamPipelineProject includes the requested fields of the GraphQL type Project.
func (*PipelineFieldsCoreUpstreamPipelineProject) GetFullPath ¶
func (v *PipelineFieldsCoreUpstreamPipelineProject) GetFullPath() string
GetFullPath returns PipelineFieldsCoreUpstreamPipelineProject.FullPath, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUpstreamPipelineProject) GetId ¶
func (v *PipelineFieldsCoreUpstreamPipelineProject) GetId() string
GetId returns PipelineFieldsCoreUpstreamPipelineProject.Id, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUpstreamPipelineProject) MarshalJSON ¶
func (v *PipelineFieldsCoreUpstreamPipelineProject) MarshalJSON() ([]byte, error)
func (*PipelineFieldsCoreUpstreamPipelineProject) UnmarshalJSON ¶
func (v *PipelineFieldsCoreUpstreamPipelineProject) UnmarshalJSON(b []byte) error
type PipelineFieldsCoreUserUserCore ¶
type PipelineFieldsCoreUserUserCore struct {
UserReferenceFieldsUserCore `json:"-"`
}
PipelineFieldsCoreUserUserCore includes the requested fields of the GraphQL type UserCore. The GraphQL type's documentation follows.
Core representation of a GitLab user.
func (*PipelineFieldsCoreUserUserCore) GetId ¶
func (v *PipelineFieldsCoreUserUserCore) GetId() string
GetId returns PipelineFieldsCoreUserUserCore.Id, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUserUserCore) GetName ¶ added in v0.13.2
func (v *PipelineFieldsCoreUserUserCore) GetName() string
GetName returns PipelineFieldsCoreUserUserCore.Name, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUserUserCore) GetUsername ¶
func (v *PipelineFieldsCoreUserUserCore) GetUsername() string
GetUsername returns PipelineFieldsCoreUserUserCore.Username, and is useful for accessing the field via an interface.
func (*PipelineFieldsCoreUserUserCore) MarshalJSON ¶
func (v *PipelineFieldsCoreUserUserCore) MarshalJSON() ([]byte, error)
func (*PipelineFieldsCoreUserUserCore) UnmarshalJSON ¶
func (v *PipelineFieldsCoreUserUserCore) UnmarshalJSON(b []byte) error
type PipelineReferenceFields ¶
type PipelineReferenceFields struct { // ID of the pipeline. Id string `json:"id"` // Internal ID of the pipeline. Iid string `json:"iid"` }
PipelineReferenceFields includes the GraphQL fields of Pipeline requested by the fragment PipelineReferenceFields.
func (*PipelineReferenceFields) GetId ¶
func (v *PipelineReferenceFields) GetId() string
GetId returns PipelineReferenceFields.Id, and is useful for accessing the field via an interface.
func (*PipelineReferenceFields) GetIid ¶
func (v *PipelineReferenceFields) GetIid() string
GetIid returns PipelineReferenceFields.Iid, and is useful for accessing the field via an interface.
type PipelineStatusEnum ¶
type PipelineStatusEnum string
const ( // Pipeline has been created. PipelineStatusEnumCreated PipelineStatusEnum = "CREATED" // A resource (for example, a runner) that the pipeline requires to run is unavailable. PipelineStatusEnumWaitingForResource PipelineStatusEnum = "WAITING_FOR_RESOURCE" // Pipeline is preparing to run. PipelineStatusEnumPreparing PipelineStatusEnum = "PREPARING" // Pipeline is waiting for an external action. PipelineStatusEnumWaitingForCallback PipelineStatusEnum = "WAITING_FOR_CALLBACK" // Pipeline has not started running yet. PipelineStatusEnumPending PipelineStatusEnum = "PENDING" // Pipeline is running. PipelineStatusEnumRunning PipelineStatusEnum = "RUNNING" // At least one stage of the pipeline failed. PipelineStatusEnumFailed PipelineStatusEnum = "FAILED" // Pipeline completed successfully. PipelineStatusEnumSuccess PipelineStatusEnum = "SUCCESS" // Pipeline is in the process of canceling. PipelineStatusEnumCanceling PipelineStatusEnum = "CANCELING" // Pipeline was canceled before completion. PipelineStatusEnumCanceled PipelineStatusEnum = "CANCELED" // Pipeline was skipped. PipelineStatusEnumSkipped PipelineStatusEnum = "SKIPPED" // Pipeline needs to be manually started. PipelineStatusEnumManual PipelineStatusEnum = "MANUAL" // Pipeline is scheduled to run. PipelineStatusEnumScheduled PipelineStatusEnum = "SCHEDULED" )
type ProjectFields ¶
type ProjectFields struct { ProjectReferenceFields Namespace NamespaceReferenceFields ProjectFieldsCore }
type ProjectFieldsCore ¶
type ProjectFieldsCore struct { // Name of the project (without namespace). Name string `json:"name"` // Full name of the project with its namespace. NameWithNamespace string `json:"nameWithNamespace"` // Path of the project. Path string `json:"path"` // Short description of the project. Description *string `json:"description"` // Timestamp of the project creation. CreatedAt *time.Time `json:"createdAt"` // Timestamp of when the project was last updated. UpdatedAt *time.Time `json:"updatedAt"` // Timestamp of the project last activity. LastActivityAt *time.Time `json:"lastActivityAt"` // Statistics of the project. Statistics *ProjectFieldsCoreStatisticsProjectStatistics `json:"statistics"` // Number of times the project has been starred. StarCount int `json:"starCount"` // Number of times the project has been forked. ForksCount int `json:"forksCount"` // Indicates the archived status of the project. Archived *bool `json:"archived"` // Visibility of the project. Visibility *string `json:"visibility"` }
ProjectFieldsCore includes the GraphQL fields of Project requested by the fragment ProjectFieldsCore.
func (*ProjectFieldsCore) GetArchived ¶
func (v *ProjectFieldsCore) GetArchived() *bool
GetArchived returns ProjectFieldsCore.Archived, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetCreatedAt ¶
func (v *ProjectFieldsCore) GetCreatedAt() *time.Time
GetCreatedAt returns ProjectFieldsCore.CreatedAt, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetDescription ¶
func (v *ProjectFieldsCore) GetDescription() *string
GetDescription returns ProjectFieldsCore.Description, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetForksCount ¶
func (v *ProjectFieldsCore) GetForksCount() int
GetForksCount returns ProjectFieldsCore.ForksCount, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetLastActivityAt ¶
func (v *ProjectFieldsCore) GetLastActivityAt() *time.Time
GetLastActivityAt returns ProjectFieldsCore.LastActivityAt, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetName ¶
func (v *ProjectFieldsCore) GetName() string
GetName returns ProjectFieldsCore.Name, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetNameWithNamespace ¶
func (v *ProjectFieldsCore) GetNameWithNamespace() string
GetNameWithNamespace returns ProjectFieldsCore.NameWithNamespace, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetPath ¶
func (v *ProjectFieldsCore) GetPath() string
GetPath returns ProjectFieldsCore.Path, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetStarCount ¶
func (v *ProjectFieldsCore) GetStarCount() int
GetStarCount returns ProjectFieldsCore.StarCount, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetStatistics ¶
func (v *ProjectFieldsCore) GetStatistics() *ProjectFieldsCoreStatisticsProjectStatistics
GetStatistics returns ProjectFieldsCore.Statistics, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetUpdatedAt ¶
func (v *ProjectFieldsCore) GetUpdatedAt() *time.Time
GetUpdatedAt returns ProjectFieldsCore.UpdatedAt, and is useful for accessing the field via an interface.
func (*ProjectFieldsCore) GetVisibility ¶
func (v *ProjectFieldsCore) GetVisibility() *string
GetVisibility returns ProjectFieldsCore.Visibility, and is useful for accessing the field via an interface.
type ProjectFieldsCoreStatisticsProjectStatistics ¶
type ProjectFieldsCoreStatisticsProjectStatistics struct { // Build artifacts size of the project in bytes. BuildArtifactsSize float64 `json:"buildArtifactsSize"` // Container Registry size of the project in bytes. ContainerRegistrySize *float64 `json:"containerRegistrySize"` // Large File Storage (LFS) object size of the project in bytes. LfsObjectsSize float64 `json:"lfsObjectsSize"` // Packages size of the project in bytes. PackagesSize float64 `json:"packagesSize"` // CI Pipeline artifacts size in bytes. PipelineArtifactsSize *float64 `json:"pipelineArtifactsSize"` // Repository size of the project in bytes. RepositorySize float64 `json:"repositorySize"` // Snippets size of the project in bytes. SnippetsSize *float64 `json:"snippetsSize"` // Storage size of the project in bytes. StorageSize float64 `json:"storageSize"` // Uploads size of the project in bytes. UploadsSize *float64 `json:"uploadsSize"` // Wiki size of the project in bytes. WikiSize *float64 `json:"wikiSize"` // Commit count of the project. CommitCount float64 `json:"commitCount"` }
ProjectFieldsCoreStatisticsProjectStatistics includes the requested fields of the GraphQL type ProjectStatistics.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetBuildArtifactsSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetBuildArtifactsSize() float64
GetBuildArtifactsSize returns ProjectFieldsCoreStatisticsProjectStatistics.BuildArtifactsSize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetCommitCount ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetCommitCount() float64
GetCommitCount returns ProjectFieldsCoreStatisticsProjectStatistics.CommitCount, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetContainerRegistrySize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetContainerRegistrySize() *float64
GetContainerRegistrySize returns ProjectFieldsCoreStatisticsProjectStatistics.ContainerRegistrySize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetLfsObjectsSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetLfsObjectsSize() float64
GetLfsObjectsSize returns ProjectFieldsCoreStatisticsProjectStatistics.LfsObjectsSize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetPackagesSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetPackagesSize() float64
GetPackagesSize returns ProjectFieldsCoreStatisticsProjectStatistics.PackagesSize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetPipelineArtifactsSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetPipelineArtifactsSize() *float64
GetPipelineArtifactsSize returns ProjectFieldsCoreStatisticsProjectStatistics.PipelineArtifactsSize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetRepositorySize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetRepositorySize() float64
GetRepositorySize returns ProjectFieldsCoreStatisticsProjectStatistics.RepositorySize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetSnippetsSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetSnippetsSize() *float64
GetSnippetsSize returns ProjectFieldsCoreStatisticsProjectStatistics.SnippetsSize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetStorageSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetStorageSize() float64
GetStorageSize returns ProjectFieldsCoreStatisticsProjectStatistics.StorageSize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetUploadsSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetUploadsSize() *float64
GetUploadsSize returns ProjectFieldsCoreStatisticsProjectStatistics.UploadsSize, and is useful for accessing the field via an interface.
func (*ProjectFieldsCoreStatisticsProjectStatistics) GetWikiSize ¶
func (v *ProjectFieldsCoreStatisticsProjectStatistics) GetWikiSize() *float64
GetWikiSize returns ProjectFieldsCoreStatisticsProjectStatistics.WikiSize, and is useful for accessing the field via an interface.
type ProjectReferenceFields ¶
type ProjectReferenceFields struct { // ID of the project. Id string `json:"id"` // Full path of the project. FullPath string `json:"fullPath"` }
ProjectReferenceFields includes the GraphQL fields of Project requested by the fragment ProjectReferenceFields.
func (*ProjectReferenceFields) GetFullPath ¶
func (v *ProjectReferenceFields) GetFullPath() string
GetFullPath returns ProjectReferenceFields.FullPath, and is useful for accessing the field via an interface.
func (*ProjectReferenceFields) GetId ¶
func (v *ProjectReferenceFields) GetId() string
GetId returns ProjectReferenceFields.Id, and is useful for accessing the field via an interface.
type TestReportSummaryFields ¶
type TestReportSummaryFields struct { // Total number of the test cases. Count *int `json:"count"` // Total number of test cases that had an error. Error *int `json:"error"` // Total number of test cases that failed. Failed *int `json:"failed"` // Total number of test cases that were skipped. Skipped *int `json:"skipped"` // Total number of test cases that succeeded. Success *int `json:"success"` // Total duration of the tests. Time *float64 `json:"time"` }
TestReportSummaryFields includes the GraphQL fields of TestReportTotal requested by the fragment TestReportSummaryFields. The GraphQL type's documentation follows.
Total test report statistics.
func (*TestReportSummaryFields) GetCount ¶
func (v *TestReportSummaryFields) GetCount() *int
GetCount returns TestReportSummaryFields.Count, and is useful for accessing the field via an interface.
func (*TestReportSummaryFields) GetError ¶
func (v *TestReportSummaryFields) GetError() *int
GetError returns TestReportSummaryFields.Error, and is useful for accessing the field via an interface.
func (*TestReportSummaryFields) GetFailed ¶
func (v *TestReportSummaryFields) GetFailed() *int
GetFailed returns TestReportSummaryFields.Failed, and is useful for accessing the field via an interface.
func (*TestReportSummaryFields) GetSkipped ¶
func (v *TestReportSummaryFields) GetSkipped() *int
GetSkipped returns TestReportSummaryFields.Skipped, and is useful for accessing the field via an interface.
func (*TestReportSummaryFields) GetSuccess ¶
func (v *TestReportSummaryFields) GetSuccess() *int
GetSuccess returns TestReportSummaryFields.Success, and is useful for accessing the field via an interface.
func (*TestReportSummaryFields) GetTime ¶
func (v *TestReportSummaryFields) GetTime() *float64
GetTime returns TestReportSummaryFields.Time, and is useful for accessing the field via an interface.
type TestSuiteSummaryFields ¶
type TestSuiteSummaryFields struct { // Name of the test suite. Name *string `json:"name"` // IDs of the builds used to run the test suite. BuildIds []string `json:"buildIds"` // Total number of test cases that had an error. ErrorCount *int `json:"errorCount"` // Total number of test cases that failed in the test suite. FailedCount *int `json:"failedCount"` // Total number of test cases that were skipped in the test suite. SkippedCount *int `json:"skippedCount"` // Total number of test cases that succeeded in the test suite. SuccessCount *int `json:"successCount"` // Test suite error message. SuiteError *string `json:"suiteError"` // Total number of the test cases in the test suite. TotalCount *int `json:"totalCount"` // Total duration of the tests in the test suite. TotalTime *float64 `json:"totalTime"` }
TestSuiteSummaryFields includes the GraphQL fields of TestSuiteSummary requested by the fragment TestSuiteSummaryFields. The GraphQL type's documentation follows.
Test suite summary in a pipeline test report.
func (*TestSuiteSummaryFields) GetBuildIds ¶
func (v *TestSuiteSummaryFields) GetBuildIds() []string
GetBuildIds returns TestSuiteSummaryFields.BuildIds, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetErrorCount ¶
func (v *TestSuiteSummaryFields) GetErrorCount() *int
GetErrorCount returns TestSuiteSummaryFields.ErrorCount, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetFailedCount ¶
func (v *TestSuiteSummaryFields) GetFailedCount() *int
GetFailedCount returns TestSuiteSummaryFields.FailedCount, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetName ¶
func (v *TestSuiteSummaryFields) GetName() *string
GetName returns TestSuiteSummaryFields.Name, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetSkippedCount ¶
func (v *TestSuiteSummaryFields) GetSkippedCount() *int
GetSkippedCount returns TestSuiteSummaryFields.SkippedCount, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetSuccessCount ¶
func (v *TestSuiteSummaryFields) GetSuccessCount() *int
GetSuccessCount returns TestSuiteSummaryFields.SuccessCount, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetSuiteError ¶
func (v *TestSuiteSummaryFields) GetSuiteError() *string
GetSuiteError returns TestSuiteSummaryFields.SuiteError, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetTotalCount ¶
func (v *TestSuiteSummaryFields) GetTotalCount() *int
GetTotalCount returns TestSuiteSummaryFields.TotalCount, and is useful for accessing the field via an interface.
func (*TestSuiteSummaryFields) GetTotalTime ¶
func (v *TestSuiteSummaryFields) GetTotalTime() *float64
GetTotalTime returns TestSuiteSummaryFields.TotalTime, and is useful for accessing the field via an interface.
type UserReferenceFields ¶
type UserReferenceFields interface { // GetId returns the interface-field "id" from its implementation. // The GraphQL interface field's documentation follows. // // ID of the user. GetId() string // GetUsername returns the interface-field "username" from its implementation. // The GraphQL interface field's documentation follows. // // Username of the user. Unique within this instance of GitLab. GetUsername() string // GetName returns the interface-field "name" from its implementation. // The GraphQL interface field's documentation follows. // // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. GetName() string // contains filtered or unexported methods }
UserReferenceFields includes the GraphQL fields of User requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
UserReferenceFields is implemented by the following types: UserReferenceFieldsAddOnUser UserReferenceFieldsAutocompletedUser UserReferenceFieldsCurrentUser UserReferenceFieldsMergeRequestAssignee UserReferenceFieldsMergeRequestAuthor UserReferenceFieldsMergeRequestParticipant UserReferenceFieldsMergeRequestReviewer UserReferenceFieldsUserCore
type UserReferenceFieldsAddOnUser ¶
type UserReferenceFieldsAddOnUser struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of AddOnUser requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsAddOnUser) GetId ¶
func (v *UserReferenceFieldsAddOnUser) GetId() string
GetId returns UserReferenceFieldsAddOnUser.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsAddOnUser) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsAddOnUser) GetName() string
GetName returns UserReferenceFieldsAddOnUser.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsAddOnUser) GetUsername ¶
func (v *UserReferenceFieldsAddOnUser) GetUsername() string
GetUsername returns UserReferenceFieldsAddOnUser.Username, and is useful for accessing the field via an interface.
type UserReferenceFieldsAutocompletedUser ¶
type UserReferenceFieldsAutocompletedUser struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of AutocompletedUser requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsAutocompletedUser) GetId ¶
func (v *UserReferenceFieldsAutocompletedUser) GetId() string
GetId returns UserReferenceFieldsAutocompletedUser.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsAutocompletedUser) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsAutocompletedUser) GetName() string
GetName returns UserReferenceFieldsAutocompletedUser.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsAutocompletedUser) GetUsername ¶
func (v *UserReferenceFieldsAutocompletedUser) GetUsername() string
GetUsername returns UserReferenceFieldsAutocompletedUser.Username, and is useful for accessing the field via an interface.
type UserReferenceFieldsCurrentUser ¶
type UserReferenceFieldsCurrentUser struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of CurrentUser requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsCurrentUser) GetId ¶
func (v *UserReferenceFieldsCurrentUser) GetId() string
GetId returns UserReferenceFieldsCurrentUser.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsCurrentUser) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsCurrentUser) GetName() string
GetName returns UserReferenceFieldsCurrentUser.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsCurrentUser) GetUsername ¶
func (v *UserReferenceFieldsCurrentUser) GetUsername() string
GetUsername returns UserReferenceFieldsCurrentUser.Username, and is useful for accessing the field via an interface.
type UserReferenceFieldsMergeRequestAssignee ¶
type UserReferenceFieldsMergeRequestAssignee struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of MergeRequestAssignee requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsMergeRequestAssignee) GetId ¶
func (v *UserReferenceFieldsMergeRequestAssignee) GetId() string
GetId returns UserReferenceFieldsMergeRequestAssignee.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestAssignee) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsMergeRequestAssignee) GetName() string
GetName returns UserReferenceFieldsMergeRequestAssignee.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestAssignee) GetUsername ¶
func (v *UserReferenceFieldsMergeRequestAssignee) GetUsername() string
GetUsername returns UserReferenceFieldsMergeRequestAssignee.Username, and is useful for accessing the field via an interface.
type UserReferenceFieldsMergeRequestAuthor ¶
type UserReferenceFieldsMergeRequestAuthor struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of MergeRequestAuthor requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsMergeRequestAuthor) GetId ¶
func (v *UserReferenceFieldsMergeRequestAuthor) GetId() string
GetId returns UserReferenceFieldsMergeRequestAuthor.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestAuthor) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsMergeRequestAuthor) GetName() string
GetName returns UserReferenceFieldsMergeRequestAuthor.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestAuthor) GetUsername ¶
func (v *UserReferenceFieldsMergeRequestAuthor) GetUsername() string
GetUsername returns UserReferenceFieldsMergeRequestAuthor.Username, and is useful for accessing the field via an interface.
type UserReferenceFieldsMergeRequestParticipant ¶
type UserReferenceFieldsMergeRequestParticipant struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of MergeRequestParticipant requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsMergeRequestParticipant) GetId ¶
func (v *UserReferenceFieldsMergeRequestParticipant) GetId() string
GetId returns UserReferenceFieldsMergeRequestParticipant.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestParticipant) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsMergeRequestParticipant) GetName() string
GetName returns UserReferenceFieldsMergeRequestParticipant.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestParticipant) GetUsername ¶
func (v *UserReferenceFieldsMergeRequestParticipant) GetUsername() string
GetUsername returns UserReferenceFieldsMergeRequestParticipant.Username, and is useful for accessing the field via an interface.
type UserReferenceFieldsMergeRequestReviewer ¶
type UserReferenceFieldsMergeRequestReviewer struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of MergeRequestReviewer requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsMergeRequestReviewer) GetId ¶
func (v *UserReferenceFieldsMergeRequestReviewer) GetId() string
GetId returns UserReferenceFieldsMergeRequestReviewer.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestReviewer) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsMergeRequestReviewer) GetName() string
GetName returns UserReferenceFieldsMergeRequestReviewer.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsMergeRequestReviewer) GetUsername ¶
func (v *UserReferenceFieldsMergeRequestReviewer) GetUsername() string
GetUsername returns UserReferenceFieldsMergeRequestReviewer.Username, and is useful for accessing the field via an interface.
type UserReferenceFieldsUserCore ¶
type UserReferenceFieldsUserCore struct { // ID of the user. Id string `json:"id"` // Username of the user. Unique within this instance of GitLab. Username string `json:"username"` // Human-readable name of the user. Returns `****` if the user is a project bot // and the requester does not have permission to view the project. Name string `json:"name"` }
UserReferenceFields includes the GraphQL fields of UserCore requested by the fragment UserReferenceFields. The GraphQL type's documentation follows.
Representation of a GitLab user.
func (*UserReferenceFieldsUserCore) GetId ¶
func (v *UserReferenceFieldsUserCore) GetId() string
GetId returns UserReferenceFieldsUserCore.Id, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsUserCore) GetName ¶ added in v0.13.2
func (v *UserReferenceFieldsUserCore) GetName() string
GetName returns UserReferenceFieldsUserCore.Name, and is useful for accessing the field via an interface.
func (*UserReferenceFieldsUserCore) GetUsername ¶
func (v *UserReferenceFieldsUserCore) GetUsername() string
GetUsername returns UserReferenceFieldsUserCore.Username, and is useful for accessing the field via an interface.