executions

package
v0.0.0-...-0fda810 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(collectiom Getter) func(ctx context.Context, id string) (interface{}, error)

Get returns a function to retrieve a execution based on the passed ID

func List

func List(collection Getter) func(ctx context.Context, filter map[string][]string, sortBy string, reverse bool, count int, previousLastValue string) ([]interface{}, error)

List returns a function used to return the executions

func New

func New(meta MetaHandler, collection Adder, getProject getItem, getScenario getItem, getTestPlan getItem) func(ctx context.Context, author string, data io.Reader) (interface{}, error)

New returns a function used to create an execution

func Update

func Update(meta MetaHandler, collection ReaderUpdater, getProject getItem, getScenario getItem, getTestPlan getItem) func(ctx context.Context, user string, id string, data io.Reader) (interface{}, error)

Update is used to replace a scenario with the provided scenario

Types

type Adder

type Adder interface {
	AddOne(ctx context.Context, item interface{}) error
}

Adder is used to add items to the store

type Getter

type Getter interface {
	Get(ctx context.Context, id string, item interface{}) error
	GetAll(ctx context.Context, items interface{}, filterMap map[string][]string, sortBy string, reverse bool, count int, previousLastValue string) error
}

Getter is used to retrieve items from the store

type MetaHandler

type MetaHandler interface {
	NewMeta(author string, objType string) (*metadatav1.Identity, error)
	UpdateMeta(author string, identity *metadatav1.Identity)
}

MetaHandler handles metadata information

type ReaderUpdater

type ReaderUpdater interface {
	Getter
	Updater
}

ReaderUpdater is used to read and update objects in the Data Base

type Updater

type Updater interface {
	Update(ctx context.Context, id string, item interface{}) error
}

Updater is used to replace information into the Data Base

Directories

Path Synopsis
Package mock_executions is a generated GoMock package.
Package mock_executions is a generated GoMock package.

Jump to

Keyboard shortcuts

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