graphql

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GlobalIdPrefix             = "gid://gitlab/"
	GlobalIdMergeRequestPrefix = GlobalIdPrefix + "MergeRequest/"
	GlobalIdMilestonePrefix    = GlobalIdPrefix + "Milestone/"
	GlobalIdNotePrefix         = GlobalIdPrefix + "Note/"
	GlobalIdPipelinePrefix     = GlobalIdPrefix + "Ci::Pipeline/"
	GlobalIdProjectPrefix      = GlobalIdPrefix + "Project/"
	GlobalIdUserPrefix         = GlobalIdPrefix + "User/"
	GlobalIdIssuePrefix        = GlobalIdPrefix + "Issue/"
	GlobalIdRunnerPrefix       = GlobalIdPrefix + "Ci::Runner/"
)

Variables

Functions

func ConvertIssue added in v0.18.0

func ConvertIssue(isf IssueFields) (types.Issue, error)

func ConvertJob

func ConvertJob(jf JobFields) (types.Job, error)

func ConvertJobArtifact

func ConvertJobArtifact(jaf JobArtifactFields) (types.JobArtifact, error)

func ConvertMergeRequest

func ConvertMergeRequest(mrf MergeRequestFields) (types.MergeRequest, error)

func ConvertPipeline

func ConvertPipeline(pf PipelineFields) (types.Pipeline, error)

func ConvertProject

func ConvertProject(pf ProjectFields) (types.Project, error)

func ConvertRunner added in v0.22.0

func ConvertRunner(rf RunnerFields) (types.Runner, error)

func FormatId

func FormatId(id int64, prefix string) string

func ParseId

func ParseId(s string, prefix string) (int64, error)

Types

type CiJobKind

type CiJobKind string
const (
	// Standard CI job.
	CiJobKindBuild CiJobKind = "BUILD"
	// Bridge CI job connecting a parent and child pipeline.
	CiJobKindBridge CiJobKind = "BRIDGE"
)

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 CiRunnerAccessLevel added in v0.22.0

type CiRunnerAccessLevel string
const (
	// A runner that is not protected.
	CiRunnerAccessLevelNotProtected CiRunnerAccessLevel = "NOT_PROTECTED"
	// A runner that is ref protected.
	CiRunnerAccessLevelRefProtected CiRunnerAccessLevel = "REF_PROTECTED"
)

type CiRunnerStatus added in v0.22.0

type CiRunnerStatus string
const (
	// Runner that contacted this instance within the last 2 hours.
	CiRunnerStatusOnline CiRunnerStatus = "ONLINE"
	// Runner that has not contacted this instance within the last 2 hours. Will be considered `STALE` if offline for more than 7 days.
	CiRunnerStatusOffline CiRunnerStatus = "OFFLINE"
	// Runner that has not contacted this instance within the last 7 days.
	CiRunnerStatusStale CiRunnerStatus = "STALE"
	// Runner that has never contacted the instance.
	CiRunnerStatusNeverContacted CiRunnerStatus = "NEVER_CONTACTED"
)

type CiRunnerType added in v0.22.0

type CiRunnerType string
const (
	// A runner that is instance type.
	CiRunnerTypeInstanceType CiRunnerType = "INSTANCE_TYPE"
	// A runner that is group type.
	CiRunnerTypeGroupType CiRunnerType = "GROUP_TYPE"
	// A runner that is project type.
	CiRunnerTypeProjectType CiRunnerType = "PROJECT_TYPE"
)

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(url string, token string) *Client

func (*Client) GetProjectPipeline

func (c *Client) GetProjectPipeline(ctx context.Context, projectId string, pipelineId string) (PipelineFields, error)

func (*Client) GetProjectPipelineJobsArtifacts

func (c *Client) GetProjectPipelineJobsArtifacts(ctx context.Context, projectPath string, pipelineIid string) ([]JobArtifactFields, error)

func (*Client) GetProjects

func (c *Client) GetProjects(
	ctx context.Context,
	ids []string,
	updatedAfter *time.Time,
	updatedBefore *time.Time,
) ([]ListProjectsResult, error)

func (*Client) GetProjectsIssues added in v0.18.0

func (c *Client) GetProjectsIssues(ctx context.Context, projectIds []string, opts GetProjectsIssuesOptions) ([]IssueFields, error)

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

func (c *Client) GetProjectsPipelinesJobs(ctx context.Context, ids []string, opts GetPipelinesOptions) ([]JobFields, error)

func (*Client) GetRunners added in v0.22.0

func (c *Client) GetRunners(ctx context.Context) ([]RunnerFields, error)

func (*Client) ListProjects

func (c *Client) ListProjects(
	ctx context.Context,
	ids []string,
	updatedAfter *time.Time,
	updatedBefore *time.Time,
	yield func([]ListProjectsResult) bool,
) error

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"
	// 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"
	// Merge request title does not match required regex.
	DetailedMergeStatusTitleNotMatching DetailedMergeStatus = "TITLE_NOT_MATCHING"
	// Indicates a reviewer has requested changes.
	DetailedMergeStatusRequestedChanges DetailedMergeStatus = "REQUESTED_CHANGES"
)

type GetMergeRequestsOptions

type GetMergeRequestsOptions struct {
	UpdatedAfter  *time.Time
	UpdatedBefore *time.Time
}

type GetPipelinesOptions

type GetPipelinesOptions struct {
	UpdatedAfter  *time.Time
	UpdatedBefore *time.Time
}

type GetProjectsIssuesOptions added in v0.18.0

type GetProjectsIssuesOptions struct {
	TimeRangeOptions
}

type IssuableSeverity added in v0.18.0

type IssuableSeverity string

Incident severity

const (
	// Unknown severity
	IssuableSeverityUnknown IssuableSeverity = "UNKNOWN"
	// Low severity
	IssuableSeverityLow IssuableSeverity = "LOW"
	// Medium severity
	IssuableSeverityMedium IssuableSeverity = "MEDIUM"
	// High severity
	IssuableSeverityHigh IssuableSeverity = "HIGH"
	// Critical severity
	IssuableSeverityCritical IssuableSeverity = "CRITICAL"
)

type IssueFields added in v0.18.0

type IssueFields struct {
	IssueReferenceFields
	Project ProjectReferenceFields

	IssueFieldsCore
}

type IssueFieldsCore added in v0.18.0

type IssueFieldsCore struct {
	// Timestamp of when the issue was created.
	CreatedAt time.Time `json:"createdAt"`
	// Timestamp of when the issue was last updated.
	UpdatedAt time.Time `json:"updatedAt"`
	// Timestamp of when the issue was closed.
	ClosedAt *time.Time `json:"closedAt"`
	// Title of the issue.
	Title string `json:"title"`
	// Labels of the issue.
	Labels *IssueFieldsCoreLabelsLabelConnection `json:"labels"`
	// Type of the issue.
	Type *IssueType `json:"type"`
	// Severity level of the incident.
	Severity *IssuableSeverity `json:"severity"`
	// State of the issue.
	State IssueState `json:"state"`
}

IssueFieldsCore includes the GraphQL fields of Issue requested by the fragment IssueFieldsCore.

func (*IssueFieldsCore) GetClosedAt added in v0.18.0

func (v *IssueFieldsCore) GetClosedAt() *time.Time

GetClosedAt returns IssueFieldsCore.ClosedAt, and is useful for accessing the field via an interface.

func (*IssueFieldsCore) GetCreatedAt added in v0.18.0

func (v *IssueFieldsCore) GetCreatedAt() time.Time

GetCreatedAt returns IssueFieldsCore.CreatedAt, and is useful for accessing the field via an interface.

func (*IssueFieldsCore) GetLabels added in v0.18.0

GetLabels returns IssueFieldsCore.Labels, and is useful for accessing the field via an interface.

func (*IssueFieldsCore) GetSeverity added in v0.18.0

func (v *IssueFieldsCore) GetSeverity() *IssuableSeverity

GetSeverity returns IssueFieldsCore.Severity, and is useful for accessing the field via an interface.

func (*IssueFieldsCore) GetState added in v0.18.0

func (v *IssueFieldsCore) GetState() IssueState

GetState returns IssueFieldsCore.State, and is useful for accessing the field via an interface.

func (*IssueFieldsCore) GetTitle added in v0.18.0

func (v *IssueFieldsCore) GetTitle() string

GetTitle returns IssueFieldsCore.Title, and is useful for accessing the field via an interface.

func (*IssueFieldsCore) GetType added in v0.18.0

func (v *IssueFieldsCore) GetType() *IssueType

GetType returns IssueFieldsCore.Type, and is useful for accessing the field via an interface.

func (*IssueFieldsCore) GetUpdatedAt added in v0.18.0

func (v *IssueFieldsCore) GetUpdatedAt() time.Time

GetUpdatedAt returns IssueFieldsCore.UpdatedAt, and is useful for accessing the field via an interface.

type IssueFieldsCoreLabelsLabelConnection added in v0.18.0

type IssueFieldsCoreLabelsLabelConnection struct {
	// A list of nodes.
	Nodes []*IssueFieldsCoreLabelsLabelConnectionNodesLabel `json:"nodes"`
	// Information to aid in pagination.
	PageInfo IssueFieldsCoreLabelsLabelConnectionPageInfo `json:"pageInfo"`
}

IssueFieldsCoreLabelsLabelConnection includes the requested fields of the GraphQL type LabelConnection. The GraphQL type's documentation follows.

The connection type for Label.

func (*IssueFieldsCoreLabelsLabelConnection) GetNodes added in v0.18.0

GetNodes returns IssueFieldsCoreLabelsLabelConnection.Nodes, and is useful for accessing the field via an interface.

func (*IssueFieldsCoreLabelsLabelConnection) GetPageInfo added in v0.18.0

GetPageInfo returns IssueFieldsCoreLabelsLabelConnection.PageInfo, and is useful for accessing the field via an interface.

type IssueFieldsCoreLabelsLabelConnectionNodesLabel added in v0.18.0

type IssueFieldsCoreLabelsLabelConnectionNodesLabel struct {
	// Content of the label.
	Title string `json:"title"`
}

IssueFieldsCoreLabelsLabelConnectionNodesLabel includes the requested fields of the GraphQL type Label.

func (*IssueFieldsCoreLabelsLabelConnectionNodesLabel) GetTitle added in v0.18.0

GetTitle returns IssueFieldsCoreLabelsLabelConnectionNodesLabel.Title, and is useful for accessing the field via an interface.

type IssueFieldsCoreLabelsLabelConnectionPageInfo added in v0.18.0

type IssueFieldsCoreLabelsLabelConnectionPageInfo struct {
	// contains filtered or unexported fields
}

IssueFieldsCoreLabelsLabelConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. The GraphQL type's documentation follows.

Information about pagination in a connection.

func (*IssueFieldsCoreLabelsLabelConnectionPageInfo) GetEndCursor added in v0.18.0

GetEndCursor returns IssueFieldsCoreLabelsLabelConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.

func (*IssueFieldsCoreLabelsLabelConnectionPageInfo) GetHasNextPage added in v0.18.0

GetHasNextPage returns IssueFieldsCoreLabelsLabelConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*IssueFieldsCoreLabelsLabelConnectionPageInfo) MarshalJSON added in v0.18.0

func (*IssueFieldsCoreLabelsLabelConnectionPageInfo) UnmarshalJSON added in v0.18.0

type IssueReferenceFields added in v0.18.0

type IssueReferenceFields struct {
	// ID of the issue.
	Id string `json:"id"`
	// Internal ID of the issue.
	Iid string `json:"iid"`
}

IssueReferenceFields includes the GraphQL fields of Issue requested by the fragment IssueReferenceFields.

func (*IssueReferenceFields) GetId added in v0.18.0

func (v *IssueReferenceFields) GetId() string

GetId returns IssueReferenceFields.Id, and is useful for accessing the field via an interface.

func (*IssueReferenceFields) GetIid added in v0.18.0

func (v *IssueReferenceFields) GetIid() string

GetIid returns IssueReferenceFields.Iid, and is useful for accessing the field via an interface.

type IssueState added in v0.18.0

type IssueState string

State of a GitLab issue

const (
	// In open state.
	IssueStateOpened IssueState = "opened"
	// In closed state.
	IssueStateClosed IssueState = "closed"
	// Discussion has been locked.
	IssueStateLocked IssueState = "locked"
	// All available.
	IssueStateAll IssueState = "all"
)

type IssueType added in v0.18.0

type IssueType string

Issue type

const (
	// Issue issue type
	IssueTypeIssue IssueType = "ISSUE"
	// Incident issue type
	IssueTypeIncident IssueType = "INCIDENT"
	// Test Case issue type
	IssueTypeTestCase IssueType = "TEST_CASE"
	// Requirement issue type
	IssueTypeRequirement IssueType = "REQUIREMENT"
	// Task issue type
	IssueTypeTask IssueType = "TASK"
	// Ticket issue type
	IssueTypeTicket IssueType = "TICKET"
	// Objective issue type. Available only when feature flag `okrs_mvc` is enabled. Introduced in GitLab 15.6: **Status**: Experiment.
	IssueTypeObjective IssueType = "OBJECTIVE"
	// Key Result issue type. Available only when feature flag `okrs_mvc` is enabled. Introduced in GitLab 15.7: **Status**: Experiment.
	IssueTypeKeyResult IssueType = "KEY_RESULT"
	// Epic issue type. Available only when feature epics is available. Introduced in GitLab 16.7: **Status**: Experiment.
	IssueTypeEpic IssueType = "EPIC"
)

type JobArtifactFieldsCore

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

func (v *JobArtifactFieldsCore) GetDownloadPath() *string

GetDownloadPath returns JobArtifactFieldsCore.DownloadPath, and is useful for accessing the field via an interface.

func (*JobArtifactFieldsCore) GetFileType

func (v *JobArtifactFieldsCore) GetFileType() *JobArtifactFileType

GetFileType returns JobArtifactFieldsCore.FileType, and is useful for accessing the field via an interface.

func (*JobArtifactFieldsCore) GetName

func (v *JobArtifactFieldsCore) GetName() *string

GetName returns JobArtifactFieldsCore.Name, and is useful for accessing the field via an interface.

type JobArtifactFileType

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 JobFieldsCore

type JobFieldsCore struct {
	// Name of the job.
	Name *string `json:"name"`
	// Ref name of the job.
	RefName *string `json:"refName"`
	// Path to the ref.
	RefPath *string `json:"refPath"`
	// 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) GetRefPath

func (v *JobFieldsCore) GetRefPath() *string

GetRefPath returns JobFieldsCore.RefPath, 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"`
	// Exit code of the job. Available for jobs that started after upgrading to GitLab 16.10 and failed with an exit code.
	ExitCode *int `json:"exitCode"`
	// 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) GetExitCode added in v0.20.0

func (v *JobFieldsExtra) GetExitCode() *int

GetExitCode returns JobFieldsExtra.ExitCode, 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

GetRunner returns JobFieldsExtra.Runner, and is useful for accessing the field via an interface.

func (*JobFieldsExtra) GetStage

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 {
	PipelineReferenceFields `json:"-"`
	// Project the pipeline belongs to.
	Project *JobFieldsExtraDownstreamPipelineProject `json:"project"`
}

JobFieldsExtraDownstreamPipeline includes the requested fields of the GraphQL type Pipeline.

func (*JobFieldsExtraDownstreamPipeline) GetId

GetId returns JobFieldsExtraDownstreamPipeline.Id, and is useful for accessing the field via an interface.

func (*JobFieldsExtraDownstreamPipeline) GetIid

GetIid returns JobFieldsExtraDownstreamPipeline.Iid, and is useful for accessing the field via an interface.

func (*JobFieldsExtraDownstreamPipeline) GetProject

GetProject returns JobFieldsExtraDownstreamPipeline.Project, and is useful for accessing the field via an interface.

func (*JobFieldsExtraDownstreamPipeline) MarshalJSON added in v0.17.1

func (v *JobFieldsExtraDownstreamPipeline) MarshalJSON() ([]byte, error)

func (*JobFieldsExtraDownstreamPipeline) UnmarshalJSON added in v0.17.1

func (v *JobFieldsExtraDownstreamPipeline) UnmarshalJSON(b []byte) error

type JobFieldsExtraDownstreamPipelineProject

type JobFieldsExtraDownstreamPipelineProject struct {
	ProjectReferenceFields `json:"-"`
}

JobFieldsExtraDownstreamPipelineProject includes the requested fields of the GraphQL type Project.

func (*JobFieldsExtraDownstreamPipelineProject) GetFullPath

GetFullPath returns JobFieldsExtraDownstreamPipelineProject.FullPath, and is useful for accessing the field via an interface.

func (*JobFieldsExtraDownstreamPipelineProject) GetId

GetId returns JobFieldsExtraDownstreamPipelineProject.Id, and is useful for accessing the field via an interface.

func (*JobFieldsExtraDownstreamPipelineProject) MarshalJSON added in v0.17.1

func (v *JobFieldsExtraDownstreamPipelineProject) MarshalJSON() ([]byte, error)

func (*JobFieldsExtraDownstreamPipelineProject) UnmarshalJSON added in v0.17.1

func (v *JobFieldsExtraDownstreamPipelineProject) UnmarshalJSON(b []byte) error

type JobFieldsExtraRunnerCiRunner

type JobFieldsExtraRunnerCiRunner struct {
	RunnerReferenceFields `json:"-"`
}

JobFieldsExtraRunnerCiRunner includes the requested fields of the GraphQL type CiRunner.

func (*JobFieldsExtraRunnerCiRunner) GetId

GetId returns JobFieldsExtraRunnerCiRunner.Id, and is useful for accessing the field via an interface.

func (*JobFieldsExtraRunnerCiRunner) GetShortSha added in v0.22.0

func (v *JobFieldsExtraRunnerCiRunner) GetShortSha() *string

GetShortSha returns JobFieldsExtraRunnerCiRunner.ShortSha, and is useful for accessing the field via an interface.

func (*JobFieldsExtraRunnerCiRunner) MarshalJSON added in v0.22.0

func (v *JobFieldsExtraRunnerCiRunner) MarshalJSON() ([]byte, error)

func (*JobFieldsExtraRunnerCiRunner) UnmarshalJSON added in v0.22.0

func (v *JobFieldsExtraRunnerCiRunner) UnmarshalJSON(b []byte) error

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 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 the 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

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

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

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

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 the merge request.
	DiffRefs *MergeRequestFieldsExtraDiffRefs `json:"diffRefs"`
	// Summary of which files were changed in the 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

GetDiffRefs returns MergeRequestFieldsExtra.DiffRefs, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsExtra) GetDiffStatsSummary

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

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

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

GetId returns MergeRequestFieldsExtraMilestone.Id, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsExtraMilestone) GetIid

GetIid returns MergeRequestFieldsExtraMilestone.Iid, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsExtraMilestone) GetProject

GetProject returns MergeRequestFieldsExtraMilestone.Project, and is useful for accessing the field via an interface.

type MergeRequestFieldsExtraMilestoneProject

type MergeRequestFieldsExtraMilestoneProject struct {
	ProjectReferenceFields `json:"-"`
}

MergeRequestFieldsExtraMilestoneProject includes the requested fields of the GraphQL type Project.

func (*MergeRequestFieldsExtraMilestoneProject) GetFullPath

GetFullPath returns MergeRequestFieldsExtraMilestoneProject.FullPath, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsExtraMilestoneProject) GetId

GetId returns MergeRequestFieldsExtraMilestoneProject.Id, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsExtraMilestoneProject) MarshalJSON added in v0.17.1

func (v *MergeRequestFieldsExtraMilestoneProject) MarshalJSON() ([]byte, error)

func (*MergeRequestFieldsExtraMilestoneProject) UnmarshalJSON added in v0.17.1

func (v *MergeRequestFieldsExtraMilestoneProject) UnmarshalJSON(b []byte) error

type MergeRequestFieldsParticipants

type MergeRequestFieldsParticipants struct {
	// User who created the 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 the 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

GetApprovedBy returns MergeRequestFieldsParticipants.ApprovedBy, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipants) GetAssignees

GetAssignees returns MergeRequestFieldsParticipants.Assignees, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipants) GetAuthor

GetAuthor returns MergeRequestFieldsParticipants.Author, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipants) GetMergeUser

GetMergeUser returns MergeRequestFieldsParticipants.MergeUser, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipants) GetReviewers

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

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

GetName returns MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore.Name, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) GetUsername

GetUsername returns MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore.Username, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) MarshalJSON

func (*MergeRequestFieldsParticipantsApprovedByUserCoreConnectionNodesUserCore) UnmarshalJSON

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

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

GetId returns MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee.Id, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetName

GetName returns MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee.Name, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) GetUsername

GetUsername returns MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee.Username, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) MarshalJSON

func (*MergeRequestFieldsParticipantsAssigneesMergeRequestAssigneeConnectionNodesMergeRequestAssignee) UnmarshalJSON

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

GetId returns MergeRequestFieldsParticipantsAuthorMergeRequestAuthor.Id, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetName

GetName returns MergeRequestFieldsParticipantsAuthorMergeRequestAuthor.Name, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) GetUsername

GetUsername returns MergeRequestFieldsParticipantsAuthorMergeRequestAuthor.Username, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) MarshalJSON

func (*MergeRequestFieldsParticipantsAuthorMergeRequestAuthor) UnmarshalJSON

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

GetId returns MergeRequestFieldsParticipantsMergeUserUserCore.Id, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsMergeUserUserCore) GetName

GetName returns MergeRequestFieldsParticipantsMergeUserUserCore.Name, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsMergeUserUserCore) GetUsername

GetUsername returns MergeRequestFieldsParticipantsMergeUserUserCore.Username, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsMergeUserUserCore) MarshalJSON

func (*MergeRequestFieldsParticipantsMergeUserUserCore) UnmarshalJSON

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

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

GetId returns MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer.Id, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetName

GetName returns MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer.Name, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) GetUsername

GetUsername returns MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer.Username, and is useful for accessing the field via an interface.

func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) MarshalJSON

func (*MergeRequestFieldsParticipantsReviewersMergeRequestReviewerConnectionNodesMergeRequestReviewer) UnmarshalJSON

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

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

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

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

GetId returns MergeRequestNotesFieldsCoreAuthorUserCore.Id, and is useful for accessing the field via an interface.

func (*MergeRequestNotesFieldsCoreAuthorUserCore) GetName

GetName returns MergeRequestNotesFieldsCoreAuthorUserCore.Name, and is useful for accessing the field via an interface.

func (*MergeRequestNotesFieldsCoreAuthorUserCore) GetUsername

GetUsername returns MergeRequestNotesFieldsCoreAuthorUserCore.Username, and is useful for accessing the field via an interface.

func (*MergeRequestNotesFieldsCoreAuthorUserCore) MarshalJSON

func (*MergeRequestNotesFieldsCoreAuthorUserCore) UnmarshalJSON

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

GetId returns MergeRequestNotesFieldsCoreResolvedByUserCore.Id, and is useful for accessing the field via an interface.

func (*MergeRequestNotesFieldsCoreResolvedByUserCore) GetName

GetName returns MergeRequestNotesFieldsCoreResolvedByUserCore.Name, and is useful for accessing the field via an interface.

func (*MergeRequestNotesFieldsCoreResolvedByUserCore) GetUsername

GetUsername returns MergeRequestNotesFieldsCoreResolvedByUserCore.Username, and is useful for accessing the field via an interface.

func (*MergeRequestNotesFieldsCoreResolvedByUserCore) MarshalJSON

func (*MergeRequestNotesFieldsCoreResolvedByUserCore) UnmarshalJSON

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

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 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"`
	// Reference path to the branch from which the pipeline was triggered.
	RefPath *string `json:"refPath"`
	// 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"`
	// 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) 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) GetRefPath

func (v *PipelineFieldsCore) GetRefPath() *string

GetRefPath returns PipelineFieldsCore.RefPath, 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) GetUser

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

GetId returns PipelineFieldsCoreMergeRequest.Id, and is useful for accessing the field via an interface.

func (*PipelineFieldsCoreMergeRequest) GetIid

GetIid returns PipelineFieldsCoreMergeRequest.Iid, and is useful for accessing the field via an interface.

func (*PipelineFieldsCoreMergeRequest) GetProject

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

GetFullPath returns PipelineFieldsCoreMergeRequestProject.FullPath, and is useful for accessing the field via an interface.

func (*PipelineFieldsCoreMergeRequestProject) GetId

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 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

GetId returns PipelineFieldsCoreUserUserCore.Id, and is useful for accessing the field via an interface.

func (*PipelineFieldsCoreUserUserCore) GetName

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 PipelineFieldsRelations added in v0.17.1

type PipelineFieldsRelations struct {
	// If the pipeline is a child or not.
	Child bool `json:"child"`
	// Pipeline that triggered the pipeline.
	Upstream *PipelineFieldsRelationsUpstreamPipeline `json:"upstream"`
	// Pipelines the pipeline will trigger.
	Downstream *PipelineFieldsRelationsDownstreamPipelineConnection `json:"downstream"`
}

PipelineFieldsRelations includes the GraphQL fields of Pipeline requested by the fragment PipelineFieldsRelations.

func (*PipelineFieldsRelations) GetChild added in v0.17.1

func (v *PipelineFieldsRelations) GetChild() bool

GetChild returns PipelineFieldsRelations.Child, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelations) GetDownstream added in v0.17.1

GetDownstream returns PipelineFieldsRelations.Downstream, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelations) GetUpstream added in v0.17.1

GetUpstream returns PipelineFieldsRelations.Upstream, and is useful for accessing the field via an interface.

type PipelineFieldsRelationsDownstreamPipelineConnection added in v0.17.1

type PipelineFieldsRelationsDownstreamPipelineConnection struct {
	// A list of nodes.
	Nodes []*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline `json:"nodes"`
	// Information to aid in pagination.
	PageInfo PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo `json:"pageInfo"`
}

PipelineFieldsRelationsDownstreamPipelineConnection includes the requested fields of the GraphQL type PipelineConnection. The GraphQL type's documentation follows.

The connection type for Pipeline.

func (*PipelineFieldsRelationsDownstreamPipelineConnection) GetNodes added in v0.17.1

GetNodes returns PipelineFieldsRelationsDownstreamPipelineConnection.Nodes, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnection) GetPageInfo added in v0.17.1

GetPageInfo returns PipelineFieldsRelationsDownstreamPipelineConnection.PageInfo, and is useful for accessing the field via an interface.

type PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline added in v0.17.1

type PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline struct {
	PipelineReferenceFields `json:"-"`
	// Project the pipeline belongs to.
	Project *PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject `json:"project"`
}

PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline includes the requested fields of the GraphQL type Pipeline.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline) GetId added in v0.17.1

GetId returns PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline.Id, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline) GetIid added in v0.17.1

GetIid returns PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline.Iid, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline) GetProject added in v0.17.1

GetProject returns PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline.Project, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline) MarshalJSON added in v0.17.1

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipeline) UnmarshalJSON added in v0.17.1

type PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject added in v0.17.1

type PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject struct {
	ProjectReferenceFields `json:"-"`
}

PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject includes the requested fields of the GraphQL type Project.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject) GetFullPath added in v0.17.1

GetFullPath returns PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject.FullPath, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject) GetId added in v0.17.1

GetId returns PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject.Id, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject) MarshalJSON added in v0.17.1

func (*PipelineFieldsRelationsDownstreamPipelineConnectionNodesPipelineProject) UnmarshalJSON added in v0.17.1

type PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo added in v0.17.1

type PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo struct {
	// contains filtered or unexported fields
}

PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo includes the requested fields of the GraphQL type PageInfo. The GraphQL type's documentation follows.

Information about pagination in a connection.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo) GetEndCursor added in v0.17.1

GetEndCursor returns PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo.EndCursor, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo) GetHasNextPage added in v0.17.1

GetHasNextPage returns PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo.HasNextPage, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo) MarshalJSON added in v0.17.1

func (*PipelineFieldsRelationsDownstreamPipelineConnectionPageInfo) UnmarshalJSON added in v0.17.1

type PipelineFieldsRelationsUpstreamPipeline added in v0.17.1

type PipelineFieldsRelationsUpstreamPipeline struct {
	PipelineReferenceFields `json:"-"`
	// Project the pipeline belongs to.
	Project *PipelineFieldsRelationsUpstreamPipelineProject `json:"project"`
}

PipelineFieldsRelationsUpstreamPipeline includes the requested fields of the GraphQL type Pipeline.

func (*PipelineFieldsRelationsUpstreamPipeline) GetId added in v0.17.1

GetId returns PipelineFieldsRelationsUpstreamPipeline.Id, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsUpstreamPipeline) GetIid added in v0.17.1

GetIid returns PipelineFieldsRelationsUpstreamPipeline.Iid, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsUpstreamPipeline) GetProject added in v0.17.1

GetProject returns PipelineFieldsRelationsUpstreamPipeline.Project, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsUpstreamPipeline) MarshalJSON added in v0.17.1

func (v *PipelineFieldsRelationsUpstreamPipeline) MarshalJSON() ([]byte, error)

func (*PipelineFieldsRelationsUpstreamPipeline) UnmarshalJSON added in v0.17.1

func (v *PipelineFieldsRelationsUpstreamPipeline) UnmarshalJSON(b []byte) error

type PipelineFieldsRelationsUpstreamPipelineProject added in v0.17.1

type PipelineFieldsRelationsUpstreamPipelineProject struct {
	ProjectReferenceFields `json:"-"`
}

PipelineFieldsRelationsUpstreamPipelineProject includes the requested fields of the GraphQL type Project.

func (*PipelineFieldsRelationsUpstreamPipelineProject) GetFullPath added in v0.17.1

GetFullPath returns PipelineFieldsRelationsUpstreamPipelineProject.FullPath, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsUpstreamPipelineProject) GetId added in v0.17.1

GetId returns PipelineFieldsRelationsUpstreamPipelineProject.Id, and is useful for accessing the field via an interface.

func (*PipelineFieldsRelationsUpstreamPipelineProject) MarshalJSON added in v0.17.1

func (*PipelineFieldsRelationsUpstreamPipelineProject) UnmarshalJSON added in v0.17.1

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 ProjectFieldsCore

type ProjectFieldsCore struct {
	// Name of the project without the namespace.
	Name string `json:"name"`
	// Name of the project including the 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"`
	// Git repository of the project.
	Repository *ProjectFieldsCoreRepository `json:"repository"`
}

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) GetRepository

func (v *ProjectFieldsCore) GetRepository() *ProjectFieldsCoreRepository

GetRepository returns ProjectFieldsCore.Repository, 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

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 ProjectFieldsCoreRepository

type ProjectFieldsCoreRepository struct {
	// Default branch of the repository.
	RootRef *string `json:"rootRef"`
}

ProjectFieldsCoreRepository includes the requested fields of the GraphQL type Repository.

func (*ProjectFieldsCoreRepository) GetRootRef

func (v *ProjectFieldsCoreRepository) GetRootRef() *string

GetRootRef returns ProjectFieldsCoreRepository.RootRef, 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

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

GetLfsObjectsSize returns ProjectFieldsCoreStatisticsProjectStatistics.LfsObjectsSize, and is useful for accessing the field via an interface.

func (*ProjectFieldsCoreStatisticsProjectStatistics) GetPackagesSize

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

GetRepositorySize returns ProjectFieldsCoreStatisticsProjectStatistics.RepositorySize, and is useful for accessing the field via an interface.

func (*ProjectFieldsCoreStatisticsProjectStatistics) GetSnippetsSize

GetSnippetsSize returns ProjectFieldsCoreStatisticsProjectStatistics.SnippetsSize, and is useful for accessing the field via an interface.

func (*ProjectFieldsCoreStatisticsProjectStatistics) GetStorageSize

GetStorageSize returns ProjectFieldsCoreStatisticsProjectStatistics.StorageSize, and is useful for accessing the field via an interface.

func (*ProjectFieldsCoreStatisticsProjectStatistics) GetUploadsSize

GetUploadsSize returns ProjectFieldsCoreStatisticsProjectStatistics.UploadsSize, and is useful for accessing the field via an interface.

func (*ProjectFieldsCoreStatisticsProjectStatistics) GetWikiSize

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 RunnerFields added in v0.22.0

type RunnerFields struct {
	RunnerReferenceFields
	RunnerFieldsCore
}

type RunnerFieldsCore added in v0.22.0

type RunnerFieldsCore struct {
	// Description of the runner.
	Description *string `json:"description"`
	// Type of the runner.
	RunnerType CiRunnerType `json:"runnerType"`
	// Tags associated with the runner.
	TagList []string `json:"tagList"`
	// Status of the runner.
	Status CiRunnerStatus `json:"status"`
	// Indicates the runner is locked.
	Locked *bool `json:"locked"`
	// Indicates the runner is paused and not available to run jobs.
	Paused bool `json:"paused"`
	// Access level of the runner.
	AccessLevel CiRunnerAccessLevel `json:"accessLevel"`
	// Indicates the runner is able to run untagged jobs.
	RunUntagged bool `json:"runUntagged"`
	// Timestamp of last contact from the runner.
	ContactedAt *time.Time `json:"contactedAt"`
	// Timestamp of creation of the runner.
	CreatedAt *time.Time `json:"createdAt"`
	// User that created the runner.
	CreatedBy *RunnerFieldsCoreCreatedByUserCore `json:"createdBy"`
}

RunnerFieldsCore includes the GraphQL fields of CiRunner requested by the fragment RunnerFieldsCore.

func (*RunnerFieldsCore) GetAccessLevel added in v0.22.0

func (v *RunnerFieldsCore) GetAccessLevel() CiRunnerAccessLevel

GetAccessLevel returns RunnerFieldsCore.AccessLevel, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetContactedAt added in v0.22.0

func (v *RunnerFieldsCore) GetContactedAt() *time.Time

GetContactedAt returns RunnerFieldsCore.ContactedAt, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetCreatedAt added in v0.22.0

func (v *RunnerFieldsCore) GetCreatedAt() *time.Time

GetCreatedAt returns RunnerFieldsCore.CreatedAt, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetCreatedBy added in v0.22.0

GetCreatedBy returns RunnerFieldsCore.CreatedBy, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetDescription added in v0.22.0

func (v *RunnerFieldsCore) GetDescription() *string

GetDescription returns RunnerFieldsCore.Description, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetLocked added in v0.22.0

func (v *RunnerFieldsCore) GetLocked() *bool

GetLocked returns RunnerFieldsCore.Locked, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetPaused added in v0.22.0

func (v *RunnerFieldsCore) GetPaused() bool

GetPaused returns RunnerFieldsCore.Paused, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetRunUntagged added in v0.22.0

func (v *RunnerFieldsCore) GetRunUntagged() bool

GetRunUntagged returns RunnerFieldsCore.RunUntagged, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetRunnerType added in v0.22.0

func (v *RunnerFieldsCore) GetRunnerType() CiRunnerType

GetRunnerType returns RunnerFieldsCore.RunnerType, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetStatus added in v0.22.0

func (v *RunnerFieldsCore) GetStatus() CiRunnerStatus

GetStatus returns RunnerFieldsCore.Status, and is useful for accessing the field via an interface.

func (*RunnerFieldsCore) GetTagList added in v0.22.0

func (v *RunnerFieldsCore) GetTagList() []string

GetTagList returns RunnerFieldsCore.TagList, and is useful for accessing the field via an interface.

type RunnerFieldsCoreCreatedByUserCore added in v0.22.0

type RunnerFieldsCoreCreatedByUserCore struct {
	UserReferenceFieldsUserCore `json:"-"`
}

RunnerFieldsCoreCreatedByUserCore includes the requested fields of the GraphQL type UserCore. The GraphQL type's documentation follows.

Core representation of a GitLab user.

func (*RunnerFieldsCoreCreatedByUserCore) GetId added in v0.22.0

GetId returns RunnerFieldsCoreCreatedByUserCore.Id, and is useful for accessing the field via an interface.

func (*RunnerFieldsCoreCreatedByUserCore) GetName added in v0.22.0

GetName returns RunnerFieldsCoreCreatedByUserCore.Name, and is useful for accessing the field via an interface.

func (*RunnerFieldsCoreCreatedByUserCore) GetUsername added in v0.22.0

func (v *RunnerFieldsCoreCreatedByUserCore) GetUsername() string

GetUsername returns RunnerFieldsCoreCreatedByUserCore.Username, and is useful for accessing the field via an interface.

func (*RunnerFieldsCoreCreatedByUserCore) MarshalJSON added in v0.22.0

func (v *RunnerFieldsCoreCreatedByUserCore) MarshalJSON() ([]byte, error)

func (*RunnerFieldsCoreCreatedByUserCore) UnmarshalJSON added in v0.22.0

func (v *RunnerFieldsCoreCreatedByUserCore) UnmarshalJSON(b []byte) error

type RunnerReferenceFields added in v0.22.0

type RunnerReferenceFields struct {
	// ID of the runner.
	Id string `json:"id"`
	// First eight characters of the runner's token used to authenticate new job requests. Used as the runner's unique ID.
	ShortSha *string `json:"shortSha"`
}

RunnerReferenceFields includes the GraphQL fields of CiRunner requested by the fragment RunnerReferenceFields.

func (*RunnerReferenceFields) GetId added in v0.22.0

func (v *RunnerReferenceFields) GetId() string

GetId returns RunnerReferenceFields.Id, and is useful for accessing the field via an interface.

func (*RunnerReferenceFields) GetShortSha added in v0.22.0

func (v *RunnerReferenceFields) GetShortSha() *string

GetShortSha returns RunnerReferenceFields.ShortSha, 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 TimeRangeOptions added in v0.18.0

type TimeRangeOptions struct {
	UpdatedAfter  *time.Time
	UpdatedBefore *time.Time
}

type UserReferenceFields

type UserReferenceFields interface {

	// GetId returns the interface-field "id" from its implementation.
	// The GraphQL interface field's documentation follows.
	//
	// Representation of a GitLab user.
	GetId() string
	// GetUsername returns the interface-field "username" from its implementation.
	// The GraphQL interface field's documentation follows.
	//
	// Representation of a GitLab user.
	GetUsername() string
	// GetName returns the interface-field "name" from its implementation.
	// The GraphQL interface field's documentation follows.
	//
	// Representation of a GitLab user.
	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 {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsAddOnUser.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsAddOnUser) GetName

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 {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsAutocompletedUser.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsAutocompletedUser) GetName

GetName returns UserReferenceFieldsAutocompletedUser.Name, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsAutocompletedUser) GetUsername

GetUsername returns UserReferenceFieldsAutocompletedUser.Username, and is useful for accessing the field via an interface.

type UserReferenceFieldsCurrentUser

type UserReferenceFieldsCurrentUser struct {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsCurrentUser.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsCurrentUser) GetName

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 {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsMergeRequestAssignee.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestAssignee) GetName

GetName returns UserReferenceFieldsMergeRequestAssignee.Name, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestAssignee) GetUsername

GetUsername returns UserReferenceFieldsMergeRequestAssignee.Username, and is useful for accessing the field via an interface.

type UserReferenceFieldsMergeRequestAuthor

type UserReferenceFieldsMergeRequestAuthor struct {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsMergeRequestAuthor.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestAuthor) GetName

GetName returns UserReferenceFieldsMergeRequestAuthor.Name, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestAuthor) GetUsername

GetUsername returns UserReferenceFieldsMergeRequestAuthor.Username, and is useful for accessing the field via an interface.

type UserReferenceFieldsMergeRequestParticipant

type UserReferenceFieldsMergeRequestParticipant struct {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsMergeRequestParticipant.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestParticipant) GetName

GetName returns UserReferenceFieldsMergeRequestParticipant.Name, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestParticipant) GetUsername

GetUsername returns UserReferenceFieldsMergeRequestParticipant.Username, and is useful for accessing the field via an interface.

type UserReferenceFieldsMergeRequestReviewer

type UserReferenceFieldsMergeRequestReviewer struct {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsMergeRequestReviewer.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestReviewer) GetName

GetName returns UserReferenceFieldsMergeRequestReviewer.Name, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsMergeRequestReviewer) GetUsername

GetUsername returns UserReferenceFieldsMergeRequestReviewer.Username, and is useful for accessing the field via an interface.

type UserReferenceFieldsUserCore

type UserReferenceFieldsUserCore struct {
	// Representation of a GitLab user.
	Id string `json:"id"`
	// Representation of a GitLab user.
	Username string `json:"username"`
	// Representation of a GitLab user.
	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

GetId returns UserReferenceFieldsUserCore.Id, and is useful for accessing the field via an interface.

func (*UserReferenceFieldsUserCore) GetName

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.

Jump to

Keyboard shortcuts

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