Documentation ¶
Index ¶
- Constants
- type CloudRepository
- func (r *CloudRepository) DeleteAll(ctx context.Context) error
- func (r *CloudRepository) DeleteByTest(ctx context.Context, testName string) error
- func (r *CloudRepository) DeleteByTestSuite(ctx context.Context, testSuiteName string) error
- func (r *CloudRepository) DeleteByTestSuites(ctx context.Context, testSuiteNames []string) error
- func (r *CloudRepository) DeleteByTests(ctx context.Context, testNames []string) error
- func (r *CloudRepository) DeleteForAllTestSuites(ctx context.Context) error
- func (r *CloudRepository) EndExecution(ctx context.Context, execution testkube.Execution) error
- func (r *CloudRepository) Get(ctx context.Context, id string) (testkube.Execution, error)
- func (r *CloudRepository) GetByNameAndTest(ctx context.Context, name, testName string) (testkube.Execution, error)
- func (r *CloudRepository) GetExecutionTotals(ctx context.Context, paging bool, filters ...result.Filter) (testkube.ExecutionsTotals, error)
- func (r *CloudRepository) GetExecutions(ctx context.Context, filter result.Filter) ([]testkube.Execution, error)
- func (r *CloudRepository) GetLabels(ctx context.Context) (map[string][]string, error)
- func (r *CloudRepository) GetLatestByTest(ctx context.Context, testName, sortField string) (testkube.Execution, error)
- func (r *CloudRepository) GetLatestByTests(ctx context.Context, testNames []string, sortField string) ([]testkube.Execution, error)
- func (r *CloudRepository) GetNextExecutionNumber(ctx context.Context, testName string) (int32, error)
- func (r *CloudRepository) GetTestMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)
- func (r *CloudRepository) Insert(ctx context.Context, result testkube.Execution) error
- func (r *CloudRepository) StartExecution(ctx context.Context, id string, startTime time.Time) error
- func (r *CloudRepository) Update(ctx context.Context, result testkube.Execution) error
- func (r *CloudRepository) UpdateResult(ctx context.Context, id string, execution testkube.Execution) error
- type DeleteAllRequest
- type DeleteAllResponse
- type DeleteByTestRequest
- type DeleteByTestResponse
- type DeleteByTestSuiteRequest
- type DeleteByTestSuiteResponse
- type DeleteByTestSuitesRequest
- type DeleteByTestSuitesResponse
- type DeleteByTestsRequest
- type DeleteByTestsResponse
- type DeleteForAllTestSuitesResponse
- type EndExecutionRequest
- type EndExecutionResponse
- type GetByNameAndTestRequest
- type GetByNameAndTestResponse
- type GetExecutionTotalsRequest
- type GetExecutionTotalsResponse
- type GetExecutionsRequest
- type GetExecutionsResponse
- type GetLabelsResponse
- type GetLatestByTestRequest
- type GetLatestByTestResponse
- type GetLatestByTestsRequest
- type GetLatestByTestsResponse
- type GetRequest
- type GetResponse
- type GetTestMetricsRequest
- type GetTestMetricsResponse
- type InsertRequest
- type InsertResponse
- type NextExecutionNumberRequest
- type NextExecutionNumberResponse
- type StartExecutionRequest
- type StartExecutionResponse
- type UpdateRequest
- type UpdateResponse
- type UpdateResultInExecutionRequest
- type UpdateResultInExecutionResponse
Constants ¶
View Source
const ( CmdResultGetNextExecutionNumber executor.Command = "result_get_next_execution_number" CmdResultGet executor.Command = "result_get" CmdResultGetByNameAndTest executor.Command = "result_get_by_name_and_test" CmdResultGetLatestByTest executor.Command = "result_get_latest_by_test" CmdResultGetLatestByTests executor.Command = "result_get_latest_by_tests" CmdResultGetExecutions executor.Command = "result_get_executions" CmdResultGetExecutionTotals executor.Command = "result_get_execution_totals" CmdResultInsert executor.Command = "result_insert" CmdResultUpdate executor.Command = "result_update" CmdResultUpdateResult executor.Command = "result_update_result" CmdResultStartExecution executor.Command = "result_start_execution" CmdResultEndExecution executor.Command = "result_end_execution" CmdResultGetLabels executor.Command = "result_get_labels" CmdResultDeleteByTest executor.Command = "result_delete_by_test" CmdResultDeleteByTestSuite executor.Command = "result_delete_by_test_suite" CmdResultDeleteAll executor.Command = "result_delete_all" CmdResultDeleteByTests executor.Command = "result_delete_by_tests" CmdResultDeleteByTestSuites executor.Command = "result_delete_by_test_suites" CmdResultDeleteForAllTestSuites executor.Command = "result_delete_for_all_test_suites" CmdResultGetTestMetrics executor.Command = "result_get_test_metrics" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudRepository ¶
type CloudRepository struct {
// contains filtered or unexported fields
}
func NewCloudResultRepository ¶
func NewCloudResultRepository(cloudClient cloud.TestKubeCloudAPIClient, grpcConn *grpc.ClientConn, apiKey string) *CloudRepository
func (*CloudRepository) DeleteByTest ¶
func (r *CloudRepository) DeleteByTest(ctx context.Context, testName string) error
func (*CloudRepository) DeleteByTestSuite ¶
func (r *CloudRepository) DeleteByTestSuite(ctx context.Context, testSuiteName string) error
func (*CloudRepository) DeleteByTestSuites ¶
func (r *CloudRepository) DeleteByTestSuites(ctx context.Context, testSuiteNames []string) error
func (*CloudRepository) DeleteByTests ¶
func (r *CloudRepository) DeleteByTests(ctx context.Context, testNames []string) error
func (*CloudRepository) DeleteForAllTestSuites ¶
func (r *CloudRepository) DeleteForAllTestSuites(ctx context.Context) error
func (*CloudRepository) EndExecution ¶
func (*CloudRepository) GetByNameAndTest ¶
func (*CloudRepository) GetExecutionTotals ¶
func (r *CloudRepository) GetExecutionTotals(ctx context.Context, paging bool, filters ...result.Filter) (testkube.ExecutionsTotals, error)
func (*CloudRepository) GetExecutions ¶
func (*CloudRepository) GetLatestByTest ¶
func (*CloudRepository) GetLatestByTests ¶
func (*CloudRepository) GetNextExecutionNumber ¶
func (*CloudRepository) GetTestMetrics ¶
func (r *CloudRepository) GetTestMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)
func (*CloudRepository) StartExecution ¶
func (*CloudRepository) UpdateResult ¶
type DeleteAllRequest ¶
type DeleteAllRequest struct{}
type DeleteAllResponse ¶
type DeleteAllResponse struct{}
type DeleteByTestRequest ¶
type DeleteByTestRequest struct {
TestName string `json:"testName"`
}
type DeleteByTestResponse ¶
type DeleteByTestResponse struct { }
type DeleteByTestSuiteRequest ¶
type DeleteByTestSuiteRequest struct {
TestSuiteName string `json:"testSuiteName"`
}
type DeleteByTestSuiteResponse ¶
type DeleteByTestSuiteResponse struct { }
type DeleteByTestSuitesRequest ¶
type DeleteByTestSuitesRequest struct {
TestSuiteNames []string `json:"testSuiteNames"`
}
type DeleteByTestSuitesResponse ¶
type DeleteByTestSuitesResponse struct{}
type DeleteByTestsRequest ¶
type DeleteByTestsRequest struct {
TestNames []string `json:"testNames"`
}
type DeleteByTestsResponse ¶
type DeleteByTestsResponse struct{}
type DeleteForAllTestSuitesResponse ¶
type DeleteForAllTestSuitesResponse struct { }
type EndExecutionRequest ¶
type EndExecutionResponse ¶
type EndExecutionResponse struct { }
type GetByNameAndTestRequest ¶
type GetExecutionTotalsRequest ¶
type GetExecutionTotalsRequest struct { Paging bool `json:"paging"` Filter []*result.FilterImpl `json:"filter"` }
type GetExecutionTotalsResponse ¶
type GetExecutionTotalsResponse struct {
Result testkube.ExecutionsTotals `json:"result"`
}
type GetExecutionsRequest ¶
type GetExecutionsRequest struct {
Filter *result.FilterImpl `json:"filter"`
}
type GetExecutionsResponse ¶
type GetLabelsResponse ¶
type GetLatestByTestRequest ¶
type GetLatestByTestResponse ¶
type GetLatestByTestsRequest ¶
type GetRequest ¶
type GetRequest struct {
ID string `json:"id"`
}
type GetResponse ¶
type GetTestMetricsRequest ¶
type GetTestMetricsResponse ¶
type GetTestMetricsResponse struct {
Metrics testkube.ExecutionsMetrics `json:"metrics"`
}
type InsertRequest ¶
type InsertResponse ¶
type InsertResponse struct { }
type NextExecutionNumberRequest ¶
type NextExecutionNumberRequest struct {
TestName string `json:"testName"`
}
type NextExecutionNumberResponse ¶
type NextExecutionNumberResponse struct {
TestNumber int32 `json:"testNumber"`
}
type StartExecutionRequest ¶
type StartExecutionResponse ¶
type StartExecutionResponse struct { }
type UpdateRequest ¶
type UpdateResponse ¶
type UpdateResponse struct { }
type UpdateResultInExecutionResponse ¶
type UpdateResultInExecutionResponse struct { }
Click to show internal directories.
Click to hide internal directories.