data

package
v1.8.35 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CloudResultRepository

type CloudResultRepository struct {
	// contains filtered or unexported fields
}

func NewCloudResultRepository

func NewCloudResultRepository(cloudClient cloud.TestKubeCloudAPIClient, apiKey string) *CloudResultRepository

func (*CloudResultRepository) DeleteAll

func (r *CloudResultRepository) DeleteAll(ctx context.Context) error

func (*CloudResultRepository) DeleteByTest

func (r *CloudResultRepository) DeleteByTest(ctx context.Context, testName string) error

func (*CloudResultRepository) DeleteByTestSuite

func (r *CloudResultRepository) DeleteByTestSuite(ctx context.Context, testSuiteName string) error

func (*CloudResultRepository) DeleteByTestSuites

func (r *CloudResultRepository) DeleteByTestSuites(ctx context.Context, testSuiteNames []string) error

func (*CloudResultRepository) DeleteByTests

func (r *CloudResultRepository) DeleteByTests(ctx context.Context, testNames []string) error

func (*CloudResultRepository) DeleteForAllTestSuites

func (r *CloudResultRepository) DeleteForAllTestSuites(ctx context.Context) error

func (*CloudResultRepository) EndExecution

func (r *CloudResultRepository) EndExecution(ctx context.Context, execution testkube.Execution) error

func (*CloudResultRepository) Get

func (*CloudResultRepository) GetByNameAndTest

func (r *CloudResultRepository) GetByNameAndTest(ctx context.Context, name, testName string) (testkube.Execution, error)

func (*CloudResultRepository) GetExecutionTotals

func (r *CloudResultRepository) GetExecutionTotals(ctx context.Context, paging bool, filters ...result.Filter) (testkube.ExecutionsTotals, error)

func (*CloudResultRepository) GetExecutions

func (r *CloudResultRepository) GetExecutions(ctx context.Context, filter result.Filter) ([]testkube.Execution, error)

func (*CloudResultRepository) GetLabels

func (r *CloudResultRepository) GetLabels(ctx context.Context) (map[string][]string, error)

func (*CloudResultRepository) GetLatestByTest

func (r *CloudResultRepository) GetLatestByTest(ctx context.Context, testName, sortField string) (testkube.Execution, error)

func (*CloudResultRepository) GetLatestByTests

func (r *CloudResultRepository) GetLatestByTests(ctx context.Context, testNames []string, sortField string) ([]testkube.Execution, error)

func (*CloudResultRepository) GetNextExecutionNumber

func (r *CloudResultRepository) GetNextExecutionNumber(ctx context.Context, testName string) (int32, error)

func (*CloudResultRepository) GetTestMetrics

func (r *CloudResultRepository) GetTestMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)

func (*CloudResultRepository) Insert

func (*CloudResultRepository) StartExecution

func (r *CloudResultRepository) StartExecution(ctx context.Context, id string, startTime time.Time) error

func (*CloudResultRepository) Update

func (*CloudResultRepository) UpdateResult

func (r *CloudResultRepository) UpdateResult(ctx context.Context, id string, execution testkube.ExecutionResult) error

type Command

type Command string
const (
	CmdResultGetNextExecutionNumber Command = "result_get_next_execution_number"
	CmdResultGet                    Command = "result_get"
	CmdResultGetByNameAndTest       Command = "result_get_by_name_and_test"
	CmdResultGetLatestByTest        Command = "result_get_latest_by_test"
	CmdResultGetLatestByTests       Command = "result_get_latest_by_tests"
	CmdResultGetExecutions          Command = "result_get_executions"
	CmdResultGetExecutionTotals     Command = "result_get_execution_totals"
	CmdResultInsert                 Command = "result_insert"
	CmdResultUpdate                 Command = "result_update"
	CmdResultUpdateResult           Command = "result_update_result"
	CmdResultStartExecution         Command = "result_start_execution"
	CmdResultEndExecution           Command = "result_end_execution"
	CmdResultGetLabels              Command = "result_get_labels"
	CmdResultDeleteByTest           Command = "result_delete_by_test"
	CmdResultDeleteByTestSuite      Command = "result_delete_by_test_suite"
	CmdResultDeleteAll              Command = "result_delete_all"
	CmdResultDeleteByTests          Command = "result_delete_by_tests"
	CmdResultDeleteByTestSuites     Command = "result_delete_by_test_suites"
	CmdResultDeleteForAllTestSuites Command = "result_delete_for_all_test_suites"
	CmdResultGetTestMetrics         Command = "result_get_test_metrics"
)

type CommandRequest

type CommandRequest struct {
	Command Command `json:"command"`
	Payload any     `json:"payload"`
}

type DeleteAllResultRequest

type DeleteAllResultRequest struct{}

type DeleteAllResultResponse

type DeleteAllResultResponse struct{}

type DeleteByTestResultRequest

type DeleteByTestResultRequest struct {
	TestName string `json:"testName"`
}

type DeleteByTestResultResponse

type DeleteByTestResultResponse struct {
}

type DeleteByTestSuiteResultRequest

type DeleteByTestSuiteResultRequest struct {
	TestSuiteName string `json:"testSuiteName"`
}

type DeleteByTestSuiteResultResponse

type DeleteByTestSuiteResultResponse struct {
}

type DeleteByTestSuitesResultRequest

type DeleteByTestSuitesResultRequest struct {
	TestSuiteNames []string `json:"testSuiteNames"`
}

type DeleteByTestSuitesResultResponse

type DeleteByTestSuitesResultResponse struct{}

type DeleteByTestsResultRequest

type DeleteByTestsResultRequest struct {
	TestNames []string `json:"testNames"`
}

type DeleteByTestsResultResponse

type DeleteByTestsResultResponse struct{}

type DeleteForAllTestSuitesResultResponse

type DeleteForAllTestSuitesResultResponse struct {
}

type EndExecutionResultRequest

type EndExecutionResultRequest struct {
	Execution testkube.Execution `json:"execution"`
}

type EndExecutionResultResponse

type EndExecutionResultResponse struct {
}

type GetByNameAndTestResultRequest

type GetByNameAndTestResultRequest struct {
	Name     string `json:"name"`
	TestName string `json:"testName"`
}

type GetByNameAndTestResultResponse

type GetByNameAndTestResultResponse struct {
	Execution testkube.Execution `json:"execution"`
}

type GetExecutionTotalsResultRequest

type GetExecutionTotalsResultRequest struct {
	Paging bool                 `json:"paging"`
	Filter []*result.FilterImpl `json:"filter"`
}

type GetExecutionTotalsResultResponse

type GetExecutionTotalsResultResponse struct {
	Result testkube.ExecutionsTotals `json:"result"`
}

type GetExecutionsResultRequest

type GetExecutionsResultRequest struct {
	Filter *result.FilterImpl `json:"filter"`
}

type GetExecutionsResultResponse

type GetExecutionsResultResponse struct {
	Executions []testkube.Execution `json:"executions"`
}

type GetLabelsResultResponse

type GetLabelsResultResponse struct {
	Labels map[string][]string `json:"labels"`
}

type GetLatestByTestResultRequest

type GetLatestByTestResultRequest struct {
	TestName  string `json:"testName"`
	SortField string `json:"sortField"`
}

type GetLatestByTestResultResponse

type GetLatestByTestResultResponse struct {
	Execution testkube.Execution `json:"execution"`
}

type GetLatestByTestsResultRequest

type GetLatestByTestsResultRequest struct {
	TestNames []string `json:"testNames"`
	SortField string   `json:"sortField"`
}

type GetLatestByTestsResultResponse

type GetLatestByTestsResultResponse struct {
	Executions []testkube.Execution `json:"executions"`
}

type GetResultRequest

type GetResultRequest struct {
	ID string `json:"id"`
}

type GetResultResponse

type GetResultResponse struct {
	Execution testkube.Execution `json:"execution"`
}

type GetTestMetricsResultRequest

type GetTestMetricsResultRequest struct {
	Name  string `json:"name"`
	Limit int    `json:"limit"`
	Last  int    `json:"last"`
}

type GetTestMetricsResultResponse

type GetTestMetricsResultResponse struct {
	Metrics testkube.ExecutionsMetrics `json:"metrics"`
}

type InsertResultRequest

type InsertResultRequest struct {
	Result testkube.Execution `json:"result"`
}

type InsertResultResponse

type InsertResultResponse struct {
}

type NextExecutionNumberResultRequest

type NextExecutionNumberResultRequest struct {
	TestName string `json:"testName"`
}

type NextExecutionNumberResultResponse

type NextExecutionNumberResultResponse struct {
	TestNumber int32 `json:"testNumber"`
}

type StartExecutionResultRequest

type StartExecutionResultRequest struct {
	ID        string    `json:"id"`
	StartTime time.Time `json:"startTime"`
}

type StartExecutionResultResponse

type StartExecutionResultResponse struct {
}

type UpdateResultInExecutionResultRequest

type UpdateResultInExecutionResultRequest struct {
	ID        string                   `json:"id"`
	Execution testkube.ExecutionResult `json:"execution"`
}

type UpdateResultInExecutionResultResponse

type UpdateResultInExecutionResultResponse struct {
}

type UpdateResultRequest

type UpdateResultRequest struct {
	Result testkube.Execution `json:"result"`
}

type UpdateResultResponse

type UpdateResultResponse struct {
}

Jump to

Keyboard shortcuts

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