Documentation ¶
Index ¶
- type CloudResultRepository
- func (r *CloudResultRepository) DeleteAll(ctx context.Context) error
- func (r *CloudResultRepository) DeleteByTest(ctx context.Context, testName string) error
- func (r *CloudResultRepository) DeleteByTestSuite(ctx context.Context, testSuiteName string) error
- func (r *CloudResultRepository) DeleteByTestSuites(ctx context.Context, testSuiteNames []string) error
- func (r *CloudResultRepository) DeleteByTests(ctx context.Context, testNames []string) error
- func (r *CloudResultRepository) DeleteForAllTestSuites(ctx context.Context) error
- func (r *CloudResultRepository) EndExecution(ctx context.Context, execution testkube.Execution) error
- func (r *CloudResultRepository) Get(ctx context.Context, id string) (testkube.Execution, error)
- func (r *CloudResultRepository) GetByNameAndTest(ctx context.Context, name, testName string) (testkube.Execution, error)
- func (r *CloudResultRepository) GetExecutionTotals(ctx context.Context, paging bool, filters ...result.Filter) (testkube.ExecutionsTotals, error)
- func (r *CloudResultRepository) GetExecutions(ctx context.Context, filter result.Filter) ([]testkube.Execution, error)
- func (r *CloudResultRepository) GetLabels(ctx context.Context) (map[string][]string, error)
- func (r *CloudResultRepository) GetLatestByTest(ctx context.Context, testName, sortField string) (testkube.Execution, error)
- func (r *CloudResultRepository) GetLatestByTests(ctx context.Context, testNames []string, sortField string) ([]testkube.Execution, error)
- func (r *CloudResultRepository) GetNextExecutionNumber(ctx context.Context, testName string) (int32, error)
- func (r *CloudResultRepository) GetTestMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)
- func (r *CloudResultRepository) Insert(ctx context.Context, result testkube.Execution) error
- func (r *CloudResultRepository) StartExecution(ctx context.Context, id string, startTime time.Time) error
- func (r *CloudResultRepository) Update(ctx context.Context, result testkube.Execution) error
- func (r *CloudResultRepository) UpdateResult(ctx context.Context, id string, execution testkube.Execution) error
- type Command
- type DeleteAllResultRequest
- type DeleteAllResultResponse
- type DeleteByTestResultRequest
- type DeleteByTestResultResponse
- type DeleteByTestSuiteResultRequest
- type DeleteByTestSuiteResultResponse
- type DeleteByTestSuitesResultRequest
- type DeleteByTestSuitesResultResponse
- type DeleteByTestsResultRequest
- type DeleteByTestsResultResponse
- type DeleteForAllTestSuitesResultResponse
- type EndExecutionResultRequest
- type EndExecutionResultResponse
- type GetByNameAndTestResultRequest
- type GetByNameAndTestResultResponse
- type GetExecutionTotalsResultRequest
- type GetExecutionTotalsResultResponse
- type GetExecutionsResultRequest
- type GetExecutionsResultResponse
- type GetLabelsResultResponse
- type GetLatestByTestResultRequest
- type GetLatestByTestResultResponse
- type GetLatestByTestsResultRequest
- type GetLatestByTestsResultResponse
- type GetResultRequest
- type GetResultResponse
- type GetTestMetricsResultRequest
- type GetTestMetricsResultResponse
- type InsertResultRequest
- type InsertResultResponse
- type NextExecutionNumberResultRequest
- type NextExecutionNumberResultResponse
- type StartExecutionResultRequest
- type StartExecutionResultResponse
- type UpdateResultInExecutionResultRequest
- type UpdateResultInExecutionResultResponse
- type UpdateResultRequest
- type UpdateResultResponse
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 (*CloudResultRepository) GetByNameAndTest ¶
func (*CloudResultRepository) GetExecutionTotals ¶
func (r *CloudResultRepository) GetExecutionTotals(ctx context.Context, paging bool, filters ...result.Filter) (testkube.ExecutionsTotals, error)
func (*CloudResultRepository) GetExecutions ¶
func (*CloudResultRepository) GetLatestByTest ¶
func (*CloudResultRepository) GetLatestByTests ¶
func (*CloudResultRepository) GetNextExecutionNumber ¶
func (*CloudResultRepository) GetTestMetrics ¶
func (r *CloudResultRepository) GetTestMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)
func (*CloudResultRepository) StartExecution ¶
func (*CloudResultRepository) UpdateResult ¶
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 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 EndExecutionResultResponse ¶
type EndExecutionResultResponse struct { }
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 GetLabelsResultResponse ¶
type GetResultRequest ¶
type GetResultRequest struct {
ID string `json:"id"`
}
type GetResultResponse ¶
type GetTestMetricsResultResponse ¶
type GetTestMetricsResultResponse struct {
Metrics testkube.ExecutionsMetrics `json:"metrics"`
}
type InsertResultRequest ¶
type InsertResultResponse ¶
type InsertResultResponse struct { }
type NextExecutionNumberResultRequest ¶
type NextExecutionNumberResultRequest struct {
TestName string `json:"testName"`
}
type NextExecutionNumberResultResponse ¶
type NextExecutionNumberResultResponse struct {
TestNumber int32 `json:"testNumber"`
}
type StartExecutionResultResponse ¶
type StartExecutionResultResponse struct { }
type UpdateResultInExecutionResultResponse ¶
type UpdateResultInExecutionResultResponse struct { }
type UpdateResultRequest ¶
type UpdateResultResponse ¶
type UpdateResultResponse struct { }
Click to show internal directories.
Click to hide internal directories.