Documentation ¶
Overview ¶
Package evaluation is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Variables
- func RegisterEvaluationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterEvaluationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EvaluationClient) error
- func RegisterEvaluationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterEvaluationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EvaluationServer) error
- func RegisterEvaluationServer(s grpc.ServiceRegistrar, srv EvaluationServer)
- type CreateEvaluationResultRequest
- func (*CreateEvaluationResultRequest) Descriptor() ([]byte, []int)deprecated
- func (req *CreateEvaluationResultRequest) GetCloudServiceId() string
- func (x *CreateEvaluationResultRequest) GetResult() *EvaluationResult
- func (*CreateEvaluationResultRequest) ProtoMessage()
- func (x *CreateEvaluationResultRequest) ProtoReflect() protoreflect.Message
- func (x *CreateEvaluationResultRequest) Reset()
- func (x *CreateEvaluationResultRequest) String() string
- func (m *CreateEvaluationResultRequest) Validate() error
- func (m *CreateEvaluationResultRequest) ValidateAll() error
- type CreateEvaluationResultRequestMultiError
- type CreateEvaluationResultRequestValidationError
- func (e CreateEvaluationResultRequestValidationError) Cause() error
- func (e CreateEvaluationResultRequestValidationError) Error() string
- func (e CreateEvaluationResultRequestValidationError) ErrorName() string
- func (e CreateEvaluationResultRequestValidationError) Field() string
- func (e CreateEvaluationResultRequestValidationError) Key() bool
- func (e CreateEvaluationResultRequestValidationError) Reason() string
- type EvaluationClient
- type EvaluationResult
- func (*EvaluationResult) Descriptor() ([]byte, []int)deprecated
- func (x *EvaluationResult) GetCloudServiceId() string
- func (x *EvaluationResult) GetComment() string
- func (x *EvaluationResult) GetControlCatalogId() string
- func (x *EvaluationResult) GetControlCategoryName() string
- func (x *EvaluationResult) GetControlId() string
- func (x *EvaluationResult) GetFailingAssessmentResultIds() []string
- func (x *EvaluationResult) GetId() string
- func (x *EvaluationResult) GetParentControlId() string
- func (x *EvaluationResult) GetStatus() EvaluationStatus
- func (x *EvaluationResult) GetTimestamp() *timestamppb.Timestamp
- func (x *EvaluationResult) GetValidUntil() *timestamppb.Timestamp
- func (*EvaluationResult) ProtoMessage()
- func (x *EvaluationResult) ProtoReflect() protoreflect.Message
- func (x *EvaluationResult) Reset()
- func (x *EvaluationResult) String() string
- func (m *EvaluationResult) Validate() error
- func (m *EvaluationResult) ValidateAll() error
- type EvaluationResultMultiError
- type EvaluationResultValidationError
- func (e EvaluationResultValidationError) Cause() error
- func (e EvaluationResultValidationError) Error() string
- func (e EvaluationResultValidationError) ErrorName() string
- func (e EvaluationResultValidationError) Field() string
- func (e EvaluationResultValidationError) Key() bool
- func (e EvaluationResultValidationError) Reason() string
- type EvaluationServer
- type EvaluationStatus
- func (EvaluationStatus) Descriptor() protoreflect.EnumDescriptor
- func (x EvaluationStatus) Enum() *EvaluationStatus
- func (EvaluationStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x EvaluationStatus) Number() protoreflect.EnumNumber
- func (x EvaluationStatus) String() string
- func (EvaluationStatus) Type() protoreflect.EnumType
- type ListEvaluationResultsRequest
- func (*ListEvaluationResultsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListEvaluationResultsRequest) GetAsc() bool
- func (x *ListEvaluationResultsRequest) GetFilter() *ListEvaluationResultsRequest_Filter
- func (x *ListEvaluationResultsRequest) GetLatestByControlId() bool
- func (x *ListEvaluationResultsRequest) GetOrderBy() string
- func (x *ListEvaluationResultsRequest) GetPageSize() int32
- func (x *ListEvaluationResultsRequest) GetPageToken() string
- func (*ListEvaluationResultsRequest) ProtoMessage()
- func (x *ListEvaluationResultsRequest) ProtoReflect() protoreflect.Message
- func (x *ListEvaluationResultsRequest) Reset()
- func (x *ListEvaluationResultsRequest) String() string
- func (m *ListEvaluationResultsRequest) Validate() error
- func (m *ListEvaluationResultsRequest) ValidateAll() error
- type ListEvaluationResultsRequestMultiError
- type ListEvaluationResultsRequestValidationError
- func (e ListEvaluationResultsRequestValidationError) Cause() error
- func (e ListEvaluationResultsRequestValidationError) Error() string
- func (e ListEvaluationResultsRequestValidationError) ErrorName() string
- func (e ListEvaluationResultsRequestValidationError) Field() string
- func (e ListEvaluationResultsRequestValidationError) Key() bool
- func (e ListEvaluationResultsRequestValidationError) Reason() string
- type ListEvaluationResultsRequest_Filter
- func (*ListEvaluationResultsRequest_Filter) Descriptor() ([]byte, []int)deprecated
- func (x *ListEvaluationResultsRequest_Filter) GetCatalogId() string
- func (x *ListEvaluationResultsRequest_Filter) GetCloudServiceId() string
- func (x *ListEvaluationResultsRequest_Filter) GetControlId() string
- func (x *ListEvaluationResultsRequest_Filter) GetParentsOnly() bool
- func (x *ListEvaluationResultsRequest_Filter) GetSubControls() string
- func (x *ListEvaluationResultsRequest_Filter) GetValidManualOnly() bool
- func (*ListEvaluationResultsRequest_Filter) ProtoMessage()
- func (x *ListEvaluationResultsRequest_Filter) ProtoReflect() protoreflect.Message
- func (x *ListEvaluationResultsRequest_Filter) Reset()
- func (x *ListEvaluationResultsRequest_Filter) String() string
- func (m *ListEvaluationResultsRequest_Filter) Validate() error
- func (m *ListEvaluationResultsRequest_Filter) ValidateAll() error
- type ListEvaluationResultsRequest_FilterMultiError
- type ListEvaluationResultsRequest_FilterValidationError
- func (e ListEvaluationResultsRequest_FilterValidationError) Cause() error
- func (e ListEvaluationResultsRequest_FilterValidationError) Error() string
- func (e ListEvaluationResultsRequest_FilterValidationError) ErrorName() string
- func (e ListEvaluationResultsRequest_FilterValidationError) Field() string
- func (e ListEvaluationResultsRequest_FilterValidationError) Key() bool
- func (e ListEvaluationResultsRequest_FilterValidationError) Reason() string
- type ListEvaluationResultsResponse
- func (*ListEvaluationResultsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListEvaluationResultsResponse) GetNextPageToken() string
- func (x *ListEvaluationResultsResponse) GetResults() []*EvaluationResult
- func (*ListEvaluationResultsResponse) ProtoMessage()
- func (x *ListEvaluationResultsResponse) ProtoReflect() protoreflect.Message
- func (x *ListEvaluationResultsResponse) Reset()
- func (x *ListEvaluationResultsResponse) String() string
- func (m *ListEvaluationResultsResponse) Validate() error
- func (m *ListEvaluationResultsResponse) ValidateAll() error
- type ListEvaluationResultsResponseMultiError
- type ListEvaluationResultsResponseValidationError
- func (e ListEvaluationResultsResponseValidationError) Cause() error
- func (e ListEvaluationResultsResponseValidationError) Error() string
- func (e ListEvaluationResultsResponseValidationError) ErrorName() string
- func (e ListEvaluationResultsResponseValidationError) Field() string
- func (e ListEvaluationResultsResponseValidationError) Key() bool
- func (e ListEvaluationResultsResponseValidationError) Reason() string
- type StartEvaluationRequest
- func (*StartEvaluationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartEvaluationRequest) GetCatalogId() string
- func (x *StartEvaluationRequest) GetCloudServiceId() string
- func (x *StartEvaluationRequest) GetInterval() int32
- func (*StartEvaluationRequest) ProtoMessage()
- func (x *StartEvaluationRequest) ProtoReflect() protoreflect.Message
- func (x *StartEvaluationRequest) Reset()
- func (x *StartEvaluationRequest) String() string
- func (m *StartEvaluationRequest) Validate() error
- func (m *StartEvaluationRequest) ValidateAll() error
- type StartEvaluationRequestMultiError
- type StartEvaluationRequestValidationError
- func (e StartEvaluationRequestValidationError) Cause() error
- func (e StartEvaluationRequestValidationError) Error() string
- func (e StartEvaluationRequestValidationError) ErrorName() string
- func (e StartEvaluationRequestValidationError) Field() string
- func (e StartEvaluationRequestValidationError) Key() bool
- func (e StartEvaluationRequestValidationError) Reason() string
- type StartEvaluationResponse
- func (*StartEvaluationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartEvaluationResponse) GetSuccessful() bool
- func (*StartEvaluationResponse) ProtoMessage()
- func (x *StartEvaluationResponse) ProtoReflect() protoreflect.Message
- func (x *StartEvaluationResponse) Reset()
- func (x *StartEvaluationResponse) String() string
- func (m *StartEvaluationResponse) Validate() error
- func (m *StartEvaluationResponse) ValidateAll() error
- type StartEvaluationResponseMultiError
- type StartEvaluationResponseValidationError
- func (e StartEvaluationResponseValidationError) Cause() error
- func (e StartEvaluationResponseValidationError) Error() string
- func (e StartEvaluationResponseValidationError) ErrorName() string
- func (e StartEvaluationResponseValidationError) Field() string
- func (e StartEvaluationResponseValidationError) Key() bool
- func (e StartEvaluationResponseValidationError) Reason() string
- type StopEvaluationRequest
- func (*StopEvaluationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StopEvaluationRequest) GetCatalogId() string
- func (x *StopEvaluationRequest) GetCloudServiceId() string
- func (*StopEvaluationRequest) ProtoMessage()
- func (x *StopEvaluationRequest) ProtoReflect() protoreflect.Message
- func (x *StopEvaluationRequest) Reset()
- func (x *StopEvaluationRequest) String() string
- func (m *StopEvaluationRequest) Validate() error
- func (m *StopEvaluationRequest) ValidateAll() error
- type StopEvaluationRequestMultiError
- type StopEvaluationRequestValidationError
- func (e StopEvaluationRequestValidationError) Cause() error
- func (e StopEvaluationRequestValidationError) Error() string
- func (e StopEvaluationRequestValidationError) ErrorName() string
- func (e StopEvaluationRequestValidationError) Field() string
- func (e StopEvaluationRequestValidationError) Key() bool
- func (e StopEvaluationRequestValidationError) Reason() string
- type StopEvaluationResponse
- func (*StopEvaluationResponse) Descriptor() ([]byte, []int)deprecated
- func (*StopEvaluationResponse) ProtoMessage()
- func (x *StopEvaluationResponse) ProtoReflect() protoreflect.Message
- func (x *StopEvaluationResponse) Reset()
- func (x *StopEvaluationResponse) String() string
- func (m *StopEvaluationResponse) Validate() error
- func (m *StopEvaluationResponse) ValidateAll() error
- type StopEvaluationResponseMultiError
- type StopEvaluationResponseValidationError
- func (e StopEvaluationResponseValidationError) Cause() error
- func (e StopEvaluationResponseValidationError) Error() string
- func (e StopEvaluationResponseValidationError) ErrorName() string
- func (e StopEvaluationResponseValidationError) Field() string
- func (e StopEvaluationResponseValidationError) Key() bool
- func (e StopEvaluationResponseValidationError) Reason() string
- type UnimplementedEvaluationServer
- func (UnimplementedEvaluationServer) CreateEvaluationResult(context.Context, *CreateEvaluationResultRequest) (*EvaluationResult, error)
- func (UnimplementedEvaluationServer) ListEvaluationResults(context.Context, *ListEvaluationResultsRequest) (*ListEvaluationResultsResponse, error)
- func (UnimplementedEvaluationServer) StartEvaluation(context.Context, *StartEvaluationRequest) (*StartEvaluationResponse, error)
- func (UnimplementedEvaluationServer) StopEvaluation(context.Context, *StopEvaluationRequest) (*StopEvaluationResponse, error)
- type UnsafeEvaluationServer
Constants ¶
This section is empty.
Variables ¶
var ( EvaluationStatus_name = map[int32]string{ 0: "EVALUATION_STATUS_UNSPECIFIED", 1: "EVALUATION_STATUS_COMPLIANT", 2: "EVALUATION_STATUS_COMPLIANT_MANUALLY", 3: "EVALUATION_STATUS_NOT_COMPLIANT", 4: "EVALUATION_STATUS_NOT_COMPLIANT_MANUALLY", 10: "EVALUATION_STATUS_PENDING", } EvaluationStatus_value = map[string]int32{ "EVALUATION_STATUS_UNSPECIFIED": 0, "EVALUATION_STATUS_COMPLIANT": 1, "EVALUATION_STATUS_COMPLIANT_MANUALLY": 2, "EVALUATION_STATUS_NOT_COMPLIANT": 3, "EVALUATION_STATUS_NOT_COMPLIANT_MANUALLY": 4, "EVALUATION_STATUS_PENDING": 10, } )
Enum value maps for EvaluationStatus.
var Evaluation_ServiceDesc = grpc.ServiceDesc{ ServiceName: "clouditor.evaluation.v1.Evaluation", HandlerType: (*EvaluationServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "StartEvaluation", Handler: _Evaluation_StartEvaluation_Handler, }, { MethodName: "StopEvaluation", Handler: _Evaluation_StopEvaluation_Handler, }, { MethodName: "ListEvaluationResults", Handler: _Evaluation_ListEvaluationResults_Handler, }, { MethodName: "CreateEvaluationResult", Handler: _Evaluation_CreateEvaluationResult_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "api/evaluation/evaluation.proto", }
Evaluation_ServiceDesc is the grpc.ServiceDesc for Evaluation 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_evaluation_evaluation_proto protoreflect.FileDescriptor
Functions ¶
func RegisterEvaluationHandler ¶
func RegisterEvaluationHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
RegisterEvaluationHandler registers the http handlers for service Evaluation to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterEvaluationHandlerClient ¶
func RegisterEvaluationHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EvaluationClient) error
RegisterEvaluationHandlerClient registers the http handlers for service Evaluation to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EvaluationClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EvaluationClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EvaluationClient" to call the correct interceptors.
func RegisterEvaluationHandlerFromEndpoint ¶
func RegisterEvaluationHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterEvaluationHandlerFromEndpoint is same as RegisterEvaluationHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterEvaluationHandlerServer ¶
func RegisterEvaluationHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EvaluationServer) error
RegisterEvaluationHandlerServer registers the http handlers for service Evaluation to "mux". UnaryRPC :call EvaluationServer 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 RegisterEvaluationHandlerFromEndpoint instead.
func RegisterEvaluationServer ¶
func RegisterEvaluationServer(s grpc.ServiceRegistrar, srv EvaluationServer)
Types ¶
type CreateEvaluationResultRequest ¶ added in v1.10.0
type CreateEvaluationResultRequest struct { Result *EvaluationResult `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // contains filtered or unexported fields }
func (*CreateEvaluationResultRequest) Descriptor
deprecated
added in
v1.10.0
func (*CreateEvaluationResultRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateEvaluationResultRequest.ProtoReflect.Descriptor instead.
func (*CreateEvaluationResultRequest) GetCloudServiceId ¶ added in v1.10.0
func (req *CreateEvaluationResultRequest) GetCloudServiceId() string
GetCloudServiceId is a shortcut to implement CloudServiceRequest. It returns the cloud service ID of the inner object.
func (*CreateEvaluationResultRequest) GetResult ¶ added in v1.10.0
func (x *CreateEvaluationResultRequest) GetResult() *EvaluationResult
func (*CreateEvaluationResultRequest) ProtoMessage ¶ added in v1.10.0
func (*CreateEvaluationResultRequest) ProtoMessage()
func (*CreateEvaluationResultRequest) ProtoReflect ¶ added in v1.10.0
func (x *CreateEvaluationResultRequest) ProtoReflect() protoreflect.Message
func (*CreateEvaluationResultRequest) Reset ¶ added in v1.10.0
func (x *CreateEvaluationResultRequest) Reset()
func (*CreateEvaluationResultRequest) String ¶ added in v1.10.0
func (x *CreateEvaluationResultRequest) String() string
func (*CreateEvaluationResultRequest) Validate ¶ added in v1.10.0
func (m *CreateEvaluationResultRequest) Validate() error
Validate checks the field values on CreateEvaluationResultRequest 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 (*CreateEvaluationResultRequest) ValidateAll ¶ added in v1.10.0
func (m *CreateEvaluationResultRequest) ValidateAll() error
ValidateAll checks the field values on CreateEvaluationResultRequest 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 CreateEvaluationResultRequestMultiError, or nil if none found.
type CreateEvaluationResultRequestMultiError ¶ added in v1.10.0
type CreateEvaluationResultRequestMultiError []error
CreateEvaluationResultRequestMultiError is an error wrapping multiple validation errors returned by CreateEvaluationResultRequest.ValidateAll() if the designated constraints aren't met.
func (CreateEvaluationResultRequestMultiError) AllErrors ¶ added in v1.10.0
func (m CreateEvaluationResultRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (CreateEvaluationResultRequestMultiError) Error ¶ added in v1.10.0
func (m CreateEvaluationResultRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type CreateEvaluationResultRequestValidationError ¶ added in v1.10.0
type CreateEvaluationResultRequestValidationError struct {
// contains filtered or unexported fields
}
CreateEvaluationResultRequestValidationError is the validation error returned by CreateEvaluationResultRequest.Validate if the designated constraints aren't met.
func (CreateEvaluationResultRequestValidationError) Cause ¶ added in v1.10.0
func (e CreateEvaluationResultRequestValidationError) Cause() error
Cause function returns cause value.
func (CreateEvaluationResultRequestValidationError) Error ¶ added in v1.10.0
func (e CreateEvaluationResultRequestValidationError) Error() string
Error satisfies the builtin error interface
func (CreateEvaluationResultRequestValidationError) ErrorName ¶ added in v1.10.0
func (e CreateEvaluationResultRequestValidationError) ErrorName() string
ErrorName returns error name.
func (CreateEvaluationResultRequestValidationError) Field ¶ added in v1.10.0
func (e CreateEvaluationResultRequestValidationError) Field() string
Field function returns field value.
func (CreateEvaluationResultRequestValidationError) Key ¶ added in v1.10.0
func (e CreateEvaluationResultRequestValidationError) Key() bool
Key function returns key value.
func (CreateEvaluationResultRequestValidationError) Reason ¶ added in v1.10.0
func (e CreateEvaluationResultRequestValidationError) Reason() string
Reason function returns reason value.
type EvaluationClient ¶
type EvaluationClient interface { // Evaluates periodically all assessment results of a cloud service id based // on the given catalog id. Part of the public API, also exposed as REST. StartEvaluation(ctx context.Context, in *StartEvaluationRequest, opts ...grpc.CallOption) (*StartEvaluationResponse, error) // StopEvaluation stops the evaluation for the given target of evaluation. // Part of the public API, also exposed as REST. StopEvaluation(ctx context.Context, in *StopEvaluationRequest, opts ...grpc.CallOption) (*StopEvaluationResponse, error) // List all evaluation results that the user can access. It can further be // restricted by various filtering options. Part of the public API, also // exposed as REST. ListEvaluationResults(ctx context.Context, in *ListEvaluationResultsRequest, opts ...grpc.CallOption) (*ListEvaluationResultsResponse, error) // Creates an evaluation result CreateEvaluationResult(ctx context.Context, in *CreateEvaluationResultRequest, opts ...grpc.CallOption) (*EvaluationResult, error) }
EvaluationClient is the client API for Evaluation 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 NewEvaluationClient ¶
func NewEvaluationClient(cc grpc.ClientConnInterface) EvaluationClient
type EvaluationResult ¶
type EvaluationResult struct { // Evaluation result id Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // The Cloud Service ID the evaluation belongs to CloudServiceId string `protobuf:"bytes,2,opt,name=cloud_service_id,json=cloudServiceId,proto3" json:"cloud_service_id,omitempty"` // The control id the evaluation was based on ControlId string `protobuf:"bytes,3,opt,name=control_id,json=controlId,proto3" json:"control_id,omitempty"` // The category the evaluated control belongs to ControlCategoryName string `protobuf:"bytes,4,opt,name=control_category_name,json=controlCategoryName,proto3" json:"control_category_name,omitempty"` // The catalog the evaluated control belongs to ControlCatalogId string `protobuf:"bytes,5,opt,name=control_catalog_id,json=controlCatalogId,proto3" json:"control_catalog_id,omitempty"` // Optionally, specifies the parent control ID, if this is a sub-control ParentControlId *string `protobuf:"bytes,6,opt,name=parent_control_id,json=parentControlId,proto3,oneof" json:"parent_control_id,omitempty"` // Evaluation status Status EvaluationStatus `protobuf:"varint,7,opt,name=status,proto3,enum=clouditor.evaluation.v1.EvaluationStatus" json:"status,omitempty"` // Time of evaluation Timestamp *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=timestamp,proto3" json:"timestamp,omitempty" gorm:"serializer:timestamppb;type:datetime"` // List of assessment results because of which the evaluation status is not // 'compliant' FailingAssessmentResultIds []string `` /* 166-byte string literal not displayed */ Comment *string `protobuf:"bytes,10,opt,name=comment,proto3,oneof" json:"comment,omitempty"` // Optional, but required if the status is one of the "manually" ones. This // denotes how long the (manual) created evaluation result is valid. During // this time, no automatic results are generated for the specific control. ValidUntil *timestamppb.Timestamp `` /* 142-byte string literal not displayed */ // contains filtered or unexported fields }
A evaluation result resource, representing the result after evaluating the cloud service with a specific control cloud_service_id, category_name and catalog_id are necessary to get the corresponding TargetOfEvaluation
func (*EvaluationResult) Descriptor
deprecated
func (*EvaluationResult) Descriptor() ([]byte, []int)
Deprecated: Use EvaluationResult.ProtoReflect.Descriptor instead.
func (*EvaluationResult) GetCloudServiceId ¶
func (x *EvaluationResult) GetCloudServiceId() string
func (*EvaluationResult) GetComment ¶ added in v1.10.0
func (x *EvaluationResult) GetComment() string
func (*EvaluationResult) GetControlCatalogId ¶
func (x *EvaluationResult) GetControlCatalogId() string
func (*EvaluationResult) GetControlCategoryName ¶
func (x *EvaluationResult) GetControlCategoryName() string
func (*EvaluationResult) GetControlId ¶
func (x *EvaluationResult) GetControlId() string
func (*EvaluationResult) GetFailingAssessmentResultIds ¶
func (x *EvaluationResult) GetFailingAssessmentResultIds() []string
func (*EvaluationResult) GetId ¶
func (x *EvaluationResult) GetId() string
func (*EvaluationResult) GetParentControlId ¶ added in v1.9.0
func (x *EvaluationResult) GetParentControlId() string
func (*EvaluationResult) GetStatus ¶
func (x *EvaluationResult) GetStatus() EvaluationStatus
func (*EvaluationResult) GetTimestamp ¶
func (x *EvaluationResult) GetTimestamp() *timestamppb.Timestamp
func (*EvaluationResult) GetValidUntil ¶ added in v1.10.0
func (x *EvaluationResult) GetValidUntil() *timestamppb.Timestamp
func (*EvaluationResult) ProtoMessage ¶
func (*EvaluationResult) ProtoMessage()
func (*EvaluationResult) ProtoReflect ¶
func (x *EvaluationResult) ProtoReflect() protoreflect.Message
func (*EvaluationResult) Reset ¶
func (x *EvaluationResult) Reset()
func (*EvaluationResult) String ¶
func (x *EvaluationResult) String() string
func (*EvaluationResult) Validate ¶
func (m *EvaluationResult) Validate() error
Validate checks the field values on EvaluationResult 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 (*EvaluationResult) ValidateAll ¶
func (m *EvaluationResult) ValidateAll() error
ValidateAll checks the field values on EvaluationResult 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 EvaluationResultMultiError, or nil if none found.
type EvaluationResultMultiError ¶
type EvaluationResultMultiError []error
EvaluationResultMultiError is an error wrapping multiple validation errors returned by EvaluationResult.ValidateAll() if the designated constraints aren't met.
func (EvaluationResultMultiError) AllErrors ¶
func (m EvaluationResultMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (EvaluationResultMultiError) Error ¶
func (m EvaluationResultMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type EvaluationResultValidationError ¶
type EvaluationResultValidationError struct {
// contains filtered or unexported fields
}
EvaluationResultValidationError is the validation error returned by EvaluationResult.Validate if the designated constraints aren't met.
func (EvaluationResultValidationError) Cause ¶
func (e EvaluationResultValidationError) Cause() error
Cause function returns cause value.
func (EvaluationResultValidationError) Error ¶
func (e EvaluationResultValidationError) Error() string
Error satisfies the builtin error interface
func (EvaluationResultValidationError) ErrorName ¶
func (e EvaluationResultValidationError) ErrorName() string
ErrorName returns error name.
func (EvaluationResultValidationError) Field ¶
func (e EvaluationResultValidationError) Field() string
Field function returns field value.
func (EvaluationResultValidationError) Key ¶
func (e EvaluationResultValidationError) Key() bool
Key function returns key value.
func (EvaluationResultValidationError) Reason ¶
func (e EvaluationResultValidationError) Reason() string
Reason function returns reason value.
type EvaluationServer ¶
type EvaluationServer interface { // Evaluates periodically all assessment results of a cloud service id based // on the given catalog id. Part of the public API, also exposed as REST. StartEvaluation(context.Context, *StartEvaluationRequest) (*StartEvaluationResponse, error) // StopEvaluation stops the evaluation for the given target of evaluation. // Part of the public API, also exposed as REST. StopEvaluation(context.Context, *StopEvaluationRequest) (*StopEvaluationResponse, error) // List all evaluation results that the user can access. It can further be // restricted by various filtering options. Part of the public API, also // exposed as REST. ListEvaluationResults(context.Context, *ListEvaluationResultsRequest) (*ListEvaluationResultsResponse, error) // Creates an evaluation result CreateEvaluationResult(context.Context, *CreateEvaluationResultRequest) (*EvaluationResult, error) // contains filtered or unexported methods }
EvaluationServer is the server API for Evaluation service. All implementations must embed UnimplementedEvaluationServer for forward compatibility
type EvaluationStatus ¶
type EvaluationStatus int32
const ( EvaluationStatus_EVALUATION_STATUS_UNSPECIFIED EvaluationStatus = 0 EvaluationStatus_EVALUATION_STATUS_COMPLIANT EvaluationStatus = 1 EvaluationStatus_EVALUATION_STATUS_COMPLIANT_MANUALLY EvaluationStatus = 2 EvaluationStatus_EVALUATION_STATUS_NOT_COMPLIANT EvaluationStatus = 3 EvaluationStatus_EVALUATION_STATUS_NOT_COMPLIANT_MANUALLY EvaluationStatus = 4 EvaluationStatus_EVALUATION_STATUS_PENDING EvaluationStatus = 10 )
func (EvaluationStatus) Descriptor ¶
func (EvaluationStatus) Descriptor() protoreflect.EnumDescriptor
func (EvaluationStatus) Enum ¶
func (x EvaluationStatus) Enum() *EvaluationStatus
func (EvaluationStatus) EnumDescriptor
deprecated
func (EvaluationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use EvaluationStatus.Descriptor instead.
func (EvaluationStatus) Number ¶
func (x EvaluationStatus) Number() protoreflect.EnumNumber
func (EvaluationStatus) String ¶
func (x EvaluationStatus) String() string
func (EvaluationStatus) Type ¶
func (EvaluationStatus) Type() protoreflect.EnumType
type ListEvaluationResultsRequest ¶
type ListEvaluationResultsRequest struct { Filter *ListEvaluationResultsRequest_Filter `protobuf:"bytes,1,opt,name=filter,proto3,oneof" json:"filter,omitempty"` // Optional. Latest results grouped by control_id. LatestByControlId *bool `protobuf:"varint,2,opt,name=latest_by_control_id,json=latestByControlId,proto3,oneof" json:"latest_by_control_id,omitempty"` PageSize int32 `protobuf:"varint,10,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` PageToken string `protobuf:"bytes,11,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` OrderBy string `protobuf:"bytes,12,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` Asc bool `protobuf:"varint,13,opt,name=asc,proto3" json:"asc,omitempty"` // contains filtered or unexported fields }
func (*ListEvaluationResultsRequest) Descriptor
deprecated
func (*ListEvaluationResultsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListEvaluationResultsRequest.ProtoReflect.Descriptor instead.
func (*ListEvaluationResultsRequest) GetAsc ¶
func (x *ListEvaluationResultsRequest) GetAsc() bool
func (*ListEvaluationResultsRequest) GetFilter ¶
func (x *ListEvaluationResultsRequest) GetFilter() *ListEvaluationResultsRequest_Filter
func (*ListEvaluationResultsRequest) GetLatestByControlId ¶ added in v1.9.0
func (x *ListEvaluationResultsRequest) GetLatestByControlId() bool
func (*ListEvaluationResultsRequest) GetOrderBy ¶
func (x *ListEvaluationResultsRequest) GetOrderBy() string
func (*ListEvaluationResultsRequest) GetPageSize ¶
func (x *ListEvaluationResultsRequest) GetPageSize() int32
func (*ListEvaluationResultsRequest) GetPageToken ¶
func (x *ListEvaluationResultsRequest) GetPageToken() string
func (*ListEvaluationResultsRequest) ProtoMessage ¶
func (*ListEvaluationResultsRequest) ProtoMessage()
func (*ListEvaluationResultsRequest) ProtoReflect ¶
func (x *ListEvaluationResultsRequest) ProtoReflect() protoreflect.Message
func (*ListEvaluationResultsRequest) Reset ¶
func (x *ListEvaluationResultsRequest) Reset()
func (*ListEvaluationResultsRequest) String ¶
func (x *ListEvaluationResultsRequest) String() string
func (*ListEvaluationResultsRequest) Validate ¶
func (m *ListEvaluationResultsRequest) Validate() error
Validate checks the field values on ListEvaluationResultsRequest 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 (*ListEvaluationResultsRequest) ValidateAll ¶
func (m *ListEvaluationResultsRequest) ValidateAll() error
ValidateAll checks the field values on ListEvaluationResultsRequest 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 ListEvaluationResultsRequestMultiError, or nil if none found.
type ListEvaluationResultsRequestMultiError ¶
type ListEvaluationResultsRequestMultiError []error
ListEvaluationResultsRequestMultiError is an error wrapping multiple validation errors returned by ListEvaluationResultsRequest.ValidateAll() if the designated constraints aren't met.
func (ListEvaluationResultsRequestMultiError) AllErrors ¶
func (m ListEvaluationResultsRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListEvaluationResultsRequestMultiError) Error ¶
func (m ListEvaluationResultsRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListEvaluationResultsRequestValidationError ¶
type ListEvaluationResultsRequestValidationError struct {
// contains filtered or unexported fields
}
ListEvaluationResultsRequestValidationError is the validation error returned by ListEvaluationResultsRequest.Validate if the designated constraints aren't met.
func (ListEvaluationResultsRequestValidationError) Cause ¶
func (e ListEvaluationResultsRequestValidationError) Cause() error
Cause function returns cause value.
func (ListEvaluationResultsRequestValidationError) Error ¶
func (e ListEvaluationResultsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (ListEvaluationResultsRequestValidationError) ErrorName ¶
func (e ListEvaluationResultsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (ListEvaluationResultsRequestValidationError) Field ¶
func (e ListEvaluationResultsRequestValidationError) Field() string
Field function returns field value.
func (ListEvaluationResultsRequestValidationError) Key ¶
func (e ListEvaluationResultsRequestValidationError) Key() bool
Key function returns key value.
func (ListEvaluationResultsRequestValidationError) Reason ¶
func (e ListEvaluationResultsRequestValidationError) Reason() string
Reason function returns reason value.
type ListEvaluationResultsRequest_Filter ¶
type ListEvaluationResultsRequest_Filter struct { // Optional. Lists only evaluation results for a specific cloud service. CloudServiceId *string `protobuf:"bytes,1,opt,name=cloud_service_id,json=cloudServiceId,proto3,oneof" json:"cloud_service_id,omitempty"` // Optional. Lists only evaluation results for a specific catalog. CatalogId *string `protobuf:"bytes,2,opt,name=catalog_id,json=catalogId,proto3,oneof" json:"catalog_id,omitempty"` // Optional. Lists only evaluation results for a specific control id. ControlId *string `protobuf:"bytes,3,opt,name=control_id,json=controlId,proto3,oneof" json:"control_id,omitempty"` // Optional. Lists all evaluation results for the given initial control id // substring, e.g., if the substring 'CMK-01.' is given it returns the // controls CMK-01.1B, CMK-01.1S, CMK-01.1H. SubControls *string `protobuf:"bytes,4,opt,name=sub_controls,json=subControls,proto3,oneof" json:"sub_controls,omitempty"` // Optional. Lists only results for parent controls ParentsOnly *bool `protobuf:"varint,5,opt,name=parents_only,json=parentsOnly,proto3,oneof" json:"parents_only,omitempty"` // Optional. Lists only manual results in their validity period ValidManualOnly *bool `protobuf:"varint,6,opt,name=valid_manual_only,json=validManualOnly,proto3,oneof" json:"valid_manual_only,omitempty"` // contains filtered or unexported fields }
func (*ListEvaluationResultsRequest_Filter) Descriptor
deprecated
func (*ListEvaluationResultsRequest_Filter) Descriptor() ([]byte, []int)
Deprecated: Use ListEvaluationResultsRequest_Filter.ProtoReflect.Descriptor instead.
func (*ListEvaluationResultsRequest_Filter) GetCatalogId ¶ added in v1.9.0
func (x *ListEvaluationResultsRequest_Filter) GetCatalogId() string
func (*ListEvaluationResultsRequest_Filter) GetCloudServiceId ¶
func (x *ListEvaluationResultsRequest_Filter) GetCloudServiceId() string
func (*ListEvaluationResultsRequest_Filter) GetControlId ¶
func (x *ListEvaluationResultsRequest_Filter) GetControlId() string
func (*ListEvaluationResultsRequest_Filter) GetParentsOnly ¶ added in v1.9.0
func (x *ListEvaluationResultsRequest_Filter) GetParentsOnly() bool
func (*ListEvaluationResultsRequest_Filter) GetSubControls ¶
func (x *ListEvaluationResultsRequest_Filter) GetSubControls() string
func (*ListEvaluationResultsRequest_Filter) GetValidManualOnly ¶ added in v1.10.0
func (x *ListEvaluationResultsRequest_Filter) GetValidManualOnly() bool
func (*ListEvaluationResultsRequest_Filter) ProtoMessage ¶
func (*ListEvaluationResultsRequest_Filter) ProtoMessage()
func (*ListEvaluationResultsRequest_Filter) ProtoReflect ¶
func (x *ListEvaluationResultsRequest_Filter) ProtoReflect() protoreflect.Message
func (*ListEvaluationResultsRequest_Filter) Reset ¶
func (x *ListEvaluationResultsRequest_Filter) Reset()
func (*ListEvaluationResultsRequest_Filter) String ¶
func (x *ListEvaluationResultsRequest_Filter) String() string
func (*ListEvaluationResultsRequest_Filter) Validate ¶
func (m *ListEvaluationResultsRequest_Filter) Validate() error
Validate checks the field values on ListEvaluationResultsRequest_Filter 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 (*ListEvaluationResultsRequest_Filter) ValidateAll ¶
func (m *ListEvaluationResultsRequest_Filter) ValidateAll() error
ValidateAll checks the field values on ListEvaluationResultsRequest_Filter 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 ListEvaluationResultsRequest_FilterMultiError, or nil if none found.
type ListEvaluationResultsRequest_FilterMultiError ¶
type ListEvaluationResultsRequest_FilterMultiError []error
ListEvaluationResultsRequest_FilterMultiError is an error wrapping multiple validation errors returned by ListEvaluationResultsRequest_Filter.ValidateAll() if the designated constraints aren't met.
func (ListEvaluationResultsRequest_FilterMultiError) AllErrors ¶
func (m ListEvaluationResultsRequest_FilterMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListEvaluationResultsRequest_FilterMultiError) Error ¶
func (m ListEvaluationResultsRequest_FilterMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListEvaluationResultsRequest_FilterValidationError ¶
type ListEvaluationResultsRequest_FilterValidationError struct {
// contains filtered or unexported fields
}
ListEvaluationResultsRequest_FilterValidationError is the validation error returned by ListEvaluationResultsRequest_Filter.Validate if the designated constraints aren't met.
func (ListEvaluationResultsRequest_FilterValidationError) Cause ¶
func (e ListEvaluationResultsRequest_FilterValidationError) Cause() error
Cause function returns cause value.
func (ListEvaluationResultsRequest_FilterValidationError) Error ¶
func (e ListEvaluationResultsRequest_FilterValidationError) Error() string
Error satisfies the builtin error interface
func (ListEvaluationResultsRequest_FilterValidationError) ErrorName ¶
func (e ListEvaluationResultsRequest_FilterValidationError) ErrorName() string
ErrorName returns error name.
func (ListEvaluationResultsRequest_FilterValidationError) Field ¶
func (e ListEvaluationResultsRequest_FilterValidationError) Field() string
Field function returns field value.
func (ListEvaluationResultsRequest_FilterValidationError) Key ¶
func (e ListEvaluationResultsRequest_FilterValidationError) Key() bool
Key function returns key value.
func (ListEvaluationResultsRequest_FilterValidationError) Reason ¶
func (e ListEvaluationResultsRequest_FilterValidationError) Reason() string
Reason function returns reason value.
type ListEvaluationResultsResponse ¶
type ListEvaluationResultsResponse struct { Results []*EvaluationResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*ListEvaluationResultsResponse) Descriptor
deprecated
func (*ListEvaluationResultsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListEvaluationResultsResponse.ProtoReflect.Descriptor instead.
func (*ListEvaluationResultsResponse) GetNextPageToken ¶
func (x *ListEvaluationResultsResponse) GetNextPageToken() string
func (*ListEvaluationResultsResponse) GetResults ¶
func (x *ListEvaluationResultsResponse) GetResults() []*EvaluationResult
func (*ListEvaluationResultsResponse) ProtoMessage ¶
func (*ListEvaluationResultsResponse) ProtoMessage()
func (*ListEvaluationResultsResponse) ProtoReflect ¶
func (x *ListEvaluationResultsResponse) ProtoReflect() protoreflect.Message
func (*ListEvaluationResultsResponse) Reset ¶
func (x *ListEvaluationResultsResponse) Reset()
func (*ListEvaluationResultsResponse) String ¶
func (x *ListEvaluationResultsResponse) String() string
func (*ListEvaluationResultsResponse) Validate ¶
func (m *ListEvaluationResultsResponse) Validate() error
Validate checks the field values on ListEvaluationResultsResponse 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 (*ListEvaluationResultsResponse) ValidateAll ¶
func (m *ListEvaluationResultsResponse) ValidateAll() error
ValidateAll checks the field values on ListEvaluationResultsResponse 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 ListEvaluationResultsResponseMultiError, or nil if none found.
type ListEvaluationResultsResponseMultiError ¶
type ListEvaluationResultsResponseMultiError []error
ListEvaluationResultsResponseMultiError is an error wrapping multiple validation errors returned by ListEvaluationResultsResponse.ValidateAll() if the designated constraints aren't met.
func (ListEvaluationResultsResponseMultiError) AllErrors ¶
func (m ListEvaluationResultsResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ListEvaluationResultsResponseMultiError) Error ¶
func (m ListEvaluationResultsResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ListEvaluationResultsResponseValidationError ¶
type ListEvaluationResultsResponseValidationError struct {
// contains filtered or unexported fields
}
ListEvaluationResultsResponseValidationError is the validation error returned by ListEvaluationResultsResponse.Validate if the designated constraints aren't met.
func (ListEvaluationResultsResponseValidationError) Cause ¶
func (e ListEvaluationResultsResponseValidationError) Cause() error
Cause function returns cause value.
func (ListEvaluationResultsResponseValidationError) Error ¶
func (e ListEvaluationResultsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (ListEvaluationResultsResponseValidationError) ErrorName ¶
func (e ListEvaluationResultsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (ListEvaluationResultsResponseValidationError) Field ¶
func (e ListEvaluationResultsResponseValidationError) Field() string
Field function returns field value.
func (ListEvaluationResultsResponseValidationError) Key ¶
func (e ListEvaluationResultsResponseValidationError) Key() bool
Key function returns key value.
func (ListEvaluationResultsResponseValidationError) Reason ¶
func (e ListEvaluationResultsResponseValidationError) Reason() string
Reason function returns reason value.
type StartEvaluationRequest ¶
type StartEvaluationRequest struct { CloudServiceId string `protobuf:"bytes,1,opt,name=cloud_service_id,json=cloudServiceId,proto3" json:"cloud_service_id,omitempty"` CatalogId string `protobuf:"bytes,2,opt,name=catalog_id,json=catalogId,proto3" json:"catalog_id,omitempty"` // The interval time in minutes the evaluation executes periodically. The // default interval is set to 5 minutes. Interval *int32 `protobuf:"varint,3,opt,name=interval,proto3,oneof" json:"interval,omitempty"` // contains filtered or unexported fields }
func (*StartEvaluationRequest) Descriptor
deprecated
func (*StartEvaluationRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartEvaluationRequest.ProtoReflect.Descriptor instead.
func (*StartEvaluationRequest) GetCatalogId ¶
func (x *StartEvaluationRequest) GetCatalogId() string
func (*StartEvaluationRequest) GetCloudServiceId ¶
func (x *StartEvaluationRequest) GetCloudServiceId() string
func (*StartEvaluationRequest) GetInterval ¶
func (x *StartEvaluationRequest) GetInterval() int32
func (*StartEvaluationRequest) ProtoMessage ¶
func (*StartEvaluationRequest) ProtoMessage()
func (*StartEvaluationRequest) ProtoReflect ¶
func (x *StartEvaluationRequest) ProtoReflect() protoreflect.Message
func (*StartEvaluationRequest) Reset ¶
func (x *StartEvaluationRequest) Reset()
func (*StartEvaluationRequest) String ¶
func (x *StartEvaluationRequest) String() string
func (*StartEvaluationRequest) Validate ¶
func (m *StartEvaluationRequest) Validate() error
Validate checks the field values on StartEvaluationRequest 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 (*StartEvaluationRequest) ValidateAll ¶
func (m *StartEvaluationRequest) ValidateAll() error
ValidateAll checks the field values on StartEvaluationRequest 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 StartEvaluationRequestMultiError, or nil if none found.
type StartEvaluationRequestMultiError ¶
type StartEvaluationRequestMultiError []error
StartEvaluationRequestMultiError is an error wrapping multiple validation errors returned by StartEvaluationRequest.ValidateAll() if the designated constraints aren't met.
func (StartEvaluationRequestMultiError) AllErrors ¶
func (m StartEvaluationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StartEvaluationRequestMultiError) Error ¶
func (m StartEvaluationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StartEvaluationRequestValidationError ¶
type StartEvaluationRequestValidationError struct {
// contains filtered or unexported fields
}
StartEvaluationRequestValidationError is the validation error returned by StartEvaluationRequest.Validate if the designated constraints aren't met.
func (StartEvaluationRequestValidationError) Cause ¶
func (e StartEvaluationRequestValidationError) Cause() error
Cause function returns cause value.
func (StartEvaluationRequestValidationError) Error ¶
func (e StartEvaluationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StartEvaluationRequestValidationError) ErrorName ¶
func (e StartEvaluationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StartEvaluationRequestValidationError) Field ¶
func (e StartEvaluationRequestValidationError) Field() string
Field function returns field value.
func (StartEvaluationRequestValidationError) Key ¶
func (e StartEvaluationRequestValidationError) Key() bool
Key function returns key value.
func (StartEvaluationRequestValidationError) Reason ¶
func (e StartEvaluationRequestValidationError) Reason() string
Reason function returns reason value.
type StartEvaluationResponse ¶
type StartEvaluationResponse struct { Successful bool `protobuf:"varint,1,opt,name=successful,proto3" json:"successful,omitempty"` // contains filtered or unexported fields }
func (*StartEvaluationResponse) Descriptor
deprecated
func (*StartEvaluationResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartEvaluationResponse.ProtoReflect.Descriptor instead.
func (*StartEvaluationResponse) GetSuccessful ¶
func (x *StartEvaluationResponse) GetSuccessful() bool
func (*StartEvaluationResponse) ProtoMessage ¶
func (*StartEvaluationResponse) ProtoMessage()
func (*StartEvaluationResponse) ProtoReflect ¶
func (x *StartEvaluationResponse) ProtoReflect() protoreflect.Message
func (*StartEvaluationResponse) Reset ¶
func (x *StartEvaluationResponse) Reset()
func (*StartEvaluationResponse) String ¶
func (x *StartEvaluationResponse) String() string
func (*StartEvaluationResponse) Validate ¶
func (m *StartEvaluationResponse) Validate() error
Validate checks the field values on StartEvaluationResponse 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 (*StartEvaluationResponse) ValidateAll ¶
func (m *StartEvaluationResponse) ValidateAll() error
ValidateAll checks the field values on StartEvaluationResponse 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 StartEvaluationResponseMultiError, or nil if none found.
type StartEvaluationResponseMultiError ¶
type StartEvaluationResponseMultiError []error
StartEvaluationResponseMultiError is an error wrapping multiple validation errors returned by StartEvaluationResponse.ValidateAll() if the designated constraints aren't met.
func (StartEvaluationResponseMultiError) AllErrors ¶
func (m StartEvaluationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StartEvaluationResponseMultiError) Error ¶
func (m StartEvaluationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StartEvaluationResponseValidationError ¶
type StartEvaluationResponseValidationError struct {
// contains filtered or unexported fields
}
StartEvaluationResponseValidationError is the validation error returned by StartEvaluationResponse.Validate if the designated constraints aren't met.
func (StartEvaluationResponseValidationError) Cause ¶
func (e StartEvaluationResponseValidationError) Cause() error
Cause function returns cause value.
func (StartEvaluationResponseValidationError) Error ¶
func (e StartEvaluationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StartEvaluationResponseValidationError) ErrorName ¶
func (e StartEvaluationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StartEvaluationResponseValidationError) Field ¶
func (e StartEvaluationResponseValidationError) Field() string
Field function returns field value.
func (StartEvaluationResponseValidationError) Key ¶
func (e StartEvaluationResponseValidationError) Key() bool
Key function returns key value.
func (StartEvaluationResponseValidationError) Reason ¶
func (e StartEvaluationResponseValidationError) Reason() string
Reason function returns reason value.
type StopEvaluationRequest ¶
type StopEvaluationRequest struct { CloudServiceId string `protobuf:"bytes,1,opt,name=cloud_service_id,json=cloudServiceId,proto3" json:"cloud_service_id,omitempty"` CatalogId string `protobuf:"bytes,2,opt,name=catalog_id,json=catalogId,proto3" json:"catalog_id,omitempty"` // contains filtered or unexported fields }
func (*StopEvaluationRequest) Descriptor
deprecated
func (*StopEvaluationRequest) Descriptor() ([]byte, []int)
Deprecated: Use StopEvaluationRequest.ProtoReflect.Descriptor instead.
func (*StopEvaluationRequest) GetCatalogId ¶
func (x *StopEvaluationRequest) GetCatalogId() string
func (*StopEvaluationRequest) GetCloudServiceId ¶
func (x *StopEvaluationRequest) GetCloudServiceId() string
func (*StopEvaluationRequest) ProtoMessage ¶
func (*StopEvaluationRequest) ProtoMessage()
func (*StopEvaluationRequest) ProtoReflect ¶
func (x *StopEvaluationRequest) ProtoReflect() protoreflect.Message
func (*StopEvaluationRequest) Reset ¶
func (x *StopEvaluationRequest) Reset()
func (*StopEvaluationRequest) String ¶
func (x *StopEvaluationRequest) String() string
func (*StopEvaluationRequest) Validate ¶
func (m *StopEvaluationRequest) Validate() error
Validate checks the field values on StopEvaluationRequest 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 (*StopEvaluationRequest) ValidateAll ¶
func (m *StopEvaluationRequest) ValidateAll() error
ValidateAll checks the field values on StopEvaluationRequest 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 StopEvaluationRequestMultiError, or nil if none found.
type StopEvaluationRequestMultiError ¶
type StopEvaluationRequestMultiError []error
StopEvaluationRequestMultiError is an error wrapping multiple validation errors returned by StopEvaluationRequest.ValidateAll() if the designated constraints aren't met.
func (StopEvaluationRequestMultiError) AllErrors ¶
func (m StopEvaluationRequestMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StopEvaluationRequestMultiError) Error ¶
func (m StopEvaluationRequestMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StopEvaluationRequestValidationError ¶
type StopEvaluationRequestValidationError struct {
// contains filtered or unexported fields
}
StopEvaluationRequestValidationError is the validation error returned by StopEvaluationRequest.Validate if the designated constraints aren't met.
func (StopEvaluationRequestValidationError) Cause ¶
func (e StopEvaluationRequestValidationError) Cause() error
Cause function returns cause value.
func (StopEvaluationRequestValidationError) Error ¶
func (e StopEvaluationRequestValidationError) Error() string
Error satisfies the builtin error interface
func (StopEvaluationRequestValidationError) ErrorName ¶
func (e StopEvaluationRequestValidationError) ErrorName() string
ErrorName returns error name.
func (StopEvaluationRequestValidationError) Field ¶
func (e StopEvaluationRequestValidationError) Field() string
Field function returns field value.
func (StopEvaluationRequestValidationError) Key ¶
func (e StopEvaluationRequestValidationError) Key() bool
Key function returns key value.
func (StopEvaluationRequestValidationError) Reason ¶
func (e StopEvaluationRequestValidationError) Reason() string
Reason function returns reason value.
type StopEvaluationResponse ¶
type StopEvaluationResponse struct {
// contains filtered or unexported fields
}
func (*StopEvaluationResponse) Descriptor
deprecated
func (*StopEvaluationResponse) Descriptor() ([]byte, []int)
Deprecated: Use StopEvaluationResponse.ProtoReflect.Descriptor instead.
func (*StopEvaluationResponse) ProtoMessage ¶
func (*StopEvaluationResponse) ProtoMessage()
func (*StopEvaluationResponse) ProtoReflect ¶
func (x *StopEvaluationResponse) ProtoReflect() protoreflect.Message
func (*StopEvaluationResponse) Reset ¶
func (x *StopEvaluationResponse) Reset()
func (*StopEvaluationResponse) String ¶
func (x *StopEvaluationResponse) String() string
func (*StopEvaluationResponse) Validate ¶
func (m *StopEvaluationResponse) Validate() error
Validate checks the field values on StopEvaluationResponse 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 (*StopEvaluationResponse) ValidateAll ¶
func (m *StopEvaluationResponse) ValidateAll() error
ValidateAll checks the field values on StopEvaluationResponse 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 StopEvaluationResponseMultiError, or nil if none found.
type StopEvaluationResponseMultiError ¶
type StopEvaluationResponseMultiError []error
StopEvaluationResponseMultiError is an error wrapping multiple validation errors returned by StopEvaluationResponse.ValidateAll() if the designated constraints aren't met.
func (StopEvaluationResponseMultiError) AllErrors ¶
func (m StopEvaluationResponseMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (StopEvaluationResponseMultiError) Error ¶
func (m StopEvaluationResponseMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type StopEvaluationResponseValidationError ¶
type StopEvaluationResponseValidationError struct {
// contains filtered or unexported fields
}
StopEvaluationResponseValidationError is the validation error returned by StopEvaluationResponse.Validate if the designated constraints aren't met.
func (StopEvaluationResponseValidationError) Cause ¶
func (e StopEvaluationResponseValidationError) Cause() error
Cause function returns cause value.
func (StopEvaluationResponseValidationError) Error ¶
func (e StopEvaluationResponseValidationError) Error() string
Error satisfies the builtin error interface
func (StopEvaluationResponseValidationError) ErrorName ¶
func (e StopEvaluationResponseValidationError) ErrorName() string
ErrorName returns error name.
func (StopEvaluationResponseValidationError) Field ¶
func (e StopEvaluationResponseValidationError) Field() string
Field function returns field value.
func (StopEvaluationResponseValidationError) Key ¶
func (e StopEvaluationResponseValidationError) Key() bool
Key function returns key value.
func (StopEvaluationResponseValidationError) Reason ¶
func (e StopEvaluationResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedEvaluationServer ¶
type UnimplementedEvaluationServer struct { }
UnimplementedEvaluationServer must be embedded to have forward compatible implementations.
func (UnimplementedEvaluationServer) CreateEvaluationResult ¶ added in v1.10.0
func (UnimplementedEvaluationServer) CreateEvaluationResult(context.Context, *CreateEvaluationResultRequest) (*EvaluationResult, error)
func (UnimplementedEvaluationServer) ListEvaluationResults ¶
func (UnimplementedEvaluationServer) ListEvaluationResults(context.Context, *ListEvaluationResultsRequest) (*ListEvaluationResultsResponse, error)
func (UnimplementedEvaluationServer) StartEvaluation ¶
func (UnimplementedEvaluationServer) StartEvaluation(context.Context, *StartEvaluationRequest) (*StartEvaluationResponse, error)
func (UnimplementedEvaluationServer) StopEvaluation ¶
func (UnimplementedEvaluationServer) StopEvaluation(context.Context, *StopEvaluationRequest) (*StopEvaluationResponse, error)
type UnsafeEvaluationServer ¶
type UnsafeEvaluationServer interface {
// contains filtered or unexported methods
}
UnsafeEvaluationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EvaluationServer will result in compilation errors.