evidence

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: Apache-2.0 Imports: 32 Imported by: 1

Documentation

Overview

Package evidence is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrResourceNotStruct             = errors.New("resource in evidence is not struct value")
	ErrResourceNotMap                = errors.New("resource in evidence is not a map")
	ErrResourceIdMissing             = errors.New("resource in evidence is missing the id field")
	ErrResourceIdNotString           = errors.New("resource id in evidence is not a string")
	ErrResourceIdFieldMissing        = errors.New("field id is missing")
	ErrResourceTypeFieldMissing      = errors.New("field type in evidence is missing")
	ErrResourceTypeNotArrayOfStrings = errors.New("resource type in evidence is not an array of strings")
	ErrResourceTypeEmpty             = errors.New("resource type (array) in evidence is empty")
)
View Source
var EvidenceStore_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "clouditor.evidence.v1.EvidenceStore",
	HandlerType: (*EvidenceStoreServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "StoreEvidence",
			Handler:    _EvidenceStore_StoreEvidence_Handler,
		},
		{
			MethodName: "ListEvidences",
			Handler:    _EvidenceStore_ListEvidences_Handler,
		},
		{
			MethodName: "GetEvidence",
			Handler:    _EvidenceStore_GetEvidence_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "StoreEvidences",
			Handler:       _EvidenceStore_StoreEvidences_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "api/evidence/evidence_store.proto",
}

EvidenceStore_ServiceDesc is the grpc.ServiceDesc for EvidenceStore 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_evidence_evidence_proto protoreflect.FileDescriptor
View Source
var File_api_evidence_evidence_store_proto protoreflect.FileDescriptor

Functions

func RegisterEvidenceStoreHandler added in v1.3.11

func RegisterEvidenceStoreHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterEvidenceStoreHandler registers the http handlers for service EvidenceStore to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterEvidenceStoreHandlerClient added in v1.3.11

func RegisterEvidenceStoreHandlerClient(ctx context.Context, mux *runtime.ServeMux, client EvidenceStoreClient) error

RegisterEvidenceStoreHandlerClient registers the http handlers for service EvidenceStore to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "EvidenceStoreClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "EvidenceStoreClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "EvidenceStoreClient" to call the correct interceptors.

func RegisterEvidenceStoreHandlerFromEndpoint added in v1.3.11

func RegisterEvidenceStoreHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterEvidenceStoreHandlerFromEndpoint is same as RegisterEvidenceStoreHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterEvidenceStoreHandlerServer added in v1.3.11

func RegisterEvidenceStoreHandlerServer(ctx context.Context, mux *runtime.ServeMux, server EvidenceStoreServer) error

RegisterEvidenceStoreHandlerServer registers the http handlers for service EvidenceStore to "mux". UnaryRPC :call EvidenceStoreServer 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 RegisterEvidenceStoreHandlerFromEndpoint instead.

func RegisterEvidenceStoreServer

func RegisterEvidenceStoreServer(s grpc.ServiceRegistrar, srv EvidenceStoreServer)

Types

type Evidence

type Evidence struct {

	// the ID in a uuid format
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// time of evidence creation
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty" gorm:"serializer:timestamppb;type:time"`
	// Reference to a service this evidence was gathered from
	CloudServiceId string `protobuf:"bytes,3,opt,name=cloud_service_id,json=cloudServiceId,proto3" json:"cloud_service_id,omitempty"`
	// Reference to the tool which provided the evidence
	ToolId string `protobuf:"bytes,4,opt,name=tool_id,json=toolId,proto3" json:"tool_id,omitempty"`
	// Optional. Contains the evidence in its original form without following a
	// defined schema, e.g. the raw JSON
	Raw *string `protobuf:"bytes,5,opt,name=raw,proto3,oneof" json:"raw,omitempty"`
	// Semantic representation of the Cloud resource according to our defined
	// ontology
	Resource *structpb.Value `protobuf:"bytes,6,opt,name=resource,proto3" json:"resource,omitempty" gorm:"serializer:valuepb;type:json"`
	// contains filtered or unexported fields
}

An evidence resource

func (*Evidence) Descriptor deprecated

func (*Evidence) Descriptor() ([]byte, []int)

Deprecated: Use Evidence.ProtoReflect.Descriptor instead.

func (*Evidence) GetCloudServiceId added in v1.6.0

func (x *Evidence) GetCloudServiceId() string

func (*Evidence) GetId

func (x *Evidence) GetId() string

func (*Evidence) GetRaw

func (x *Evidence) GetRaw() string

func (*Evidence) GetResource

func (x *Evidence) GetResource() *structpb.Value

func (*Evidence) GetTimestamp

func (x *Evidence) GetTimestamp() *timestamppb.Timestamp

func (*Evidence) GetToolId added in v1.3.9

func (x *Evidence) GetToolId() string

func (*Evidence) ProtoMessage

func (*Evidence) ProtoMessage()

func (*Evidence) ProtoReflect

func (x *Evidence) ProtoReflect() protoreflect.Message

func (*Evidence) Reset

func (x *Evidence) Reset()

func (*Evidence) ResourceTypes added in v1.4.11

func (evidence *Evidence) ResourceTypes() (types []string, err error)

ResourceTypes parses the embedded resource of this evidence and returns its types according to the ontology.

func (*Evidence) String

func (x *Evidence) String() string

func (*Evidence) Validate added in v1.3.9

func (m *Evidence) Validate() error

Validate checks the field values on Evidence 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 (*Evidence) ValidateAll added in v1.7.0

func (m *Evidence) ValidateAll() error

ValidateAll checks the field values on Evidence 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 EvidenceMultiError, or nil if none found.

func (*Evidence) ValidateWithResource added in v1.7.0

func (evidence *Evidence) ValidateWithResource() (resourceId string, err error)

ValidateWithResource validates the evidence according to its resource

type EvidenceHookFunc added in v1.3.11

type EvidenceHookFunc func(result *Evidence, err error)

type EvidenceMultiError added in v1.7.0

type EvidenceMultiError []error

EvidenceMultiError is an error wrapping multiple validation errors returned by Evidence.ValidateAll() if the designated constraints aren't met.

func (EvidenceMultiError) AllErrors added in v1.7.0

func (m EvidenceMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (EvidenceMultiError) Error added in v1.7.0

func (m EvidenceMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type EvidenceStoreClient

type EvidenceStoreClient interface {
	// Stores an evidence to the evidence storage. Part of the public API, also
	// exposed as REST.
	StoreEvidence(ctx context.Context, in *StoreEvidenceRequest, opts ...grpc.CallOption) (*StoreEvidenceResponse, error)
	// Stores a stream of evidences to the evidence storage and returns a response
	// stream. Part of the public API, not exposed as REST.
	StoreEvidences(ctx context.Context, opts ...grpc.CallOption) (EvidenceStore_StoreEvidencesClient, error)
	// Returns all stored evidences. Part of the public API, also exposed as REST.
	ListEvidences(ctx context.Context, in *ListEvidencesRequest, opts ...grpc.CallOption) (*ListEvidencesResponse, error)
	// Returns a particular stored evidence. Part of the public API, also exposed
	// as REST.
	GetEvidence(ctx context.Context, in *GetEvidenceRequest, opts ...grpc.CallOption) (*Evidence, error)
}

EvidenceStoreClient is the client API for EvidenceStore service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

type EvidenceStoreServer

type EvidenceStoreServer interface {
	// Stores an evidence to the evidence storage. Part of the public API, also
	// exposed as REST.
	StoreEvidence(context.Context, *StoreEvidenceRequest) (*StoreEvidenceResponse, error)
	// Stores a stream of evidences to the evidence storage and returns a response
	// stream. Part of the public API, not exposed as REST.
	StoreEvidences(EvidenceStore_StoreEvidencesServer) error
	// Returns all stored evidences. Part of the public API, also exposed as REST.
	ListEvidences(context.Context, *ListEvidencesRequest) (*ListEvidencesResponse, error)
	// Returns a particular stored evidence. Part of the public API, also exposed
	// as REST.
	GetEvidence(context.Context, *GetEvidenceRequest) (*Evidence, error)
	// contains filtered or unexported methods
}

EvidenceStoreServer is the server API for EvidenceStore service. All implementations must embed UnimplementedEvidenceStoreServer for forward compatibility

type EvidenceStore_StoreEvidencesClient

type EvidenceStore_StoreEvidencesClient interface {
	Send(*StoreEvidenceRequest) error
	Recv() (*StoreEvidencesResponse, error)
	grpc.ClientStream
}

type EvidenceStore_StoreEvidencesServer

type EvidenceStore_StoreEvidencesServer interface {
	Send(*StoreEvidencesResponse) error
	Recv() (*StoreEvidenceRequest, error)
	grpc.ServerStream
}

type EvidenceValidationError added in v1.7.0

type EvidenceValidationError struct {
	// contains filtered or unexported fields
}

EvidenceValidationError is the validation error returned by Evidence.Validate if the designated constraints aren't met.

func (EvidenceValidationError) Cause added in v1.7.0

func (e EvidenceValidationError) Cause() error

Cause function returns cause value.

func (EvidenceValidationError) Error added in v1.7.0

func (e EvidenceValidationError) Error() string

Error satisfies the builtin error interface

func (EvidenceValidationError) ErrorName added in v1.7.0

func (e EvidenceValidationError) ErrorName() string

ErrorName returns error name.

func (EvidenceValidationError) Field added in v1.7.0

func (e EvidenceValidationError) Field() string

Field function returns field value.

func (EvidenceValidationError) Key added in v1.7.0

func (e EvidenceValidationError) Key() bool

Key function returns key value.

func (EvidenceValidationError) Reason added in v1.7.0

func (e EvidenceValidationError) Reason() string

Reason function returns reason value.

type Filter added in v1.7.7

type Filter struct {
	CloudServiceId *string `protobuf:"bytes,1,opt,name=cloud_service_id,json=cloudServiceId,proto3,oneof" json:"cloud_service_id,omitempty"`
	ToolId         *string `protobuf:"bytes,2,opt,name=tool_id,json=toolId,proto3,oneof" json:"tool_id,omitempty"`
	// contains filtered or unexported fields
}

Allows specifying Filters for ListEvidencesRequest

func (*Filter) Descriptor deprecated added in v1.7.7

func (*Filter) Descriptor() ([]byte, []int)

Deprecated: Use Filter.ProtoReflect.Descriptor instead.

func (*Filter) GetCloudServiceId added in v1.7.7

func (x *Filter) GetCloudServiceId() string

func (*Filter) GetToolId added in v1.7.7

func (x *Filter) GetToolId() string

func (*Filter) ProtoMessage added in v1.7.7

func (*Filter) ProtoMessage()

func (*Filter) ProtoReflect added in v1.7.7

func (x *Filter) ProtoReflect() protoreflect.Message

func (*Filter) Reset added in v1.7.7

func (x *Filter) Reset()

func (*Filter) String added in v1.7.7

func (x *Filter) String() string

func (*Filter) Validate added in v1.7.7

func (m *Filter) Validate() error

Validate checks the field values on 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 (*Filter) ValidateAll added in v1.7.7

func (m *Filter) ValidateAll() error

ValidateAll checks the field values on 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 FilterMultiError, or nil if none found.

type FilterMultiError added in v1.7.7

type FilterMultiError []error

FilterMultiError is an error wrapping multiple validation errors returned by Filter.ValidateAll() if the designated constraints aren't met.

func (FilterMultiError) AllErrors added in v1.7.7

func (m FilterMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (FilterMultiError) Error added in v1.7.7

func (m FilterMultiError) Error() string

Error returns a concatenation of all the error messages it wraps.

type FilterValidationError added in v1.7.7

type FilterValidationError struct {
	// contains filtered or unexported fields
}

FilterValidationError is the validation error returned by Filter.Validate if the designated constraints aren't met.

func (FilterValidationError) Cause added in v1.7.7

func (e FilterValidationError) Cause() error

Cause function returns cause value.

func (FilterValidationError) Error added in v1.7.7

func (e FilterValidationError) Error() string

Error satisfies the builtin error interface

func (FilterValidationError) ErrorName added in v1.7.7

func (e FilterValidationError) ErrorName() string

ErrorName returns error name.

func (FilterValidationError) Field added in v1.7.7

func (e FilterValidationError) Field() string

Field function returns field value.

func (FilterValidationError) Key added in v1.7.7

func (e FilterValidationError) Key() bool

Key function returns key value.

func (FilterValidationError) Reason added in v1.7.7

func (e FilterValidationError) Reason() string

Reason function returns reason value.

type GetEvidenceRequest added in v1.7.3

type GetEvidenceRequest struct {
	EvidenceId string `protobuf:"bytes,1,opt,name=evidence_id,json=evidenceId,proto3" json:"evidence_id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetEvidenceRequest) Descriptor deprecated added in v1.7.3

func (*GetEvidenceRequest) Descriptor() ([]byte, []int)

Deprecated: Use GetEvidenceRequest.ProtoReflect.Descriptor instead.

func (*GetEvidenceRequest) GetEvidenceId added in v1.7.3

func (x *GetEvidenceRequest) GetEvidenceId() string

func (*GetEvidenceRequest) ProtoMessage added in v1.7.3

func (*GetEvidenceRequest) ProtoMessage()

func (*GetEvidenceRequest) ProtoReflect added in v1.7.3

func (x *GetEvidenceRequest) ProtoReflect() protoreflect.Message

func (*GetEvidenceRequest) Reset added in v1.7.3

func (x *GetEvidenceRequest) Reset()

func (*GetEvidenceRequest) String added in v1.7.3

func (x *GetEvidenceRequest) String() string

func (*GetEvidenceRequest) Validate added in v1.7.3

func (m *GetEvidenceRequest) Validate() error

Validate checks the field values on GetEvidenceRequest 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 (*GetEvidenceRequest) ValidateAll added in v1.7.3

func (m *GetEvidenceRequest) ValidateAll() error

ValidateAll checks the field values on GetEvidenceRequest 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 GetEvidenceRequestMultiError, or nil if none found.

type GetEvidenceRequestMultiError added in v1.7.3

type GetEvidenceRequestMultiError []error

GetEvidenceRequestMultiError is an error wrapping multiple validation errors returned by GetEvidenceRequest.ValidateAll() if the designated constraints aren't met.

func (GetEvidenceRequestMultiError) AllErrors added in v1.7.3

func (m GetEvidenceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GetEvidenceRequestMultiError) Error added in v1.7.3

Error returns a concatenation of all the error messages it wraps.

type GetEvidenceRequestValidationError added in v1.7.3

type GetEvidenceRequestValidationError struct {
	// contains filtered or unexported fields
}

GetEvidenceRequestValidationError is the validation error returned by GetEvidenceRequest.Validate if the designated constraints aren't met.

func (GetEvidenceRequestValidationError) Cause added in v1.7.3

Cause function returns cause value.

func (GetEvidenceRequestValidationError) Error added in v1.7.3

Error satisfies the builtin error interface

func (GetEvidenceRequestValidationError) ErrorName added in v1.7.3

ErrorName returns error name.

func (GetEvidenceRequestValidationError) Field added in v1.7.3

Field function returns field value.

func (GetEvidenceRequestValidationError) Key added in v1.7.3

Key function returns key value.

func (GetEvidenceRequestValidationError) Reason added in v1.7.3

Reason function returns reason value.

type ListEvidencesRequest

type ListEvidencesRequest struct {
	Filter *Filter `protobuf:"bytes,1,opt,name=filter,proto3,oneof" json:"filter,omitempty"`
	// page_size: 0 = default (50 is default value), > 0 = set value (i.e. page_size = 5 -> SQL-Limit = 5)
	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 (*ListEvidencesRequest) Descriptor deprecated

func (*ListEvidencesRequest) Descriptor() ([]byte, []int)

Deprecated: Use ListEvidencesRequest.ProtoReflect.Descriptor instead.

func (*ListEvidencesRequest) GetAsc added in v1.4.17

func (x *ListEvidencesRequest) GetAsc() bool

func (*ListEvidencesRequest) GetFilter added in v1.7.7

func (x *ListEvidencesRequest) GetFilter() *Filter

func (*ListEvidencesRequest) GetOrderBy added in v1.4.17

func (x *ListEvidencesRequest) GetOrderBy() string

func (*ListEvidencesRequest) GetPageSize added in v1.4.6

func (x *ListEvidencesRequest) GetPageSize() int32

func (*ListEvidencesRequest) GetPageToken added in v1.4.6

func (x *ListEvidencesRequest) GetPageToken() string

func (*ListEvidencesRequest) ProtoMessage

func (*ListEvidencesRequest) ProtoMessage()

func (*ListEvidencesRequest) ProtoReflect

func (x *ListEvidencesRequest) ProtoReflect() protoreflect.Message

func (*ListEvidencesRequest) Reset

func (x *ListEvidencesRequest) Reset()

func (*ListEvidencesRequest) String

func (x *ListEvidencesRequest) String() string

func (*ListEvidencesRequest) Validate added in v1.7.0

func (m *ListEvidencesRequest) Validate() error

Validate checks the field values on ListEvidencesRequest 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 (*ListEvidencesRequest) ValidateAll added in v1.7.0

func (m *ListEvidencesRequest) ValidateAll() error

ValidateAll checks the field values on ListEvidencesRequest 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 ListEvidencesRequestMultiError, or nil if none found.

type ListEvidencesRequestMultiError added in v1.7.0

type ListEvidencesRequestMultiError []error

ListEvidencesRequestMultiError is an error wrapping multiple validation errors returned by ListEvidencesRequest.ValidateAll() if the designated constraints aren't met.

func (ListEvidencesRequestMultiError) AllErrors added in v1.7.0

func (m ListEvidencesRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEvidencesRequestMultiError) Error added in v1.7.0

Error returns a concatenation of all the error messages it wraps.

type ListEvidencesRequestValidationError added in v1.7.0

type ListEvidencesRequestValidationError struct {
	// contains filtered or unexported fields
}

ListEvidencesRequestValidationError is the validation error returned by ListEvidencesRequest.Validate if the designated constraints aren't met.

func (ListEvidencesRequestValidationError) Cause added in v1.7.0

Cause function returns cause value.

func (ListEvidencesRequestValidationError) Error added in v1.7.0

Error satisfies the builtin error interface

func (ListEvidencesRequestValidationError) ErrorName added in v1.7.0

ErrorName returns error name.

func (ListEvidencesRequestValidationError) Field added in v1.7.0

Field function returns field value.

func (ListEvidencesRequestValidationError) Key added in v1.7.0

Key function returns key value.

func (ListEvidencesRequestValidationError) Reason added in v1.7.0

Reason function returns reason value.

type ListEvidencesResponse

type ListEvidencesResponse struct {
	Evidences     []*Evidence `protobuf:"bytes,1,rep,name=evidences,proto3" json:"evidences,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 (*ListEvidencesResponse) Descriptor deprecated

func (*ListEvidencesResponse) Descriptor() ([]byte, []int)

Deprecated: Use ListEvidencesResponse.ProtoReflect.Descriptor instead.

func (*ListEvidencesResponse) GetEvidences

func (x *ListEvidencesResponse) GetEvidences() []*Evidence

func (*ListEvidencesResponse) GetNextPageToken added in v1.4.6

func (x *ListEvidencesResponse) GetNextPageToken() string

func (*ListEvidencesResponse) ProtoMessage

func (*ListEvidencesResponse) ProtoMessage()

func (*ListEvidencesResponse) ProtoReflect

func (x *ListEvidencesResponse) ProtoReflect() protoreflect.Message

func (*ListEvidencesResponse) Reset

func (x *ListEvidencesResponse) Reset()

func (*ListEvidencesResponse) String

func (x *ListEvidencesResponse) String() string

func (*ListEvidencesResponse) Validate added in v1.7.0

func (m *ListEvidencesResponse) Validate() error

Validate checks the field values on ListEvidencesResponse 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 (*ListEvidencesResponse) ValidateAll added in v1.7.0

func (m *ListEvidencesResponse) ValidateAll() error

ValidateAll checks the field values on ListEvidencesResponse 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 ListEvidencesResponseMultiError, or nil if none found.

type ListEvidencesResponseMultiError added in v1.7.0

type ListEvidencesResponseMultiError []error

ListEvidencesResponseMultiError is an error wrapping multiple validation errors returned by ListEvidencesResponse.ValidateAll() if the designated constraints aren't met.

func (ListEvidencesResponseMultiError) AllErrors added in v1.7.0

func (m ListEvidencesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (ListEvidencesResponseMultiError) Error added in v1.7.0

Error returns a concatenation of all the error messages it wraps.

type ListEvidencesResponseValidationError added in v1.7.0

type ListEvidencesResponseValidationError struct {
	// contains filtered or unexported fields
}

ListEvidencesResponseValidationError is the validation error returned by ListEvidencesResponse.Validate if the designated constraints aren't met.

func (ListEvidencesResponseValidationError) Cause added in v1.7.0

Cause function returns cause value.

func (ListEvidencesResponseValidationError) Error added in v1.7.0

Error satisfies the builtin error interface

func (ListEvidencesResponseValidationError) ErrorName added in v1.7.0

ErrorName returns error name.

func (ListEvidencesResponseValidationError) Field added in v1.7.0

Field function returns field value.

func (ListEvidencesResponseValidationError) Key added in v1.7.0

Key function returns key value.

func (ListEvidencesResponseValidationError) Reason added in v1.7.0

Reason function returns reason value.

type StoreEvidenceRequest added in v1.3.11

type StoreEvidenceRequest struct {
	Evidence *Evidence `protobuf:"bytes,1,opt,name=evidence,proto3" json:"evidence,omitempty"`
	// contains filtered or unexported fields
}

func (*StoreEvidenceRequest) Descriptor deprecated added in v1.3.11

func (*StoreEvidenceRequest) Descriptor() ([]byte, []int)

Deprecated: Use StoreEvidenceRequest.ProtoReflect.Descriptor instead.

func (*StoreEvidenceRequest) GetCloudServiceId added in v1.7.3

func (req *StoreEvidenceRequest) GetCloudServiceId() string

GetCloudServiceId is a shortcut to implement CloudServiceRequest. It returns the cloud service ID of the inner object.

func (*StoreEvidenceRequest) GetEvidence added in v1.3.11

func (x *StoreEvidenceRequest) GetEvidence() *Evidence

func (*StoreEvidenceRequest) GetPayload added in v1.7.4

func (req *StoreEvidenceRequest) GetPayload() proto.Message

func (*StoreEvidenceRequest) ProtoMessage added in v1.3.11

func (*StoreEvidenceRequest) ProtoMessage()

func (*StoreEvidenceRequest) ProtoReflect added in v1.3.11

func (x *StoreEvidenceRequest) ProtoReflect() protoreflect.Message

func (*StoreEvidenceRequest) Reset added in v1.3.11

func (x *StoreEvidenceRequest) Reset()

func (*StoreEvidenceRequest) String added in v1.3.11

func (x *StoreEvidenceRequest) String() string

func (*StoreEvidenceRequest) Validate added in v1.7.0

func (m *StoreEvidenceRequest) Validate() error

Validate checks the field values on StoreEvidenceRequest 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 (*StoreEvidenceRequest) ValidateAll added in v1.7.0

func (m *StoreEvidenceRequest) ValidateAll() error

ValidateAll checks the field values on StoreEvidenceRequest 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 StoreEvidenceRequestMultiError, or nil if none found.

type StoreEvidenceRequestMultiError added in v1.7.0

type StoreEvidenceRequestMultiError []error

StoreEvidenceRequestMultiError is an error wrapping multiple validation errors returned by StoreEvidenceRequest.ValidateAll() if the designated constraints aren't met.

func (StoreEvidenceRequestMultiError) AllErrors added in v1.7.0

func (m StoreEvidenceRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StoreEvidenceRequestMultiError) Error added in v1.7.0

Error returns a concatenation of all the error messages it wraps.

type StoreEvidenceRequestValidationError added in v1.7.0

type StoreEvidenceRequestValidationError struct {
	// contains filtered or unexported fields
}

StoreEvidenceRequestValidationError is the validation error returned by StoreEvidenceRequest.Validate if the designated constraints aren't met.

func (StoreEvidenceRequestValidationError) Cause added in v1.7.0

Cause function returns cause value.

func (StoreEvidenceRequestValidationError) Error added in v1.7.0

Error satisfies the builtin error interface

func (StoreEvidenceRequestValidationError) ErrorName added in v1.7.0

ErrorName returns error name.

func (StoreEvidenceRequestValidationError) Field added in v1.7.0

Field function returns field value.

func (StoreEvidenceRequestValidationError) Key added in v1.7.0

Key function returns key value.

func (StoreEvidenceRequestValidationError) Reason added in v1.7.0

Reason function returns reason value.

type StoreEvidenceResponse

type StoreEvidenceResponse struct {
	// contains filtered or unexported fields
}

StoreEvidenceResponse belongs to StoreEvidence, which uses a custom unary RPC and therefore requires a response message according to the style convention. Since no return values are required, this is empty.

func (*StoreEvidenceResponse) Descriptor deprecated

func (*StoreEvidenceResponse) Descriptor() ([]byte, []int)

Deprecated: Use StoreEvidenceResponse.ProtoReflect.Descriptor instead.

func (*StoreEvidenceResponse) ProtoMessage

func (*StoreEvidenceResponse) ProtoMessage()

func (*StoreEvidenceResponse) ProtoReflect

func (x *StoreEvidenceResponse) ProtoReflect() protoreflect.Message

func (*StoreEvidenceResponse) Reset

func (x *StoreEvidenceResponse) Reset()

func (*StoreEvidenceResponse) String

func (x *StoreEvidenceResponse) String() string

func (*StoreEvidenceResponse) Validate added in v1.7.0

func (m *StoreEvidenceResponse) Validate() error

Validate checks the field values on StoreEvidenceResponse 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 (*StoreEvidenceResponse) ValidateAll added in v1.7.0

func (m *StoreEvidenceResponse) ValidateAll() error

ValidateAll checks the field values on StoreEvidenceResponse 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 StoreEvidenceResponseMultiError, or nil if none found.

type StoreEvidenceResponseMultiError added in v1.7.0

type StoreEvidenceResponseMultiError []error

StoreEvidenceResponseMultiError is an error wrapping multiple validation errors returned by StoreEvidenceResponse.ValidateAll() if the designated constraints aren't met.

func (StoreEvidenceResponseMultiError) AllErrors added in v1.7.0

func (m StoreEvidenceResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StoreEvidenceResponseMultiError) Error added in v1.7.0

Error returns a concatenation of all the error messages it wraps.

type StoreEvidenceResponseValidationError added in v1.7.0

type StoreEvidenceResponseValidationError struct {
	// contains filtered or unexported fields
}

StoreEvidenceResponseValidationError is the validation error returned by StoreEvidenceResponse.Validate if the designated constraints aren't met.

func (StoreEvidenceResponseValidationError) Cause added in v1.7.0

Cause function returns cause value.

func (StoreEvidenceResponseValidationError) Error added in v1.7.0

Error satisfies the builtin error interface

func (StoreEvidenceResponseValidationError) ErrorName added in v1.7.0

ErrorName returns error name.

func (StoreEvidenceResponseValidationError) Field added in v1.7.0

Field function returns field value.

func (StoreEvidenceResponseValidationError) Key added in v1.7.0

Key function returns key value.

func (StoreEvidenceResponseValidationError) Reason added in v1.7.0

Reason function returns reason value.

type StoreEvidencesResponse added in v1.7.3

type StoreEvidencesResponse struct {
	Status        bool   `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
	StatusMessage string `protobuf:"bytes,2,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
	// contains filtered or unexported fields
}

StoreEvidencesResponse belongs to StoreEvidences, which uses a custom bidirectional streaming RPC and therefore requires a response message according to the style convention. The bidirectional streaming needs the status and its message in the response for error handling.

func (*StoreEvidencesResponse) Descriptor deprecated added in v1.7.3

func (*StoreEvidencesResponse) Descriptor() ([]byte, []int)

Deprecated: Use StoreEvidencesResponse.ProtoReflect.Descriptor instead.

func (*StoreEvidencesResponse) GetStatus added in v1.7.3

func (x *StoreEvidencesResponse) GetStatus() bool

func (*StoreEvidencesResponse) GetStatusMessage added in v1.7.3

func (x *StoreEvidencesResponse) GetStatusMessage() string

func (*StoreEvidencesResponse) ProtoMessage added in v1.7.3

func (*StoreEvidencesResponse) ProtoMessage()

func (*StoreEvidencesResponse) ProtoReflect added in v1.7.3

func (x *StoreEvidencesResponse) ProtoReflect() protoreflect.Message

func (*StoreEvidencesResponse) Reset added in v1.7.3

func (x *StoreEvidencesResponse) Reset()

func (*StoreEvidencesResponse) String added in v1.7.3

func (x *StoreEvidencesResponse) String() string

func (*StoreEvidencesResponse) Validate added in v1.7.3

func (m *StoreEvidencesResponse) Validate() error

Validate checks the field values on StoreEvidencesResponse 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 (*StoreEvidencesResponse) ValidateAll added in v1.7.3

func (m *StoreEvidencesResponse) ValidateAll() error

ValidateAll checks the field values on StoreEvidencesResponse 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 StoreEvidencesResponseMultiError, or nil if none found.

type StoreEvidencesResponseMultiError added in v1.7.3

type StoreEvidencesResponseMultiError []error

StoreEvidencesResponseMultiError is an error wrapping multiple validation errors returned by StoreEvidencesResponse.ValidateAll() if the designated constraints aren't met.

func (StoreEvidencesResponseMultiError) AllErrors added in v1.7.3

func (m StoreEvidencesResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (StoreEvidencesResponseMultiError) Error added in v1.7.3

Error returns a concatenation of all the error messages it wraps.

type StoreEvidencesResponseValidationError added in v1.7.3

type StoreEvidencesResponseValidationError struct {
	// contains filtered or unexported fields
}

StoreEvidencesResponseValidationError is the validation error returned by StoreEvidencesResponse.Validate if the designated constraints aren't met.

func (StoreEvidencesResponseValidationError) Cause added in v1.7.3

Cause function returns cause value.

func (StoreEvidencesResponseValidationError) Error added in v1.7.3

Error satisfies the builtin error interface

func (StoreEvidencesResponseValidationError) ErrorName added in v1.7.3

ErrorName returns error name.

func (StoreEvidencesResponseValidationError) Field added in v1.7.3

Field function returns field value.

func (StoreEvidencesResponseValidationError) Key added in v1.7.3

Key function returns key value.

func (StoreEvidencesResponseValidationError) Reason added in v1.7.3

Reason function returns reason value.

type UnimplementedEvidenceStoreServer

type UnimplementedEvidenceStoreServer struct {
}

UnimplementedEvidenceStoreServer must be embedded to have forward compatible implementations.

func (UnimplementedEvidenceStoreServer) GetEvidence added in v1.7.3

func (UnimplementedEvidenceStoreServer) ListEvidences

func (UnimplementedEvidenceStoreServer) StoreEvidence

func (UnimplementedEvidenceStoreServer) StoreEvidences

type UnsafeEvidenceStoreServer

type UnsafeEvidenceStoreServer interface {
	// contains filtered or unexported methods
}

UnsafeEvidenceStoreServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to EvidenceStoreServer will result in compilation errors.

Jump to

Keyboard shortcuts

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