models

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertBridge

func ConvertBridge(bridge *gitlab.Bridge) *pb.Bridge

func ConvertDuration

func ConvertDuration(d float64) *durationpb.Duration

func ConvertJob

func ConvertJob(job *gitlab.Job) *pb.Job

func ConvertLabels

func ConvertLabels(labels map[string]string) []*pb.LogEmbeddedMetric_Label

func ConvertPipeline

func ConvertPipeline(pipeline *gitlab.Pipeline) *pb.Pipeline

func ConvertPipelineInfo

func ConvertPipelineInfo(pipeline *gitlab.PipelineInfo) *pb.PipelineInfo

func ConvertTestReport

func ConvertTestReport(pipelineID int64, report *gitlab.PipelineTestReport) (*pb.TestReport, []*pb.TestSuite, []*pb.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 *pb.Bridge) *tracepb.ResourceSpans

func NewJobSpan

func NewJobSpan(traceID []byte, job *pb.Job) *tracepb.ResourceSpans

func NewPipelineHierarchyTrace

func NewPipelineHierarchyTrace(traceID []byte, parentID []byte, ph *PipelineHierarchy) *pb.Trace

func NewPipelineSpan

func NewPipelineSpan(traceID []byte, parentID []byte, pipeline *pb.Pipeline) *tracepb.ResourceSpans

func NewSectionSpan

func NewSectionSpan(traceID []byte, section *pb.Section) *tracepb.ResourceSpans

Types

type PipelineHierarchy

type PipelineHierarchy struct {
	Pipeline            *pb.Pipeline         `json:"pipeline"`
	Jobs                []*pb.Job            `json:"jobs"`
	Sections            []*pb.Section        `json:"sections"`
	Bridges             []*pb.Bridge         `json:"bridges"`
	DownstreamPipelines []*PipelineHierarchy `json:"downstream_pipelines"`
}

func (*PipelineHierarchy) GetAllBridges

func (ph *PipelineHierarchy) GetAllBridges() []*pb.Bridge

func (*PipelineHierarchy) GetAllJobs

func (ph *PipelineHierarchy) GetAllJobs() []*pb.Job

func (*PipelineHierarchy) GetAllPipelines

func (ph *PipelineHierarchy) GetAllPipelines() []*pb.Pipeline

func (*PipelineHierarchy) GetAllSections

func (ph *PipelineHierarchy) GetAllSections() []*pb.Section

func (*PipelineHierarchy) GetAllTraces

func (ph *PipelineHierarchy) GetAllTraces() []*pb.Trace

func (*PipelineHierarchy) GetTrace

func (ph *PipelineHierarchy) GetTrace() *pb.Trace

Jump to

Keyboard shortcuts

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