Documentation ¶
Index ¶
- Constants
- Variables
- func GetSecretsStringData(content *testkube.TestContent) map[string]string
- type Metrics
- func (m Metrics) IncAbortTest(testType string, err error)
- func (m Metrics) IncCreateTest(testType string, err error)
- func (m Metrics) IncCreateTestSuite(err error)
- func (m Metrics) IncExecuteTest(execution testkube.Execution)
- func (m Metrics) IncExecuteTestSuite(execution testkube.TestSuiteExecution)
- func (m Metrics) IncUpdateTest(testType string, err error)
- func (m Metrics) IncUpdateTestSuite(err error)
- type TestkubeAPI
- func (s TestkubeAPI) AbortExecutionHandler() fiber.Handler
- func (s TestkubeAPI) AuthHandler() fiber.Handler
- func (s TestkubeAPI) CreateExecutorHandler() fiber.Handler
- func (s TestkubeAPI) CreateTestHandler() fiber.Handler
- func (s TestkubeAPI) CreateTestSuiteHandler() fiber.Handler
- func (s TestkubeAPI) CreateWebhookHandler() fiber.Handler
- func (s TestkubeAPI) DeleteExecutorHandler() fiber.Handler
- func (s TestkubeAPI) DeleteExecutorsHandler() fiber.Handler
- func (s TestkubeAPI) DeleteTestHandler() fiber.Handler
- func (s TestkubeAPI) DeleteTestSuiteHandler() fiber.Handler
- func (s TestkubeAPI) DeleteTestSuitesHandler() fiber.Handler
- func (s TestkubeAPI) DeleteTestsHandler() fiber.Handler
- func (s TestkubeAPI) DeleteWebhookHandler() fiber.Handler
- func (s TestkubeAPI) DeleteWebhooksHandler() fiber.Handler
- func (s TestkubeAPI) ExecuteTestSuitesHandler() fiber.Handler
- func (s TestkubeAPI) ExecuteTestsHandler() fiber.Handler
- func (s *TestkubeAPI) ExecutionLogsHandler() fiber.Handler
- func (s TestkubeAPI) GetArtifactHandler() fiber.Handler
- func (s TestkubeAPI) GetExecuteOptions(namespace, id string, request testkube.ExecutionRequest) (options client.ExecuteOptions, err error)
- func (s TestkubeAPI) GetExecutionHandler() fiber.Handler
- func (s TestkubeAPI) GetExecutorHandler() fiber.Handler
- func (s TestkubeAPI) GetTestHandler() fiber.Handler
- func (s TestkubeAPI) GetTestSuiteExecutionHandler() fiber.Handler
- func (s TestkubeAPI) GetTestSuiteHandler() fiber.Handler
- func (s TestkubeAPI) GetTestSuiteWithExecutionHandler() fiber.Handler
- func (s TestkubeAPI) GetTestWithExecutionHandler() fiber.Handler
- func (s TestkubeAPI) GetWebhookHandler() fiber.Handler
- func (s TestkubeAPI) HandleEmitterLogs()
- 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) ListLabelsHandler() fiber.Handler
- func (s TestkubeAPI) ListTestSuiteExecutionsHandler() fiber.Handler
- func (s TestkubeAPI) ListTestSuiteWithExecutionsHandler() fiber.Handler
- func (s TestkubeAPI) ListTestSuitesHandler() fiber.Handler
- func (s TestkubeAPI) ListTestWithExecutionsHandler() fiber.Handler
- func (s TestkubeAPI) ListTestsHandler() fiber.Handler
- func (s TestkubeAPI) ListWebhooksHandler() fiber.Handler
- func (s TestkubeAPI) OauthHandler() fiber.Handler
- func (s TestkubeAPI) RoutesHandler() fiber.Handler
- func (s TestkubeAPI) UpdateTestHandler() fiber.Handler
- func (s TestkubeAPI) UpdateTestSuiteHandler() fiber.Handler
- func (s *TestkubeAPI) WithTelemetry(enabled bool)
Constants ¶
const HeartbeatInterval = time.Hour
Variables ¶
var ( SlackBotClientID = "" SlackBotClientSecret = "" )
Functions ¶
func GetSecretsStringData ¶ added in v0.8.8
func GetSecretsStringData(content *testkube.TestContent) map[string]string
Types ¶
type Metrics ¶
type Metrics struct { TestExecutions *prometheus.CounterVec TestSuiteExecutions *prometheus.CounterVec TestCreations *prometheus.CounterVec TestSuiteCreations *prometheus.CounterVec TestUpdates *prometheus.CounterVec TestSuiteUpdates *prometheus.CounterVec TestAbort *prometheus.CounterVec }
func NewMetrics ¶
func NewMetrics() Metrics
func (Metrics) IncAbortTest ¶ added in v0.9.5
func (Metrics) IncCreateTest ¶ added in v0.9.5
func (Metrics) IncCreateTestSuite ¶ added in v1.2.26
func (Metrics) IncExecuteTest ¶ added in v1.2.26
func (Metrics) IncExecuteTestSuite ¶ added in v1.2.26
func (m Metrics) IncExecuteTestSuite(execution testkube.TestSuiteExecution)
func (Metrics) IncUpdateTest ¶ added in v0.9.5
func (Metrics) IncUpdateTestSuite ¶ added in v1.2.26
type TestkubeAPI ¶ added in v0.9.5
type TestkubeAPI struct { server.HTTPServer ExecutionResults result.Repository TestExecutionResults testresult.Repository Executor client.Executor TestsSuitesClient *testsuitesclientv1.TestSuitesClient TestsClient *testsclientv2.TestsClient ExecutorsClient *executorsclientv1.ExecutorsClient SecretClient *secret.Client WebhooksClient *executorsclientv1.WebhooksClient EventsEmitter *webhook.Emitter CronJobClient *cronjob.Client Metrics Metrics Storage storage.Client Namespace string TelemetryEnabled bool ClusterID string // contains filtered or unexported fields }
func NewTestkubeAPI ¶ added in v0.11.9
func NewTestkubeAPI( namespace string, executionsResults result.Repository, testExecutionsResults testresult.Repository, testsClient *testsclientv2.TestsClient, executorsClient *executorsclientv1.ExecutorsClient, testsuitesClient *testsuitesclientv1.TestSuitesClient, secretClient *secret.Client, webhookClient *executorsclientv1.WebhooksClient, clusterId string, ) TestkubeAPI
func (TestkubeAPI) AbortExecutionHandler ¶ added in v0.9.5
func (s TestkubeAPI) AbortExecutionHandler() fiber.Handler
func (TestkubeAPI) AuthHandler ¶ added in v1.1.16
func (s TestkubeAPI) AuthHandler() fiber.Handler
AuthHandler is auth middleware
func (TestkubeAPI) CreateExecutorHandler ¶ added in v0.9.5
func (s TestkubeAPI) CreateExecutorHandler() fiber.Handler
func (TestkubeAPI) CreateTestHandler ¶ added in v0.9.5
func (s TestkubeAPI) CreateTestHandler() fiber.Handler
CreateTestHandler creates new test CR based on test content
func (TestkubeAPI) CreateTestSuiteHandler ¶ added in v0.9.5
func (s TestkubeAPI) CreateTestSuiteHandler() fiber.Handler
GetTestSuiteHandler for getting test object
func (TestkubeAPI) CreateWebhookHandler ¶ added in v0.9.18
func (s TestkubeAPI) CreateWebhookHandler() fiber.Handler
func (TestkubeAPI) DeleteExecutorHandler ¶ added in v0.9.5
func (s TestkubeAPI) DeleteExecutorHandler() fiber.Handler
func (TestkubeAPI) DeleteExecutorsHandler ¶ added in v1.0.23
func (s TestkubeAPI) DeleteExecutorsHandler() fiber.Handler
func (TestkubeAPI) DeleteTestHandler ¶ added in v0.9.5
func (s TestkubeAPI) DeleteTestHandler() fiber.Handler
DeleteTestHandler is a method for deleting a test with id
func (TestkubeAPI) DeleteTestSuiteHandler ¶ added in v0.9.5
func (s TestkubeAPI) DeleteTestSuiteHandler() fiber.Handler
DeleteTestSuiteHandler for deleting a TestSuite with id
func (TestkubeAPI) DeleteTestSuitesHandler ¶ added in v0.9.5
func (s TestkubeAPI) DeleteTestSuitesHandler() fiber.Handler
DeleteTestSuitesHandler for deleting all TestSuites
func (TestkubeAPI) DeleteTestsHandler ¶ added in v0.9.5
func (s TestkubeAPI) DeleteTestsHandler() fiber.Handler
DeleteTestsHandler for deleting all tests
func (TestkubeAPI) DeleteWebhookHandler ¶ added in v0.9.18
func (s TestkubeAPI) DeleteWebhookHandler() fiber.Handler
func (TestkubeAPI) DeleteWebhooksHandler ¶ added in v1.0.23
func (s TestkubeAPI) DeleteWebhooksHandler() fiber.Handler
func (TestkubeAPI) ExecuteTestSuitesHandler ¶ added in v1.0.23
func (s TestkubeAPI) ExecuteTestSuitesHandler() fiber.Handler
func (TestkubeAPI) ExecuteTestsHandler ¶ added in v1.0.23
func (s TestkubeAPI) ExecuteTestsHandler() fiber.Handler
ExecuteTestsHandler calls particular executor based on execution request content and type
func (*TestkubeAPI) ExecutionLogsHandler ¶ added in v0.9.5
func (s *TestkubeAPI) ExecutionLogsHandler() fiber.Handler
ExecutionLogsHandler streams the logs from a test execution
func (TestkubeAPI) GetArtifactHandler ¶ added in v0.9.5
func (s TestkubeAPI) GetArtifactHandler() fiber.Handler
func (TestkubeAPI) GetExecuteOptions ¶ added in v0.9.5
func (s TestkubeAPI) GetExecuteOptions(namespace, id string, request testkube.ExecutionRequest) (options client.ExecuteOptions, err error)
func (TestkubeAPI) GetExecutionHandler ¶ added in v0.9.5
func (s TestkubeAPI) GetExecutionHandler() fiber.Handler
GetExecutionHandler returns test execution object for given test and execution id
func (TestkubeAPI) GetExecutorHandler ¶ added in v0.9.5
func (s TestkubeAPI) GetExecutorHandler() fiber.Handler
func (TestkubeAPI) GetTestHandler ¶ added in v0.9.5
func (s TestkubeAPI) GetTestHandler() fiber.Handler
GetTestHandler is method for getting an existing test
func (TestkubeAPI) GetTestSuiteExecutionHandler ¶ added in v0.9.5
func (s TestkubeAPI) GetTestSuiteExecutionHandler() fiber.Handler
func (TestkubeAPI) GetTestSuiteHandler ¶ added in v0.9.5
func (s TestkubeAPI) GetTestSuiteHandler() fiber.Handler
GetTestSuiteHandler for getting TestSuite object
func (TestkubeAPI) GetTestSuiteWithExecutionHandler ¶ added in v0.11.6
func (s TestkubeAPI) GetTestSuiteWithExecutionHandler() fiber.Handler
GetTestSuiteWithExecutionHandler for getting TestSuite object with execution
func (TestkubeAPI) GetTestWithExecutionHandler ¶ added in v0.11.6
func (s TestkubeAPI) GetTestWithExecutionHandler() fiber.Handler
GetTestWithExecutionHandler is method for getting an existing test with execution
func (TestkubeAPI) GetWebhookHandler ¶ added in v0.9.18
func (s TestkubeAPI) GetWebhookHandler() fiber.Handler
func (TestkubeAPI) HandleEmitterLogs ¶ added in v0.9.18
func (s TestkubeAPI) HandleEmitterLogs()
HandleEmitterLogs is a handler to emit logs
func (TestkubeAPI) InfoHandler ¶ added in v0.9.5
func (s TestkubeAPI) InfoHandler() fiber.Handler
InfoHandler is a handler to get info
func (TestkubeAPI) Init ¶ added in v0.9.5
func (s TestkubeAPI) Init()
Init initializes api server settings
func (TestkubeAPI) ListArtifactsHandler ¶ added in v0.9.5
func (s TestkubeAPI) ListArtifactsHandler() fiber.Handler
GetArtifacts returns list of files in the given bucket
func (TestkubeAPI) ListExecutionsHandler ¶ added in v0.9.5
func (s TestkubeAPI) ListExecutionsHandler() fiber.Handler
ListExecutionsHandler returns array of available test executions
func (TestkubeAPI) ListExecutorsHandler ¶ added in v0.9.5
func (s TestkubeAPI) ListExecutorsHandler() fiber.Handler
func (TestkubeAPI) ListLabelsHandler ¶ added in v0.10.0
func (s TestkubeAPI) ListLabelsHandler() fiber.Handler
func (TestkubeAPI) ListTestSuiteExecutionsHandler ¶ added in v0.9.5
func (s TestkubeAPI) ListTestSuiteExecutionsHandler() fiber.Handler
func (TestkubeAPI) ListTestSuiteWithExecutionsHandler ¶ added in v0.11.8
func (s TestkubeAPI) ListTestSuiteWithExecutionsHandler() fiber.Handler
ListTestSuiteWithExecutionsHandler for getting list of all available TestSuite with latest executions
func (TestkubeAPI) ListTestSuitesHandler ¶ added in v0.9.5
func (s TestkubeAPI) ListTestSuitesHandler() fiber.Handler
ListTestSuitesHandler for getting list of all available TestSuites
func (TestkubeAPI) ListTestWithExecutionsHandler ¶ added in v0.11.8
func (s TestkubeAPI) ListTestWithExecutionsHandler() fiber.Handler
ListTestWithExecutionsHandler is a method for getting list of all available test with latest executions
func (TestkubeAPI) ListTestsHandler ¶ added in v0.9.5
func (s TestkubeAPI) ListTestsHandler() fiber.Handler
ListTestsHandler is a method for getting list of all available tests
func (TestkubeAPI) ListWebhooksHandler ¶ added in v0.9.18
func (s TestkubeAPI) ListWebhooksHandler() fiber.Handler
func (TestkubeAPI) OauthHandler ¶ added in v1.2.7
func (s TestkubeAPI) OauthHandler() fiber.Handler
OauthHandler creates a handler for slack authentication
func (TestkubeAPI) RoutesHandler ¶ added in v0.9.5
func (s TestkubeAPI) RoutesHandler() fiber.Handler
RoutesHandler is a handler to get existing routes
func (TestkubeAPI) UpdateTestHandler ¶ added in v0.9.5
func (s TestkubeAPI) UpdateTestHandler() fiber.Handler
UpdateTestHandler updates an existing test CR based on test content
func (TestkubeAPI) UpdateTestSuiteHandler ¶ added in v0.10.0
func (s TestkubeAPI) UpdateTestSuiteHandler() fiber.Handler
UpdateTestSuiteHandler updates an existing TestSuite CR based on TestSuite content
func (*TestkubeAPI) WithTelemetry ¶ added in v1.2.34
func (s *TestkubeAPI) WithTelemetry(enabled bool)
WithTelemetry enable or disable anonymous telemetry data passing to testkube engineers