Documentation
¶
Index ¶
- func ConvertDuration(d float64) *durationpb.Duration
- func ConvertJob(job Job) *typespb.Job
- func ConvertJobReference(job JobReference) *typespb.JobReference
- func ConvertMergeRequest(mr MergeRequest) *typespb.MergeRequest
- func ConvertMergeRequestNoteEvent(event MergeRequestNoteEvent) *typespb.MergeRequestNoteEvent
- func ConvertMergeRequestReference(mr MergeRequestReference) *typespb.MergeRequestReference
- func ConvertMetric(metric Metric) *typespb.Metric
- func ConvertPipeline(pipeline Pipeline) *typespb.Pipeline
- func ConvertPipelineReference(pipeline PipelineReference) *typespb.PipelineReference
- func ConvertProject(p Project) *typespb.Project
- func ConvertProjectReference(project ProjectReference) *typespb.ProjectReference
- func ConvertSection(section Section) *typespb.Section
- func ConvertTestCase(testcase TestCase) *typespb.TestCase
- func ConvertTestReport(testreport TestReport) *typespb.TestReport
- func ConvertTestSuite(testsuite TestSuite) *typespb.TestSuite
- func ConvertTime(t *time.Time) *timestamppb.Timestamp
- func ConvertUnixMilli(ts int64) *timestamppb.Timestamp
- func ConvertUnixNano(ts int64) *timestamppb.Timestamp
- func ConvertUnixSeconds(ts int64) *timestamppb.Timestamp
- func ConvertUserReference(user UserReference) *typespb.UserReference
- func JobSpan(job Job) *tracepb.Span
- func NewResourceSpan(attrs map[string]string, spans []*tracepb.Span) *tracepb.ResourceSpans
- func PipelineSpan(pipeline Pipeline) *tracepb.Span
- func SectionSpan(section Section) *tracepb.Span
- type Job
- type JobKind
- type JobReference
- type MergeRequest
- type MergeRequestDiffRefs
- type MergeRequestDiffStats
- type MergeRequestNoteEvent
- type MergeRequestParticipants
- type MergeRequestReference
- type Metric
- type MilestoneReference
- type NamespaceReference
- type Pipeline
- type PipelineReference
- type Project
- type ProjectReference
- type ProjectStatistics
- type Section
- type TestCase
- type TestReport
- type TestSuite
- type UserReference
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDuration ¶
func ConvertDuration(d float64) *durationpb.Duration
func ConvertJob ¶
func ConvertJobReference ¶ added in v0.10.0
func ConvertJobReference(job JobReference) *typespb.JobReference
func ConvertMergeRequest ¶
func ConvertMergeRequest(mr MergeRequest) *typespb.MergeRequest
func ConvertMergeRequestNoteEvent ¶ added in v0.10.0
func ConvertMergeRequestNoteEvent(event MergeRequestNoteEvent) *typespb.MergeRequestNoteEvent
func ConvertMergeRequestReference ¶ added in v0.10.0
func ConvertMergeRequestReference(mr MergeRequestReference) *typespb.MergeRequestReference
func ConvertMetric ¶ added in v0.10.0
func ConvertPipeline ¶
func ConvertPipelineReference ¶ added in v0.10.0
func ConvertPipelineReference(pipeline PipelineReference) *typespb.PipelineReference
func ConvertProject ¶
func ConvertProjectReference ¶ added in v0.10.0
func ConvertProjectReference(project ProjectReference) *typespb.ProjectReference
func ConvertSection ¶ added in v0.10.0
func ConvertTestCase ¶ added in v0.10.0
func ConvertTestReport ¶
func ConvertTestReport(testreport TestReport) *typespb.TestReport
func ConvertTestSuite ¶ added in v0.10.0
func ConvertTime ¶
func ConvertTime(t *time.Time) *timestamppb.Timestamp
func ConvertUnixMilli ¶
func ConvertUnixMilli(ts int64) *timestamppb.Timestamp
func ConvertUnixNano ¶
func ConvertUnixNano(ts int64) *timestamppb.Timestamp
func ConvertUnixSeconds ¶
func ConvertUnixSeconds(ts int64) *timestamppb.Timestamp
func ConvertUserReference ¶ added in v0.10.0
func ConvertUserReference(user UserReference) *typespb.UserReference
func NewResourceSpan ¶ added in v0.10.0
func PipelineSpan ¶ added in v0.10.0
func SectionSpan ¶ added in v0.10.0
Types ¶
type Job ¶ added in v0.10.0
type Job struct {
Id int64
Pipeline PipelineReference
Name string
Ref string
Status string
FailureReason string
CreatedAt *time.Time
QueuedAt *time.Time
StartedAt *time.Time
FinishedAt *time.Time
ErasedAt *time.Time
Stage string
Tags []string
QueuedDuration time.Duration
Duration time.Duration
Coverage float64
AllowFailure bool
Manual bool
Retried bool
Retryable bool
Kind JobKind
DownstreamPipeline *PipelineReference
RunnerId string
}
type JobReference ¶ added in v0.10.0
type JobReference struct {
Id int64
Name string
Pipeline PipelineReference
}
type MergeRequest ¶ added in v0.10.0
type MergeRequest struct {
Id int64
Iid int64
Project ProjectReference
CreatedAt *time.Time
UpdatedAt *time.Time
MergedAt *time.Time
ClosedAt *time.Time
Name string
Title string
Labels []string
State string
MergeStatus string
MergeError string
SourceProjectId int64
SourceBranch string
TargetProjectId int64
TargetBranch string
DiffStats MergeRequestDiffStats
DiffRefs MergeRequestDiffRefs
Participants MergeRequestParticipants
Approved bool
Conflicts bool
Draft bool
Mergeable bool
UserNotesCount int64
Milestone *MilestoneReference
}
type MergeRequestDiffRefs ¶ added in v0.10.0
type MergeRequestDiffStats ¶ added in v0.10.0
type MergeRequestNoteEvent ¶ added in v0.10.0
type MergeRequestParticipants ¶ added in v0.10.0
type MergeRequestParticipants struct {
Author UserReference
Assignees []UserReference
Reviewers []UserReference
Approvers []UserReference
MergeUser UserReference
}
type MergeRequestReference ¶ added in v0.10.0
type MergeRequestReference struct {
Id int64
Iid int64
Project ProjectReference
}
type MilestoneReference ¶ added in v0.10.0
type MilestoneReference struct {
Id int64
Iid int64
Project ProjectReference
}
type NamespaceReference ¶ added in v0.10.0
type Pipeline ¶ added in v0.10.0
type Pipeline struct {
Id int64
Iid int64
Project ProjectReference
Name string
Ref string
Sha string
Source string
Status string
FailureReason string
CommittedAt *time.Time
CreatedAt *time.Time
UpdatedAt *time.Time
StartedAt *time.Time
FinishedAt *time.Time
QueuedDuration time.Duration
Duration time.Duration
Coverage float64
Warnings bool
YamlErrors bool
Child bool
UpstreamPipeline *PipelineReference
MergeRequest *MergeRequestReference
User UserReference
}
type PipelineReference ¶ added in v0.10.0
type PipelineReference struct {
Id int64
Iid int64
Project ProjectReference
}
type ProjectReference ¶ added in v0.10.0
type ProjectStatistics ¶ added in v0.10.0
type TestReport ¶ added in v0.10.0
type UserReference ¶ added in v0.10.0
Click to show internal directories.
Click to hide internal directories.