Documentation ¶
Index ¶
- func GetSecretsStringData(content *testkube.ScriptContent) map[string]string
- 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) DeleteTestHandler() fiber.Handler
- func (s TestKubeAPI) DeleteTestsHandler() 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 ¶
func GetSecretsStringData ¶ added in v0.8.8
func GetSecretsStringData(content *testkube.ScriptContent) map[string]string
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 *testsclientv1.TestsClient ScriptsClient *scriptsclientv2.ScriptsClient ExecutorsClient *executorsclientv1.ExecutorsClient SecretClient *secret.Client Metrics Metrics Storage storage.Client // contains filtered or unexported fields }
func NewServer ¶
func NewServer( executionsResults result.Repository, testExecutionsResults testresult.Repository, scriptsClient *scriptsclientv2.ScriptsClient, executorsClient *executorsclientv1.ExecutorsClient, testsClient *testsclientv1.TestsClient, secretClient *secret.Client, ) 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 is a method 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) DeleteTestHandler ¶ added in v0.7.27
func (s TestKubeAPI) DeleteTestHandler() fiber.Handler
DeleteTestHandler for deleting a test with id
func (TestKubeAPI) DeleteTestsHandler ¶ added in v0.7.27
func (s TestKubeAPI) DeleteTestsHandler() fiber.Handler
DeleteTestsHandler for deleting all Tests
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
GetScriptHandler is method for getting an existing script
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 is a method 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 updates an existing script CR based on script content