Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( MockEvaluationResult1 = &evaluation.EvaluationResult{ Id: testdata.MockEvaluationResult1ID, Timestamp: timestamppb.New(time.Unix(5, 0)), CloudServiceId: testdata.MockCloudServiceID1, ControlCategoryName: testdata.MockCategoryName, ControlCatalogId: testdata.MockCatalogID, Status: evaluation.EvaluationStatus_EVALUATION_STATUS_NOT_COMPLIANT, ControlId: testdata.MockControlID1, FailingAssessmentResultIds: []string{}, } MockEvaluationResult2 = &evaluation.EvaluationResult{ Id: testdata.MockEvaluationResult2ID, Timestamp: timestamppb.New(time.Unix(3, 0)), CloudServiceId: testdata.MockCloudServiceID1, ControlCategoryName: testdata.MockCategoryName, ControlCatalogId: testdata.MockCatalogID, Status: evaluation.EvaluationStatus_EVALUATION_STATUS_COMPLIANT, ControlId: testdata.MockSubControlID11, ParentControlId: util.Ref(testdata.MockControlID1), FailingAssessmentResultIds: []string{}, } MockEvaluationResult22 = &evaluation.EvaluationResult{ Id: testdata.MockEvaluationResult9ID, Timestamp: timestamppb.New(time.Unix(5, 0)), CloudServiceId: testdata.MockCloudServiceID1, ControlCategoryName: testdata.MockCategoryName, ControlCatalogId: testdata.MockCatalogID, Status: evaluation.EvaluationStatus_EVALUATION_STATUS_COMPLIANT, ControlId: testdata.MockSubControlID11, ParentControlId: util.Ref(testdata.MockControlID1), FailingAssessmentResultIds: []string{}, } MockEvaluationResult3 = &evaluation.EvaluationResult{ Id: testdata.MockEvaluationResult3ID, Timestamp: timestamppb.New(time.Unix(1, 0)), CloudServiceId: testdata.MockCloudServiceID1, ControlCategoryName: testdata.MockCategoryName, ControlCatalogId: testdata.MockCatalogID, Status: evaluation.EvaluationStatus_EVALUATION_STATUS_NOT_COMPLIANT, ControlId: testdata.MockSubControlID12, ParentControlId: util.Ref(testdata.MockControlID1), FailingAssessmentResultIds: []string{}, } MockEvaluationResult4 = &evaluation.EvaluationResult{ Id: testdata.MockEvaluationResult4ID, Timestamp: timestamppb.New(time.Unix(1, 0)), CloudServiceId: testdata.MockCloudServiceID1, ControlCategoryName: testdata.MockCategoryName, ControlCatalogId: testdata.MockCatalogID, Status: evaluation.EvaluationStatus_EVALUATION_STATUS_COMPLIANT, ControlId: testdata.MockControlID2, FailingAssessmentResultIds: []string{}, } MockEvaluationResult5 = &evaluation.EvaluationResult{ Id: testdata.MockEvaluationResult5ID, Timestamp: timestamppb.New(time.Unix(3, 0)), CloudServiceId: testdata.MockCloudServiceID1, ControlCategoryName: testdata.MockCategoryName, ControlCatalogId: testdata.MockCatalogID, Status: evaluation.EvaluationStatus_EVALUATION_STATUS_COMPLIANT, ControlId: testdata.MockSubControlID21, ParentControlId: util.Ref(testdata.MockControlID2), FailingAssessmentResultIds: []string{}, } MockEvaluationResult6 = &evaluation.EvaluationResult{ Id: testdata.MockEvaluationResult6ID, Timestamp: timestamppb.New(time.Unix(3, 0)), CloudServiceId: testdata.MockCloudServiceID1, ControlCategoryName: testdata.MockCategoryName, ControlCatalogId: testdata.MockCatalogID, Status: evaluation.EvaluationStatus_EVALUATION_STATUS_COMPLIANT, ControlId: testdata.MockSubControlID22, ParentControlId: util.Ref(testdata.MockControlID2), FailingAssessmentResultIds: []string{}, } MockEvaluationResults = []*evaluation.EvaluationResult{ MockEvaluationResult1, MockEvaluationResult2, MockEvaluationResult22, MockEvaluationResult3, MockEvaluationResult4, MockEvaluationResult5, MockEvaluationResult6, } MockEvaluationResultsWithoutResultsForParentControl = []*evaluation.EvaluationResult{ MockEvaluationResult2, MockEvaluationResult22, MockEvaluationResult3, MockEvaluationResult5, MockEvaluationResult6, } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.