evaluation

package
v1.10.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 10, 2023 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Overview

Package evaluation is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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)

View Source
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 (*CreateEvaluationResultRequest) ProtoMessage added in v1.10.0

func (*CreateEvaluationResultRequest) ProtoMessage()

func (*CreateEvaluationResultRequest) ProtoReflect added in v1.10.0

func (*CreateEvaluationResultRequest) Reset added in v1.10.0

func (x *CreateEvaluationResultRequest) Reset()

func (*CreateEvaluationResultRequest) String added in v1.10.0

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

AllErrors returns a list of validation violation errors.

func (CreateEvaluationResultRequestMultiError) Error added in v1.10.0

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

Cause function returns cause value.

func (CreateEvaluationResultRequestValidationError) Error added in v1.10.0

Error satisfies the builtin error interface

func (CreateEvaluationResultRequestValidationError) ErrorName added in v1.10.0

ErrorName returns error name.

func (CreateEvaluationResultRequestValidationError) Field added in v1.10.0

Field function returns field value.

func (CreateEvaluationResultRequestValidationError) Key added in v1.10.0

Key function returns key value.

func (CreateEvaluationResultRequestValidationError) Reason added in v1.10.0

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.golang.ir/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

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

Cause function returns cause value.

func (EvaluationResultValidationError) Error

Error satisfies the builtin error interface

func (EvaluationResultValidationError) ErrorName

ErrorName returns error name.

func (EvaluationResultValidationError) Field

Field function returns field value.

func (EvaluationResultValidationError) Key

Key function returns key value.

func (EvaluationResultValidationError) Reason

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) Enum

func (EvaluationStatus) EnumDescriptor deprecated

func (EvaluationStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use EvaluationStatus.Descriptor instead.

func (EvaluationStatus) Number

func (EvaluationStatus) String

func (x EvaluationStatus) String() string

func (EvaluationStatus) Type

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 (*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 (*ListEvaluationResultsRequest) Reset

func (x *ListEvaluationResultsRequest) Reset()

func (*ListEvaluationResultsRequest) 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

AllErrors returns a list of validation violation errors.

func (ListEvaluationResultsRequestMultiError) Error

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

Cause function returns cause value.

func (ListEvaluationResultsRequestValidationError) Error

Error satisfies the builtin error interface

func (ListEvaluationResultsRequestValidationError) ErrorName

ErrorName returns error name.

func (ListEvaluationResultsRequestValidationError) Field

Field function returns field value.

func (ListEvaluationResultsRequestValidationError) Key

Key function returns key value.

func (ListEvaluationResultsRequestValidationError) Reason

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 (*ListEvaluationResultsRequest_Filter) Reset

func (*ListEvaluationResultsRequest_Filter) String

func (*ListEvaluationResultsRequest_Filter) Validate

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

AllErrors returns a list of validation violation errors.

func (ListEvaluationResultsRequest_FilterMultiError) Error

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

Cause function returns cause value.

func (ListEvaluationResultsRequest_FilterValidationError) Error

Error satisfies the builtin error interface

func (ListEvaluationResultsRequest_FilterValidationError) ErrorName

ErrorName returns error name.

func (ListEvaluationResultsRequest_FilterValidationError) Field

Field function returns field value.

func (ListEvaluationResultsRequest_FilterValidationError) Key

Key function returns key value.

func (ListEvaluationResultsRequest_FilterValidationError) Reason

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 (*ListEvaluationResultsResponse) ProtoMessage

func (*ListEvaluationResultsResponse) ProtoMessage()

func (*ListEvaluationResultsResponse) ProtoReflect

func (*ListEvaluationResultsResponse) Reset

func (x *ListEvaluationResultsResponse) Reset()

func (*ListEvaluationResultsResponse) 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

AllErrors returns a list of validation violation errors.

func (ListEvaluationResultsResponseMultiError) Error

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

Cause function returns cause value.

func (ListEvaluationResultsResponseValidationError) Error

Error satisfies the builtin error interface

func (ListEvaluationResultsResponseValidationError) ErrorName

ErrorName returns error name.

func (ListEvaluationResultsResponseValidationError) Field

Field function returns field value.

func (ListEvaluationResultsResponseValidationError) Key

Key function returns key value.

func (ListEvaluationResultsResponseValidationError) Reason

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

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

Cause function returns cause value.

func (StartEvaluationRequestValidationError) Error

Error satisfies the builtin error interface

func (StartEvaluationRequestValidationError) ErrorName

ErrorName returns error name.

func (StartEvaluationRequestValidationError) Field

Field function returns field value.

func (StartEvaluationRequestValidationError) Key

Key function returns key value.

func (StartEvaluationRequestValidationError) Reason

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

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

Cause function returns cause value.

func (StartEvaluationResponseValidationError) Error

Error satisfies the builtin error interface

func (StartEvaluationResponseValidationError) ErrorName

ErrorName returns error name.

func (StartEvaluationResponseValidationError) Field

Field function returns field value.

func (StartEvaluationResponseValidationError) Key

Key function returns key value.

func (StartEvaluationResponseValidationError) Reason

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

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

Cause function returns cause value.

func (StopEvaluationRequestValidationError) Error

Error satisfies the builtin error interface

func (StopEvaluationRequestValidationError) ErrorName

ErrorName returns error name.

func (StopEvaluationRequestValidationError) Field

Field function returns field value.

func (StopEvaluationRequestValidationError) Key

Key function returns key value.

func (StopEvaluationRequestValidationError) Reason

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

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

Cause function returns cause value.

func (StopEvaluationResponseValidationError) Error

Error satisfies the builtin error interface

func (StopEvaluationResponseValidationError) ErrorName

ErrorName returns error name.

func (StopEvaluationResponseValidationError) Field

Field function returns field value.

func (StopEvaluationResponseValidationError) Key

Key function returns key value.

func (StopEvaluationResponseValidationError) Reason

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) StartEvaluation

func (UnimplementedEvaluationServer) StopEvaluation

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL