pipelines

package
v0.0.0-...-907143c Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const Collection database.Collection = "pipelines"
View Source
const CollectionRuns database.Collection = "pipeline_runs"
View Source
const CollectionVersions database.Collection = "pipeline_versions"

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipeline

type Pipeline struct {
	sdk.Pipeline `json:",inline" bson:",inline"`
	ProviderId   string `json:"providerId" bson:"providerId"`
}

type Service

type Service interface {
	EnsureIndices() error

	ListPipelinesPaginated(perPage int, page int) (sdk.PipelinePage, error)
	GetPipeline(id string) (sdk.Pipeline, error)
	ListPipelineRuns(id string, fromIncl time.Time, toExcl time.Time) (sdk.PipelineStatusList, error)
	ListPipelineRunsLimit(id string, toExcl time.Time, limit int) (sdk.PipelineStatusList, error)
	ListPipelineVersions(id string, fromIncl time.Time, toExcl time.Time) (sdk.PipelineVersionList, error)
	UpdatePipelines(providerId string, pipelines []sdk.Pipeline) error
	AddPipelineRuns(providerId string, runs sdk.PipelineStatusList) error
	AddPipelineVersions(providerId string, versions sdk.PipelineVersionList) error
}

func NewService

func NewService(db database.Database) Service

Jump to

Keyboard shortcuts

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