controller

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportPipelineHierarchy

func ExportPipelineHierarchy(ctl *Controller, ctx context.Context, opts ExportPipelineHierarchyOptions) error

Types

type Controller

type Controller struct {
	GitLab   gitlab.Client
	Exporter *Exporter
	// contains filtered or unexported fields
}

func NewController

func NewController(cfg config.Config) (*Controller, error)

func (*Controller) CheckReadiness

func (c *Controller) CheckReadiness(ctx context.Context) error

func (*Controller) Run

func (c *Controller) Run(ctx context.Context) error

type ExportPipelineHierarchyOptions

type ExportPipelineHierarchyOptions struct {
	ProjectID  int64
	PipelineID int64

	ExportSections    bool
	ExportTestReports bool
	ExportTraces      bool
	ExportJobMetrics  bool
}

type Exporter

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

func NewExporter

func NewExporter(endpoints []grpc_client.EndpointConfig) (*Exporter, error)

func (*Exporter) RecordBridges

func (e *Exporter) RecordBridges(ctx context.Context, data []*pb.Bridge) error

func (*Exporter) RecordJobs

func (e *Exporter) RecordJobs(ctx context.Context, data []*pb.Job) error

func (*Exporter) RecordPipelineHierarchy

func (e *Exporter) RecordPipelineHierarchy(ctx context.Context, ph *models.PipelineHierarchy) error

func (*Exporter) RecordPipelines

func (e *Exporter) RecordPipelines(ctx context.Context, data []*pb.Pipeline) error

func (*Exporter) RecordSections

func (e *Exporter) RecordSections(ctx context.Context, data []*pb.Section) error

func (*Exporter) RecordTestCases

func (e *Exporter) RecordTestCases(ctx context.Context, cases []*pb.TestCase) error

func (*Exporter) RecordTestReports

func (e *Exporter) RecordTestReports(ctx context.Context, reports []*pb.TestReport) error

func (*Exporter) RecordTestSuites

func (e *Exporter) RecordTestSuites(ctx context.Context, suites []*pb.TestSuite) error

func (*Exporter) RecordTraces

func (e *Exporter) RecordTraces(ctx context.Context, traces []*pb.Trace) error

type ProjectCatchUpTask

type ProjectCatchUpTask struct {
	Config config.Project
}

func (*ProjectCatchUpTask) Run

func (t *ProjectCatchUpTask) Run(ctl *Controller, ctx context.Context)

type ProjectExportTask

type ProjectExportTask struct {
	Config config.Project
}

func (*ProjectExportTask) Run

func (t *ProjectExportTask) Run(ctl *Controller, ctx context.Context)

Jump to

Keyboard shortcuts

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