v1

package
v1.16.27-beta2 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 92 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeartbeatInterval    = time.Hour
	DefaultHttpBodyLimit = 1 * 1024 * 1024 * 1024 // 1GB - needed for file uploads
)

Variables

View Source
var (
	SlackBotClientID     = ""
	SlackBotClientSecret = ""
)

Functions

This section is empty.

Types

type TestkubeAPI added in v0.9.5

type TestkubeAPI struct {
	server.HTTPServer
	ExecutionResults     result.Repository
	TestExecutionResults testresult.Repository
	Executor             client.Executor
	ContainerExecutor    client.Executor
	TestsSuitesClient    *testsuitesclientv3.TestSuitesClient
	TestsClient          *testsclientv3.TestsClient
	ExecutorsClient      *executorsclientv1.ExecutorsClient
	SecretClient         *secret.Client
	WebhooksClient       *executorsclientv1.WebhooksClient
	TestKubeClientset    testkubeclientset.Interface
	TestSourcesClient    *testsourcesclientv1.TestSourcesClient
	Metrics              metrics.Metrics
	Storage              storage.Client

	Namespace string

	WebsocketLoader *ws.WebsocketLoader
	Events          *event.Emitter
	ConfigMap       config.Repository

	Clientset kubernetes.Interface

	TemplatesClient *templatesclientv1.TemplatesClient
	// contains filtered or unexported fields
}

func NewTestkubeAPI added in v0.11.9

func NewTestkubeAPI(
	namespace string,
	testExecutionResults result.Repository,
	testsuiteExecutionsResults testresult.Repository,
	testsClient *testsclientv3.TestsClient,
	executorsClient *executorsclientv1.ExecutorsClient,
	testsuitesClient *testsuitesclientv3.TestSuitesClient,
	secretClient *secret.Client,
	webhookClient *executorsclientv1.WebhooksClient,
	clientset kubernetes.Interface,
	testkubeClientset testkubeclientset.Interface,
	testsourcesClient *testsourcesclientv1.TestSourcesClient,
	configMap config.Repository,
	clusterId string,
	eventsEmitter *event.Emitter,
	executor client.Executor,
	containerExecutor client.Executor,
	metrics metrics.Metrics,
	scheduler *scheduler.Scheduler,
	slackLoader *slack.SlackLoader,
	storage storage.Client,
	graphqlPort string,
	artifactsStorage storage.ArtifactsStorage,
	templatesClient *templatesclientv1.TemplatesClient,
	cdeventsTarget string,
	dashboardURI string,
	helmchartVersion string,
	mode string,
	eventsBus bus.Bus,
	enableSecretsEndpoint bool,
	ff featureflags.FeatureFlags,
	logsStream logsclient.Stream,
) TestkubeAPI

func (*TestkubeAPI) AbortExecutionHandler added in v0.9.5

func (s *TestkubeAPI) AbortExecutionHandler() fiber.Handler

func (TestkubeAPI) AbortTestHandler added in v1.9.22

func (s TestkubeAPI) AbortTestHandler() fiber.Handler

AbortTestHandler is a method for aborting a executions of a test with id

func (TestkubeAPI) AbortTestSuiteExecutionHandler added in v1.6.29

func (s TestkubeAPI) AbortTestSuiteExecutionHandler() fiber.Handler

func (TestkubeAPI) AbortTestSuiteHandler added in v1.11.10

func (s TestkubeAPI) AbortTestSuiteHandler() fiber.Handler

AbortTestSuiteHandler for aborting a TestSuite with id

func (*TestkubeAPI) AuthHandler added in v1.1.16

func (s *TestkubeAPI) AuthHandler() fiber.Handler

AuthHandler is auth middleware

func (*TestkubeAPI) BulkUpdateTestTriggersHandler added in v1.6.18

func (s *TestkubeAPI) BulkUpdateTestTriggersHandler() fiber.Handler

BulkUpdateTestTriggersHandler is a handler for bulk updates an existing TestTrigger CRDs based on array of TestTrigger content

func (TestkubeAPI) CreateExecutorHandler added in v0.9.5

func (s TestkubeAPI) CreateExecutorHandler() fiber.Handler

func (TestkubeAPI) CreateTemplateHandler added in v1.15.0

func (s TestkubeAPI) CreateTemplateHandler() 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) CreateTestSourceHandler added in v1.5.29

func (s TestkubeAPI) CreateTestSourceHandler() fiber.Handler

func (TestkubeAPI) CreateTestSuiteHandler added in v0.9.5

func (s TestkubeAPI) CreateTestSuiteHandler() fiber.Handler

CreateTestSuiteHandler for getting test object

func (*TestkubeAPI) CreateTestTriggerHandler added in v1.5.33

func (s *TestkubeAPI) CreateTestTriggerHandler() fiber.Handler

CreateTestTriggerHandler is a handler for creating test trigger objects

func (TestkubeAPI) CreateWebhookHandler added in v0.9.18

func (s TestkubeAPI) CreateWebhookHandler() fiber.Handler

func (*TestkubeAPI) DebugHandler added in v1.3.45

func (s *TestkubeAPI) DebugHandler() fiber.Handler

DebugHandler is a handler to get debug information

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) DeleteTemplateHandler added in v1.15.0

func (s TestkubeAPI) DeleteTemplateHandler() fiber.Handler

func (TestkubeAPI) DeleteTemplatesHandler added in v1.15.0

func (s TestkubeAPI) DeleteTemplatesHandler() 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) DeleteTestSourceHandler added in v1.5.29

func (s TestkubeAPI) DeleteTestSourceHandler() fiber.Handler

func (TestkubeAPI) DeleteTestSourcesHandler added in v1.5.29

func (s TestkubeAPI) DeleteTestSourcesHandler() fiber.Handler

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) DeleteTestTriggerHandler added in v1.5.33

func (s *TestkubeAPI) DeleteTestTriggerHandler() fiber.Handler

DeleteTestTriggerHandler is a handler for deleting TestTrigger by id

func (*TestkubeAPI) DeleteTestTriggersHandler added in v1.5.33

func (s *TestkubeAPI) DeleteTestTriggersHandler() fiber.Handler

DeleteTestTriggersHandler is a handler for deleting all or selected TestTriggers

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) EventsStreamHandler added in v1.5.7

func (s TestkubeAPI) EventsStreamHandler() 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) ExecutionLogsStreamHandler added in v1.5.11

func (s *TestkubeAPI) ExecutionLogsStreamHandler() fiber.Handler

func (TestkubeAPI) FluxEventHandler added in v1.2.36

func (s TestkubeAPI) FluxEventHandler() fiber.Handler

GetTestHandler is method for getting an existing test

func (*TestkubeAPI) GetArtifactArchiveHandler added in v1.10.45

func (s *TestkubeAPI) GetArtifactArchiveHandler() fiber.Handler

GetArtifactArchiveHandler returns artifact archive

func (*TestkubeAPI) GetArtifactHandler added in v0.9.5

func (s *TestkubeAPI) GetArtifactHandler() fiber.Handler

func (TestkubeAPI) GetConfigsHandler added in v1.5.15

func (s TestkubeAPI) GetConfigsHandler() fiber.Handler

GetConfigsHandler returns configuration

func (TestkubeAPI) GetDebugListenersHandler added in v1.5.17

func (s TestkubeAPI) GetDebugListenersHandler() fiber.Handler

GetDebugListenersHandler returns event logs

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/name

func (TestkubeAPI) GetExecutorHandler added in v0.9.5

func (s TestkubeAPI) GetExecutorHandler() fiber.Handler

func (*TestkubeAPI) GetLatestExecutionLogs added in v1.3.45

func (s *TestkubeAPI) GetLatestExecutionLogs(ctx context.Context) (map[string][]string, error)

GetLatestExecutionLogs returns the latest executions' logs

func (*TestkubeAPI) GetLogsStream added in v1.10.27

func (s *TestkubeAPI) GetLogsStream(ctx context.Context, executionID string) (chan output.Output, error)

func (TestkubeAPI) GetTemplateHandler added in v1.15.0

func (s TestkubeAPI) GetTemplateHandler() 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) GetTestSourceHandler added in v1.5.29

func (s TestkubeAPI) GetTestSourceHandler() fiber.Handler

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) GetTestTriggerHandler added in v1.5.33

func (s *TestkubeAPI) GetTestTriggerHandler() fiber.Handler

GetTestTriggerHandler is a handler for getting TestTrigger object

func (*TestkubeAPI) GetTestTriggerKeyMapHandler added in v1.5.33

func (s *TestkubeAPI) GetTestTriggerKeyMapHandler() fiber.Handler

GetTestTriggerKeyMapHandler is a handler for listing supported TestTrigger field combinations

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) InfoHandler added in v0.9.5

func (s *TestkubeAPI) InfoHandler() fiber.Handler

InfoHandler is a handler to get info

func (*TestkubeAPI) InitEnvs added in v1.5.7

func (s *TestkubeAPI) InitEnvs()

InitEnvs initializes api server settings

func (TestkubeAPI) InitEvents added in v1.5.7

func (s TestkubeAPI) InitEvents()

InitEvents is a handler to emit logs

func (*TestkubeAPI) InitRoutes added in v1.5.7

func (s *TestkubeAPI) InitRoutes()

func (*TestkubeAPI) ListArtifactsHandler added in v0.9.5

func (s *TestkubeAPI) ListArtifactsHandler() fiber.Handler

ListArtifactsHandler 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) ListSecretsHandler added in v1.15.0

func (s TestkubeAPI) ListSecretsHandler() fiber.Handler

ListSecretsHandler list secrets and keys

func (TestkubeAPI) ListTemplatesHandler added in v1.15.0

func (s TestkubeAPI) ListTemplatesHandler() fiber.Handler

func (TestkubeAPI) ListTestSourcesHandler added in v1.5.29

func (s TestkubeAPI) ListTestSourcesHandler() fiber.Handler

func (TestkubeAPI) ListTestSuiteArtifactsHandler added in v1.9.9

func (s TestkubeAPI) ListTestSuiteArtifactsHandler() fiber.Handler

func (TestkubeAPI) ListTestSuiteExecutionsHandler added in v0.9.5

func (s TestkubeAPI) ListTestSuiteExecutionsHandler() fiber.Handler

func (TestkubeAPI) ListTestSuiteTestsHandler added in v1.3.45

func (s TestkubeAPI) ListTestSuiteTestsHandler() fiber.Handler

ListTestSuiteTestsHandler for getting list of all available Tests for TestSuites

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) ListTestTriggersHandler added in v1.5.33

func (s *TestkubeAPI) ListTestTriggersHandler() fiber.Handler

ListTestTriggersHandler is a handler for listing all available TestTriggers

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) ProcessTestSourceBatchHandler added in v1.6.8

func (s TestkubeAPI) ProcessTestSourceBatchHandler() fiber.Handler

func (*TestkubeAPI) RoutesHandler added in v0.9.5

func (s *TestkubeAPI) RoutesHandler() fiber.Handler

RoutesHandler is a handler to get existing routes

func (*TestkubeAPI) RunGraphQLServer added in v1.10.21

func (s *TestkubeAPI) RunGraphQLServer(ctx context.Context, port string) error

RunGraphQLServer runs GraphQL server on go net/http server

func (TestkubeAPI) SendTelemetryStartEvent added in v1.2.45

func (s TestkubeAPI) SendTelemetryStartEvent(ctx context.Context, ch chan struct{})

SendTelemetryStartEvent sends anonymous start event to telemetry trackers

func (TestkubeAPI) StartTelemetryHeartbeats added in v1.2.47

func (s TestkubeAPI) StartTelemetryHeartbeats(ctx context.Context, ch chan struct{})

func (TestkubeAPI) TestMetricsHandler added in v1.4.5

func (s TestkubeAPI) TestMetricsHandler() fiber.Handler

ListTestsHandler is a method for getting list of all available tests

func (TestkubeAPI) TestSuiteMetricsHandler added in v1.4.5

func (s TestkubeAPI) TestSuiteMetricsHandler() fiber.Handler

TestSuiteMetricsHandler returns basic metrics for given testsuite

func (TestkubeAPI) UpdateConfigsHandler added in v1.5.15

func (s TestkubeAPI) UpdateConfigsHandler() fiber.Handler

UpdateConfigsHandler update configuration handler

func (TestkubeAPI) UpdateExecutorHandler added in v1.6.12

func (s TestkubeAPI) UpdateExecutorHandler() fiber.Handler

func (TestkubeAPI) UpdateTemplateHandler added in v1.15.0

func (s TestkubeAPI) UpdateTemplateHandler() fiber.Handler

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) UpdateTestSourceHandler added in v1.5.29

func (s TestkubeAPI) UpdateTestSourceHandler() fiber.Handler

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) UpdateTestTriggerHandler added in v1.5.33

func (s *TestkubeAPI) UpdateTestTriggerHandler() fiber.Handler

UpdateTestTriggerHandler is a handler for updates an existing TestTrigger CRD based on TestTrigger content

func (TestkubeAPI) UpdateWebhookHandler added in v1.14.0

func (s TestkubeAPI) UpdateWebhookHandler() fiber.Handler

func (TestkubeAPI) UploadFiles added in v1.6.38

func (s TestkubeAPI) UploadFiles() fiber.Handler

UploadFiles uploads files into the object store and uses them during execution

func (TestkubeAPI) ValidateRepositoryHandler added in v1.9.5

func (s TestkubeAPI) ValidateRepositoryHandler() fiber.Handler

func (*TestkubeAPI) WithFeatureFlags added in v1.16.17

func (s *TestkubeAPI) WithFeatureFlags(ff featureflags.FeatureFlags) *TestkubeAPI

Jump to

Keyboard shortcuts

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