Service is an implementation of the Clouditor Evaluation service
| 86 | |
| 87 | // Service is an implementation of the Clouditor Evaluation service |
| 88 | type Service struct { |
| 89 | evaluation.UnimplementedEvaluationServer |
| 90 | |
| 91 | orchestrator *api.RPCConnection[orchestrator.OrchestratorClient] |
| 92 | |
| 93 | scheduler *gocron.Scheduler |
| 94 | |
| 95 | // authz defines our authorization strategy, e.g., which user can access which certification target and associated |
| 96 | // resources, such as evaluation results. |
| 97 | authz service.AuthorizationStrategy |
| 98 | |
| 99 | storage persistence.Storage |
| 100 | |
| 101 | // controls stores the catalog controls so that they do not always have to be retrieved from Orchestrators getControl endpoint |
| 102 | // map[catalog_id][category_name-control_id]*orchestrator.Control |
| 103 | catalogControls map[string]map[string]*orchestrator.Control |
| 104 | } |
| 105 | |
| 106 | func init() { |
| 107 | log = logrus.WithField("component", "evaluation") |
nothing calls this directly
no outgoing calls
no test coverage detected