result

package
v1.12.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) DeleteAll

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

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 (r *CloudRepository) EndExecution(ctx context.Context, execution testkube.Execution) error

func (*CloudRepository) Get

func (*CloudRepository) GetByNameAndTest

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

func (*CloudRepository) GetExecutionTotals

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

func (*CloudRepository) GetExecutions

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

func (*CloudRepository) GetLabels

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

func (*CloudRepository) GetLatestByTest

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

func (*CloudRepository) GetLatestByTests

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

func (*CloudRepository) GetNextExecutionNumber

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

func (*CloudRepository) GetTestMetrics

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

func (*CloudRepository) Insert

func (r *CloudRepository) Insert(ctx context.Context, result testkube.Execution) error

func (*CloudRepository) StartExecution

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

func (*CloudRepository) Update

func (r *CloudRepository) Update(ctx context.Context, result testkube.Execution) error

func (*CloudRepository) UpdateResult

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

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 EndExecutionRequest struct {
	Execution testkube.Execution `json:"execution"`
}

type EndExecutionResponse

type EndExecutionResponse struct {
}

type GetByNameAndTestRequest

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

type GetByNameAndTestResponse

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

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 GetExecutionsResponse struct {
	Executions []testkube.Execution `json:"executions"`
}

type GetLabelsResponse

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

type GetLatestByTestRequest

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

type GetLatestByTestResponse

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

type GetLatestByTestsRequest

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

type GetLatestByTestsResponse

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

type GetRequest

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

type GetResponse

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

type GetTestMetricsRequest

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

type GetTestMetricsResponse

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

type InsertRequest

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

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 StartExecutionRequest struct {
	ID        string    `json:"id"`
	StartTime time.Time `json:"startTime"`
}

type StartExecutionResponse

type StartExecutionResponse struct {
}

type UpdateRequest

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

type UpdateResponse

type UpdateResponse struct {
}

type UpdateResultInExecutionRequest

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

type UpdateResultInExecutionResponse

type UpdateResultInExecutionResponse struct {
}

Jump to

Keyboard shortcuts

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