Documentation ¶
Index ¶
- func ConvertBridge(bridge *gitlab.Bridge) *typespb.Bridge
- func ConvertDuration(d float64) *durationpb.Duration
- func ConvertJob(job *gitlab.Job) *typespb.Job
- func ConvertLabels(labels map[string]string) []*typespb.Metric_Label
- func ConvertPipeline(pipeline *gitlab.Pipeline) *typespb.Pipeline
- func ConvertPipelineInfo(pipeline *gitlab.PipelineInfo) *typespb.PipelineInfo
- func ConvertTestReport(pipelineID int64, report *gitlab.PipelineTestReport) (*typespb.TestReport, []*typespb.TestSuite, []*typespb.TestCase)
- 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 NewBridgeSpan(traceID []byte, bridge *typespb.Bridge) *tracepb.ResourceSpans
- func NewJobSpan(traceID []byte, job *typespb.Job) *tracepb.ResourceSpans
- func NewPipelineHierarchyTrace(traceID []byte, parentID []byte, ph *PipelineHierarchy) *typespb.Trace
- func NewPipelineSpan(traceID []byte, parentID []byte, pipeline *typespb.Pipeline) *tracepb.ResourceSpans
- func NewSectionSpan(traceID []byte, section *typespb.Section) *tracepb.ResourceSpans
- type PipelineHierarchy
- func (ph *PipelineHierarchy) GetAllBridges() []*typespb.Bridge
- func (ph *PipelineHierarchy) GetAllJobs() []*typespb.Job
- func (ph *PipelineHierarchy) GetAllPipelines() []*typespb.Pipeline
- func (ph *PipelineHierarchy) GetAllSections() []*typespb.Section
- func (ph *PipelineHierarchy) GetAllTraces() []*typespb.Trace
- func (ph *PipelineHierarchy) GetTrace() *typespb.Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConvertDuration ¶
func ConvertDuration(d float64) *durationpb.Duration
func ConvertLabels ¶
func ConvertLabels(labels map[string]string) []*typespb.Metric_Label
func ConvertPipelineInfo ¶
func ConvertPipelineInfo(pipeline *gitlab.PipelineInfo) *typespb.PipelineInfo
func ConvertTestReport ¶
func ConvertTestReport(pipelineID int64, report *gitlab.PipelineTestReport) (*typespb.TestReport, []*typespb.TestSuite, []*typespb.TestCase)
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 NewBridgeSpan ¶
func NewBridgeSpan(traceID []byte, bridge *typespb.Bridge) *tracepb.ResourceSpans
func NewJobSpan ¶
func NewJobSpan(traceID []byte, job *typespb.Job) *tracepb.ResourceSpans
func NewPipelineHierarchyTrace ¶
func NewPipelineHierarchyTrace(traceID []byte, parentID []byte, ph *PipelineHierarchy) *typespb.Trace
func NewPipelineSpan ¶
func NewSectionSpan ¶
func NewSectionSpan(traceID []byte, section *typespb.Section) *tracepb.ResourceSpans
Types ¶
type PipelineHierarchy ¶
type PipelineHierarchy struct { Pipeline *typespb.Pipeline `json:"pipeline"` Jobs []*typespb.Job `json:"jobs"` Sections []*typespb.Section `json:"sections"` Bridges []*typespb.Bridge `json:"bridges"` DownstreamPipelines []*PipelineHierarchy `json:"downstream_pipelines"` }
func (*PipelineHierarchy) GetAllBridges ¶
func (ph *PipelineHierarchy) GetAllBridges() []*typespb.Bridge
func (*PipelineHierarchy) GetAllJobs ¶
func (ph *PipelineHierarchy) GetAllJobs() []*typespb.Job
func (*PipelineHierarchy) GetAllPipelines ¶
func (ph *PipelineHierarchy) GetAllPipelines() []*typespb.Pipeline
func (*PipelineHierarchy) GetAllSections ¶
func (ph *PipelineHierarchy) GetAllSections() []*typespb.Section
func (*PipelineHierarchy) GetAllTraces ¶
func (ph *PipelineHierarchy) GetAllTraces() []*typespb.Trace
func (*PipelineHierarchy) GetTrace ¶
func (ph *PipelineHierarchy) GetTrace() *typespb.Trace
Click to show internal directories.
Click to hide internal directories.