Documentation ¶
Index ¶
- Constants
- type CloudRepository
- func (r *CloudRepository) Count(ctx context.Context, filter testresult.Filter) (int64, error)
- func (r *CloudRepository) DeleteAll(ctx context.Context) error
- func (r *CloudRepository) DeleteByTestSuite(ctx context.Context, testSuiteName string) error
- func (r *CloudRepository) DeleteByTestSuites(ctx context.Context, testSuiteNames []string) error
- func (r *CloudRepository) EndExecution(ctx context.Context, execution testkube.TestSuiteExecution) error
- func (r *CloudRepository) Get(ctx context.Context, id string) (testkube.TestSuiteExecution, error)
- func (r *CloudRepository) GetByNameAndTestSuite(ctx context.Context, name, testSuiteName string) (testkube.TestSuiteExecution, error)
- func (r *CloudRepository) GetExecutions(ctx context.Context, filter testresult.Filter) ([]testkube.TestSuiteExecution, error)
- func (r *CloudRepository) GetExecutionsTotals(ctx context.Context, filters ...testresult.Filter) (totals testkube.ExecutionsTotals, err error)
- func (r *CloudRepository) GetLatestByTestSuite(ctx context.Context, testSuiteName string) (*testkube.TestSuiteExecution, error)
- func (r *CloudRepository) GetLatestByTestSuites(ctx context.Context, testSuiteNames []string) ([]testkube.TestSuiteExecution, error)
- func (r *CloudRepository) GetTestSuiteMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)
- func (r *CloudRepository) Insert(ctx context.Context, result testkube.TestSuiteExecution) error
- func (r *CloudRepository) StartExecution(ctx context.Context, id string, startTime time.Time) error
- func (r *CloudRepository) Update(ctx context.Context, result testkube.TestSuiteExecution) error
- type DeleteAllTestResultsRequest
- type DeleteAllTestResultsResponse
- type DeleteByTestSuiteRequest
- type DeleteByTestSuiteResponse
- type DeleteByTestSuitesRequest
- type DeleteByTestSuitesResponse
- type EndExecutionRequest
- type EndExecutionResponse
- type GetByNameAndTestSuiteRequest
- type GetByNameAndTestSuiteResponse
- type GetExecutionsRequest
- type GetExecutionsResponse
- type GetExecutionsTotalsRequest
- type GetExecutionsTotalsResponse
- type GetLatestByTestSuiteRequest
- type GetLatestByTestSuiteResponse
- type GetLatestByTestSuitesRequest
- type GetLatestByTestSuitesResponse
- type GetRequest
- type GetResponse
- type GetTestSuiteMetricsRequest
- type GetTestSuiteMetricsResponse
- type InsertRequest
- type InsertResponse
- type StartExecutionRequest
- type StartExecutionResponse
- type UpdateRequest
- type UpdateResponse
Constants ¶
View Source
const ( CmdTestResultGet executor.Command = "test_result_get" CmdTestResultGetByNameAndTestSuite executor.Command = "test_result_get_by_name_and_test" CmdTestResultGetLatestByTestSuite executor.Command = "test_result_get_latest_by_test_suite" CmdTestResultGetLatestByTestSuites executor.Command = "test_result_get_latest_by_test_suites" CmdTestResultGetExecutionsTotals executor.Command = "test_result_get_executions_totals" CmdTestResultGetExecutions executor.Command = "test_result_get_executions" CmdTestResultInsert executor.Command = "test_result_insert" CmdTestResultUpdate executor.Command = "test_result_update" CmdTestResultStartExecution executor.Command = "test_result_start_execution" CmdTestResultEndExecution executor.Command = "test_result_end_execution" CmdTestResultDeleteByTestSuite executor.Command = "test_result_delete_by_test_suite" CmdTestResultDeleteAll executor.Command = "test_result_delete_all" CmdTestResultDeleteByTestSuites executor.Command = "test_result_delete_by_test_suites" CmdTestResultGetTestSuiteMetrics executor.Command = "test_result_get_test_suite_metrics" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CloudRepository ¶
type CloudRepository struct {
// contains filtered or unexported fields
}
func NewCloudRepository ¶
func NewCloudRepository(client cloud.TestKubeCloudAPIClient, grpcConn *grpc.ClientConn, apiKey string) *CloudRepository
func (*CloudRepository) Count ¶ added in v1.16.28
func (r *CloudRepository) Count(ctx context.Context, filter testresult.Filter) (int64, 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) EndExecution ¶
func (r *CloudRepository) EndExecution(ctx context.Context, execution testkube.TestSuiteExecution) error
func (*CloudRepository) Get ¶
func (r *CloudRepository) Get(ctx context.Context, id string) (testkube.TestSuiteExecution, error)
func (*CloudRepository) GetByNameAndTestSuite ¶
func (r *CloudRepository) GetByNameAndTestSuite(ctx context.Context, name, testSuiteName string) (testkube.TestSuiteExecution, error)
func (*CloudRepository) GetExecutions ¶
func (r *CloudRepository) GetExecutions(ctx context.Context, filter testresult.Filter) ([]testkube.TestSuiteExecution, error)
func (*CloudRepository) GetExecutionsTotals ¶
func (r *CloudRepository) GetExecutionsTotals(ctx context.Context, filters ...testresult.Filter) (totals testkube.ExecutionsTotals, err error)
func (*CloudRepository) GetLatestByTestSuite ¶
func (r *CloudRepository) GetLatestByTestSuite(ctx context.Context, testSuiteName string) (*testkube.TestSuiteExecution, error)
TODO: When it will be implemented, replace with a new Cloud command, to avoid 2 calls with 2 sort fields
func (*CloudRepository) GetLatestByTestSuites ¶
func (r *CloudRepository) GetLatestByTestSuites(ctx context.Context, testSuiteNames []string) ([]testkube.TestSuiteExecution, error)
TODO: When it will be implemented, replace with a new Cloud command, to avoid 2 calls with 2 sort fields
func (*CloudRepository) GetTestSuiteMetrics ¶
func (r *CloudRepository) GetTestSuiteMetrics(ctx context.Context, name string, limit, last int) (testkube.ExecutionsMetrics, error)
func (*CloudRepository) Insert ¶
func (r *CloudRepository) Insert(ctx context.Context, result testkube.TestSuiteExecution) error
func (*CloudRepository) StartExecution ¶
func (*CloudRepository) Update ¶
func (r *CloudRepository) Update(ctx context.Context, result testkube.TestSuiteExecution) error
type DeleteAllTestResultsRequest ¶
type DeleteAllTestResultsRequest struct{}
type DeleteAllTestResultsResponse ¶
type DeleteAllTestResultsResponse 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 EndExecutionRequest ¶
type EndExecutionRequest struct {
Execution testkube.TestSuiteExecution `json:"execution"`
}
type EndExecutionResponse ¶
type EndExecutionResponse struct{}
type GetByNameAndTestSuiteResponse ¶
type GetByNameAndTestSuiteResponse struct {
TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}
type GetExecutionsRequest ¶
type GetExecutionsRequest struct {
Filter *testresult.FilterImpl `json:"filter"`
}
type GetExecutionsResponse ¶
type GetExecutionsResponse struct {
TestSuiteExecutions []testkube.TestSuiteExecution `json:"testSuiteExecutions"`
}
type GetExecutionsTotalsRequest ¶
type GetExecutionsTotalsRequest struct {
Filter []*testresult.FilterImpl `json:"filter"`
}
type GetExecutionsTotalsResponse ¶
type GetExecutionsTotalsResponse struct {
ExecutionsTotals testkube.ExecutionsTotals `json:"executionsTotals"`
}
type GetLatestByTestSuiteResponse ¶
type GetLatestByTestSuiteResponse struct {
TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}
type GetLatestByTestSuitesResponse ¶
type GetLatestByTestSuitesResponse struct {
TestSuiteExecutions []testkube.TestSuiteExecution `json:"testSuiteExecutions"`
}
type GetRequest ¶
type GetRequest struct {
ID string `json:"id"`
}
type GetResponse ¶
type GetResponse struct {
TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}
type GetTestSuiteMetricsResponse ¶
type GetTestSuiteMetricsResponse struct {
Metrics testkube.ExecutionsMetrics `json:"metrics"`
}
type InsertRequest ¶
type InsertRequest struct {
TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}
type InsertResponse ¶
type InsertResponse struct{}
type StartExecutionRequest ¶
type StartExecutionResponse ¶
type StartExecutionResponse struct { }
type UpdateRequest ¶
type UpdateRequest struct {
TestSuiteExecution testkube.TestSuiteExecution `json:"testSuiteExecution"`
}
type UpdateResponse ¶
type UpdateResponse struct{}
Click to show internal directories.
Click to hide internal directories.