Documentation ¶
Index ¶
- type Metrics
- type TestKubeAPI
- func (s TestKubeAPI) AbortExecutionHandler() fiber.Handler
- func (s TestKubeAPI) CreateExecutorHandler() fiber.Handler
- func (s TestKubeAPI) CreateScriptHandler() fiber.Handler
- func (s TestKubeAPI) CreateTestHandler() fiber.Handler
- func (s TestKubeAPI) DeleteExecutorHandler() fiber.Handler
- func (s TestKubeAPI) DeleteScriptHandler() fiber.Handler
- func (s TestKubeAPI) DeleteScriptsHandler() fiber.Handler
- func (s TestKubeAPI) ExecuteScriptHandler() fiber.Handler
- func (s TestKubeAPI) ExecuteTestHandler() fiber.Handler
- func (s TestKubeAPI) ExecutionLogsHandler() fiber.Handler
- func (s TestKubeAPI) GetArtifactHandler() fiber.Handler
- func (s TestKubeAPI) GetExecuteOptions(namespace, scriptID string, request testkube.ExecutionRequest) (options client.ExecuteOptions, err error)
- func (s TestKubeAPI) GetExecutionHandler() fiber.Handler
- func (s TestKubeAPI) GetExecutorHandler() fiber.Handler
- func (s TestKubeAPI) GetScriptHandler() fiber.Handler
- func (s TestKubeAPI) GetTestExecutionHandler() fiber.Handler
- func (s TestKubeAPI) GetTestHandler() fiber.Handler
- func (s TestKubeAPI) InfoHandler() fiber.Handler
- func (s TestKubeAPI) Init()
- func (s TestKubeAPI) ListArtifactsHandler() fiber.Handler
- func (s TestKubeAPI) ListExecutionsHandler() fiber.Handler
- func (s TestKubeAPI) ListExecutorsHandler() fiber.Handler
- func (s TestKubeAPI) ListScriptsHandler() fiber.Handler
- func (s TestKubeAPI) ListTagsHandler() fiber.Handler
- func (s TestKubeAPI) ListTestExecutionsHandler() fiber.Handler
- func (s TestKubeAPI) ListTestsHandler() fiber.Handler
- func (s TestKubeAPI) RoutesHandler() fiber.Handler
- func (s TestKubeAPI) UpdateScriptHandler() fiber.Handler
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 (Metrics) IncCreateScript ¶
func (Metrics) IncExecution ¶
func (Metrics) IncUpdateScript ¶ added in v0.7.3
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
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
func (TestKubeAPI) GetArtifactHandler ¶ added in v0.7.6
func (s TestKubeAPI) GetArtifactHandler() fiber.Handler
func (TestKubeAPI) GetExecuteOptions ¶ added in v0.7.5
func (s TestKubeAPI) GetExecuteOptions(namespace, scriptID string, request testkube.ExecutionRequest) (options client.ExecuteOptions, err error)
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) InfoHandler ¶ added in v0.7.18
func (s TestKubeAPI) InfoHandler() 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
GetArtifacts returns list of files in the given bucket
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) RoutesHandler ¶ added in v0.7.18
func (s TestKubeAPI) RoutesHandler() fiber.Handler
func (TestKubeAPI) UpdateScriptHandler ¶ added in v0.7.6
func (s TestKubeAPI) UpdateScriptHandler() fiber.Handler
UpdateScriptHandler creates new script CR based on script content