Documentation ¶
Overview ¶
Package assessment is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CheckCloudServiceID(serviceID string) error
- func RegisterAssessmentHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterAssessmentHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AssessmentClient) error
- func RegisterAssessmentHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterAssessmentHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AssessmentServer) error
- func RegisterAssessmentServer(s grpc.ServiceRegistrar, srv AssessmentServer)
- type AllowedValues
- func (*AllowedValues) Descriptor() ([]byte, []int)deprecated
- func (x *AllowedValues) GetValues() []*structpb.Value
- func (*AllowedValues) ProtoMessage()
- func (x *AllowedValues) ProtoReflect() protoreflect.Message
- func (x *AllowedValues) Reset()
- func (x *AllowedValues) String() string
- func (m *AllowedValues) Validate() error
- func (m *AllowedValues) ValidateAll() error
- type AllowedValuesMultiError
- type AllowedValuesValidationError
- func (e AllowedValuesValidationError) Cause() error
- func (e AllowedValuesValidationError) Error() string
- func (e AllowedValuesValidationError) ErrorName() string
- func (e AllowedValuesValidationError) Field() string
- func (e AllowedValuesValidationError) Key() bool
- func (e AllowedValuesValidationError) Reason() string
- type AssessEvidenceRequest
- func (*AssessEvidenceRequest) Descriptor() ([]byte, []int)deprecated
- func (req *AssessEvidenceRequest) GetCloudServiceId() string
- func (x *AssessEvidenceRequest) GetEvidence() *evidence.Evidence
- func (req *AssessEvidenceRequest) GetPayload() proto.Message
- func (*AssessEvidenceRequest) ProtoMessage()
- func (x *AssessEvidenceRequest) ProtoReflect() protoreflect.Message
- func (x *AssessEvidenceRequest) Reset()
- func (x *AssessEvidenceRequest) String() string
- func (m *AssessEvidenceRequest) Validate() error
- func (m *AssessEvidenceRequest) ValidateAll() error
- type AssessEvidenceRequestMultiError
- type AssessEvidenceRequestValidationError
- func (e AssessEvidenceRequestValidationError) Cause() error
- func (e AssessEvidenceRequestValidationError) Error() string
- func (e AssessEvidenceRequestValidationError) ErrorName() string
- func (e AssessEvidenceRequestValidationError) Field() string
- func (e AssessEvidenceRequestValidationError) Key() bool
- func (e AssessEvidenceRequestValidationError) Reason() string
- type AssessEvidenceResponse
- func (*AssessEvidenceResponse) Descriptor() ([]byte, []int)deprecated
- func (*AssessEvidenceResponse) ProtoMessage()
- func (x *AssessEvidenceResponse) ProtoReflect() protoreflect.Message
- func (x *AssessEvidenceResponse) Reset()
- func (x *AssessEvidenceResponse) String() string
- func (m *AssessEvidenceResponse) Validate() error
- func (m *AssessEvidenceResponse) ValidateAll() error
- type AssessEvidenceResponseMultiError
- type AssessEvidenceResponseValidationError
- func (e AssessEvidenceResponseValidationError) Cause() error
- func (e AssessEvidenceResponseValidationError) Error() string
- func (e AssessEvidenceResponseValidationError) ErrorName() string
- func (e AssessEvidenceResponseValidationError) Field() string
- func (e AssessEvidenceResponseValidationError) Key() bool
- func (e AssessEvidenceResponseValidationError) Reason() string
- type AssessEvidencesResponse
- func (*AssessEvidencesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssessEvidencesResponse) GetStatus() AssessEvidencesResponse_AssessmentStatus
- func (x *AssessEvidencesResponse) GetStatusMessage() string
- func (*AssessEvidencesResponse) ProtoMessage()
- func (x *AssessEvidencesResponse) ProtoReflect() protoreflect.Message
- func (x *AssessEvidencesResponse) Reset()
- func (x *AssessEvidencesResponse) String() string
- func (m *AssessEvidencesResponse) Validate() error
- func (m *AssessEvidencesResponse) ValidateAll() error
- type AssessEvidencesResponseMultiError
- type AssessEvidencesResponseValidationError
- func (e AssessEvidencesResponseValidationError) Cause() error
- func (e AssessEvidencesResponseValidationError) Error() string
- func (e AssessEvidencesResponseValidationError) ErrorName() string
- func (e AssessEvidencesResponseValidationError) Field() string
- func (e AssessEvidencesResponseValidationError) Key() bool
- func (e AssessEvidencesResponseValidationError) Reason() string
- type AssessEvidencesResponse_AssessmentStatus
- func (AssessEvidencesResponse_AssessmentStatus) Descriptor() protoreflect.EnumDescriptor
- func (x AssessEvidencesResponse_AssessmentStatus) Enum() *AssessEvidencesResponse_AssessmentStatus
- func (AssessEvidencesResponse_AssessmentStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x AssessEvidencesResponse_AssessmentStatus) Number() protoreflect.EnumNumber
- func (x AssessEvidencesResponse_AssessmentStatus) String() string
- func (AssessEvidencesResponse_AssessmentStatus) Type() protoreflect.EnumType
- type AssessmentClient
- type AssessmentResult
- func (*AssessmentResult) Descriptor() ([]byte, []int)deprecated
- func (x *AssessmentResult) GetCloudServiceId() string
- func (x *AssessmentResult) GetCompliant() bool
- func (x *AssessmentResult) GetEvidenceId() string
- func (x *AssessmentResult) GetId() string
- func (x *AssessmentResult) GetMetricConfiguration() *MetricConfiguration
- func (x *AssessmentResult) GetMetricId() string
- func (x *AssessmentResult) GetNonComplianceComments() string
- func (x *AssessmentResult) GetResourceId() string
- func (x *AssessmentResult) GetResourceTypes() []string
- func (x *AssessmentResult) GetTimestamp() *timestamppb.Timestamp
- func (x *AssessmentResult) GetToolId() string
- func (*AssessmentResult) ProtoMessage()
- func (x *AssessmentResult) ProtoReflect() protoreflect.Message
- func (x *AssessmentResult) Reset()
- func (x *AssessmentResult) String() string
- func (m *AssessmentResult) Validate() error
- func (m *AssessmentResult) ValidateAll() error
- type AssessmentResultMultiError
- type AssessmentResultValidationError
- func (e AssessmentResultValidationError) Cause() error
- func (e AssessmentResultValidationError) Error() string
- func (e AssessmentResultValidationError) ErrorName() string
- func (e AssessmentResultValidationError) Field() string
- func (e AssessmentResultValidationError) Key() bool
- func (e AssessmentResultValidationError) Reason() string
- type AssessmentServer
- type Assessment_AssessEvidencesClient
- type Assessment_AssessEvidencesServer
- type CalculateComplianceRequest
- func (*CalculateComplianceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CalculateComplianceRequest) GetControlId() string
- func (*CalculateComplianceRequest) ProtoMessage()
- func (x *CalculateComplianceRequest) ProtoReflect() protoreflect.Message
- func (x *CalculateComplianceRequest) Reset()
- func (x *CalculateComplianceRequest) String() string
- func (m *CalculateComplianceRequest) Validate() error
- func (m *CalculateComplianceRequest) ValidateAll() error
- type CalculateComplianceRequestMultiError
- type CalculateComplianceRequestValidationError
- func (e CalculateComplianceRequestValidationError) Cause() error
- func (e CalculateComplianceRequestValidationError) Error() string
- func (e CalculateComplianceRequestValidationError) ErrorName() string
- func (e CalculateComplianceRequestValidationError) Field() string
- func (e CalculateComplianceRequestValidationError) Key() bool
- func (e CalculateComplianceRequestValidationError) Reason() string
- type ConfigureAssessmentRequest
- func (*ConfigureAssessmentRequest) Descriptor() ([]byte, []int)deprecated
- func (*ConfigureAssessmentRequest) ProtoMessage()
- func (x *ConfigureAssessmentRequest) ProtoReflect() protoreflect.Message
- func (x *ConfigureAssessmentRequest) Reset()
- func (x *ConfigureAssessmentRequest) String() string
- func (m *ConfigureAssessmentRequest) Validate() error
- func (m *ConfigureAssessmentRequest) ValidateAll() error
- type ConfigureAssessmentRequestMultiError
- type ConfigureAssessmentRequestValidationError
- func (e ConfigureAssessmentRequestValidationError) Cause() error
- func (e ConfigureAssessmentRequestValidationError) Error() string
- func (e ConfigureAssessmentRequestValidationError) ErrorName() string
- func (e ConfigureAssessmentRequestValidationError) Field() string
- func (e ConfigureAssessmentRequestValidationError) Key() bool
- func (e ConfigureAssessmentRequestValidationError) Reason() string
- type ConfigureAssessmentResponse
- func (*ConfigureAssessmentResponse) Descriptor() ([]byte, []int)deprecated
- func (*ConfigureAssessmentResponse) ProtoMessage()
- func (x *ConfigureAssessmentResponse) ProtoReflect() protoreflect.Message
- func (x *ConfigureAssessmentResponse) Reset()
- func (x *ConfigureAssessmentResponse) String() string
- func (m *ConfigureAssessmentResponse) Validate() error
- func (m *ConfigureAssessmentResponse) ValidateAll() error
- type ConfigureAssessmentResponseMultiError
- type ConfigureAssessmentResponseValidationError
- func (e ConfigureAssessmentResponseValidationError) Cause() error
- func (e ConfigureAssessmentResponseValidationError) Error() string
- func (e ConfigureAssessmentResponseValidationError) ErrorName() string
- func (e ConfigureAssessmentResponseValidationError) Field() string
- func (e ConfigureAssessmentResponseValidationError) Key() bool
- func (e ConfigureAssessmentResponseValidationError) Reason() string
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (x *Metric) GetCategory() string
- func (x *Metric) GetDeprecatedSince() *timestamppb.Timestamp
- func (x *Metric) GetDescription() string
- func (x *Metric) GetId() string
- func (x *Metric) GetImplementation() *MetricImplementation
- func (x *Metric) GetInterval() int64
- func (x *Metric) GetName() string
- func (x *Metric) GetRange() *Range
- func (x *Metric) GetScale() Metric_Scale
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- func (m *Metric) Validate() error
- func (m *Metric) ValidateAll() error
- type MetricConfiguration
- func (*MetricConfiguration) Descriptor() ([]byte, []int)deprecated
- func (x *MetricConfiguration) GetCloudServiceId() string
- func (x *MetricConfiguration) GetIsDefault() bool
- func (x *MetricConfiguration) GetMetricId() string
- func (x *MetricConfiguration) GetOperator() string
- func (x *MetricConfiguration) GetTargetValue() *structpb.Value
- func (x *MetricConfiguration) GetUpdatedAt() *timestamppb.Timestamp
- func (x *MetricConfiguration) Hash() string
- func (x *MetricConfiguration) MarshalJSON() (b []byte, err error)
- func (*MetricConfiguration) ProtoMessage()
- func (x *MetricConfiguration) ProtoReflect() protoreflect.Message
- func (x *MetricConfiguration) Reset()
- func (x *MetricConfiguration) String() string
- func (x *MetricConfiguration) UnmarshalJSON(b []byte) (err error)
- func (m *MetricConfiguration) Validate() error
- func (m *MetricConfiguration) ValidateAll() error
- type MetricConfigurationMultiError
- type MetricConfigurationValidationError
- func (e MetricConfigurationValidationError) Cause() error
- func (e MetricConfigurationValidationError) Error() string
- func (e MetricConfigurationValidationError) ErrorName() string
- func (e MetricConfigurationValidationError) Field() string
- func (e MetricConfigurationValidationError) Key() bool
- func (e MetricConfigurationValidationError) Reason() string
- type MetricImplementation
- func (*MetricImplementation) Descriptor() ([]byte, []int)deprecated
- func (x *MetricImplementation) GetCode() string
- func (x *MetricImplementation) GetLang() MetricImplementation_Language
- func (x *MetricImplementation) GetMetricId() string
- func (x *MetricImplementation) GetUpdatedAt() *timestamppb.Timestamp
- func (*MetricImplementation) ProtoMessage()
- func (x *MetricImplementation) ProtoReflect() protoreflect.Message
- func (x *MetricImplementation) Reset()
- func (x *MetricImplementation) String() string
- func (m *MetricImplementation) Validate() error
- func (m *MetricImplementation) ValidateAll() error
- type MetricImplementationMultiError
- type MetricImplementationValidationError
- func (e MetricImplementationValidationError) Cause() error
- func (e MetricImplementationValidationError) Error() string
- func (e MetricImplementationValidationError) ErrorName() string
- func (e MetricImplementationValidationError) Field() string
- func (e MetricImplementationValidationError) Key() bool
- func (e MetricImplementationValidationError) Reason() string
- type MetricImplementation_Language
- func (MetricImplementation_Language) Descriptor() protoreflect.EnumDescriptor
- func (x MetricImplementation_Language) Enum() *MetricImplementation_Language
- func (MetricImplementation_Language) EnumDescriptor() ([]byte, []int)deprecated
- func (x MetricImplementation_Language) Number() protoreflect.EnumNumber
- func (x MetricImplementation_Language) String() string
- func (MetricImplementation_Language) Type() protoreflect.EnumType
- type MetricMultiError
- type MetricValidationError
- type Metric_Scale
- func (Metric_Scale) Descriptor() protoreflect.EnumDescriptor
- func (x Metric_Scale) Enum() *Metric_Scale
- func (Metric_Scale) EnumDescriptor() ([]byte, []int)deprecated
- func (x Metric_Scale) Number() protoreflect.EnumNumber
- func (x Metric_Scale) String() string
- func (Metric_Scale) Type() protoreflect.EnumType
- type MinMax
- func (*MinMax) Descriptor() ([]byte, []int)deprecated
- func (x *MinMax) GetMax() int64
- func (x *MinMax) GetMin() int64
- func (*MinMax) ProtoMessage()
- func (x *MinMax) ProtoReflect() protoreflect.Message
- func (x *MinMax) Reset()
- func (x *MinMax) String() string
- func (m *MinMax) Validate() error
- func (m *MinMax) ValidateAll() error
- type MinMaxMultiError
- type MinMaxValidationError
- type Order
- func (*Order) Descriptor() ([]byte, []int)deprecated
- func (x *Order) GetValues() []*structpb.Value
- func (*Order) ProtoMessage()
- func (x *Order) ProtoReflect() protoreflect.Message
- func (x *Order) Reset()
- func (x *Order) String() string
- func (m *Order) Validate() error
- func (m *Order) ValidateAll() error
- type OrderMultiError
- type OrderValidationError
- type Range
- func (*Range) Descriptor() ([]byte, []int)deprecated
- func (x *Range) GetAllowedValues() *AllowedValues
- func (x *Range) GetMinMax() *MinMax
- func (x *Range) GetOrder() *Order
- func (m *Range) GetRange() isRange_Range
- func (*Range) GormDataType() string
- func (r *Range) MarshalJSON() (b []byte, err error)
- func (*Range) ProtoMessage()
- func (x *Range) ProtoReflect() protoreflect.Message
- func (x *Range) Reset()
- func (r *Range) Scan(value interface{}) (err error)
- func (x *Range) String() string
- func (r *Range) UnmarshalJSON(b []byte) (err error)
- func (m *Range) Validate() error
- func (m *Range) ValidateAll() error
- func (r *Range) Value() (val driver.Value, err error)
- type RangeMultiError
- type RangeValidationError
- type Range_AllowedValues
- type Range_MinMax
- type Range_Order
- type ResultHookFunc
- type UnimplementedAssessmentServer
- func (UnimplementedAssessmentServer) AssessEvidence(context.Context, *AssessEvidenceRequest) (*AssessEvidenceResponse, error)
- func (UnimplementedAssessmentServer) AssessEvidences(Assessment_AssessEvidencesServer) error
- func (UnimplementedAssessmentServer) CalculateCompliance(context.Context, *CalculateComplianceRequest) (*emptypb.Empty, error)
- type UnsafeAssessmentServer
Constants ¶
const AssessmentToolId = "Clouditor Assessment"
Variables ¶
var ( ErrMetricConfigurationMissing = errors.New("metric configuration in assessment result is missing") ErrMetricConfigurationOperatorMissing = errors.New("operator in metric data is missing") ErrMetricConfigurationTargetValueMissing = errors.New("target value in metric data is missing") )
var ( AssessEvidencesResponse_AssessmentStatus_name = map[int32]string{ 0: "ASSESSMENT_STATUS_UNSPECIFIED", 1: "WAITING_FOR_RELATED", 2: "ASSESSED", 3: "FAILED", } AssessEvidencesResponse_AssessmentStatus_value = map[string]int32{ "ASSESSMENT_STATUS_UNSPECIFIED": 0, "WAITING_FOR_RELATED": 1, "ASSESSED": 2, "FAILED": 3, } )
Enum value maps for AssessEvidencesResponse_AssessmentStatus.
var ( ErrMetricNameMissing = errors.New("metric name is missing") ErrMetricEmpty = errors.New("metric is missing or empty") ErrCloudServiceIDIsMissing = errors.New("cloud service id is missing") ErrCloudServiceIDIsInvalid = errors.New("cloud service id is invalid") )
var ( Metric_Scale_name = map[int32]string{ 0: "SCALE_UNSPECIFIED", 1: "NOMINAL", 2: "ORDINAL", 3: "METRIC", } Metric_Scale_value = map[string]int32{ "SCALE_UNSPECIFIED": 0, "NOMINAL": 1, "ORDINAL": 2, "METRIC": 3, } )
Enum value maps for Metric_Scale.
var ( MetricImplementation_Language_name = map[int32]string{ 0: "LANGUAGE_UNSPECIFIED", 1: "LANGUAGE_REGO", } MetricImplementation_Language_value = map[string]int32{ "LANGUAGE_UNSPECIFIED": 0, "LANGUAGE_REGO": 1, } )
Enum value maps for MetricImplementation_Language.
var Assessment_ServiceDesc = grpc.ServiceDesc{ ServiceName: "clouditor.assessment.v1.Assessment", HandlerType: (*AssessmentServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CalculateCompliance", Handler: _Assessment_CalculateCompliance_Handler, }, { MethodName: "AssessEvidence", Handler: _Assessment_AssessEvidence_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "AssessEvidences", Handler: _Assessment_AssessEvidences_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "api/assessment/assessment.proto", }
Assessment_ServiceDesc is the grpc.ServiceDesc for Assessment 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_assessment_assessment_proto protoreflect.FileDescriptor
var File_api_assessment_metric_proto protoreflect.FileDescriptor
Functions ¶
func CheckCloudServiceID ¶
CheckCloudServiceID checks if serviceID is available and in the valid UUID format.
func RegisterAssessmentHandler ¶
func RegisterAssessmentHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterAssessmentHandler registers the http handlers for service Assessment to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterAssessmentHandlerClient ¶
func RegisterAssessmentHandlerClient(ctx context.Context, mux *runtime.ServeMux, client AssessmentClient) error
RegisterAssessmentHandlerClient registers the http handlers for service Assessment to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "AssessmentClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "AssessmentClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "AssessmentClient" to call the correct interceptors.
func RegisterAssessmentHandlerFromEndpoint ¶
func RegisterAssessmentHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterAssessmentHandlerFromEndpoint is same as RegisterAssessmentHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterAssessmentHandlerServer ¶
func RegisterAssessmentHandlerServer(ctx context.Context, mux *runtime.ServeMux, server AssessmentServer) error
RegisterAssessmentHandlerServer registers the http handlers for service Assessment to "mux". UnaryRPC :call AssessmentServer 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 RegisterAssessmentHandlerFromEndpoint instead.
func RegisterAssessmentServer ¶
func RegisterAssessmentServer(s grpc.ServiceRegistrar, srv AssessmentServer)
Types ¶
type AllowedValues ¶
type AllowedValues struct { Values []*structpb.Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Defines a range
func (*AllowedValues) Descriptor
deprecated
func (*AllowedValues) Descriptor() ([]byte, []int)
Deprecated: Use AllowedValues.ProtoReflect.Descriptor instead.
func (*AllowedValues) GetValues ¶
func (x *AllowedValues) GetValues() []*structpb.Value
func (*AllowedValues) ProtoMessage ¶
func (*AllowedValues) ProtoMessage()
func (*AllowedValues) ProtoReflect ¶
func (x *AllowedValues) ProtoReflect() protoreflect.Message
func (*AllowedValues) Reset ¶
func (x *AllowedValues) Reset()
func (*AllowedValues) String ¶
func (x *AllowedValues) String() string
func (*AllowedValues) Validate ¶
func (m *AllowedValues) Validate() error
Validate checks the field values on AllowedValues with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AllowedValues) ValidateAll ¶
func (m *AllowedValues) ValidateAll() error
ValidateAll checks the field values on AllowedValues with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AllowedValuesMultiError, or nil if none found.
type AllowedValuesMultiError ¶
type AllowedValuesMultiError []error
AllowedValuesMultiError is an error wrapping multiple validation errors returned by AllowedValues.ValidateAll() if the designated constraints aren't met.
func (AllowedValuesMultiError) AllErrors ¶
func (m AllowedValuesMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AllowedValuesMultiError) Error ¶
func (m AllowedValuesMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AllowedValuesValidationError ¶
type AllowedValuesValidationError struct {
// contains filtered or unexported fields
}
AllowedValuesValidationError is the validation error returned by AllowedValues.Validate if the designated constraints aren't met.
func (AllowedValuesValidationError) Cause ¶
func (e AllowedValuesValidationError) Cause() error
Cause function returns cause value.
func (AllowedValuesValidationError) Error ¶
func (e AllowedValuesValidationError) Error() string
Error satisfies the builtin error interface
func (AllowedValuesValidationError) ErrorName ¶
func (e AllowedValuesValidationError) ErrorName() string
ErrorName returns error name.
func (AllowedValuesValidationError) Field ¶
func (e AllowedValuesValidationError) Field() string
Field function returns field value.
func (AllowedValuesValidationError) Key ¶
func (e AllowedValuesValidationError) Key() bool
Key function returns key value.
func (AllowedValuesValidationError) Reason ¶
func (e AllowedValuesValidationError) Reason() string
Reason function returns reason value.
type AssessEvidenceRequest ¶
type AssessEvidenceRequest struct { Evidence *evidence.Evidence `protobuf:"bytes,1,opt,name=evidence,proto3" json:"evidence,omitempty"` // contains filtered or unexported fields }
func (*AssessEvidenceRequest) Descriptor
deprecated
func (*AssessEvidenceRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssessEvidenceRequest.ProtoReflect.Descriptor instead.
func (*AssessEvidenceRequest) GetCloudServiceId ¶
func (req *AssessEvidenceRequest) GetCloudServiceId() string
GetCloudServiceId is a shortcut to implement CloudServiceRequest. It returns the cloud service ID of the inner object.
func (*AssessEvidenceRequest) GetEvidence ¶
func (x *AssessEvidenceRequest) GetEvidence() *evidence.Evidence
func (*AssessEvidenceRequest) GetPayload ¶
func (req *AssessEvidenceRequest) GetPayload() proto.Message
func (*AssessEvidenceRequest) ProtoMessage ¶
func (*AssessEvidenceRequest) ProtoMessage()
func (*AssessEvidenceRequest) ProtoReflect ¶
func (x *AssessEvidenceRequest) ProtoReflect() protoreflect.Message
func (*AssessEvidenceRequest) Reset ¶
func (x *AssessEvidenceRequest) Reset()
func (*AssessEvidenceRequest) String ¶
func (x *AssessEvidenceRequest) String() string
func (*AssessEvidenceRequest) Validate ¶
func (m *AssessEvidenceRequest) Validate() error
Validate checks the field values on AssessEvidenceRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AssessEvidenceRequest) ValidateAll ¶
func (m *AssessEvidenceRequest) ValidateAll() error
ValidateAll checks the field values on AssessEvidenceRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssessEvidenceRequestMultiError, or nil if none found.
type AssessEvidenceRequestMultiError ¶
type AssessEvidenceRequestMultiError []error
AssessEvidenceRequestMultiError is an error wrapping multiple validation errors returned by AssessEvidenceRequest.ValidateAll() if the designated constraints aren't met.
func (AssessEvidenceRequestMultiError) AllErrors ¶
func (m AssessEvidenceRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AssessEvidenceRequestMultiError) Error ¶
func (m AssessEvidenceRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AssessEvidenceRequestValidationError ¶
type AssessEvidenceRequestValidationError struct {
// contains filtered or unexported fields
}
AssessEvidenceRequestValidationError is the validation error returned by AssessEvidenceRequest.Validate if the designated constraints aren't met.
func (AssessEvidenceRequestValidationError) Cause ¶
func (e AssessEvidenceRequestValidationError) Cause() error
Cause function returns cause value.
func (AssessEvidenceRequestValidationError) Error ¶
func (e AssessEvidenceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (AssessEvidenceRequestValidationError) ErrorName ¶
func (e AssessEvidenceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (AssessEvidenceRequestValidationError) Field ¶
func (e AssessEvidenceRequestValidationError) Field() string
Field function returns field value.
func (AssessEvidenceRequestValidationError) Key ¶
func (e AssessEvidenceRequestValidationError) Key() bool
Key function returns key value.
func (AssessEvidenceRequestValidationError) Reason ¶
func (e AssessEvidenceRequestValidationError) Reason() string
Reason function returns reason value.
type AssessEvidenceResponse ¶
type AssessEvidenceResponse struct {
// contains filtered or unexported fields
}
AssessEvidenceResponse belongs to AssessEvidence, which uses a custom unary RPC and therefore requires a response message according to the style convention. Since no return values are required, this is empty.
func (*AssessEvidenceResponse) Descriptor
deprecated
func (*AssessEvidenceResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssessEvidenceResponse.ProtoReflect.Descriptor instead.
func (*AssessEvidenceResponse) ProtoMessage ¶
func (*AssessEvidenceResponse) ProtoMessage()
func (*AssessEvidenceResponse) ProtoReflect ¶
func (x *AssessEvidenceResponse) ProtoReflect() protoreflect.Message
func (*AssessEvidenceResponse) Reset ¶
func (x *AssessEvidenceResponse) Reset()
func (*AssessEvidenceResponse) String ¶
func (x *AssessEvidenceResponse) String() string
func (*AssessEvidenceResponse) Validate ¶
func (m *AssessEvidenceResponse) Validate() error
Validate checks the field values on AssessEvidenceResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AssessEvidenceResponse) ValidateAll ¶
func (m *AssessEvidenceResponse) ValidateAll() error
ValidateAll checks the field values on AssessEvidenceResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssessEvidenceResponseMultiError, or nil if none found.
type AssessEvidenceResponseMultiError ¶
type AssessEvidenceResponseMultiError []error
AssessEvidenceResponseMultiError is an error wrapping multiple validation errors returned by AssessEvidenceResponse.ValidateAll() if the designated constraints aren't met.
func (AssessEvidenceResponseMultiError) AllErrors ¶
func (m AssessEvidenceResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AssessEvidenceResponseMultiError) Error ¶
func (m AssessEvidenceResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AssessEvidenceResponseValidationError ¶
type AssessEvidenceResponseValidationError struct {
// contains filtered or unexported fields
}
AssessEvidenceResponseValidationError is the validation error returned by AssessEvidenceResponse.Validate if the designated constraints aren't met.
func (AssessEvidenceResponseValidationError) Cause ¶
func (e AssessEvidenceResponseValidationError) Cause() error
Cause function returns cause value.
func (AssessEvidenceResponseValidationError) Error ¶
func (e AssessEvidenceResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AssessEvidenceResponseValidationError) ErrorName ¶
func (e AssessEvidenceResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AssessEvidenceResponseValidationError) Field ¶
func (e AssessEvidenceResponseValidationError) Field() string
Field function returns field value.
func (AssessEvidenceResponseValidationError) Key ¶
func (e AssessEvidenceResponseValidationError) Key() bool
Key function returns key value.
func (AssessEvidenceResponseValidationError) Reason ¶
func (e AssessEvidenceResponseValidationError) Reason() string
Reason function returns reason value.
type AssessEvidencesResponse ¶
type AssessEvidencesResponse struct { Status AssessEvidencesResponse_AssessmentStatus `` /* 136-byte string literal not displayed */ StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"` // contains filtered or unexported fields }
AssessEvidencesResponse belongs to AssessEvidences, which uses a custom bidirectional streaming RPC and therefore requires a response message according to the style convention. The bidirectional streaming needs the status and its message in the response for error handling.
func (*AssessEvidencesResponse) Descriptor
deprecated
func (*AssessEvidencesResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssessEvidencesResponse.ProtoReflect.Descriptor instead.
func (*AssessEvidencesResponse) GetStatus ¶
func (x *AssessEvidencesResponse) GetStatus() AssessEvidencesResponse_AssessmentStatus
func (*AssessEvidencesResponse) GetStatusMessage ¶
func (x *AssessEvidencesResponse) GetStatusMessage() string
func (*AssessEvidencesResponse) ProtoMessage ¶
func (*AssessEvidencesResponse) ProtoMessage()
func (*AssessEvidencesResponse) ProtoReflect ¶
func (x *AssessEvidencesResponse) ProtoReflect() protoreflect.Message
func (*AssessEvidencesResponse) Reset ¶
func (x *AssessEvidencesResponse) Reset()
func (*AssessEvidencesResponse) String ¶
func (x *AssessEvidencesResponse) String() string
func (*AssessEvidencesResponse) Validate ¶
func (m *AssessEvidencesResponse) Validate() error
Validate checks the field values on AssessEvidencesResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AssessEvidencesResponse) ValidateAll ¶
func (m *AssessEvidencesResponse) ValidateAll() error
ValidateAll checks the field values on AssessEvidencesResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssessEvidencesResponseMultiError, or nil if none found.
type AssessEvidencesResponseMultiError ¶
type AssessEvidencesResponseMultiError []error
AssessEvidencesResponseMultiError is an error wrapping multiple validation errors returned by AssessEvidencesResponse.ValidateAll() if the designated constraints aren't met.
func (AssessEvidencesResponseMultiError) AllErrors ¶
func (m AssessEvidencesResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AssessEvidencesResponseMultiError) Error ¶
func (m AssessEvidencesResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AssessEvidencesResponseValidationError ¶
type AssessEvidencesResponseValidationError struct {
// contains filtered or unexported fields
}
AssessEvidencesResponseValidationError is the validation error returned by AssessEvidencesResponse.Validate if the designated constraints aren't met.
func (AssessEvidencesResponseValidationError) Cause ¶
func (e AssessEvidencesResponseValidationError) Cause() error
Cause function returns cause value.
func (AssessEvidencesResponseValidationError) Error ¶
func (e AssessEvidencesResponseValidationError) Error() string
Error satisfies the builtin error interface
func (AssessEvidencesResponseValidationError) ErrorName ¶
func (e AssessEvidencesResponseValidationError) ErrorName() string
ErrorName returns error name.
func (AssessEvidencesResponseValidationError) Field ¶
func (e AssessEvidencesResponseValidationError) Field() string
Field function returns field value.
func (AssessEvidencesResponseValidationError) Key ¶
func (e AssessEvidencesResponseValidationError) Key() bool
Key function returns key value.
func (AssessEvidencesResponseValidationError) Reason ¶
func (e AssessEvidencesResponseValidationError) Reason() string
Reason function returns reason value.
type AssessEvidencesResponse_AssessmentStatus ¶
type AssessEvidencesResponse_AssessmentStatus int32
const ( AssessEvidencesResponse_ASSESSMENT_STATUS_UNSPECIFIED AssessEvidencesResponse_AssessmentStatus = 0 AssessEvidencesResponse_WAITING_FOR_RELATED AssessEvidencesResponse_AssessmentStatus = 1 AssessEvidencesResponse_ASSESSED AssessEvidencesResponse_AssessmentStatus = 2 AssessEvidencesResponse_FAILED AssessEvidencesResponse_AssessmentStatus = 3 )
func (AssessEvidencesResponse_AssessmentStatus) Descriptor ¶
func (AssessEvidencesResponse_AssessmentStatus) Descriptor() protoreflect.EnumDescriptor
func (AssessEvidencesResponse_AssessmentStatus) EnumDescriptor
deprecated
func (AssessEvidencesResponse_AssessmentStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use AssessEvidencesResponse_AssessmentStatus.Descriptor instead.
func (AssessEvidencesResponse_AssessmentStatus) Number ¶
func (x AssessEvidencesResponse_AssessmentStatus) Number() protoreflect.EnumNumber
func (AssessEvidencesResponse_AssessmentStatus) String ¶
func (x AssessEvidencesResponse_AssessmentStatus) String() string
func (AssessEvidencesResponse_AssessmentStatus) Type ¶
func (AssessEvidencesResponse_AssessmentStatus) Type() protoreflect.EnumType
type AssessmentClient ¶
type AssessmentClient interface { // Triggers the compliance calculation. Part of the private API. Not exposed // as REST. CalculateCompliance(ctx context.Context, in *CalculateComplianceRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) // Assesses the evidence sent by the discovery. Part of the public API, also // exposed as REST. AssessEvidence(ctx context.Context, in *AssessEvidenceRequest, opts ...grpc.CallOption) (*AssessEvidenceResponse, error) // Assesses stream of evidences sent by the discovery and returns a response // stream. Part of the public API. Not exposed as REST. AssessEvidences(ctx context.Context, opts ...grpc.CallOption) (Assessment_AssessEvidencesClient, error) }
AssessmentClient is the client API for Assessment 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 NewAssessmentClient ¶
func NewAssessmentClient(cc grpc.ClientConnInterface) AssessmentClient
type AssessmentResult ¶
type AssessmentResult struct { // Assessment result id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Time of assessment Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty" gorm:"serializer:timestamppb;type:datetime"` // Reference to the metric the assessment was based on MetricId string `protobuf:"bytes,3,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty"` // Data corresponding to the metric by the given metric id MetricConfiguration *MetricConfiguration `` /* 141-byte string literal not displayed */ // Compliant case: true or false Compliant bool `protobuf:"varint,5,opt,name=compliant,proto3" json:"compliant,omitempty"` // Reference to the assessed evidence EvidenceId string `protobuf:"bytes,6,opt,name=evidence_id,json=evidenceId,proto3" json:"evidence_id,omitempty"` // Reference to the resource of the assessed evidence ResourceId string `protobuf:"bytes,7,opt,name=resource_id,json=resourceId,proto3" json:"resource_id,omitempty"` // Resource types ResourceTypes []string `protobuf:"bytes,8,rep,name=resource_types,json=resourceTypes,proto3" json:"resource_types,omitempty" gorm:"serializer:json"` // Some comments on the reason for non-compliance NonComplianceComments string `` /* 126-byte string literal not displayed */ // The cloud service which this assessment result belongs to CloudServiceId string `protobuf:"bytes,10,opt,name=cloud_service_id,json=cloudServiceId,proto3" json:"cloud_service_id,omitempty"` // Reference to the tool which provided the assessment result ToolId *string `protobuf:"bytes,11,opt,name=tool_id,json=toolId,proto3,oneof" json:"tool_id,omitempty"` // contains filtered or unexported fields }
A result resource, representing the result after assessing the cloud resource with id resource_id.
func (*AssessmentResult) Descriptor
deprecated
func (*AssessmentResult) Descriptor() ([]byte, []int)
Deprecated: Use AssessmentResult.ProtoReflect.Descriptor instead.
func (*AssessmentResult) GetCloudServiceId ¶
func (x *AssessmentResult) GetCloudServiceId() string
func (*AssessmentResult) GetCompliant ¶
func (x *AssessmentResult) GetCompliant() bool
func (*AssessmentResult) GetEvidenceId ¶
func (x *AssessmentResult) GetEvidenceId() string
func (*AssessmentResult) GetId ¶
func (x *AssessmentResult) GetId() string
func (*AssessmentResult) GetMetricConfiguration ¶
func (x *AssessmentResult) GetMetricConfiguration() *MetricConfiguration
func (*AssessmentResult) GetMetricId ¶
func (x *AssessmentResult) GetMetricId() string
func (*AssessmentResult) GetNonComplianceComments ¶
func (x *AssessmentResult) GetNonComplianceComments() string
func (*AssessmentResult) GetResourceId ¶
func (x *AssessmentResult) GetResourceId() string
func (*AssessmentResult) GetResourceTypes ¶
func (x *AssessmentResult) GetResourceTypes() []string
func (*AssessmentResult) GetTimestamp ¶
func (x *AssessmentResult) GetTimestamp() *timestamppb.Timestamp
func (*AssessmentResult) GetToolId ¶
func (x *AssessmentResult) GetToolId() string
func (*AssessmentResult) ProtoMessage ¶
func (*AssessmentResult) ProtoMessage()
func (*AssessmentResult) ProtoReflect ¶
func (x *AssessmentResult) ProtoReflect() protoreflect.Message
func (*AssessmentResult) Reset ¶
func (x *AssessmentResult) Reset()
func (*AssessmentResult) String ¶
func (x *AssessmentResult) String() string
func (*AssessmentResult) Validate ¶
func (m *AssessmentResult) Validate() error
Validate checks the field values on AssessmentResult with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*AssessmentResult) ValidateAll ¶
func (m *AssessmentResult) ValidateAll() error
ValidateAll checks the field values on AssessmentResult with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in AssessmentResultMultiError, or nil if none found.
type AssessmentResultMultiError ¶
type AssessmentResultMultiError []error
AssessmentResultMultiError is an error wrapping multiple validation errors returned by AssessmentResult.ValidateAll() if the designated constraints aren't met.
func (AssessmentResultMultiError) AllErrors ¶
func (m AssessmentResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (AssessmentResultMultiError) Error ¶
func (m AssessmentResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type AssessmentResultValidationError ¶
type AssessmentResultValidationError struct {
// contains filtered or unexported fields
}
AssessmentResultValidationError is the validation error returned by AssessmentResult.Validate if the designated constraints aren't met.
func (AssessmentResultValidationError) Cause ¶
func (e AssessmentResultValidationError) Cause() error
Cause function returns cause value.
func (AssessmentResultValidationError) Error ¶
func (e AssessmentResultValidationError) Error() string
Error satisfies the builtin error interface
func (AssessmentResultValidationError) ErrorName ¶
func (e AssessmentResultValidationError) ErrorName() string
ErrorName returns error name.
func (AssessmentResultValidationError) Field ¶
func (e AssessmentResultValidationError) Field() string
Field function returns field value.
func (AssessmentResultValidationError) Key ¶
func (e AssessmentResultValidationError) Key() bool
Key function returns key value.
func (AssessmentResultValidationError) Reason ¶
func (e AssessmentResultValidationError) Reason() string
Reason function returns reason value.
type AssessmentServer ¶
type AssessmentServer interface { // Triggers the compliance calculation. Part of the private API. Not exposed // as REST. CalculateCompliance(context.Context, *CalculateComplianceRequest) (*emptypb.Empty, error) // Assesses the evidence sent by the discovery. Part of the public API, also // exposed as REST. AssessEvidence(context.Context, *AssessEvidenceRequest) (*AssessEvidenceResponse, error) // Assesses stream of evidences sent by the discovery and returns a response // stream. Part of the public API. Not exposed as REST. AssessEvidences(Assessment_AssessEvidencesServer) error // contains filtered or unexported methods }
AssessmentServer is the server API for Assessment service. All implementations must embed UnimplementedAssessmentServer for forward compatibility
type Assessment_AssessEvidencesClient ¶
type Assessment_AssessEvidencesClient interface { Send(*AssessEvidenceRequest) error Recv() (*AssessEvidencesResponse, error) grpc.ClientStream }
type Assessment_AssessEvidencesServer ¶
type Assessment_AssessEvidencesServer interface { Send(*AssessEvidencesResponse) error Recv() (*AssessEvidenceRequest, error) grpc.ServerStream }
type CalculateComplianceRequest ¶
type CalculateComplianceRequest struct { ControlId string `protobuf:"bytes,1,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"` // contains filtered or unexported fields }
func (*CalculateComplianceRequest) Descriptor
deprecated
func (*CalculateComplianceRequest) Descriptor() ([]byte, []int)
Deprecated: Use CalculateComplianceRequest.ProtoReflect.Descriptor instead.
func (*CalculateComplianceRequest) GetControlId ¶
func (x *CalculateComplianceRequest) GetControlId() string
func (*CalculateComplianceRequest) ProtoMessage ¶
func (*CalculateComplianceRequest) ProtoMessage()
func (*CalculateComplianceRequest) ProtoReflect ¶
func (x *CalculateComplianceRequest) ProtoReflect() protoreflect.Message
func (*CalculateComplianceRequest) Reset ¶
func (x *CalculateComplianceRequest) Reset()
func (*CalculateComplianceRequest) String ¶
func (x *CalculateComplianceRequest) String() string
func (*CalculateComplianceRequest) Validate ¶
func (m *CalculateComplianceRequest) Validate() error
Validate checks the field values on CalculateComplianceRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*CalculateComplianceRequest) ValidateAll ¶
func (m *CalculateComplianceRequest) ValidateAll() error
ValidateAll checks the field values on CalculateComplianceRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in CalculateComplianceRequestMultiError, or nil if none found.
type CalculateComplianceRequestMultiError ¶
type CalculateComplianceRequestMultiError []error
CalculateComplianceRequestMultiError is an error wrapping multiple validation errors returned by CalculateComplianceRequest.ValidateAll() if the designated constraints aren't met.
func (CalculateComplianceRequestMultiError) AllErrors ¶
func (m CalculateComplianceRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CalculateComplianceRequestMultiError) Error ¶
func (m CalculateComplianceRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CalculateComplianceRequestValidationError ¶
type CalculateComplianceRequestValidationError struct {
// contains filtered or unexported fields
}
CalculateComplianceRequestValidationError is the validation error returned by CalculateComplianceRequest.Validate if the designated constraints aren't met.
func (CalculateComplianceRequestValidationError) Cause ¶
func (e CalculateComplianceRequestValidationError) Cause() error
Cause function returns cause value.
func (CalculateComplianceRequestValidationError) Error ¶
func (e CalculateComplianceRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CalculateComplianceRequestValidationError) ErrorName ¶
func (e CalculateComplianceRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CalculateComplianceRequestValidationError) Field ¶
func (e CalculateComplianceRequestValidationError) Field() string
Field function returns field value.
func (CalculateComplianceRequestValidationError) Key ¶
func (e CalculateComplianceRequestValidationError) Key() bool
Key function returns key value.
func (CalculateComplianceRequestValidationError) Reason ¶
func (e CalculateComplianceRequestValidationError) Reason() string
Reason function returns reason value.
type ConfigureAssessmentRequest ¶
type ConfigureAssessmentRequest struct {
// contains filtered or unexported fields
}
func (*ConfigureAssessmentRequest) Descriptor
deprecated
func (*ConfigureAssessmentRequest) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureAssessmentRequest.ProtoReflect.Descriptor instead.
func (*ConfigureAssessmentRequest) ProtoMessage ¶
func (*ConfigureAssessmentRequest) ProtoMessage()
func (*ConfigureAssessmentRequest) ProtoReflect ¶
func (x *ConfigureAssessmentRequest) ProtoReflect() protoreflect.Message
func (*ConfigureAssessmentRequest) Reset ¶
func (x *ConfigureAssessmentRequest) Reset()
func (*ConfigureAssessmentRequest) String ¶
func (x *ConfigureAssessmentRequest) String() string
func (*ConfigureAssessmentRequest) Validate ¶
func (m *ConfigureAssessmentRequest) Validate() error
Validate checks the field values on ConfigureAssessmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigureAssessmentRequest) ValidateAll ¶
func (m *ConfigureAssessmentRequest) ValidateAll() error
ValidateAll checks the field values on ConfigureAssessmentRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigureAssessmentRequestMultiError, or nil if none found.
type ConfigureAssessmentRequestMultiError ¶
type ConfigureAssessmentRequestMultiError []error
ConfigureAssessmentRequestMultiError is an error wrapping multiple validation errors returned by ConfigureAssessmentRequest.ValidateAll() if the designated constraints aren't met.
func (ConfigureAssessmentRequestMultiError) AllErrors ¶
func (m ConfigureAssessmentRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigureAssessmentRequestMultiError) Error ¶
func (m ConfigureAssessmentRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigureAssessmentRequestValidationError ¶
type ConfigureAssessmentRequestValidationError struct {
// contains filtered or unexported fields
}
ConfigureAssessmentRequestValidationError is the validation error returned by ConfigureAssessmentRequest.Validate if the designated constraints aren't met.
func (ConfigureAssessmentRequestValidationError) Cause ¶
func (e ConfigureAssessmentRequestValidationError) Cause() error
Cause function returns cause value.
func (ConfigureAssessmentRequestValidationError) Error ¶
func (e ConfigureAssessmentRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigureAssessmentRequestValidationError) ErrorName ¶
func (e ConfigureAssessmentRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigureAssessmentRequestValidationError) Field ¶
func (e ConfigureAssessmentRequestValidationError) Field() string
Field function returns field value.
func (ConfigureAssessmentRequestValidationError) Key ¶
func (e ConfigureAssessmentRequestValidationError) Key() bool
Key function returns key value.
func (ConfigureAssessmentRequestValidationError) Reason ¶
func (e ConfigureAssessmentRequestValidationError) Reason() string
Reason function returns reason value.
type ConfigureAssessmentResponse ¶
type ConfigureAssessmentResponse struct {
// contains filtered or unexported fields
}
func (*ConfigureAssessmentResponse) Descriptor
deprecated
func (*ConfigureAssessmentResponse) Descriptor() ([]byte, []int)
Deprecated: Use ConfigureAssessmentResponse.ProtoReflect.Descriptor instead.
func (*ConfigureAssessmentResponse) ProtoMessage ¶
func (*ConfigureAssessmentResponse) ProtoMessage()
func (*ConfigureAssessmentResponse) ProtoReflect ¶
func (x *ConfigureAssessmentResponse) ProtoReflect() protoreflect.Message
func (*ConfigureAssessmentResponse) Reset ¶
func (x *ConfigureAssessmentResponse) Reset()
func (*ConfigureAssessmentResponse) String ¶
func (x *ConfigureAssessmentResponse) String() string
func (*ConfigureAssessmentResponse) Validate ¶
func (m *ConfigureAssessmentResponse) Validate() error
Validate checks the field values on ConfigureAssessmentResponse with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*ConfigureAssessmentResponse) ValidateAll ¶
func (m *ConfigureAssessmentResponse) ValidateAll() error
ValidateAll checks the field values on ConfigureAssessmentResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigureAssessmentResponseMultiError, or nil if none found.
type ConfigureAssessmentResponseMultiError ¶
type ConfigureAssessmentResponseMultiError []error
ConfigureAssessmentResponseMultiError is an error wrapping multiple validation errors returned by ConfigureAssessmentResponse.ValidateAll() if the designated constraints aren't met.
func (ConfigureAssessmentResponseMultiError) AllErrors ¶
func (m ConfigureAssessmentResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigureAssessmentResponseMultiError) Error ¶
func (m ConfigureAssessmentResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigureAssessmentResponseValidationError ¶
type ConfigureAssessmentResponseValidationError struct {
// contains filtered or unexported fields
}
ConfigureAssessmentResponseValidationError is the validation error returned by ConfigureAssessmentResponse.Validate if the designated constraints aren't met.
func (ConfigureAssessmentResponseValidationError) Cause ¶
func (e ConfigureAssessmentResponseValidationError) Cause() error
Cause function returns cause value.
func (ConfigureAssessmentResponseValidationError) Error ¶
func (e ConfigureAssessmentResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigureAssessmentResponseValidationError) ErrorName ¶
func (e ConfigureAssessmentResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigureAssessmentResponseValidationError) Field ¶
func (e ConfigureAssessmentResponseValidationError) Field() string
Field function returns field value.
func (ConfigureAssessmentResponseValidationError) Key ¶
func (e ConfigureAssessmentResponseValidationError) Key() bool
Key function returns key value.
func (ConfigureAssessmentResponseValidationError) Reason ¶
func (e ConfigureAssessmentResponseValidationError) Reason() string
Reason function returns reason value.
type Metric ¶
type Metric struct { // Required. The unique identifier of the metric. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // Required. The human readable name of the metric. Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // The description of the metric Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"` // The reference to control catalog category or domain Category string `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"` // The scale of this metric, e.g. categories, ranked data or metric values. Scale Metric_Scale `protobuf:"varint,5,opt,name=scale,proto3,enum=clouditor.assessment.v1.Metric_Scale" json:"scale,omitempty"` // The range of this metric. Depending on the scale. Range *Range `protobuf:"bytes,6,opt,name=range,proto3" json:"range,omitempty"` // The interval in seconds the evidences must be collected for the respective // metric. For now, we are not able to use google.protobuf.Duration because it // is converted to a custom object in OpenAPI // (https://github.com/google/gnostic/issues/351) Interval int64 `protobuf:"varint,7,opt,name=interval,proto3" json:"interval,omitempty"` // The implementation of this metric. This ensures that we are modelling an // association between a Metric and its MetricImplementation. Implementation *MetricImplementation `protobuf:"bytes,8,opt,name=implementation,proto3,oneof" json:"implementation,omitempty"` // Optional, but required if the metric is removed. The metric is not deleted // for backward compatibility and the timestamp is set to the time of removal. DeprecatedSince *timestamppb.Timestamp `` /* 157-byte string literal not displayed */ // contains filtered or unexported fields }
A metric resource
func (*Metric) Descriptor
deprecated
func (*Metric) GetCategory ¶
func (*Metric) GetDeprecatedSince ¶
func (x *Metric) GetDeprecatedSince() *timestamppb.Timestamp
func (*Metric) GetDescription ¶
func (*Metric) GetImplementation ¶
func (x *Metric) GetImplementation() *MetricImplementation
func (*Metric) GetInterval ¶
func (*Metric) GetScale ¶
func (x *Metric) GetScale() Metric_Scale
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
func (*Metric) Validate ¶
Validate checks the field values on Metric with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Metric) ValidateAll ¶
ValidateAll checks the field values on Metric with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetricMultiError, or nil if none found.
type MetricConfiguration ¶
type MetricConfiguration struct { // The operator to compare the metric, such as == or > Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"` // The target value TargetValue *structpb.Value `protobuf:"bytes,2,opt,name=target_value,json=targetValue,proto3" json:"target_value,omitempty" gorm:"serializer:json"` // Whether this configuration is a default configuration IsDefault bool `protobuf:"varint,3,opt,name=is_default,json=isDefault,proto3" json:"is_default,omitempty"` // The last time of update UpdatedAt *timestamppb.Timestamp `` /* 132-byte string literal not displayed */ // The metric this configuration belongs to MetricId string `protobuf:"bytes,5,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty" gorm:"primaryKey"` // The service this configuration belongs to CloudServiceId string `protobuf:"bytes,6,opt,name=cloud_service_id,json=cloudServiceId,proto3" json:"cloud_service_id,omitempty" gorm:"primaryKey"` // contains filtered or unexported fields }
Defines the operator and a target value for an individual metric
func (*MetricConfiguration) Descriptor
deprecated
func (*MetricConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use MetricConfiguration.ProtoReflect.Descriptor instead.
func (*MetricConfiguration) GetCloudServiceId ¶
func (x *MetricConfiguration) GetCloudServiceId() string
func (*MetricConfiguration) GetIsDefault ¶
func (x *MetricConfiguration) GetIsDefault() bool
func (*MetricConfiguration) GetMetricId ¶
func (x *MetricConfiguration) GetMetricId() string
func (*MetricConfiguration) GetOperator ¶
func (x *MetricConfiguration) GetOperator() string
func (*MetricConfiguration) GetTargetValue ¶
func (x *MetricConfiguration) GetTargetValue() *structpb.Value
func (*MetricConfiguration) GetUpdatedAt ¶
func (x *MetricConfiguration) GetUpdatedAt() *timestamppb.Timestamp
func (*MetricConfiguration) Hash ¶
func (x *MetricConfiguration) Hash() string
Hash provides a simple string based hash for this metric configuration. It can be used to provide a key for a map or a cache.
func (*MetricConfiguration) MarshalJSON ¶
func (x *MetricConfiguration) MarshalJSON() (b []byte, err error)
func (*MetricConfiguration) ProtoMessage ¶
func (*MetricConfiguration) ProtoMessage()
func (*MetricConfiguration) ProtoReflect ¶
func (x *MetricConfiguration) ProtoReflect() protoreflect.Message
func (*MetricConfiguration) Reset ¶
func (x *MetricConfiguration) Reset()
func (*MetricConfiguration) String ¶
func (x *MetricConfiguration) String() string
func (*MetricConfiguration) UnmarshalJSON ¶
func (x *MetricConfiguration) UnmarshalJSON(b []byte) (err error)
func (*MetricConfiguration) Validate ¶
func (m *MetricConfiguration) Validate() error
Validate checks the field values on MetricConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MetricConfiguration) ValidateAll ¶
func (m *MetricConfiguration) ValidateAll() error
ValidateAll checks the field values on MetricConfiguration with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetricConfigurationMultiError, or nil if none found.
type MetricConfigurationMultiError ¶
type MetricConfigurationMultiError []error
MetricConfigurationMultiError is an error wrapping multiple validation errors returned by MetricConfiguration.ValidateAll() if the designated constraints aren't met.
func (MetricConfigurationMultiError) AllErrors ¶
func (m MetricConfigurationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetricConfigurationMultiError) Error ¶
func (m MetricConfigurationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetricConfigurationValidationError ¶
type MetricConfigurationValidationError struct {
// contains filtered or unexported fields
}
MetricConfigurationValidationError is the validation error returned by MetricConfiguration.Validate if the designated constraints aren't met.
func (MetricConfigurationValidationError) Cause ¶
func (e MetricConfigurationValidationError) Cause() error
Cause function returns cause value.
func (MetricConfigurationValidationError) Error ¶
func (e MetricConfigurationValidationError) Error() string
Error satisfies the builtin error interface
func (MetricConfigurationValidationError) ErrorName ¶
func (e MetricConfigurationValidationError) ErrorName() string
ErrorName returns error name.
func (MetricConfigurationValidationError) Field ¶
func (e MetricConfigurationValidationError) Field() string
Field function returns field value.
func (MetricConfigurationValidationError) Key ¶
func (e MetricConfigurationValidationError) Key() bool
Key function returns key value.
func (MetricConfigurationValidationError) Reason ¶
func (e MetricConfigurationValidationError) Reason() string
Reason function returns reason value.
type MetricImplementation ¶
type MetricImplementation struct { // The metric which is implemented MetricId string `protobuf:"bytes,1,opt,name=metric_id,json=metricId,proto3" json:"metric_id,omitempty" gorm:"primaryKey"` // The language this metric is implemented in Lang MetricImplementation_Language `protobuf:"varint,2,opt,name=lang,proto3,enum=clouditor.assessment.v1.MetricImplementation_Language" json:"lang,omitempty"` // The actual implementation Code string `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // The last time of update UpdatedAt *timestamppb.Timestamp `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
MetricImplementation defines the implementation of an individual metric.
func (*MetricImplementation) Descriptor
deprecated
func (*MetricImplementation) Descriptor() ([]byte, []int)
Deprecated: Use MetricImplementation.ProtoReflect.Descriptor instead.
func (*MetricImplementation) GetCode ¶
func (x *MetricImplementation) GetCode() string
func (*MetricImplementation) GetLang ¶
func (x *MetricImplementation) GetLang() MetricImplementation_Language
func (*MetricImplementation) GetMetricId ¶
func (x *MetricImplementation) GetMetricId() string
func (*MetricImplementation) GetUpdatedAt ¶
func (x *MetricImplementation) GetUpdatedAt() *timestamppb.Timestamp
func (*MetricImplementation) ProtoMessage ¶
func (*MetricImplementation) ProtoMessage()
func (*MetricImplementation) ProtoReflect ¶
func (x *MetricImplementation) ProtoReflect() protoreflect.Message
func (*MetricImplementation) Reset ¶
func (x *MetricImplementation) Reset()
func (*MetricImplementation) String ¶
func (x *MetricImplementation) String() string
func (*MetricImplementation) Validate ¶
func (m *MetricImplementation) Validate() error
Validate checks the field values on MetricImplementation with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MetricImplementation) ValidateAll ¶
func (m *MetricImplementation) ValidateAll() error
ValidateAll checks the field values on MetricImplementation with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MetricImplementationMultiError, or nil if none found.
type MetricImplementationMultiError ¶
type MetricImplementationMultiError []error
MetricImplementationMultiError is an error wrapping multiple validation errors returned by MetricImplementation.ValidateAll() if the designated constraints aren't met.
func (MetricImplementationMultiError) AllErrors ¶
func (m MetricImplementationMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetricImplementationMultiError) Error ¶
func (m MetricImplementationMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetricImplementationValidationError ¶
type MetricImplementationValidationError struct {
// contains filtered or unexported fields
}
MetricImplementationValidationError is the validation error returned by MetricImplementation.Validate if the designated constraints aren't met.
func (MetricImplementationValidationError) Cause ¶
func (e MetricImplementationValidationError) Cause() error
Cause function returns cause value.
func (MetricImplementationValidationError) Error ¶
func (e MetricImplementationValidationError) Error() string
Error satisfies the builtin error interface
func (MetricImplementationValidationError) ErrorName ¶
func (e MetricImplementationValidationError) ErrorName() string
ErrorName returns error name.
func (MetricImplementationValidationError) Field ¶
func (e MetricImplementationValidationError) Field() string
Field function returns field value.
func (MetricImplementationValidationError) Key ¶
func (e MetricImplementationValidationError) Key() bool
Key function returns key value.
func (MetricImplementationValidationError) Reason ¶
func (e MetricImplementationValidationError) Reason() string
Reason function returns reason value.
type MetricImplementation_Language ¶
type MetricImplementation_Language int32
const ( MetricImplementation_LANGUAGE_UNSPECIFIED MetricImplementation_Language = 0 MetricImplementation_LANGUAGE_REGO MetricImplementation_Language = 1 )
func (MetricImplementation_Language) Descriptor ¶
func (MetricImplementation_Language) Descriptor() protoreflect.EnumDescriptor
func (MetricImplementation_Language) Enum ¶
func (x MetricImplementation_Language) Enum() *MetricImplementation_Language
func (MetricImplementation_Language) EnumDescriptor
deprecated
func (MetricImplementation_Language) EnumDescriptor() ([]byte, []int)
Deprecated: Use MetricImplementation_Language.Descriptor instead.
func (MetricImplementation_Language) Number ¶
func (x MetricImplementation_Language) Number() protoreflect.EnumNumber
func (MetricImplementation_Language) String ¶
func (x MetricImplementation_Language) String() string
func (MetricImplementation_Language) Type ¶
func (MetricImplementation_Language) Type() protoreflect.EnumType
type MetricMultiError ¶
type MetricMultiError []error
MetricMultiError is an error wrapping multiple validation errors returned by Metric.ValidateAll() if the designated constraints aren't met.
func (MetricMultiError) AllErrors ¶
func (m MetricMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MetricMultiError) Error ¶
func (m MetricMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MetricValidationError ¶
type MetricValidationError struct {
// contains filtered or unexported fields
}
MetricValidationError is the validation error returned by Metric.Validate if the designated constraints aren't met.
func (MetricValidationError) Cause ¶
func (e MetricValidationError) Cause() error
Cause function returns cause value.
func (MetricValidationError) Error ¶
func (e MetricValidationError) Error() string
Error satisfies the builtin error interface
func (MetricValidationError) ErrorName ¶
func (e MetricValidationError) ErrorName() string
ErrorName returns error name.
func (MetricValidationError) Field ¶
func (e MetricValidationError) Field() string
Field function returns field value.
func (MetricValidationError) Key ¶
func (e MetricValidationError) Key() bool
Key function returns key value.
func (MetricValidationError) Reason ¶
func (e MetricValidationError) Reason() string
Reason function returns reason value.
type Metric_Scale ¶
type Metric_Scale int32
The values a Scale accepts
const ( Metric_SCALE_UNSPECIFIED Metric_Scale = 0 Metric_NOMINAL Metric_Scale = 1 Metric_ORDINAL Metric_Scale = 2 Metric_METRIC Metric_Scale = 3 )
func (Metric_Scale) Descriptor ¶
func (Metric_Scale) Descriptor() protoreflect.EnumDescriptor
func (Metric_Scale) Enum ¶
func (x Metric_Scale) Enum() *Metric_Scale
func (Metric_Scale) EnumDescriptor
deprecated
func (Metric_Scale) EnumDescriptor() ([]byte, []int)
Deprecated: Use Metric_Scale.Descriptor instead.
func (Metric_Scale) Number ¶
func (x Metric_Scale) Number() protoreflect.EnumNumber
func (Metric_Scale) String ¶
func (x Metric_Scale) String() string
func (Metric_Scale) Type ¶
func (Metric_Scale) Type() protoreflect.EnumType
type MinMax ¶
type MinMax struct { // Required. Min int64 `protobuf:"varint,1,opt,name=min,proto3" json:"min,omitempty"` // Required. Max int64 `protobuf:"varint,2,opt,name=max,proto3" json:"max,omitempty"` // contains filtered or unexported fields }
Defines a range of values through a (inclusive) minimum and a maximum
func (*MinMax) Descriptor
deprecated
func (*MinMax) ProtoMessage ¶
func (*MinMax) ProtoMessage()
func (*MinMax) ProtoReflect ¶
func (x *MinMax) ProtoReflect() protoreflect.Message
func (*MinMax) Validate ¶
Validate checks the field values on MinMax with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*MinMax) ValidateAll ¶
ValidateAll checks the field values on MinMax with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in MinMaxMultiError, or nil if none found.
type MinMaxMultiError ¶
type MinMaxMultiError []error
MinMaxMultiError is an error wrapping multiple validation errors returned by MinMax.ValidateAll() if the designated constraints aren't met.
func (MinMaxMultiError) AllErrors ¶
func (m MinMaxMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (MinMaxMultiError) Error ¶
func (m MinMaxMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type MinMaxValidationError ¶
type MinMaxValidationError struct {
// contains filtered or unexported fields
}
MinMaxValidationError is the validation error returned by MinMax.Validate if the designated constraints aren't met.
func (MinMaxValidationError) Cause ¶
func (e MinMaxValidationError) Cause() error
Cause function returns cause value.
func (MinMaxValidationError) Error ¶
func (e MinMaxValidationError) Error() string
Error satisfies the builtin error interface
func (MinMaxValidationError) ErrorName ¶
func (e MinMaxValidationError) ErrorName() string
ErrorName returns error name.
func (MinMaxValidationError) Field ¶
func (e MinMaxValidationError) Field() string
Field function returns field value.
func (MinMaxValidationError) Key ¶
func (e MinMaxValidationError) Key() bool
Key function returns key value.
func (MinMaxValidationError) Reason ¶
func (e MinMaxValidationError) Reason() string
Reason function returns reason value.
type Order ¶
type Order struct { Values []*structpb.Value `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Defines a range of values in a pre-defined order from the lowest to the highest.
func (*Order) Descriptor
deprecated
func (*Order) ProtoMessage ¶
func (*Order) ProtoMessage()
func (*Order) ProtoReflect ¶
func (x *Order) ProtoReflect() protoreflect.Message
func (*Order) Validate ¶
Validate checks the field values on Order with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Order) ValidateAll ¶
ValidateAll checks the field values on Order with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in OrderMultiError, or nil if none found.
type OrderMultiError ¶
type OrderMultiError []error
OrderMultiError is an error wrapping multiple validation errors returned by Order.ValidateAll() if the designated constraints aren't met.
func (OrderMultiError) AllErrors ¶
func (m OrderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (OrderMultiError) Error ¶
func (m OrderMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type OrderValidationError ¶
type OrderValidationError struct {
// contains filtered or unexported fields
}
OrderValidationError is the validation error returned by Order.Validate if the designated constraints aren't met.
func (OrderValidationError) Cause ¶
func (e OrderValidationError) Cause() error
Cause function returns cause value.
func (OrderValidationError) Error ¶
func (e OrderValidationError) Error() string
Error satisfies the builtin error interface
func (OrderValidationError) ErrorName ¶
func (e OrderValidationError) ErrorName() string
ErrorName returns error name.
func (OrderValidationError) Field ¶
func (e OrderValidationError) Field() string
Field function returns field value.
func (OrderValidationError) Key ¶
func (e OrderValidationError) Key() bool
Key function returns key value.
func (OrderValidationError) Reason ¶
func (e OrderValidationError) Reason() string
Reason function returns reason value.
type Range ¶
type Range struct { // Required. // // Types that are assignable to Range: // // *Range_AllowedValues // *Range_Order // *Range_MinMax Range isRange_Range `protobuf_oneof:"range"` // contains filtered or unexported fields }
A range resource representing the range of values
func (*Range) Descriptor
deprecated
func (*Range) GetAllowedValues ¶
func (x *Range) GetAllowedValues() *AllowedValues
func (*Range) GormDataType ¶
GormDataType implements GormDataTypeInterface to give an indication how this struct will be serialized into a database using GORM.
func (*Range) MarshalJSON ¶
MarshalJSON is a custom implementation of JSON marshalling to correctly serialize the Range type because the inner types, such as Range_AllowedValues are missing json struct tags. This is needed if the Range type is marshalled on its own (for example) as a single field in a database. In gRPC messages, the protojson.Marshal function takes care of this.
func (*Range) ProtoMessage ¶
func (*Range) ProtoMessage()
func (*Range) ProtoReflect ¶
func (x *Range) ProtoReflect() protoreflect.Message
func (*Range) Scan ¶
Scan implements https://pkg.go.dev/database/sql#Scanner to indicate how this struct can be loaded from an SQL database field.
func (*Range) UnmarshalJSON ¶
func (*Range) Validate ¶
Validate checks the field values on Range with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Range) ValidateAll ¶
ValidateAll checks the field values on Range with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RangeMultiError, or nil if none found.
type RangeMultiError ¶
type RangeMultiError []error
RangeMultiError is an error wrapping multiple validation errors returned by Range.ValidateAll() if the designated constraints aren't met.
func (RangeMultiError) AllErrors ¶
func (m RangeMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RangeMultiError) Error ¶
func (m RangeMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RangeValidationError ¶
type RangeValidationError struct {
// contains filtered or unexported fields
}
RangeValidationError is the validation error returned by Range.Validate if the designated constraints aren't met.
func (RangeValidationError) Cause ¶
func (e RangeValidationError) Cause() error
Cause function returns cause value.
func (RangeValidationError) Error ¶
func (e RangeValidationError) Error() string
Error satisfies the builtin error interface
func (RangeValidationError) ErrorName ¶
func (e RangeValidationError) ErrorName() string
ErrorName returns error name.
func (RangeValidationError) Field ¶
func (e RangeValidationError) Field() string
Field function returns field value.
func (RangeValidationError) Key ¶
func (e RangeValidationError) Key() bool
Key function returns key value.
func (RangeValidationError) Reason ¶
func (e RangeValidationError) Reason() string
Reason function returns reason value.
type Range_AllowedValues ¶
type Range_AllowedValues struct { // used for nominal scale AllowedValues *AllowedValues `protobuf:"bytes,1,opt,name=allowed_values,json=allowedValues,proto3,oneof"` }
type Range_MinMax ¶
type Range_MinMax struct { // used for metric scale MinMax *MinMax `protobuf:"bytes,3,opt,name=min_max,json=minMax,proto3,oneof"` }
type Range_Order ¶
type Range_Order struct { // used for ordinal scale Order *Order `protobuf:"bytes,2,opt,name=order,proto3,oneof"` }
type ResultHookFunc ¶
type ResultHookFunc func(ctx context.Context, result *AssessmentResult, err error)
type UnimplementedAssessmentServer ¶
type UnimplementedAssessmentServer struct { }
UnimplementedAssessmentServer must be embedded to have forward compatible implementations.
func (UnimplementedAssessmentServer) AssessEvidence ¶
func (UnimplementedAssessmentServer) AssessEvidence(context.Context, *AssessEvidenceRequest) (*AssessEvidenceResponse, error)
func (UnimplementedAssessmentServer) AssessEvidences ¶
func (UnimplementedAssessmentServer) AssessEvidences(Assessment_AssessEvidencesServer) error
func (UnimplementedAssessmentServer) CalculateCompliance ¶
func (UnimplementedAssessmentServer) CalculateCompliance(context.Context, *CalculateComplianceRequest) (*emptypb.Empty, error)
type UnsafeAssessmentServer ¶
type UnsafeAssessmentServer interface {
// contains filtered or unexported methods
}
UnsafeAssessmentServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AssessmentServer will result in compilation errors.