Documentation ¶
Index ¶
- func MapCRDVariables(in map[string]testkube.Variable) map[string]testsv3.Variable
- func MapContentToSpecContent(content *testkube.TestContent) (specContent *testsv3.TestContent)
- func MapDepratcatedParams(in map[string]testkube.Variable) map[string]string
- func MapEnvReferences(envs []testsv3.EnvReference) []testkube.EnvReference
- func MapExecutionRequestFromSpec(specExecutionRequest *testsv3.ExecutionRequest) *testkube.ExecutionRequest
- func MapExecutionRequestToSpecExecutionRequest(executionRequest *testkube.ExecutionRequest) *testsv3.ExecutionRequest
- func MapExecutionToTestStatus(execution *testkube.Execution) (specStatus testsv3.TestStatus)
- func MapExecutionUpdateRequestToSpecExecutionRequest(executionRequest *testkube.ExecutionUpdateRequest, ...) *testsv3.ExecutionRequest
- func MapImagePullSecrets(lor []v1.LocalObjectReference) []testkube.LocalObjectReference
- func MapSpecContentToUpdateContent(testContent *testsv3.TestContent) (content *testkube.TestContentUpdate)
- func MapSpecExecutionRequestToExecutionUpdateRequest(request *testsv3.ExecutionRequest) (executionRequest *testkube.ExecutionUpdateRequest)
- func MapSpecToUpdate(test *testsv3.Test) (request testkube.TestUpdateRequest)
- func MapStatusFromSpec(specStatus testsv3.TestStatus) *testkube.TestStatus
- func MapStatusToSpec(testStatus *testkube.TestStatus) (specStatus testsv3.TestStatus)
- func MapTestArrayKubeToAPI(crTests []testsv3.Test) (tests []testkube.Test)
- func MapTestCRToAPI(crTest testsv3.Test) (test testkube.Test)
- func MapTestContentFromSpec(specContent *testsv3.TestContent) *testkube.TestContent
- func MapTestListKubeToAPI(crTests testsv3.TestList) (tests []testkube.Test)
- func MapTestSuiteExecutionStatusToExecutionStatus(testSuiteStatus *testkube.TestSuiteExecutionStatus) (testStatus *testkube.ExecutionStatus)
- func MapUpdateContentToSpecContent(content *testkube.TestContentUpdate, testContent *testsv3.TestContent) *testsv3.TestContent
- func MapUpdateToSpec(request testkube.TestUpdateRequest, test *testsv3.Test) *testsv3.Test
- func MapUpsertToSpec(request testkube.TestUpsertRequest) *testsv3.Test
- func MergeVariablesAndParams(variables map[string]testsv3.Variable, params map[string]string) map[string]testkube.Variable
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MapCRDVariables ¶ added in v1.1.10
MapCRDVariables maps variables between API and operator CRDs
func MapContentToSpecContent ¶ added in v0.9.5
func MapContentToSpecContent(content *testkube.TestContent) (specContent *testsv3.TestContent)
MapContentToSpecContent maps TestContent OpenAPI spec to TestContent CRD spec
func MapDepratcatedParams ¶ added in v1.1.10
@Depracated MapDepratcatedParams maps old params to new variables data structure
func MapEnvReferences ¶ added in v1.9.15
func MapEnvReferences(envs []testsv3.EnvReference) []testkube.EnvReference
MapEnvReferences maps CRD to OpenAPI spec EnvReference
func MapExecutionRequestFromSpec ¶ added in v1.4.15
func MapExecutionRequestFromSpec(specExecutionRequest *testsv3.ExecutionRequest) *testkube.ExecutionRequest
MapExecutionRequestFromSpec maps CRD to OpenAPI spec ExecutionREquest
func MapExecutionRequestToSpecExecutionRequest ¶ added in v1.4.15
func MapExecutionRequestToSpecExecutionRequest(executionRequest *testkube.ExecutionRequest) *testsv3.ExecutionRequest
MapExecutionRequestToSpecExecutionRequest maps ExecutionRequest OpenAPI spec to ExecutionRequest CRD spec
func MapExecutionToTestStatus ¶ added in v1.8.17
func MapExecutionToTestStatus(execution *testkube.Execution) (specStatus testsv3.TestStatus)
MapExecutionToTestStatus maps OpenAPI Execution to TestStatus CRD
func MapExecutionUpdateRequestToSpecExecutionRequest ¶ added in v1.7.29
func MapExecutionUpdateRequestToSpecExecutionRequest(executionRequest *testkube.ExecutionUpdateRequest, request *testsv3.ExecutionRequest) *testsv3.ExecutionRequest
MapExecutionUpdateRequestToSpecExecutionRequest maps ExecutionUpdateRequest OpenAPI spec to ExecutionRequest CRD spec
func MapImagePullSecrets ¶ added in v1.5.35
func MapImagePullSecrets(lor []v1.LocalObjectReference) []testkube.LocalObjectReference
MapImagePullSecrets maps Kubernetes spec to testkube model
func MapSpecContentToUpdateContent ¶ added in v1.13.0
func MapSpecContentToUpdateContent(testContent *testsv3.TestContent) (content *testkube.TestContentUpdate)
MapSpecContentToUpdateContent maps TestContent CRD spec to TestUpdateContent OpenAPI spec
func MapSpecExecutionRequestToExecutionUpdateRequest ¶ added in v1.13.0
func MapSpecExecutionRequestToExecutionUpdateRequest( request *testsv3.ExecutionRequest) (executionRequest *testkube.ExecutionUpdateRequest)
MapSpecExecutionRequestToExecutionUpdateRequest maps ExecutionRequest CRD spec to ExecutionUpdateRequest OpenAPI spec to
func MapSpecToUpdate ¶ added in v1.13.0
func MapSpecToUpdate(test *testsv3.Test) (request testkube.TestUpdateRequest)
MapSpecToUpdate maps Test CRD spec to TestUpdateRequest
func MapStatusFromSpec ¶ added in v1.8.17
func MapStatusFromSpec(specStatus testsv3.TestStatus) *testkube.TestStatus
MapStatusFromSpec maps CRD to OpenAPI spec TestStatus
func MapStatusToSpec ¶ added in v1.8.17
func MapStatusToSpec(testStatus *testkube.TestStatus) (specStatus testsv3.TestStatus)
MapStatusToSpec maps OpenAPI spec TestStatus to CRD
func MapTestArrayKubeToAPI ¶ added in v1.3.45
MapTestArrayKubeToAPI maps CRD array data to OpenAPI spec tests list
func MapTestCRToAPI ¶ added in v0.9.5
MapTestCRToAPI maps CRD to OpenAPI spec test
func MapTestContentFromSpec ¶ added in v0.9.5
func MapTestContentFromSpec(specContent *testsv3.TestContent) *testkube.TestContent
MapTestContentFromSpec maps CRD to OpenAPI spec TestContent
func MapTestListKubeToAPI ¶
MapTestListKubeToAPI maps CRD list data to OpenAPI spec tests list
func MapTestSuiteExecutionStatusToExecutionStatus ¶ added in v1.13.0
func MapTestSuiteExecutionStatusToExecutionStatus(testSuiteStatus *testkube.TestSuiteExecutionStatus) ( testStatus *testkube.ExecutionStatus)
MapTestSuiteExecutionStatusToExecutionStatus maps test suite execution status to execution status
func MapUpdateContentToSpecContent ¶ added in v1.7.29
func MapUpdateContentToSpecContent(content *testkube.TestContentUpdate, testContent *testsv3.TestContent) *testsv3.TestContent
MapUpdateContentToSpecContent maps TestUpdateContent OpenAPI spec to TestContent CRD spec
func MapUpdateToSpec ¶ added in v1.7.29
MapUpdateToSpec maps TestUpdateRequest to Test CRD spec
func MapUpsertToSpec ¶ added in v1.7.29
func MapUpsertToSpec(request testkube.TestUpsertRequest) *testsv3.Test
MapUpsertToSpec maps TestUpsertRequest to Test CRD spec
Types ¶
This section is empty.