v1

package
v0.6.10 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 30 Imported by: 0

Documentation

Index

Constants

View Source
const DateFormatISO8601 string = "2006-01-02"

Variables

This section is empty.

Functions

func NewExecutionFromExecutionOptions

func NewExecutionFromExecutionOptions(options client.ExecuteOptions) testkube.Execution

func NewServer

func NewServer(repository result.Repository, scriptsClient *scriptscr.ScriptsClient, executorsClient *executorscr.ExecutorsClient) testkubeAPI

Types

type DateFilter added in v0.5.55

type DateFilter struct {
	Start        time.Time
	End          time.Time
	IsStartValid bool
	IsEndValid   bool
}

DateFilter is used to filter dates

func NewDateFilter added in v0.5.55

func NewDateFilter(startDate string, endDate string) DateFilter

NewDateFilter creates new DateFilter with the start date and end date

func (DateFilter) IsPassing added in v0.5.55

func (dFilter DateFilter) IsPassing(date time.Time) bool

IsPassing tests if a specific date is passing the filter

type Metrics

type Metrics struct {
	Executions *prometheus.CounterVec
	Creations  *prometheus.CounterVec
	Abort      *prometheus.CounterVec
}

func NewMetrics

func NewMetrics() Metrics

func (Metrics) IncAbortScript

func (m Metrics) IncAbortScript(scriptType string, err error)

func (Metrics) IncCreateScript

func (m Metrics) IncCreateScript(scriptType string, err error)

func (Metrics) IncExecution

func (m Metrics) IncExecution(execution testkube.Execution)

Jump to

Keyboard shortcuts

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