Documentation ¶
Overview ¶
Package configuration is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterConfigurationHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
- func RegisterConfigurationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConfigurationClient) error
- func RegisterConfigurationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterConfigurationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConfigurationServer) error
- func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
- type AddCollectionModuleRequest
- func (*AddCollectionModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddCollectionModuleRequest) GetModule() *collection.CollectionModule
- func (*AddCollectionModuleRequest) ProtoMessage()
- func (x *AddCollectionModuleRequest) ProtoReflect() protoreflect.Message
- func (x *AddCollectionModuleRequest) Reset()
- func (x *AddCollectionModuleRequest) String() string
- type ConfigurationClient
- type ConfigurationServer
- type Configurations
- func (*Configurations) Descriptor() ([]byte, []int)deprecated
- func (x *Configurations) GetConfigurations() []*collection.ServiceConfiguration
- func (*Configurations) ProtoMessage()
- func (x *Configurations) ProtoReflect() protoreflect.Message
- func (x *Configurations) Reset()
- func (x *Configurations) String() string
- type ConfigureCloudServiceRequest
- func (*ConfigureCloudServiceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ConfigureCloudServiceRequest) GetConfigurations() *Configurations
- func (x *ConfigureCloudServiceRequest) GetServiceId() string
- func (*ConfigureCloudServiceRequest) ProtoMessage()
- func (x *ConfigureCloudServiceRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureCloudServiceRequest) Reset()
- func (x *ConfigureCloudServiceRequest) String() string
- type ConfigureCloudServiceResponse
- func (*ConfigureCloudServiceResponse) Descriptor() ([]byte, []int)deprecated
- func (*ConfigureCloudServiceResponse) ProtoMessage()
- func (x *ConfigureCloudServiceResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigureCloudServiceResponse) Reset()
- func (x *ConfigureCloudServiceResponse) String() string
- type FindCollectionModuleRequest
- func (*FindCollectionModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *FindCollectionModuleRequest) GetMetricId() string
- func (*FindCollectionModuleRequest) ProtoMessage()
- func (x *FindCollectionModuleRequest) ProtoReflect() protoreflect.Message
- func (x *FindCollectionModuleRequest) Reset()
- func (x *FindCollectionModuleRequest) String() string
- type GetControlRequest
- func (*GetControlRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetControlRequest) GetControlId() string
- func (x *GetControlRequest) GetServiceId() string
- func (*GetControlRequest) ProtoMessage()
- func (x *GetControlRequest) ProtoReflect() protoreflect.Message
- func (x *GetControlRequest) Reset()
- func (x *GetControlRequest) String() string
- type GetMetricRequest
- type GetMonitoringStatusRequest
- func (*GetMonitoringStatusRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetMonitoringStatusRequest) GetServiceId() string
- func (*GetMonitoringStatusRequest) ProtoMessage()
- func (x *GetMonitoringStatusRequest) ProtoReflect() protoreflect.Message
- func (x *GetMonitoringStatusRequest) Reset()
- func (x *GetMonitoringStatusRequest) String() string
- type ListCloudServiceConfigurationsRequest
- func (*ListCloudServiceConfigurationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCloudServiceConfigurationsRequest) GetServiceId() string
- func (*ListCloudServiceConfigurationsRequest) ProtoMessage()
- func (x *ListCloudServiceConfigurationsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCloudServiceConfigurationsRequest) Reset()
- func (x *ListCloudServiceConfigurationsRequest) String() string
- type ListCloudServiceConfigurationsResponse
- func (*ListCloudServiceConfigurationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCloudServiceConfigurationsResponse) GetConfigurations() []*collection.ServiceConfiguration
- func (*ListCloudServiceConfigurationsResponse) ProtoMessage()
- func (x *ListCloudServiceConfigurationsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCloudServiceConfigurationsResponse) Reset()
- func (x *ListCloudServiceConfigurationsResponse) String() string
- type ListCollectionModulesRequest
- func (*ListCollectionModulesRequest) Descriptor() ([]byte, []int)deprecated
- func (*ListCollectionModulesRequest) ProtoMessage()
- func (x *ListCollectionModulesRequest) ProtoReflect() protoreflect.Message
- func (x *ListCollectionModulesRequest) Reset()
- func (x *ListCollectionModulesRequest) String() string
- type ListCollectionModulesResponse
- func (*ListCollectionModulesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCollectionModulesResponse) GetModules() []*collection.CollectionModule
- func (*ListCollectionModulesResponse) ProtoMessage()
- func (x *ListCollectionModulesResponse) ProtoReflect() protoreflect.Message
- func (x *ListCollectionModulesResponse) Reset()
- func (x *ListCollectionModulesResponse) String() string
- type MonitoringStatus
- func (*MonitoringStatus) Descriptor() ([]byte, []int)deprecated
- func (x *MonitoringStatus) GetControlIds() []string
- func (x *MonitoringStatus) GetLastRun() *timestamppb.Timestamp
- func (x *MonitoringStatus) GetNextRun() *timestamppb.Timestamp
- func (x *MonitoringStatus) GetServiceId() string
- func (*MonitoringStatus) ProtoMessage()
- func (x *MonitoringStatus) ProtoReflect() protoreflect.Message
- func (x *MonitoringStatus) Reset()
- func (x *MonitoringStatus) String() string
- type RemoveCollectionModuleRequest
- func (*RemoveCollectionModuleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RemoveCollectionModuleRequest) GetModuleId() string
- func (*RemoveCollectionModuleRequest) ProtoMessage()
- func (x *RemoveCollectionModuleRequest) ProtoReflect() protoreflect.Message
- func (x *RemoveCollectionModuleRequest) Reset()
- func (x *RemoveCollectionModuleRequest) String() string
- type StartMonitoringRequest
- func (*StartMonitoringRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartMonitoringRequest) GetControlIds() []string
- func (x *StartMonitoringRequest) GetServiceId() string
- func (*StartMonitoringRequest) ProtoMessage()
- func (x *StartMonitoringRequest) ProtoReflect() protoreflect.Message
- func (x *StartMonitoringRequest) Reset()
- func (x *StartMonitoringRequest) String() string
- func (req *StartMonitoringRequest) Validate() (err error)
- type StartMonitoringResponse
- func (*StartMonitoringResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartMonitoringResponse) GetStatus() *MonitoringStatus
- func (*StartMonitoringResponse) ProtoMessage()
- func (x *StartMonitoringResponse) ProtoReflect() protoreflect.Message
- func (x *StartMonitoringResponse) Reset()
- func (x *StartMonitoringResponse) String() string
- type StopMonitoringRequest
- func (*StopMonitoringRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopMonitoringRequest) GetServiceId() string
- func (*StopMonitoringRequest) ProtoMessage()
- func (x *StopMonitoringRequest) ProtoReflect() protoreflect.Message
- func (x *StopMonitoringRequest) Reset()
- func (x *StopMonitoringRequest) String() string
- type StopMonitoringResponse
- type UnimplementedConfigurationServer
- func (UnimplementedConfigurationServer) AddCollectionModule(context.Context, *AddCollectionModuleRequest) (*collection.CollectionModule, error)
- func (UnimplementedConfigurationServer) ConfigureCloudService(context.Context, *ConfigureCloudServiceRequest) (*ConfigureCloudServiceResponse, error)
- func (UnimplementedConfigurationServer) FindCollectionModule(context.Context, *FindCollectionModuleRequest) (*collection.CollectionModule, error)
- func (UnimplementedConfigurationServer) GetCloudService(context.Context, *orchestrator.GetCloudServiceRequest) (*orchestrator.CloudService, error)
- func (UnimplementedConfigurationServer) GetMetric(context.Context, *orchestrator.GetMetricRequest) (*assessment.Metric, error)
- func (UnimplementedConfigurationServer) GetMonitoringStatus(context.Context, *GetMonitoringStatusRequest) (*MonitoringStatus, error)
- func (UnimplementedConfigurationServer) ListCloudServiceConfigurations(context.Context, *ListCloudServiceConfigurationsRequest) (*ListCloudServiceConfigurationsResponse, error)
- func (UnimplementedConfigurationServer) ListCloudServices(context.Context, *orchestrator.ListCloudServicesRequest) (*orchestrator.ListCloudServicesResponse, error)
- func (UnimplementedConfigurationServer) ListCollectionModules(context.Context, *ListCollectionModulesRequest) (*ListCollectionModulesResponse, error)
- func (UnimplementedConfigurationServer) ListControls(context.Context, *orchestrator.ListRequirementsRequest) (*orchestrator.ListRequirementsResponse, error)
- func (UnimplementedConfigurationServer) ListMetrics(context.Context, *orchestrator.ListMetricsRequest) (*orchestrator.ListMetricsResponse, error)
- func (UnimplementedConfigurationServer) RegisterCloudService(context.Context, *orchestrator.RegisterCloudServiceRequest) (*orchestrator.CloudService, error)
- func (UnimplementedConfigurationServer) RemoveCloudService(context.Context, *orchestrator.RemoveCloudServiceRequest) (*emptypb.Empty, error)
- func (UnimplementedConfigurationServer) RemoveCollectionModule(context.Context, *RemoveCollectionModuleRequest) (*emptypb.Empty, error)
- func (UnimplementedConfigurationServer) StartMonitoring(context.Context, *StartMonitoringRequest) (*StartMonitoringResponse, error)
- func (UnimplementedConfigurationServer) StopMonitoring(context.Context, *StopMonitoringRequest) (*StopMonitoringResponse, error)
- func (UnimplementedConfigurationServer) UpdateCloudService(context.Context, *orchestrator.UpdateCloudServiceRequest) (*orchestrator.CloudService, error)
- type UnsafeConfigurationServer
Constants ¶
This section is empty.
Variables ¶
var ( // ErrControlIDsEmpty indicates the request doesn't include any control IDs ErrControlIDsEmpty = errors.New("control IDs must be specified") // ErrRequestEmpty indicates the request is empty ErrRequestEmpty = errors.New("request is empty") // ErrServiceIDMissing indicates the request doesn't include a service ID ErrServiceIDMissing = errors.New("serviceID is missing") )
var Configuration_ServiceDesc = grpc.ServiceDesc{ ServiceName: "cam.Configuration", HandlerType: (*ConfigurationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StartMonitoring", Handler: _Configuration_StartMonitoring_Handler, }, { MethodName: "StopMonitoring", Handler: _Configuration_StopMonitoring_Handler, }, { MethodName: "GetMonitoringStatus", Handler: _Configuration_GetMonitoringStatus_Handler, }, { MethodName: "ListMetrics", Handler: _Configuration_ListMetrics_Handler, }, { MethodName: "GetMetric", Handler: _Configuration_GetMetric_Handler, }, { MethodName: "RegisterCloudService", Handler: _Configuration_RegisterCloudService_Handler, }, { MethodName: "UpdateCloudService", Handler: _Configuration_UpdateCloudService_Handler, }, { MethodName: "ConfigureCloudService", Handler: _Configuration_ConfigureCloudService_Handler, }, { MethodName: "ListCloudServiceConfigurations", Handler: _Configuration_ListCloudServiceConfigurations_Handler, }, { MethodName: "GetCloudService", Handler: _Configuration_GetCloudService_Handler, }, { MethodName: "ListCloudServices", Handler: _Configuration_ListCloudServices_Handler, }, { MethodName: "RemoveCloudService", Handler: _Configuration_RemoveCloudService_Handler, }, { MethodName: "ListControls", Handler: _Configuration_ListControls_Handler, }, { MethodName: "ListCollectionModules", Handler: _Configuration_ListCollectionModules_Handler, }, { MethodName: "AddCollectionModule", Handler: _Configuration_AddCollectionModule_Handler, }, { MethodName: "FindCollectionModule", Handler: _Configuration_FindCollectionModule_Handler, }, { MethodName: "RemoveCollectionModule", Handler: _Configuration_RemoveCollectionModule_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/configuration/configuration.proto", }
Configuration_ServiceDesc is the grpc.ServiceDesc for Configuration service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_api_configuration_configuration_proto protoreflect.FileDescriptor
Functions ¶
func RegisterConfigurationHandler ¶
func RegisterConfigurationHandler(ctx context.Context, mux *runtime.ServeMux, conn grpc.ClientConnInterface) error
RegisterConfigurationHandler registers the http handlers for service Configuration to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterConfigurationHandlerClient ¶
func RegisterConfigurationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ConfigurationClient) error
RegisterConfigurationHandlerClient registers the http handlers for service Configuration to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ConfigurationClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ConfigurationClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ConfigurationClient" to call the correct interceptors.
func RegisterConfigurationHandlerFromEndpoint ¶
func RegisterConfigurationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterConfigurationHandlerFromEndpoint is same as RegisterConfigurationHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterConfigurationHandlerServer ¶
func RegisterConfigurationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ConfigurationServer) error
RegisterConfigurationHandlerServer registers the http handlers for service Configuration to "mux". UnaryRPC :call ConfigurationServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterConfigurationHandlerFromEndpoint instead.
func RegisterConfigurationServer ¶
func RegisterConfigurationServer(s grpc.ServiceRegistrar, srv ConfigurationServer)
Types ¶
type AddCollectionModuleRequest ¶
type AddCollectionModuleRequest struct { Module *collection.CollectionModule `protobuf:"bytes,1,opt,name=module,proto3" json:"module,omitempty"` // contains filtered or unexported fields }
func (*AddCollectionModuleRequest) Descriptor
deprecated
func (*AddCollectionModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AddCollectionModuleRequest.ProtoReflect.Descriptor instead.
func (*AddCollectionModuleRequest) GetModule ¶
func (x *AddCollectionModuleRequest) GetModule() *collection.CollectionModule
func (*AddCollectionModuleRequest) ProtoMessage ¶
func (*AddCollectionModuleRequest) ProtoMessage()
func (*AddCollectionModuleRequest) ProtoReflect ¶
func (x *AddCollectionModuleRequest) ProtoReflect() protoreflect.Message
func (*AddCollectionModuleRequest) Reset ¶
func (x *AddCollectionModuleRequest) Reset()
func (*AddCollectionModuleRequest) String ¶
func (x *AddCollectionModuleRequest) String() string
type ConfigurationClient ¶
type ConfigurationClient interface { StartMonitoring(ctx context.Context, in *StartMonitoringRequest, opts ...grpc.CallOption) (*StartMonitoringResponse, error) StopMonitoring(ctx context.Context, in *StopMonitoringRequest, opts ...grpc.CallOption) (*StopMonitoringResponse, error) // Retrieves the current monitoring status of the given service. The status // includes the controls which are currently being monitored and the times of // the last and next scheduled monitoring run. Returns 404 error when // monitoring for this service wasn't started yet. Returns empty list when // monitoring was started but is currently stopped/paused. GetMonitoringStatus(ctx context.Context, in *GetMonitoringStatusRequest, opts ...grpc.CallOption) (*MonitoringStatus, error) // Lists metrics. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. ListMetrics(ctx context.Context, in *orchestrator.ListMetricsRequest, opts ...grpc.CallOption) (*orchestrator.ListMetricsResponse, error) // Retrieves a particular metric. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. GetMetric(ctx context.Context, in *orchestrator.GetMetricRequest, opts ...grpc.CallOption) (*assessment.Metric, error) // Registers a new target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. RegisterCloudService(ctx context.Context, in *orchestrator.RegisterCloudServiceRequest, opts ...grpc.CallOption) (*orchestrator.CloudService, error) // Registers a new target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. UpdateCloudService(ctx context.Context, in *orchestrator.UpdateCloudServiceRequest, opts ...grpc.CallOption) (*orchestrator.CloudService, error) ConfigureCloudService(ctx context.Context, in *ConfigureCloudServiceRequest, opts ...grpc.CallOption) (*ConfigureCloudServiceResponse, error) ListCloudServiceConfigurations(ctx context.Context, in *ListCloudServiceConfigurationsRequest, opts ...grpc.CallOption) (*ListCloudServiceConfigurationsResponse, error) // Retrieves a target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. GetCloudService(ctx context.Context, in *orchestrator.GetCloudServiceRequest, opts ...grpc.CallOption) (*orchestrator.CloudService, error) // Lists all target cloud services. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. ListCloudServices(ctx context.Context, in *orchestrator.ListCloudServicesRequest, opts ...grpc.CallOption) (*orchestrator.ListCloudServicesResponse, error) // Removes a target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. RemoveCloudService(ctx context.Context, in *orchestrator.RemoveCloudServiceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) ListControls(ctx context.Context, in *orchestrator.ListRequirementsRequest, opts ...grpc.CallOption) (*orchestrator.ListRequirementsResponse, error) ListCollectionModules(ctx context.Context, in *ListCollectionModulesRequest, opts ...grpc.CallOption) (*ListCollectionModulesResponse, error) AddCollectionModule(ctx context.Context, in *AddCollectionModuleRequest, opts ...grpc.CallOption) (*collection.CollectionModule, error) FindCollectionModule(ctx context.Context, in *FindCollectionModuleRequest, opts ...grpc.CallOption) (*collection.CollectionModule, error) RemoveCollectionModule(ctx context.Context, in *RemoveCollectionModuleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
ConfigurationClient is the client API for Configuration 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.
func NewConfigurationClient ¶
func NewConfigurationClient(cc grpc.ClientConnInterface) ConfigurationClient
type ConfigurationServer ¶
type ConfigurationServer interface { StartMonitoring(context.Context, *StartMonitoringRequest) (*StartMonitoringResponse, error) StopMonitoring(context.Context, *StopMonitoringRequest) (*StopMonitoringResponse, error) // Retrieves the current monitoring status of the given service. The status // includes the controls which are currently being monitored and the times of // the last and next scheduled monitoring run. Returns 404 error when // monitoring for this service wasn't started yet. Returns empty list when // monitoring was started but is currently stopped/paused. GetMonitoringStatus(context.Context, *GetMonitoringStatusRequest) (*MonitoringStatus, error) // Lists metrics. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. ListMetrics(context.Context, *orchestrator.ListMetricsRequest) (*orchestrator.ListMetricsResponse, error) // Retrieves a particular metric. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. GetMetric(context.Context, *orchestrator.GetMetricRequest) (*assessment.Metric, error) // Registers a new target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. RegisterCloudService(context.Context, *orchestrator.RegisterCloudServiceRequest) (*orchestrator.CloudService, error) // Registers a new target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. UpdateCloudService(context.Context, *orchestrator.UpdateCloudServiceRequest) (*orchestrator.CloudService, error) ConfigureCloudService(context.Context, *ConfigureCloudServiceRequest) (*ConfigureCloudServiceResponse, error) ListCloudServiceConfigurations(context.Context, *ListCloudServiceConfigurationsRequest) (*ListCloudServiceConfigurationsResponse, error) // Retrieves a target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. GetCloudService(context.Context, *orchestrator.GetCloudServiceRequest) (*orchestrator.CloudService, error) // Lists all target cloud services. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. ListCloudServices(context.Context, *orchestrator.ListCloudServicesRequest) (*orchestrator.ListCloudServicesResponse, error) // Removes a target cloud service. This function is a wrapper around the // Clouditor Orchestrator's identical function, but we explicitly specify it // here so that we can expose it via the configuration interfaces's REST API. RemoveCloudService(context.Context, *orchestrator.RemoveCloudServiceRequest) (*emptypb.Empty, error) ListControls(context.Context, *orchestrator.ListRequirementsRequest) (*orchestrator.ListRequirementsResponse, error) ListCollectionModules(context.Context, *ListCollectionModulesRequest) (*ListCollectionModulesResponse, error) AddCollectionModule(context.Context, *AddCollectionModuleRequest) (*collection.CollectionModule, error) FindCollectionModule(context.Context, *FindCollectionModuleRequest) (*collection.CollectionModule, error) RemoveCollectionModule(context.Context, *RemoveCollectionModuleRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
ConfigurationServer is the server API for Configuration service. All implementations must embed UnimplementedConfigurationServer for forward compatibility
type Configurations ¶
type Configurations struct { Configurations []*collection.ServiceConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"` // contains filtered or unexported fields }
func (*Configurations) Descriptor
deprecated
func (*Configurations) Descriptor() ([]byte, []int)
Deprecated: Use Configurations.ProtoReflect.Descriptor instead.
func (*Configurations) GetConfigurations ¶
func (x *Configurations) GetConfigurations() []*collection.ServiceConfiguration
func (*Configurations) ProtoMessage ¶
func (*Configurations) ProtoMessage()
func (*Configurations) ProtoReflect ¶
func (x *Configurations) ProtoReflect() protoreflect.Message
func (*Configurations) Reset ¶
func (x *Configurations) Reset()
func (*Configurations) String ¶
func (x *Configurations) String() string
type ConfigureCloudServiceRequest ¶
type ConfigureCloudServiceRequest struct { ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` Configurations *Configurations `protobuf:"bytes,2,opt,name=configurations,proto3" json:"configurations,omitempty"` // contains filtered or unexported fields }
func (*ConfigureCloudServiceRequest) Descriptor
deprecated
func (*ConfigureCloudServiceRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureCloudServiceRequest.ProtoReflect.Descriptor instead.
func (*ConfigureCloudServiceRequest) GetConfigurations ¶
func (x *ConfigureCloudServiceRequest) GetConfigurations() *Configurations
func (*ConfigureCloudServiceRequest) GetServiceId ¶
func (x *ConfigureCloudServiceRequest) GetServiceId() string
func (*ConfigureCloudServiceRequest) ProtoMessage ¶
func (*ConfigureCloudServiceRequest) ProtoMessage()
func (*ConfigureCloudServiceRequest) ProtoReflect ¶
func (x *ConfigureCloudServiceRequest) ProtoReflect() protoreflect.Message
func (*ConfigureCloudServiceRequest) Reset ¶
func (x *ConfigureCloudServiceRequest) Reset()
func (*ConfigureCloudServiceRequest) String ¶
func (x *ConfigureCloudServiceRequest) String() string
type ConfigureCloudServiceResponse ¶
type ConfigureCloudServiceResponse struct {
// contains filtered or unexported fields
}
func (*ConfigureCloudServiceResponse) Descriptor
deprecated
func (*ConfigureCloudServiceResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureCloudServiceResponse.ProtoReflect.Descriptor instead.
func (*ConfigureCloudServiceResponse) ProtoMessage ¶
func (*ConfigureCloudServiceResponse) ProtoMessage()
func (*ConfigureCloudServiceResponse) ProtoReflect ¶
func (x *ConfigureCloudServiceResponse) ProtoReflect() protoreflect.Message
func (*ConfigureCloudServiceResponse) Reset ¶
func (x *ConfigureCloudServiceResponse) Reset()
func (*ConfigureCloudServiceResponse) String ¶
func (x *ConfigureCloudServiceResponse) String() string
type FindCollectionModuleRequest ¶
type FindCollectionModuleRequest struct { MetricId string `protobuf:"bytes,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"` // contains filtered or unexported fields }
func (*FindCollectionModuleRequest) Descriptor
deprecated
func (*FindCollectionModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use FindCollectionModuleRequest.ProtoReflect.Descriptor instead.
func (*FindCollectionModuleRequest) GetMetricId ¶
func (x *FindCollectionModuleRequest) GetMetricId() string
func (*FindCollectionModuleRequest) ProtoMessage ¶
func (*FindCollectionModuleRequest) ProtoMessage()
func (*FindCollectionModuleRequest) ProtoReflect ¶
func (x *FindCollectionModuleRequest) ProtoReflect() protoreflect.Message
func (*FindCollectionModuleRequest) Reset ¶
func (x *FindCollectionModuleRequest) Reset()
func (*FindCollectionModuleRequest) String ¶
func (x *FindCollectionModuleRequest) String() string
type GetControlRequest ¶
type GetControlRequest struct { ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` ControlId string `protobuf:"bytes,2,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"` // contains filtered or unexported fields }
func (*GetControlRequest) Descriptor
deprecated
func (*GetControlRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetControlRequest.ProtoReflect.Descriptor instead.
func (*GetControlRequest) GetControlId ¶
func (x *GetControlRequest) GetControlId() string
func (*GetControlRequest) GetServiceId ¶
func (x *GetControlRequest) GetServiceId() string
func (*GetControlRequest) ProtoMessage ¶
func (*GetControlRequest) ProtoMessage()
func (*GetControlRequest) ProtoReflect ¶
func (x *GetControlRequest) ProtoReflect() protoreflect.Message
func (*GetControlRequest) Reset ¶
func (x *GetControlRequest) Reset()
func (*GetControlRequest) String ¶
func (x *GetControlRequest) String() string
type GetMetricRequest ¶
type GetMetricRequest struct { MetricId int32 `protobuf:"varint,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"` // contains filtered or unexported fields }
func (*GetMetricRequest) Descriptor
deprecated
func (*GetMetricRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMetricRequest.ProtoReflect.Descriptor instead.
func (*GetMetricRequest) GetMetricId ¶
func (x *GetMetricRequest) GetMetricId() int32
func (*GetMetricRequest) ProtoMessage ¶
func (*GetMetricRequest) ProtoMessage()
func (*GetMetricRequest) ProtoReflect ¶
func (x *GetMetricRequest) ProtoReflect() protoreflect.Message
func (*GetMetricRequest) Reset ¶
func (x *GetMetricRequest) Reset()
func (*GetMetricRequest) String ¶
func (x *GetMetricRequest) String() string
type GetMonitoringStatusRequest ¶
type GetMonitoringStatusRequest struct { ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // contains filtered or unexported fields }
func (*GetMonitoringStatusRequest) Descriptor
deprecated
func (*GetMonitoringStatusRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetMonitoringStatusRequest.ProtoReflect.Descriptor instead.
func (*GetMonitoringStatusRequest) GetServiceId ¶
func (x *GetMonitoringStatusRequest) GetServiceId() string
func (*GetMonitoringStatusRequest) ProtoMessage ¶
func (*GetMonitoringStatusRequest) ProtoMessage()
func (*GetMonitoringStatusRequest) ProtoReflect ¶
func (x *GetMonitoringStatusRequest) ProtoReflect() protoreflect.Message
func (*GetMonitoringStatusRequest) Reset ¶
func (x *GetMonitoringStatusRequest) Reset()
func (*GetMonitoringStatusRequest) String ¶
func (x *GetMonitoringStatusRequest) String() string
type ListCloudServiceConfigurationsRequest ¶ added in v0.2.0
type ListCloudServiceConfigurationsRequest struct { ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // contains filtered or unexported fields }
func (*ListCloudServiceConfigurationsRequest) Descriptor
deprecated
added in
v0.2.0
func (*ListCloudServiceConfigurationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCloudServiceConfigurationsRequest.ProtoReflect.Descriptor instead.
func (*ListCloudServiceConfigurationsRequest) GetServiceId ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsRequest) GetServiceId() string
func (*ListCloudServiceConfigurationsRequest) ProtoMessage ¶ added in v0.2.0
func (*ListCloudServiceConfigurationsRequest) ProtoMessage()
func (*ListCloudServiceConfigurationsRequest) ProtoReflect ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsRequest) ProtoReflect() protoreflect.Message
func (*ListCloudServiceConfigurationsRequest) Reset ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsRequest) Reset()
func (*ListCloudServiceConfigurationsRequest) String ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsRequest) String() string
type ListCloudServiceConfigurationsResponse ¶ added in v0.2.0
type ListCloudServiceConfigurationsResponse struct { Configurations []*collection.ServiceConfiguration `protobuf:"bytes,1,rep,name=configurations,proto3" json:"configurations,omitempty"` // contains filtered or unexported fields }
func (*ListCloudServiceConfigurationsResponse) Descriptor
deprecated
added in
v0.2.0
func (*ListCloudServiceConfigurationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCloudServiceConfigurationsResponse.ProtoReflect.Descriptor instead.
func (*ListCloudServiceConfigurationsResponse) GetConfigurations ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsResponse) GetConfigurations() []*collection.ServiceConfiguration
func (*ListCloudServiceConfigurationsResponse) ProtoMessage ¶ added in v0.2.0
func (*ListCloudServiceConfigurationsResponse) ProtoMessage()
func (*ListCloudServiceConfigurationsResponse) ProtoReflect ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsResponse) ProtoReflect() protoreflect.Message
func (*ListCloudServiceConfigurationsResponse) Reset ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsResponse) Reset()
func (*ListCloudServiceConfigurationsResponse) String ¶ added in v0.2.0
func (x *ListCloudServiceConfigurationsResponse) String() string
type ListCollectionModulesRequest ¶
type ListCollectionModulesRequest struct {
// contains filtered or unexported fields
}
func (*ListCollectionModulesRequest) Descriptor
deprecated
func (*ListCollectionModulesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionModulesRequest.ProtoReflect.Descriptor instead.
func (*ListCollectionModulesRequest) ProtoMessage ¶
func (*ListCollectionModulesRequest) ProtoMessage()
func (*ListCollectionModulesRequest) ProtoReflect ¶
func (x *ListCollectionModulesRequest) ProtoReflect() protoreflect.Message
func (*ListCollectionModulesRequest) Reset ¶
func (x *ListCollectionModulesRequest) Reset()
func (*ListCollectionModulesRequest) String ¶
func (x *ListCollectionModulesRequest) String() string
type ListCollectionModulesResponse ¶
type ListCollectionModulesResponse struct { Modules []*collection.CollectionModule `protobuf:"bytes,1,rep,name=modules,proto3" json:"modules,omitempty"` // contains filtered or unexported fields }
func (*ListCollectionModulesResponse) Descriptor
deprecated
func (*ListCollectionModulesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCollectionModulesResponse.ProtoReflect.Descriptor instead.
func (*ListCollectionModulesResponse) GetModules ¶
func (x *ListCollectionModulesResponse) GetModules() []*collection.CollectionModule
func (*ListCollectionModulesResponse) ProtoMessage ¶
func (*ListCollectionModulesResponse) ProtoMessage()
func (*ListCollectionModulesResponse) ProtoReflect ¶
func (x *ListCollectionModulesResponse) ProtoReflect() protoreflect.Message
func (*ListCollectionModulesResponse) Reset ¶
func (x *ListCollectionModulesResponse) Reset()
func (*ListCollectionModulesResponse) String ¶
func (x *ListCollectionModulesResponse) String() string
type MonitoringStatus ¶
type MonitoringStatus struct { // Reference to the service whose status is requested ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // Reference to the controls that are currently being monitored ControlIds []string `protobuf:"bytes,2,rep,name=control_ids,json=controlIds,proto3" json:"control_ids,omitempty"` // Time when the service was last monitored. Empty when it hasn't started yet LastRun *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=last_run,json=lastRun,proto3" json:"last_run,omitempty"` // Time when the service will be monitored next time. Empty when monitoring is // not running. NextRun *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=next_run,json=nextRun,proto3" json:"next_run,omitempty"` // contains filtered or unexported fields }
func (*MonitoringStatus) Descriptor
deprecated
func (*MonitoringStatus) Descriptor() ([]byte, []int)
Deprecated: Use MonitoringStatus.ProtoReflect.Descriptor instead.
func (*MonitoringStatus) GetControlIds ¶
func (x *MonitoringStatus) GetControlIds() []string
func (*MonitoringStatus) GetLastRun ¶ added in v0.2.0
func (x *MonitoringStatus) GetLastRun() *timestamppb.Timestamp
func (*MonitoringStatus) GetNextRun ¶ added in v0.2.0
func (x *MonitoringStatus) GetNextRun() *timestamppb.Timestamp
func (*MonitoringStatus) GetServiceId ¶
func (x *MonitoringStatus) GetServiceId() string
func (*MonitoringStatus) ProtoMessage ¶
func (*MonitoringStatus) ProtoMessage()
func (*MonitoringStatus) ProtoReflect ¶
func (x *MonitoringStatus) ProtoReflect() protoreflect.Message
func (*MonitoringStatus) Reset ¶
func (x *MonitoringStatus) Reset()
func (*MonitoringStatus) String ¶
func (x *MonitoringStatus) String() string
type RemoveCollectionModuleRequest ¶
type RemoveCollectionModuleRequest struct { ModuleId string `protobuf:"bytes,1,opt,name=module_id,json=moduleId,proto3" json:"module_id,omitempty"` // contains filtered or unexported fields }
func (*RemoveCollectionModuleRequest) Descriptor
deprecated
func (*RemoveCollectionModuleRequest) Descriptor() ([]byte, []int)
Deprecated: Use RemoveCollectionModuleRequest.ProtoReflect.Descriptor instead.
func (*RemoveCollectionModuleRequest) GetModuleId ¶
func (x *RemoveCollectionModuleRequest) GetModuleId() string
func (*RemoveCollectionModuleRequest) ProtoMessage ¶
func (*RemoveCollectionModuleRequest) ProtoMessage()
func (*RemoveCollectionModuleRequest) ProtoReflect ¶
func (x *RemoveCollectionModuleRequest) ProtoReflect() protoreflect.Message
func (*RemoveCollectionModuleRequest) Reset ¶
func (x *RemoveCollectionModuleRequest) Reset()
func (*RemoveCollectionModuleRequest) String ¶
func (x *RemoveCollectionModuleRequest) String() string
type StartMonitoringRequest ¶
type StartMonitoringRequest struct { ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` ControlIds []string `protobuf:"bytes,2,rep,name=control_ids,json=controlIds,proto3" json:"control_ids,omitempty"` // contains filtered or unexported fields }
func (*StartMonitoringRequest) Descriptor
deprecated
func (*StartMonitoringRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartMonitoringRequest.ProtoReflect.Descriptor instead.
func (*StartMonitoringRequest) GetControlIds ¶
func (x *StartMonitoringRequest) GetControlIds() []string
func (*StartMonitoringRequest) GetServiceId ¶
func (x *StartMonitoringRequest) GetServiceId() string
func (*StartMonitoringRequest) ProtoMessage ¶
func (*StartMonitoringRequest) ProtoMessage()
func (*StartMonitoringRequest) ProtoReflect ¶
func (x *StartMonitoringRequest) ProtoReflect() protoreflect.Message
func (*StartMonitoringRequest) Reset ¶
func (x *StartMonitoringRequest) Reset()
func (*StartMonitoringRequest) String ¶
func (x *StartMonitoringRequest) String() string
func (*StartMonitoringRequest) Validate ¶
func (req *StartMonitoringRequest) Validate() (err error)
Validate validates the `StartMonitoringRequest`
type StartMonitoringResponse ¶
type StartMonitoringResponse struct { Status *MonitoringStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*StartMonitoringResponse) Descriptor
deprecated
func (*StartMonitoringResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartMonitoringResponse.ProtoReflect.Descriptor instead.
func (*StartMonitoringResponse) GetStatus ¶ added in v0.2.0
func (x *StartMonitoringResponse) GetStatus() *MonitoringStatus
func (*StartMonitoringResponse) ProtoMessage ¶
func (*StartMonitoringResponse) ProtoMessage()
func (*StartMonitoringResponse) ProtoReflect ¶
func (x *StartMonitoringResponse) ProtoReflect() protoreflect.Message
func (*StartMonitoringResponse) Reset ¶
func (x *StartMonitoringResponse) Reset()
func (*StartMonitoringResponse) String ¶
func (x *StartMonitoringResponse) String() string
type StopMonitoringRequest ¶
type StopMonitoringRequest struct { ServiceId string `protobuf:"bytes,1,opt,name=service_id,json=serviceId,proto3" json:"service_id,omitempty"` // contains filtered or unexported fields }
func (*StopMonitoringRequest) Descriptor
deprecated
func (*StopMonitoringRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopMonitoringRequest.ProtoReflect.Descriptor instead.
func (*StopMonitoringRequest) GetServiceId ¶
func (x *StopMonitoringRequest) GetServiceId() string
func (*StopMonitoringRequest) ProtoMessage ¶
func (*StopMonitoringRequest) ProtoMessage()
func (*StopMonitoringRequest) ProtoReflect ¶
func (x *StopMonitoringRequest) ProtoReflect() protoreflect.Message
func (*StopMonitoringRequest) Reset ¶
func (x *StopMonitoringRequest) Reset()
func (*StopMonitoringRequest) String ¶
func (x *StopMonitoringRequest) String() string
type StopMonitoringResponse ¶
type StopMonitoringResponse struct {
// contains filtered or unexported fields
}
func (*StopMonitoringResponse) Descriptor
deprecated
func (*StopMonitoringResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopMonitoringResponse.ProtoReflect.Descriptor instead.
func (*StopMonitoringResponse) ProtoMessage ¶
func (*StopMonitoringResponse) ProtoMessage()
func (*StopMonitoringResponse) ProtoReflect ¶
func (x *StopMonitoringResponse) ProtoReflect() protoreflect.Message
func (*StopMonitoringResponse) Reset ¶
func (x *StopMonitoringResponse) Reset()
func (*StopMonitoringResponse) String ¶
func (x *StopMonitoringResponse) String() string
type UnimplementedConfigurationServer ¶
type UnimplementedConfigurationServer struct { }
UnimplementedConfigurationServer must be embedded to have forward compatible implementations.
func (UnimplementedConfigurationServer) AddCollectionModule ¶
func (UnimplementedConfigurationServer) AddCollectionModule(context.Context, *AddCollectionModuleRequest) (*collection.CollectionModule, error)
func (UnimplementedConfigurationServer) ConfigureCloudService ¶
func (UnimplementedConfigurationServer) ConfigureCloudService(context.Context, *ConfigureCloudServiceRequest) (*ConfigureCloudServiceResponse, error)
func (UnimplementedConfigurationServer) FindCollectionModule ¶
func (UnimplementedConfigurationServer) FindCollectionModule(context.Context, *FindCollectionModuleRequest) (*collection.CollectionModule, error)
func (UnimplementedConfigurationServer) GetCloudService ¶
func (UnimplementedConfigurationServer) GetCloudService(context.Context, *orchestrator.GetCloudServiceRequest) (*orchestrator.CloudService, error)
func (UnimplementedConfigurationServer) GetMetric ¶
func (UnimplementedConfigurationServer) GetMetric(context.Context, *orchestrator.GetMetricRequest) (*assessment.Metric, error)
func (UnimplementedConfigurationServer) GetMonitoringStatus ¶
func (UnimplementedConfigurationServer) GetMonitoringStatus(context.Context, *GetMonitoringStatusRequest) (*MonitoringStatus, error)
func (UnimplementedConfigurationServer) ListCloudServiceConfigurations ¶ added in v0.2.0
func (UnimplementedConfigurationServer) ListCloudServiceConfigurations(context.Context, *ListCloudServiceConfigurationsRequest) (*ListCloudServiceConfigurationsResponse, error)
func (UnimplementedConfigurationServer) ListCloudServices ¶
func (UnimplementedConfigurationServer) ListCloudServices(context.Context, *orchestrator.ListCloudServicesRequest) (*orchestrator.ListCloudServicesResponse, error)
func (UnimplementedConfigurationServer) ListCollectionModules ¶
func (UnimplementedConfigurationServer) ListCollectionModules(context.Context, *ListCollectionModulesRequest) (*ListCollectionModulesResponse, error)
func (UnimplementedConfigurationServer) ListControls ¶
func (UnimplementedConfigurationServer) ListControls(context.Context, *orchestrator.ListRequirementsRequest) (*orchestrator.ListRequirementsResponse, error)
func (UnimplementedConfigurationServer) ListMetrics ¶
func (UnimplementedConfigurationServer) ListMetrics(context.Context, *orchestrator.ListMetricsRequest) (*orchestrator.ListMetricsResponse, error)
func (UnimplementedConfigurationServer) RegisterCloudService ¶
func (UnimplementedConfigurationServer) RegisterCloudService(context.Context, *orchestrator.RegisterCloudServiceRequest) (*orchestrator.CloudService, error)
func (UnimplementedConfigurationServer) RemoveCloudService ¶
func (UnimplementedConfigurationServer) RemoveCloudService(context.Context, *orchestrator.RemoveCloudServiceRequest) (*emptypb.Empty, error)
func (UnimplementedConfigurationServer) RemoveCollectionModule ¶
func (UnimplementedConfigurationServer) RemoveCollectionModule(context.Context, *RemoveCollectionModuleRequest) (*emptypb.Empty, error)
func (UnimplementedConfigurationServer) StartMonitoring ¶
func (UnimplementedConfigurationServer) StartMonitoring(context.Context, *StartMonitoringRequest) (*StartMonitoringResponse, error)
func (UnimplementedConfigurationServer) StopMonitoring ¶
func (UnimplementedConfigurationServer) StopMonitoring(context.Context, *StopMonitoringRequest) (*StopMonitoringResponse, error)
func (UnimplementedConfigurationServer) UpdateCloudService ¶
func (UnimplementedConfigurationServer) UpdateCloudService(context.Context, *orchestrator.UpdateCloudServiceRequest) (*orchestrator.CloudService, error)
type UnsafeConfigurationServer ¶
type UnsafeConfigurationServer interface {
// contains filtered or unexported methods
}
UnsafeConfigurationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ConfigurationServer will result in compilation errors.