storage

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapRepository

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

func NewMapRepository

func NewMapRepository() *MapRepository

NewMapRepository creates a MapRepository

func (*MapRepository) Get

Get gets execution result by id

func (*MapRepository) Insert

func (r *MapRepository) Insert(ctx context.Context, result testkube.Execution) error

Insert inserts new execution result

func (*MapRepository) QueuePull

func (r *MapRepository) QueuePull(ctx context.Context) (testkube.Execution, error)

QueuePull pulls from queue and locks other clients to read (changes state from queued->pending)

func (*MapRepository) Update

func (r *MapRepository) Update(ctx context.Context, result testkube.Execution) error

Update updates execution result

func (*MapRepository) UpdateResult

func (r *MapRepository) UpdateResult(ctx context.Context, id string, result testkube.ExecutionResult) error

Update updates execution result

Jump to

Keyboard shortcuts

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