-
Notifications
You must be signed in to change notification settings - Fork 19
/
orchestrator_grpc.pb.go
1982 lines (1862 loc) · 87.4 KB
/
orchestrator_grpc.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2016-2022 Fraunhofer AISEC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// $$\ $$\ $$\ $$\
// $$ | $$ |\__| $$ |
// $$$$$$$\ $$ | $$$$$$\ $$\ $$\ $$$$$$$ |$$\ $$$$$$\ $$$$$$\ $$$$$$\
// $$ _____|$$ |$$ __$$\ $$ | $$ |$$ __$$ |$$ |\_$$ _| $$ __$$\ $$ __$$\
// $$ / $$ |$$ / $$ |$$ | $$ |$$ / $$ |$$ | $$ | $$ / $$ |$$ | \__|
// $$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$ | $$ |$$\ $$ | $$ |$$ |
// \$$$$$$\ $$ |\$$$$$ |\$$$$$ |\$$$$$$ |$$ | \$$$ |\$$$$$ |$$ |
// \_______|\__| \______/ \______/ \_______|\__| \____/ \______/ \__|
//
// This file is part of Clouditor Community Edition.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// - protoc-gen-go-grpc v1.3.0
// - protoc (unknown)
// source: api/orchestrator/orchestrator.proto
package orchestrator
import (
assessment "clouditor.io/clouditor/v2/api/assessment"
runtime "clouditor.io/clouditor/v2/api/runtime"
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
emptypb "google.golang.org/protobuf/types/known/emptypb"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7
const (
Orchestrator_RegisterAssessmentTool_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/RegisterAssessmentTool"
Orchestrator_ListAssessmentTools_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListAssessmentTools"
Orchestrator_GetAssessmentTool_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetAssessmentTool"
Orchestrator_UpdateAssessmentTool_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateAssessmentTool"
Orchestrator_DeregisterAssessmentTool_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/DeregisterAssessmentTool"
Orchestrator_StoreAssessmentResult_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/StoreAssessmentResult"
Orchestrator_StoreAssessmentResults_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/StoreAssessmentResults"
Orchestrator_GetAssessmentResult_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetAssessmentResult"
Orchestrator_ListAssessmentResults_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListAssessmentResults"
Orchestrator_CreateMetric_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/CreateMetric"
Orchestrator_UpdateMetric_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateMetric"
Orchestrator_GetMetric_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetMetric"
Orchestrator_ListMetrics_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListMetrics"
Orchestrator_RemoveMetric_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/RemoveMetric"
Orchestrator_RegisterCloudService_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/RegisterCloudService"
Orchestrator_UpdateCloudService_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateCloudService"
Orchestrator_GetCloudService_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetCloudService"
Orchestrator_ListCloudServices_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListCloudServices"
Orchestrator_RemoveCloudService_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/RemoveCloudService"
Orchestrator_GetCloudServiceStatistics_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetCloudServiceStatistics"
Orchestrator_UpdateMetricConfiguration_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateMetricConfiguration"
Orchestrator_GetMetricConfiguration_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetMetricConfiguration"
Orchestrator_ListMetricConfigurations_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListMetricConfigurations"
Orchestrator_UpdateMetricImplementation_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateMetricImplementation"
Orchestrator_GetMetricImplementation_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetMetricImplementation"
Orchestrator_SubscribeMetricChangeEvents_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/SubscribeMetricChangeEvents"
Orchestrator_CreateCertificate_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/CreateCertificate"
Orchestrator_GetCertificate_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetCertificate"
Orchestrator_ListCertificates_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListCertificates"
Orchestrator_ListPublicCertificates_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListPublicCertificates"
Orchestrator_UpdateCertificate_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateCertificate"
Orchestrator_RemoveCertificate_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/RemoveCertificate"
Orchestrator_CreateCatalog_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/CreateCatalog"
Orchestrator_ListCatalogs_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListCatalogs"
Orchestrator_GetCatalog_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetCatalog"
Orchestrator_RemoveCatalog_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/RemoveCatalog"
Orchestrator_UpdateCatalog_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateCatalog"
Orchestrator_GetCategory_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetCategory"
Orchestrator_ListControls_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListControls"
Orchestrator_GetControl_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetControl"
Orchestrator_CreateTargetOfEvaluation_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/CreateTargetOfEvaluation"
Orchestrator_GetTargetOfEvaluation_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetTargetOfEvaluation"
Orchestrator_ListTargetsOfEvaluation_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/ListTargetsOfEvaluation"
Orchestrator_UpdateTargetOfEvaluation_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/UpdateTargetOfEvaluation"
Orchestrator_RemoveTargetOfEvaluation_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/RemoveTargetOfEvaluation"
Orchestrator_GetRuntimeInfo_FullMethodName = "/clouditor.orchestrator.v1.Orchestrator/GetRuntimeInfo"
)
// OrchestratorClient is the client API for Orchestrator service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
type OrchestratorClient interface {
// Registers the passed assessment tool
RegisterAssessmentTool(ctx context.Context, in *RegisterAssessmentToolRequest, opts ...grpc.CallOption) (*AssessmentTool, error)
// Lists all assessment tools assessing evidences for the metric given by the
// passed metric id
ListAssessmentTools(ctx context.Context, in *ListAssessmentToolsRequest, opts ...grpc.CallOption) (*ListAssessmentToolsResponse, error)
// Returns assessment tool given by the passed tool id
GetAssessmentTool(ctx context.Context, in *GetAssessmentToolRequest, opts ...grpc.CallOption) (*AssessmentTool, error)
// Updates the assessment tool given by the passed id
UpdateAssessmentTool(ctx context.Context, in *UpdateAssessmentToolRequest, opts ...grpc.CallOption) (*AssessmentTool, error)
// Remove assessment tool with passed id from the list of active assessment
// tools
DeregisterAssessmentTool(ctx context.Context, in *DeregisterAssessmentToolRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Stores the assessment result provided by an assessment tool
StoreAssessmentResult(ctx context.Context, in *StoreAssessmentResultRequest, opts ...grpc.CallOption) (*StoreAssessmentResultResponse, error)
// Stores stream of assessment results provided by an assessment tool and
// returns a response stream. Part of the public API, not exposed as REST.
StoreAssessmentResults(ctx context.Context, opts ...grpc.CallOption) (Orchestrator_StoreAssessmentResultsClient, error)
// Get an assessment result by ID
GetAssessmentResult(ctx context.Context, in *GetAssessmentResultRequest, opts ...grpc.CallOption) (*assessment.AssessmentResult, error)
// List all assessment results. Part of the public API, also exposed as REST.
ListAssessmentResults(ctx context.Context, in *ListAssessmentResultsRequest, opts ...grpc.CallOption) (*ListAssessmentResultsResponse, error)
// Creates a new metric
CreateMetric(ctx context.Context, in *CreateMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error)
// Updates an existing metric
UpdateMetric(ctx context.Context, in *UpdateMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error)
// Returns the metric with the passed metric id
GetMetric(ctx context.Context, in *GetMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error)
// List all metrics provided by the metric catalog
ListMetrics(ctx context.Context, in *ListMetricsRequest, opts ...grpc.CallOption) (*ListMetricsResponse, error)
// Removes a new metric
RemoveMetric(ctx context.Context, in *RemoveMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Registers a new target cloud service
RegisterCloudService(ctx context.Context, in *RegisterCloudServiceRequest, opts ...grpc.CallOption) (*CloudService, error)
// Registers a new target cloud service
UpdateCloudService(ctx context.Context, in *UpdateCloudServiceRequest, opts ...grpc.CallOption) (*CloudService, error)
// Retrieves a target cloud service
GetCloudService(ctx context.Context, in *GetCloudServiceRequest, opts ...grpc.CallOption) (*CloudService, error)
// Lists all target cloud services
ListCloudServices(ctx context.Context, in *ListCloudServicesRequest, opts ...grpc.CallOption) (*ListCloudServicesResponse, error)
// Removes a target cloud service
RemoveCloudService(ctx context.Context, in *RemoveCloudServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Retrieves target cloud service statistics
GetCloudServiceStatistics(ctx context.Context, in *GetCloudServiceStatisticsRequest, opts ...grpc.CallOption) (*GetCloudServiceStatisticsResponse, error)
// Updates a metric configuration (target value and operator) for a specific
// service and metric ID
UpdateMetricConfiguration(ctx context.Context, in *UpdateMetricConfigurationRequest, opts ...grpc.CallOption) (*assessment.MetricConfiguration, error)
// Retrieves a metric configuration (target value and operator) for a specific
// service and metric ID.
GetMetricConfiguration(ctx context.Context, in *GetMetricConfigurationRequest, opts ...grpc.CallOption) (*assessment.MetricConfiguration, error)
// Lists all a metric configurations (target value and operator) for a
// specific service ID
ListMetricConfigurations(ctx context.Context, in *ListMetricConfigurationRequest, opts ...grpc.CallOption) (*ListMetricConfigurationResponse, error)
// Updates an existing metric implementation
UpdateMetricImplementation(ctx context.Context, in *UpdateMetricImplementationRequest, opts ...grpc.CallOption) (*assessment.MetricImplementation, error)
// Returns the metric implementation of the passed metric id
GetMetricImplementation(ctx context.Context, in *GetMetricImplementationRequest, opts ...grpc.CallOption) (*assessment.MetricImplementation, error)
SubscribeMetricChangeEvents(ctx context.Context, in *SubscribeMetricChangeEventRequest, opts ...grpc.CallOption) (Orchestrator_SubscribeMetricChangeEventsClient, error)
// Creates a new certificate
CreateCertificate(ctx context.Context, in *CreateCertificateRequest, opts ...grpc.CallOption) (*Certificate, error)
// Retrieves a certificate
GetCertificate(ctx context.Context, in *GetCertificateRequest, opts ...grpc.CallOption) (*Certificate, error)
// Lists all target certificates
ListCertificates(ctx context.Context, in *ListCertificatesRequest, opts ...grpc.CallOption) (*ListCertificatesResponse, error)
// Lists all target certificates without state history
ListPublicCertificates(ctx context.Context, in *ListPublicCertificatesRequest, opts ...grpc.CallOption) (*ListPublicCertificatesResponse, error)
// Updates an existing certificate
UpdateCertificate(ctx context.Context, in *UpdateCertificateRequest, opts ...grpc.CallOption) (*Certificate, error)
// Removes a certificate
RemoveCertificate(ctx context.Context, in *RemoveCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Creates a new security controls catalog
CreateCatalog(ctx context.Context, in *CreateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
// Lists all security controls catalogs. Each catalog includes a list of its
// categories but no additional sub-resources.
ListCatalogs(ctx context.Context, in *ListCatalogsRequest, opts ...grpc.CallOption) (*ListCatalogsResponse, error)
// Retrieves a specific catalog by it's ID. The catalog includes a list of all
// of it categories as well as the first level of controls in each category.
GetCatalog(ctx context.Context, in *GetCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
// Removes a catalog
RemoveCatalog(ctx context.Context, in *RemoveCatalogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Updates an existing certificate
UpdateCatalog(ctx context.Context, in *UpdateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error)
// Retrieves a category of a catalog specified by the catalog ID and the
// category name. It includes the first level of controls within each
// category.
GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*Category, error)
// If no additional parameters are specified, this lists all controls. If a
// catalog ID and a category name is specified, then only controls containing
// in this category are returned.
ListControls(ctx context.Context, in *ListControlsRequest, opts ...grpc.CallOption) (*ListControlsResponse, error)
// Retrieves a control specified by the catalog ID, the control's category
// name and the control ID. If present, it also includes a list of
// sub-controls if present or a list of metrics if no sub-controls but metrics
// are present.
GetControl(ctx context.Context, in *GetControlRequest, opts ...grpc.CallOption) (*Control, error)
// Creates a new Target of Evaluation
CreateTargetOfEvaluation(ctx context.Context, in *CreateTargetOfEvaluationRequest, opts ...grpc.CallOption) (*TargetOfEvaluation, error)
// Retrieves a Target of Evaluation
GetTargetOfEvaluation(ctx context.Context, in *GetTargetOfEvaluationRequest, opts ...grpc.CallOption) (*TargetOfEvaluation, error)
// Lists all Targets of Evaluation
ListTargetsOfEvaluation(ctx context.Context, in *ListTargetsOfEvaluationRequest, opts ...grpc.CallOption) (*ListTargetsOfEvaluationResponse, error)
// Updates an existing Target of Evaluation
UpdateTargetOfEvaluation(ctx context.Context, in *UpdateTargetOfEvaluationRequest, opts ...grpc.CallOption) (*TargetOfEvaluation, error)
// Removes a Target of Evaluation
RemoveTargetOfEvaluation(ctx context.Context, in *RemoveTargetOfEvaluationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
// Get Runtime Information
GetRuntimeInfo(ctx context.Context, in *runtime.GetRuntimeInfoRequest, opts ...grpc.CallOption) (*runtime.Runtime, error)
}
type orchestratorClient struct {
cc grpc.ClientConnInterface
}
func NewOrchestratorClient(cc grpc.ClientConnInterface) OrchestratorClient {
return &orchestratorClient{cc}
}
func (c *orchestratorClient) RegisterAssessmentTool(ctx context.Context, in *RegisterAssessmentToolRequest, opts ...grpc.CallOption) (*AssessmentTool, error) {
out := new(AssessmentTool)
err := c.cc.Invoke(ctx, Orchestrator_RegisterAssessmentTool_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListAssessmentTools(ctx context.Context, in *ListAssessmentToolsRequest, opts ...grpc.CallOption) (*ListAssessmentToolsResponse, error) {
out := new(ListAssessmentToolsResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListAssessmentTools_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetAssessmentTool(ctx context.Context, in *GetAssessmentToolRequest, opts ...grpc.CallOption) (*AssessmentTool, error) {
out := new(AssessmentTool)
err := c.cc.Invoke(ctx, Orchestrator_GetAssessmentTool_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateAssessmentTool(ctx context.Context, in *UpdateAssessmentToolRequest, opts ...grpc.CallOption) (*AssessmentTool, error) {
out := new(AssessmentTool)
err := c.cc.Invoke(ctx, Orchestrator_UpdateAssessmentTool_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) DeregisterAssessmentTool(ctx context.Context, in *DeregisterAssessmentToolRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, Orchestrator_DeregisterAssessmentTool_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) StoreAssessmentResult(ctx context.Context, in *StoreAssessmentResultRequest, opts ...grpc.CallOption) (*StoreAssessmentResultResponse, error) {
out := new(StoreAssessmentResultResponse)
err := c.cc.Invoke(ctx, Orchestrator_StoreAssessmentResult_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) StoreAssessmentResults(ctx context.Context, opts ...grpc.CallOption) (Orchestrator_StoreAssessmentResultsClient, error) {
stream, err := c.cc.NewStream(ctx, &Orchestrator_ServiceDesc.Streams[0], Orchestrator_StoreAssessmentResults_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &orchestratorStoreAssessmentResultsClient{stream}
return x, nil
}
type Orchestrator_StoreAssessmentResultsClient interface {
Send(*StoreAssessmentResultRequest) error
Recv() (*StoreAssessmentResultsResponse, error)
grpc.ClientStream
}
type orchestratorStoreAssessmentResultsClient struct {
grpc.ClientStream
}
func (x *orchestratorStoreAssessmentResultsClient) Send(m *StoreAssessmentResultRequest) error {
return x.ClientStream.SendMsg(m)
}
func (x *orchestratorStoreAssessmentResultsClient) Recv() (*StoreAssessmentResultsResponse, error) {
m := new(StoreAssessmentResultsResponse)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *orchestratorClient) GetAssessmentResult(ctx context.Context, in *GetAssessmentResultRequest, opts ...grpc.CallOption) (*assessment.AssessmentResult, error) {
out := new(assessment.AssessmentResult)
err := c.cc.Invoke(ctx, Orchestrator_GetAssessmentResult_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListAssessmentResults(ctx context.Context, in *ListAssessmentResultsRequest, opts ...grpc.CallOption) (*ListAssessmentResultsResponse, error) {
out := new(ListAssessmentResultsResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListAssessmentResults_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) CreateMetric(ctx context.Context, in *CreateMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error) {
out := new(assessment.Metric)
err := c.cc.Invoke(ctx, Orchestrator_CreateMetric_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateMetric(ctx context.Context, in *UpdateMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error) {
out := new(assessment.Metric)
err := c.cc.Invoke(ctx, Orchestrator_UpdateMetric_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetMetric(ctx context.Context, in *GetMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error) {
out := new(assessment.Metric)
err := c.cc.Invoke(ctx, Orchestrator_GetMetric_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListMetrics(ctx context.Context, in *ListMetricsRequest, opts ...grpc.CallOption) (*ListMetricsResponse, error) {
out := new(ListMetricsResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListMetrics_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) RemoveMetric(ctx context.Context, in *RemoveMetricRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, Orchestrator_RemoveMetric_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) RegisterCloudService(ctx context.Context, in *RegisterCloudServiceRequest, opts ...grpc.CallOption) (*CloudService, error) {
out := new(CloudService)
err := c.cc.Invoke(ctx, Orchestrator_RegisterCloudService_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateCloudService(ctx context.Context, in *UpdateCloudServiceRequest, opts ...grpc.CallOption) (*CloudService, error) {
out := new(CloudService)
err := c.cc.Invoke(ctx, Orchestrator_UpdateCloudService_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetCloudService(ctx context.Context, in *GetCloudServiceRequest, opts ...grpc.CallOption) (*CloudService, error) {
out := new(CloudService)
err := c.cc.Invoke(ctx, Orchestrator_GetCloudService_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListCloudServices(ctx context.Context, in *ListCloudServicesRequest, opts ...grpc.CallOption) (*ListCloudServicesResponse, error) {
out := new(ListCloudServicesResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListCloudServices_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) RemoveCloudService(ctx context.Context, in *RemoveCloudServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, Orchestrator_RemoveCloudService_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetCloudServiceStatistics(ctx context.Context, in *GetCloudServiceStatisticsRequest, opts ...grpc.CallOption) (*GetCloudServiceStatisticsResponse, error) {
out := new(GetCloudServiceStatisticsResponse)
err := c.cc.Invoke(ctx, Orchestrator_GetCloudServiceStatistics_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateMetricConfiguration(ctx context.Context, in *UpdateMetricConfigurationRequest, opts ...grpc.CallOption) (*assessment.MetricConfiguration, error) {
out := new(assessment.MetricConfiguration)
err := c.cc.Invoke(ctx, Orchestrator_UpdateMetricConfiguration_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetMetricConfiguration(ctx context.Context, in *GetMetricConfigurationRequest, opts ...grpc.CallOption) (*assessment.MetricConfiguration, error) {
out := new(assessment.MetricConfiguration)
err := c.cc.Invoke(ctx, Orchestrator_GetMetricConfiguration_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListMetricConfigurations(ctx context.Context, in *ListMetricConfigurationRequest, opts ...grpc.CallOption) (*ListMetricConfigurationResponse, error) {
out := new(ListMetricConfigurationResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListMetricConfigurations_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateMetricImplementation(ctx context.Context, in *UpdateMetricImplementationRequest, opts ...grpc.CallOption) (*assessment.MetricImplementation, error) {
out := new(assessment.MetricImplementation)
err := c.cc.Invoke(ctx, Orchestrator_UpdateMetricImplementation_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetMetricImplementation(ctx context.Context, in *GetMetricImplementationRequest, opts ...grpc.CallOption) (*assessment.MetricImplementation, error) {
out := new(assessment.MetricImplementation)
err := c.cc.Invoke(ctx, Orchestrator_GetMetricImplementation_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) SubscribeMetricChangeEvents(ctx context.Context, in *SubscribeMetricChangeEventRequest, opts ...grpc.CallOption) (Orchestrator_SubscribeMetricChangeEventsClient, error) {
stream, err := c.cc.NewStream(ctx, &Orchestrator_ServiceDesc.Streams[1], Orchestrator_SubscribeMetricChangeEvents_FullMethodName, opts...)
if err != nil {
return nil, err
}
x := &orchestratorSubscribeMetricChangeEventsClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type Orchestrator_SubscribeMetricChangeEventsClient interface {
Recv() (*MetricChangeEvent, error)
grpc.ClientStream
}
type orchestratorSubscribeMetricChangeEventsClient struct {
grpc.ClientStream
}
func (x *orchestratorSubscribeMetricChangeEventsClient) Recv() (*MetricChangeEvent, error) {
m := new(MetricChangeEvent)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *orchestratorClient) CreateCertificate(ctx context.Context, in *CreateCertificateRequest, opts ...grpc.CallOption) (*Certificate, error) {
out := new(Certificate)
err := c.cc.Invoke(ctx, Orchestrator_CreateCertificate_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetCertificate(ctx context.Context, in *GetCertificateRequest, opts ...grpc.CallOption) (*Certificate, error) {
out := new(Certificate)
err := c.cc.Invoke(ctx, Orchestrator_GetCertificate_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListCertificates(ctx context.Context, in *ListCertificatesRequest, opts ...grpc.CallOption) (*ListCertificatesResponse, error) {
out := new(ListCertificatesResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListCertificates_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListPublicCertificates(ctx context.Context, in *ListPublicCertificatesRequest, opts ...grpc.CallOption) (*ListPublicCertificatesResponse, error) {
out := new(ListPublicCertificatesResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListPublicCertificates_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateCertificate(ctx context.Context, in *UpdateCertificateRequest, opts ...grpc.CallOption) (*Certificate, error) {
out := new(Certificate)
err := c.cc.Invoke(ctx, Orchestrator_UpdateCertificate_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) RemoveCertificate(ctx context.Context, in *RemoveCertificateRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, Orchestrator_RemoveCertificate_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) CreateCatalog(ctx context.Context, in *CreateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error) {
out := new(Catalog)
err := c.cc.Invoke(ctx, Orchestrator_CreateCatalog_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListCatalogs(ctx context.Context, in *ListCatalogsRequest, opts ...grpc.CallOption) (*ListCatalogsResponse, error) {
out := new(ListCatalogsResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListCatalogs_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetCatalog(ctx context.Context, in *GetCatalogRequest, opts ...grpc.CallOption) (*Catalog, error) {
out := new(Catalog)
err := c.cc.Invoke(ctx, Orchestrator_GetCatalog_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) RemoveCatalog(ctx context.Context, in *RemoveCatalogRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, Orchestrator_RemoveCatalog_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateCatalog(ctx context.Context, in *UpdateCatalogRequest, opts ...grpc.CallOption) (*Catalog, error) {
out := new(Catalog)
err := c.cc.Invoke(ctx, Orchestrator_UpdateCatalog_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetCategory(ctx context.Context, in *GetCategoryRequest, opts ...grpc.CallOption) (*Category, error) {
out := new(Category)
err := c.cc.Invoke(ctx, Orchestrator_GetCategory_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListControls(ctx context.Context, in *ListControlsRequest, opts ...grpc.CallOption) (*ListControlsResponse, error) {
out := new(ListControlsResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListControls_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetControl(ctx context.Context, in *GetControlRequest, opts ...grpc.CallOption) (*Control, error) {
out := new(Control)
err := c.cc.Invoke(ctx, Orchestrator_GetControl_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) CreateTargetOfEvaluation(ctx context.Context, in *CreateTargetOfEvaluationRequest, opts ...grpc.CallOption) (*TargetOfEvaluation, error) {
out := new(TargetOfEvaluation)
err := c.cc.Invoke(ctx, Orchestrator_CreateTargetOfEvaluation_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetTargetOfEvaluation(ctx context.Context, in *GetTargetOfEvaluationRequest, opts ...grpc.CallOption) (*TargetOfEvaluation, error) {
out := new(TargetOfEvaluation)
err := c.cc.Invoke(ctx, Orchestrator_GetTargetOfEvaluation_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) ListTargetsOfEvaluation(ctx context.Context, in *ListTargetsOfEvaluationRequest, opts ...grpc.CallOption) (*ListTargetsOfEvaluationResponse, error) {
out := new(ListTargetsOfEvaluationResponse)
err := c.cc.Invoke(ctx, Orchestrator_ListTargetsOfEvaluation_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) UpdateTargetOfEvaluation(ctx context.Context, in *UpdateTargetOfEvaluationRequest, opts ...grpc.CallOption) (*TargetOfEvaluation, error) {
out := new(TargetOfEvaluation)
err := c.cc.Invoke(ctx, Orchestrator_UpdateTargetOfEvaluation_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) RemoveTargetOfEvaluation(ctx context.Context, in *RemoveTargetOfEvaluationRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
out := new(emptypb.Empty)
err := c.cc.Invoke(ctx, Orchestrator_RemoveTargetOfEvaluation_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *orchestratorClient) GetRuntimeInfo(ctx context.Context, in *runtime.GetRuntimeInfoRequest, opts ...grpc.CallOption) (*runtime.Runtime, error) {
out := new(runtime.Runtime)
err := c.cc.Invoke(ctx, Orchestrator_GetRuntimeInfo_FullMethodName, in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// OrchestratorServer is the server API for Orchestrator service.
// All implementations must embed UnimplementedOrchestratorServer
// for forward compatibility
type OrchestratorServer interface {
// Registers the passed assessment tool
RegisterAssessmentTool(context.Context, *RegisterAssessmentToolRequest) (*AssessmentTool, error)
// Lists all assessment tools assessing evidences for the metric given by the
// passed metric id
ListAssessmentTools(context.Context, *ListAssessmentToolsRequest) (*ListAssessmentToolsResponse, error)
// Returns assessment tool given by the passed tool id
GetAssessmentTool(context.Context, *GetAssessmentToolRequest) (*AssessmentTool, error)
// Updates the assessment tool given by the passed id
UpdateAssessmentTool(context.Context, *UpdateAssessmentToolRequest) (*AssessmentTool, error)
// Remove assessment tool with passed id from the list of active assessment
// tools
DeregisterAssessmentTool(context.Context, *DeregisterAssessmentToolRequest) (*emptypb.Empty, error)
// Stores the assessment result provided by an assessment tool
StoreAssessmentResult(context.Context, *StoreAssessmentResultRequest) (*StoreAssessmentResultResponse, error)
// Stores stream of assessment results provided by an assessment tool and
// returns a response stream. Part of the public API, not exposed as REST.
StoreAssessmentResults(Orchestrator_StoreAssessmentResultsServer) error
// Get an assessment result by ID
GetAssessmentResult(context.Context, *GetAssessmentResultRequest) (*assessment.AssessmentResult, error)
// List all assessment results. Part of the public API, also exposed as REST.
ListAssessmentResults(context.Context, *ListAssessmentResultsRequest) (*ListAssessmentResultsResponse, error)
// Creates a new metric
CreateMetric(context.Context, *CreateMetricRequest) (*assessment.Metric, error)
// Updates an existing metric
UpdateMetric(context.Context, *UpdateMetricRequest) (*assessment.Metric, error)
// Returns the metric with the passed metric id
GetMetric(context.Context, *GetMetricRequest) (*assessment.Metric, error)
// List all metrics provided by the metric catalog
ListMetrics(context.Context, *ListMetricsRequest) (*ListMetricsResponse, error)
// Removes a new metric
RemoveMetric(context.Context, *RemoveMetricRequest) (*emptypb.Empty, error)
// Registers a new target cloud service
RegisterCloudService(context.Context, *RegisterCloudServiceRequest) (*CloudService, error)
// Registers a new target cloud service
UpdateCloudService(context.Context, *UpdateCloudServiceRequest) (*CloudService, error)
// Retrieves a target cloud service
GetCloudService(context.Context, *GetCloudServiceRequest) (*CloudService, error)
// Lists all target cloud services
ListCloudServices(context.Context, *ListCloudServicesRequest) (*ListCloudServicesResponse, error)
// Removes a target cloud service
RemoveCloudService(context.Context, *RemoveCloudServiceRequest) (*emptypb.Empty, error)
// Retrieves target cloud service statistics
GetCloudServiceStatistics(context.Context, *GetCloudServiceStatisticsRequest) (*GetCloudServiceStatisticsResponse, error)
// Updates a metric configuration (target value and operator) for a specific
// service and metric ID
UpdateMetricConfiguration(context.Context, *UpdateMetricConfigurationRequest) (*assessment.MetricConfiguration, error)
// Retrieves a metric configuration (target value and operator) for a specific
// service and metric ID.
GetMetricConfiguration(context.Context, *GetMetricConfigurationRequest) (*assessment.MetricConfiguration, error)
// Lists all a metric configurations (target value and operator) for a
// specific service ID
ListMetricConfigurations(context.Context, *ListMetricConfigurationRequest) (*ListMetricConfigurationResponse, error)
// Updates an existing metric implementation
UpdateMetricImplementation(context.Context, *UpdateMetricImplementationRequest) (*assessment.MetricImplementation, error)
// Returns the metric implementation of the passed metric id
GetMetricImplementation(context.Context, *GetMetricImplementationRequest) (*assessment.MetricImplementation, error)
SubscribeMetricChangeEvents(*SubscribeMetricChangeEventRequest, Orchestrator_SubscribeMetricChangeEventsServer) error
// Creates a new certificate
CreateCertificate(context.Context, *CreateCertificateRequest) (*Certificate, error)
// Retrieves a certificate
GetCertificate(context.Context, *GetCertificateRequest) (*Certificate, error)
// Lists all target certificates
ListCertificates(context.Context, *ListCertificatesRequest) (*ListCertificatesResponse, error)
// Lists all target certificates without state history
ListPublicCertificates(context.Context, *ListPublicCertificatesRequest) (*ListPublicCertificatesResponse, error)
// Updates an existing certificate
UpdateCertificate(context.Context, *UpdateCertificateRequest) (*Certificate, error)
// Removes a certificate
RemoveCertificate(context.Context, *RemoveCertificateRequest) (*emptypb.Empty, error)
// Creates a new security controls catalog
CreateCatalog(context.Context, *CreateCatalogRequest) (*Catalog, error)
// Lists all security controls catalogs. Each catalog includes a list of its
// categories but no additional sub-resources.
ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error)
// Retrieves a specific catalog by it's ID. The catalog includes a list of all
// of it categories as well as the first level of controls in each category.
GetCatalog(context.Context, *GetCatalogRequest) (*Catalog, error)
// Removes a catalog
RemoveCatalog(context.Context, *RemoveCatalogRequest) (*emptypb.Empty, error)
// Updates an existing certificate
UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error)
// Retrieves a category of a catalog specified by the catalog ID and the
// category name. It includes the first level of controls within each
// category.
GetCategory(context.Context, *GetCategoryRequest) (*Category, error)
// If no additional parameters are specified, this lists all controls. If a
// catalog ID and a category name is specified, then only controls containing
// in this category are returned.
ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error)
// Retrieves a control specified by the catalog ID, the control's category
// name and the control ID. If present, it also includes a list of
// sub-controls if present or a list of metrics if no sub-controls but metrics
// are present.
GetControl(context.Context, *GetControlRequest) (*Control, error)
// Creates a new Target of Evaluation
CreateTargetOfEvaluation(context.Context, *CreateTargetOfEvaluationRequest) (*TargetOfEvaluation, error)
// Retrieves a Target of Evaluation
GetTargetOfEvaluation(context.Context, *GetTargetOfEvaluationRequest) (*TargetOfEvaluation, error)
// Lists all Targets of Evaluation
ListTargetsOfEvaluation(context.Context, *ListTargetsOfEvaluationRequest) (*ListTargetsOfEvaluationResponse, error)
// Updates an existing Target of Evaluation
UpdateTargetOfEvaluation(context.Context, *UpdateTargetOfEvaluationRequest) (*TargetOfEvaluation, error)
// Removes a Target of Evaluation
RemoveTargetOfEvaluation(context.Context, *RemoveTargetOfEvaluationRequest) (*emptypb.Empty, error)
// Get Runtime Information
GetRuntimeInfo(context.Context, *runtime.GetRuntimeInfoRequest) (*runtime.Runtime, error)
mustEmbedUnimplementedOrchestratorServer()
}
// UnimplementedOrchestratorServer must be embedded to have forward compatible implementations.
type UnimplementedOrchestratorServer struct {
}
func (UnimplementedOrchestratorServer) RegisterAssessmentTool(context.Context, *RegisterAssessmentToolRequest) (*AssessmentTool, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegisterAssessmentTool not implemented")
}
func (UnimplementedOrchestratorServer) ListAssessmentTools(context.Context, *ListAssessmentToolsRequest) (*ListAssessmentToolsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAssessmentTools not implemented")
}
func (UnimplementedOrchestratorServer) GetAssessmentTool(context.Context, *GetAssessmentToolRequest) (*AssessmentTool, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAssessmentTool not implemented")
}
func (UnimplementedOrchestratorServer) UpdateAssessmentTool(context.Context, *UpdateAssessmentToolRequest) (*AssessmentTool, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateAssessmentTool not implemented")
}
func (UnimplementedOrchestratorServer) DeregisterAssessmentTool(context.Context, *DeregisterAssessmentToolRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method DeregisterAssessmentTool not implemented")
}
func (UnimplementedOrchestratorServer) StoreAssessmentResult(context.Context, *StoreAssessmentResultRequest) (*StoreAssessmentResultResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method StoreAssessmentResult not implemented")
}
func (UnimplementedOrchestratorServer) StoreAssessmentResults(Orchestrator_StoreAssessmentResultsServer) error {
return status.Errorf(codes.Unimplemented, "method StoreAssessmentResults not implemented")
}
func (UnimplementedOrchestratorServer) GetAssessmentResult(context.Context, *GetAssessmentResultRequest) (*assessment.AssessmentResult, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetAssessmentResult not implemented")
}
func (UnimplementedOrchestratorServer) ListAssessmentResults(context.Context, *ListAssessmentResultsRequest) (*ListAssessmentResultsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListAssessmentResults not implemented")
}
func (UnimplementedOrchestratorServer) CreateMetric(context.Context, *CreateMetricRequest) (*assessment.Metric, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateMetric not implemented")
}
func (UnimplementedOrchestratorServer) UpdateMetric(context.Context, *UpdateMetricRequest) (*assessment.Metric, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateMetric not implemented")
}
func (UnimplementedOrchestratorServer) GetMetric(context.Context, *GetMetricRequest) (*assessment.Metric, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMetric not implemented")
}
func (UnimplementedOrchestratorServer) ListMetrics(context.Context, *ListMetricsRequest) (*ListMetricsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListMetrics not implemented")
}
func (UnimplementedOrchestratorServer) RemoveMetric(context.Context, *RemoveMetricRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveMetric not implemented")
}
func (UnimplementedOrchestratorServer) RegisterCloudService(context.Context, *RegisterCloudServiceRequest) (*CloudService, error) {
return nil, status.Errorf(codes.Unimplemented, "method RegisterCloudService not implemented")
}
func (UnimplementedOrchestratorServer) UpdateCloudService(context.Context, *UpdateCloudServiceRequest) (*CloudService, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCloudService not implemented")
}
func (UnimplementedOrchestratorServer) GetCloudService(context.Context, *GetCloudServiceRequest) (*CloudService, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCloudService not implemented")
}
func (UnimplementedOrchestratorServer) ListCloudServices(context.Context, *ListCloudServicesRequest) (*ListCloudServicesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCloudServices not implemented")
}
func (UnimplementedOrchestratorServer) RemoveCloudService(context.Context, *RemoveCloudServiceRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveCloudService not implemented")
}
func (UnimplementedOrchestratorServer) GetCloudServiceStatistics(context.Context, *GetCloudServiceStatisticsRequest) (*GetCloudServiceStatisticsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCloudServiceStatistics not implemented")
}
func (UnimplementedOrchestratorServer) UpdateMetricConfiguration(context.Context, *UpdateMetricConfigurationRequest) (*assessment.MetricConfiguration, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateMetricConfiguration not implemented")
}
func (UnimplementedOrchestratorServer) GetMetricConfiguration(context.Context, *GetMetricConfigurationRequest) (*assessment.MetricConfiguration, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMetricConfiguration not implemented")
}
func (UnimplementedOrchestratorServer) ListMetricConfigurations(context.Context, *ListMetricConfigurationRequest) (*ListMetricConfigurationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListMetricConfigurations not implemented")
}
func (UnimplementedOrchestratorServer) UpdateMetricImplementation(context.Context, *UpdateMetricImplementationRequest) (*assessment.MetricImplementation, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateMetricImplementation not implemented")
}
func (UnimplementedOrchestratorServer) GetMetricImplementation(context.Context, *GetMetricImplementationRequest) (*assessment.MetricImplementation, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetMetricImplementation not implemented")
}
func (UnimplementedOrchestratorServer) SubscribeMetricChangeEvents(*SubscribeMetricChangeEventRequest, Orchestrator_SubscribeMetricChangeEventsServer) error {
return status.Errorf(codes.Unimplemented, "method SubscribeMetricChangeEvents not implemented")
}
func (UnimplementedOrchestratorServer) CreateCertificate(context.Context, *CreateCertificateRequest) (*Certificate, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCertificate not implemented")
}
func (UnimplementedOrchestratorServer) GetCertificate(context.Context, *GetCertificateRequest) (*Certificate, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCertificate not implemented")
}
func (UnimplementedOrchestratorServer) ListCertificates(context.Context, *ListCertificatesRequest) (*ListCertificatesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCertificates not implemented")
}
func (UnimplementedOrchestratorServer) ListPublicCertificates(context.Context, *ListPublicCertificatesRequest) (*ListPublicCertificatesResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListPublicCertificates not implemented")
}
func (UnimplementedOrchestratorServer) UpdateCertificate(context.Context, *UpdateCertificateRequest) (*Certificate, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCertificate not implemented")
}
func (UnimplementedOrchestratorServer) RemoveCertificate(context.Context, *RemoveCertificateRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveCertificate not implemented")
}
func (UnimplementedOrchestratorServer) CreateCatalog(context.Context, *CreateCatalogRequest) (*Catalog, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateCatalog not implemented")
}
func (UnimplementedOrchestratorServer) ListCatalogs(context.Context, *ListCatalogsRequest) (*ListCatalogsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListCatalogs not implemented")
}
func (UnimplementedOrchestratorServer) GetCatalog(context.Context, *GetCatalogRequest) (*Catalog, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCatalog not implemented")
}
func (UnimplementedOrchestratorServer) RemoveCatalog(context.Context, *RemoveCatalogRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveCatalog not implemented")
}
func (UnimplementedOrchestratorServer) UpdateCatalog(context.Context, *UpdateCatalogRequest) (*Catalog, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateCatalog not implemented")
}
func (UnimplementedOrchestratorServer) GetCategory(context.Context, *GetCategoryRequest) (*Category, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetCategory not implemented")
}
func (UnimplementedOrchestratorServer) ListControls(context.Context, *ListControlsRequest) (*ListControlsResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListControls not implemented")
}
func (UnimplementedOrchestratorServer) GetControl(context.Context, *GetControlRequest) (*Control, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetControl not implemented")
}
func (UnimplementedOrchestratorServer) CreateTargetOfEvaluation(context.Context, *CreateTargetOfEvaluationRequest) (*TargetOfEvaluation, error) {
return nil, status.Errorf(codes.Unimplemented, "method CreateTargetOfEvaluation not implemented")
}
func (UnimplementedOrchestratorServer) GetTargetOfEvaluation(context.Context, *GetTargetOfEvaluationRequest) (*TargetOfEvaluation, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetTargetOfEvaluation not implemented")
}
func (UnimplementedOrchestratorServer) ListTargetsOfEvaluation(context.Context, *ListTargetsOfEvaluationRequest) (*ListTargetsOfEvaluationResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method ListTargetsOfEvaluation not implemented")
}
func (UnimplementedOrchestratorServer) UpdateTargetOfEvaluation(context.Context, *UpdateTargetOfEvaluationRequest) (*TargetOfEvaluation, error) {
return nil, status.Errorf(codes.Unimplemented, "method UpdateTargetOfEvaluation not implemented")
}
func (UnimplementedOrchestratorServer) RemoveTargetOfEvaluation(context.Context, *RemoveTargetOfEvaluationRequest) (*emptypb.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method RemoveTargetOfEvaluation not implemented")
}
func (UnimplementedOrchestratorServer) GetRuntimeInfo(context.Context, *runtime.GetRuntimeInfoRequest) (*runtime.Runtime, error) {
return nil, status.Errorf(codes.Unimplemented, "method GetRuntimeInfo not implemented")
}
func (UnimplementedOrchestratorServer) mustEmbedUnimplementedOrchestratorServer() {}
// UnsafeOrchestratorServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to OrchestratorServer will
// result in compilation errors.
type UnsafeOrchestratorServer interface {
mustEmbedUnimplementedOrchestratorServer()
}
func RegisterOrchestratorServer(s grpc.ServiceRegistrar, srv OrchestratorServer) {
s.RegisterService(&Orchestrator_ServiceDesc, srv)
}
func _Orchestrator_RegisterAssessmentTool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(RegisterAssessmentToolRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrchestratorServer).RegisterAssessmentTool(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Orchestrator_RegisterAssessmentTool_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrchestratorServer).RegisterAssessmentTool(ctx, req.(*RegisterAssessmentToolRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Orchestrator_ListAssessmentTools_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ListAssessmentToolsRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrchestratorServer).ListAssessmentTools(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Orchestrator_ListAssessmentTools_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrchestratorServer).ListAssessmentTools(ctx, req.(*ListAssessmentToolsRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Orchestrator_GetAssessmentTool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(GetAssessmentToolRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(OrchestratorServer).GetAssessmentTool(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: Orchestrator_GetAssessmentTool_FullMethodName,
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(OrchestratorServer).GetAssessmentTool(ctx, req.(*GetAssessmentToolRequest))
}
return interceptor(ctx, in, info, handler)
}
func _Orchestrator_UpdateAssessmentTool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(UpdateAssessmentToolRequest)