v1

package
v0.7.16 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 38 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Executions *prometheus.CounterVec
	Creations  *prometheus.CounterVec
	Updates    *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)

func (Metrics) IncUpdateScript added in v0.7.3

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

type TestKubeAPI added in v0.7.5

type TestKubeAPI struct {
	server.HTTPServer
	ExecutionResults     result.Repository
	TestExecutionResults testresult.Repository
	Executor             client.Executor
	TestsClient          *testscr.TestsClient
	ScriptsClient        *scriptscr.ScriptsClient
	ExecutorsClient      *executorscr.ExecutorsClient
	Metrics              Metrics
	Storage              storage.Client
	// contains filtered or unexported fields
}

func NewServer

func NewServer(
	executionsResults result.Repository,
	testExecutionsResults testresult.Repository,
	scriptsClient *scriptscr.ScriptsClient,
	executorsClient *executorscr.ExecutorsClient,
	testsClient *testscr.TestsClient,
) TestKubeAPI

func (TestKubeAPI) AbortExecutionHandler added in v0.7.6

func (s TestKubeAPI) AbortExecutionHandler() fiber.Handler

AbortExecutionHandler aborts script execution for given executor id

func (TestKubeAPI) CreateExecutorHandler added in v0.7.6

func (s TestKubeAPI) CreateExecutorHandler() fiber.Handler

func (TestKubeAPI) CreateScriptHandler added in v0.7.6

func (s TestKubeAPI) CreateScriptHandler() fiber.Handler

CreateScriptHandler creates new script CR based on script content

func (TestKubeAPI) CreateTestHandler added in v0.7.6

func (s TestKubeAPI) CreateTestHandler() fiber.Handler

GetTestHandler for getting test object

func (TestKubeAPI) DeleteExecutorHandler added in v0.7.6

func (s TestKubeAPI) DeleteExecutorHandler() fiber.Handler

func (TestKubeAPI) DeleteScriptHandler added in v0.7.6

func (s TestKubeAPI) DeleteScriptHandler() fiber.Handler

DeleteScriptHandler for deleting a script with id

func (TestKubeAPI) DeleteScriptsHandler added in v0.7.6

func (s TestKubeAPI) DeleteScriptsHandler() fiber.Handler

DeleteScriptsHandler for deleting all scripts

func (TestKubeAPI) ExecuteScriptHandler added in v0.7.6

func (s TestKubeAPI) ExecuteScriptHandler() fiber.Handler

ExecuteScriptHandler calls particular executor based on execution request content and type

func (TestKubeAPI) ExecuteTestHandler added in v0.7.6

func (s TestKubeAPI) ExecuteTestHandler() fiber.Handler

func (TestKubeAPI) ExecutionLogsHandler added in v0.7.6

func (s TestKubeAPI) ExecutionLogsHandler() fiber.Handler

ExecutionLogsHandler returns execution logs for given execution id

func (TestKubeAPI) GetArtifactHandler added in v0.7.6

func (s TestKubeAPI) GetArtifactHandler() fiber.Handler

GetArtifactHandler returns execution result file for given execution id and filename

func (TestKubeAPI) GetExecuteOptions added in v0.7.5

func (s TestKubeAPI) GetExecuteOptions(namespace, scriptID string, request testkube.ExecutionRequest) (options client.ExecuteOptions, err error)

GetExecuteOptions returns execute options for given namespace, script id and request

func (TestKubeAPI) GetExecutionHandler added in v0.7.6

func (s TestKubeAPI) GetExecutionHandler() fiber.Handler

GetExecutionHandler returns script execution object for given script and execution id

func (TestKubeAPI) GetExecutorHandler added in v0.7.6

func (s TestKubeAPI) GetExecutorHandler() fiber.Handler

func (TestKubeAPI) GetScriptHandler added in v0.7.6

func (s TestKubeAPI) GetScriptHandler() fiber.Handler

ListScripts for getting list of all available scripts

func (TestKubeAPI) GetTestExecutionHandler added in v0.7.6

func (s TestKubeAPI) GetTestExecutionHandler() fiber.Handler

func (TestKubeAPI) GetTestHandler added in v0.7.6

func (s TestKubeAPI) GetTestHandler() fiber.Handler

GetTestHandler for getting test object

func (TestKubeAPI) Info added in v0.7.5

func (s TestKubeAPI) Info() fiber.Handler

func (TestKubeAPI) Init added in v0.7.5

func (s TestKubeAPI) Init()

func (TestKubeAPI) ListArtifactsHandler added in v0.7.6

func (s TestKubeAPI) ListArtifactsHandler() fiber.Handler

ListArtifactsHandler returns list of files for the given execution id

func (TestKubeAPI) ListExecutionsHandler added in v0.7.6

func (s TestKubeAPI) ListExecutionsHandler() fiber.Handler

ListExecutionsHandler returns array of available script executions

func (TestKubeAPI) ListExecutorsHandler added in v0.7.6

func (s TestKubeAPI) ListExecutorsHandler() fiber.Handler

func (TestKubeAPI) ListScriptsHandler added in v0.7.6

func (s TestKubeAPI) ListScriptsHandler() fiber.Handler

ListScriptsHandler for getting list of all available scripts

func (TestKubeAPI) ListTagsHandler added in v0.7.6

func (s TestKubeAPI) ListTagsHandler() fiber.Handler

func (TestKubeAPI) ListTestExecutionsHandler added in v0.7.6

func (s TestKubeAPI) ListTestExecutionsHandler() fiber.Handler

func (TestKubeAPI) ListTestsHandler added in v0.7.6

func (s TestKubeAPI) ListTestsHandler() fiber.Handler

ListTestsHandler for getting list of all available tests

func (TestKubeAPI) UpdateScriptHandler added in v0.7.6

func (s TestKubeAPI) UpdateScriptHandler() fiber.Handler

UpdateScriptHandler creates new script CR based on script content

Jump to

Keyboard shortcuts

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