mongodb

package
v0.0.0-...-044f632 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlowRepository

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

func NewFlowRepository

func NewFlowRepository(db *mongo.Database) *FlowRepository

func (*FlowRepository) GetFlow

func (r *FlowRepository) GetFlow(ctx context.Context, flowID string) (*flow.Flow, error)

func (*FlowRepository) UpsertFlow

func (r *FlowRepository) UpsertFlow(ctx context.Context, flow *flow.Flow) error

type PipelineGuard

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

func NewPipelineGuard

func NewPipelineGuard(db *mongo.Database) *PipelineGuard

func (*PipelineGuard) AcquirePipeline

func (g *PipelineGuard) AcquirePipeline(ctx context.Context, pipeID string) error

func (*PipelineGuard) ReleasePipeline

func (g *PipelineGuard) ReleasePipeline(ctx context.Context, pipeID string) error

type PipelineRepository

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

func NewPipelineRepository

func NewPipelineRepository(db *mongo.Database) *PipelineRepository

func (*PipelineRepository) AddPipeline

func (r *PipelineRepository) AddPipeline(ctx context.Context, pipe *pipeline.Pipeline) error

func (*PipelineRepository) GetPipeline

func (r *PipelineRepository) GetPipeline(
	ctx context.Context,
	pipeID string,
	specGetter service.SpecificationGetter,
	registrars ...pipeline.ExecutorRegistrar,
) (*pipeline.Pipeline, error)

type SpecificationRepository

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

func NewSpecificationRepository

func NewSpecificationRepository(db *mongo.Database) *SpecificationRepository

func (*SpecificationRepository) AddSpecification

func (r *SpecificationRepository) AddSpecification(ctx context.Context, spec *specification.Specification) error

func (*SpecificationRepository) FindSpecification

func (*SpecificationRepository) GetActiveSpecificationByTestCampaignID

func (r *SpecificationRepository) GetActiveSpecificationByTestCampaignID(
	ctx context.Context,
	testCampaignID string,
) (*specification.Specification, error)

func (*SpecificationRepository) GetSpecification

func (r *SpecificationRepository) GetSpecification(
	ctx context.Context,
	specID string,
) (*specification.Specification, error)

type TestCampaignRepository

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

func NewTestCampaignRepository

func NewTestCampaignRepository(db *mongo.Database) *TestCampaignRepository

func (*TestCampaignRepository) AddTestCampaign

func (*TestCampaignRepository) FindTestCampaign

func (*TestCampaignRepository) GetTestCampaign

func (r *TestCampaignRepository) GetTestCampaign(
	ctx context.Context,
	tcID string,
) (*testcampaign.TestCampaign, error)

func (*TestCampaignRepository) UpdateTestCampaign

func (r *TestCampaignRepository) UpdateTestCampaign(
	ctx context.Context,
	tcID string,
	updater service.TestCampaignUpdater,
) error

Jump to

Keyboard shortcuts

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