store

package
v0.0.0-...-ace5988 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package store stores the results from trybot runs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetResult

type GetResult struct {
	TraceName string
	Value     float32
}

GetResult is returned from TryBotStore.Get() and represents a single trace result.

type ListResult

type ListResult struct {
	CL    string
	Patch int
}

ListResult is returned from TryBotStore.List().

type TryBotStore

type TryBotStore interface {
	// Write a single file into the store.
	Write(ctx context.Context, tryFile trybot.TryFile) error

	// List returns all the unique CL/patch combinations
	// that have arrived since 'since'.
	List(ctx context.Context, since time.Time) ([]ListResult, error)

	// Get all the results for a given cl and patch number.
	Get(ctx context.Context, cl types.CL, patch int) ([]GetResult, error)
}

TryBotStore stores trybot results.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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