platform

package
v2.0.0-alpha56 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

README

Platform Package Documentation

This package exposes a set of interfaces and methods for common data store operations such as creating, reading, updating, and deleting (CRUD) records.

Implementations for different types of data stores can be added here, all in one place. These implementations are abstracted from other logic using interface methods.

This package depends on the models package, using its structs to perform the CRUD operations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KindSpecifier

type KindSpecifier interface {
	GetKind() string
}

type TestCaseDB

type TestCaseDB interface {
	WriteTestcase(tc KindSpecifier, ctx context.Context, filters KindSpecifier) error
	WriteMock(tc KindSpecifier, ctx context.Context) error

	ReadTestcase(path string, lastSeenId KindSpecifier, options KindSpecifier) ([]KindSpecifier, error)
	ReadTcsMocks(tc KindSpecifier, path string) ([]KindSpecifier, error)
	ReadConfigMocks(path string) ([]KindSpecifier, error)
}

type TestReportDB

type TestReportDB interface {
	Lock()
	Unlock()
	SetResult(runId string, test KindSpecifier)
	GetResults(runId string) ([]KindSpecifier, error)
	Read(ctx context.Context, path, name string) (KindSpecifier, error)
	Write(ctx context.Context, path string, doc KindSpecifier) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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