Documentation ¶
Index ¶
- Variables
- func RegisterDataSubjectsServiceServer(s grpc.ServiceRegistrar, srv DataSubjectsServiceServer)
- func RegisterRtbfServiceServer(s grpc.ServiceRegistrar, srv RtbfServiceServer)
- type AddKeyLinkRequest
- func (*AddKeyLinkRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AddKeyLinkRequest) GetKeyLink() *KeyLinks
- func (*AddKeyLinkRequest) ProtoMessage()
- func (x *AddKeyLinkRequest) ProtoReflect() protoreflect.Message
- func (x *AddKeyLinkRequest) Reset()
- func (x *AddKeyLinkRequest) String() string
- type AddKeyLinkResponse
- type DataSubjectsServiceClient
- type DataSubjectsServiceServer
- type DeleteDataSubjectsRequest
- func (*DeleteDataSubjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDataSubjectsRequest) GetDataSubjects() []string
- func (*DeleteDataSubjectsRequest) ProtoMessage()
- func (x *DeleteDataSubjectsRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteDataSubjectsRequest) Reset()
- func (x *DeleteDataSubjectsRequest) String() string
- type DeleteDataSubjectsResponse
- func (*DeleteDataSubjectsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteDataSubjectsResponse) GetDataSubjects() []string
- func (*DeleteDataSubjectsResponse) ProtoMessage()
- func (x *DeleteDataSubjectsResponse) ProtoReflect() protoreflect.Message
- func (x *DeleteDataSubjectsResponse) Reset()
- func (x *DeleteDataSubjectsResponse) String() string
- type GetKeyLinksRequest
- func (*GetKeyLinksRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyLinksRequest) GetDataOwnerId() []string
- func (*GetKeyLinksRequest) ProtoMessage()
- func (x *GetKeyLinksRequest) ProtoReflect() protoreflect.Message
- func (x *GetKeyLinksRequest) Reset()
- func (x *GetKeyLinksRequest) String() string
- type GetKeyLinksResponse
- func (*GetKeyLinksResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetKeyLinksResponse) GetKeyLinks() []*KeyLinks
- func (*GetKeyLinksResponse) ProtoMessage()
- func (x *GetKeyLinksResponse) ProtoReflect() protoreflect.Message
- func (x *GetKeyLinksResponse) Reset()
- func (x *GetKeyLinksResponse) String() string
- type KeyLinks
- func (*KeyLinks) Descriptor() ([]byte, []int)deprecated
- func (x *KeyLinks) GetDataOwner() string
- func (x *KeyLinks) GetKeysAndTimestamps() []*KeyLinks_KeysAndTimestamps
- func (*KeyLinks) ProtoMessage()
- func (x *KeyLinks) ProtoReflect() protoreflect.Message
- func (x *KeyLinks) Reset()
- func (x *KeyLinks) String() string
- type KeyLinks_KeysAndTimestamps
- func (*KeyLinks_KeysAndTimestamps) Descriptor() ([]byte, []int)deprecated
- func (x *KeyLinks_KeysAndTimestamps) GetExpiryTime() *timestamppb.Timestamp
- func (x *KeyLinks_KeysAndTimestamps) GetKeyLink() string
- func (*KeyLinks_KeysAndTimestamps) ProtoMessage()
- func (x *KeyLinks_KeysAndTimestamps) ProtoReflect() protoreflect.Message
- func (x *KeyLinks_KeysAndTimestamps) Reset()
- func (x *KeyLinks_KeysAndTimestamps) String() string
- type RtbfServiceClient
- type RtbfServiceServer
- type UnimplementedDataSubjectsServiceServer
- func (UnimplementedDataSubjectsServiceServer) AddKeyLink(context.Context, *AddKeyLinkRequest) (*AddKeyLinkResponse, error)
- func (UnimplementedDataSubjectsServiceServer) DeleteDataSubjects(context.Context, *DeleteDataSubjectsRequest) (*DeleteDataSubjectsResponse, error)
- func (UnimplementedDataSubjectsServiceServer) GetKeyLinks(context.Context, *GetKeyLinksRequest) (*GetKeyLinksResponse, error)
- type UnimplementedRtbfServiceServer
- type UnsafeDataSubjectsServiceServer
- type UnsafeRtbfServiceServer
Constants ¶
This section is empty.
Variables ¶
var DataSubjectsService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "strmprivacy.api.data_subjects.v1.DataSubjectsService", HandlerType: (*DataSubjectsServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetKeyLinks", Handler: _DataSubjectsService_GetKeyLinks_Handler, }, { MethodName: "AddKeyLink", Handler: _DataSubjectsService_AddKeyLink_Handler, }, { MethodName: "DeleteDataSubjects", Handler: _DataSubjectsService_DeleteDataSubjects_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "strmprivacy/api/data_subjects/v1/data_subjects_v1.proto", }
DataSubjectsService_ServiceDesc is the grpc.ServiceDesc for DataSubjectsService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_strmprivacy_api_data_subjects_v1_data_subjects_v1_proto protoreflect.FileDescriptor
var File_strmprivacy_api_rtbf_v1_rtbf_v1_proto protoreflect.FileDescriptor
var RtbfService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "strmprivacy.api.rtbf.v1.RtbfService", HandlerType: (*RtbfServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetKeyLinks", Handler: _RtbfService_GetKeyLinks_Handler, }, { MethodName: "AddKeyLink", Handler: _RtbfService_AddKeyLink_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "strmprivacy/api/rtbf/v1/rtbf_v1.proto", }
RtbfService_ServiceDesc is the grpc.ServiceDesc for RtbfService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterDataSubjectsServiceServer ¶
func RegisterDataSubjectsServiceServer(s grpc.ServiceRegistrar, srv DataSubjectsServiceServer)
func RegisterRtbfServiceServer ¶
func RegisterRtbfServiceServer(s grpc.ServiceRegistrar, srv RtbfServiceServer)
Types ¶
type AddKeyLinkRequest ¶
type AddKeyLinkRequest struct { KeyLink *KeyLinks `protobuf:"bytes,1,opt,name=key_link,json=keyLink,proto3" json:"key_link,omitempty"` // contains filtered or unexported fields }
* called by an entity that can create key link(s) typically (but not necessarily) only one key link is added at the same time.
func (*AddKeyLinkRequest) Descriptor
deprecated
func (*AddKeyLinkRequest) GetKeyLink ¶
func (x *AddKeyLinkRequest) GetKeyLink() *KeyLinks
func (*AddKeyLinkRequest) ProtoMessage ¶
func (*AddKeyLinkRequest) ProtoMessage()
func (*AddKeyLinkRequest) ProtoReflect ¶
func (x *AddKeyLinkRequest) ProtoReflect() protoreflect.Message
func (*AddKeyLinkRequest) Reset ¶
func (x *AddKeyLinkRequest) Reset()
func (*AddKeyLinkRequest) String ¶
func (x *AddKeyLinkRequest) String() string
type AddKeyLinkResponse ¶
type AddKeyLinkResponse struct {
// contains filtered or unexported fields
}
func (*AddKeyLinkResponse) Descriptor
deprecated
func (*AddKeyLinkResponse) ProtoMessage ¶
func (*AddKeyLinkResponse) ProtoMessage()
func (*AddKeyLinkResponse) ProtoReflect ¶
func (x *AddKeyLinkResponse) ProtoReflect() protoreflect.Message
func (*AddKeyLinkResponse) Reset ¶
func (x *AddKeyLinkResponse) Reset()
func (*AddKeyLinkResponse) String ¶
func (x *AddKeyLinkResponse) String() string
type DataSubjectsServiceClient ¶
type DataSubjectsServiceClient interface { GetKeyLinks(ctx context.Context, in *GetKeyLinksRequest, opts ...grpc.CallOption) (*GetKeyLinksResponse, error) AddKeyLink(ctx context.Context, in *AddKeyLinkRequest, opts ...grpc.CallOption) (*AddKeyLinkResponse, error) DeleteDataSubjects(ctx context.Context, in *DeleteDataSubjectsRequest, opts ...grpc.CallOption) (*DeleteDataSubjectsResponse, error) }
DataSubjectsServiceClient is the client API for DataSubjectsService 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 NewDataSubjectsServiceClient ¶
func NewDataSubjectsServiceClient(cc grpc.ClientConnInterface) DataSubjectsServiceClient
type DataSubjectsServiceServer ¶
type DataSubjectsServiceServer interface { GetKeyLinks(context.Context, *GetKeyLinksRequest) (*GetKeyLinksResponse, error) AddKeyLink(context.Context, *AddKeyLinkRequest) (*AddKeyLinkResponse, error) DeleteDataSubjects(context.Context, *DeleteDataSubjectsRequest) (*DeleteDataSubjectsResponse, error) // contains filtered or unexported methods }
DataSubjectsServiceServer is the server API for DataSubjectsService service. All implementations must embed UnimplementedDataSubjectsServiceServer for forward compatibility
type DeleteDataSubjectsRequest ¶
type DeleteDataSubjectsRequest struct { DataSubjects []string `protobuf:"bytes,1,rep,name=data_subjects,json=dataSubjects,proto3" json:"data_subjects,omitempty"` // contains filtered or unexported fields }
* remove data-subjects from database
func (*DeleteDataSubjectsRequest) Descriptor
deprecated
func (*DeleteDataSubjectsRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDataSubjectsRequest.ProtoReflect.Descriptor instead.
func (*DeleteDataSubjectsRequest) GetDataSubjects ¶
func (x *DeleteDataSubjectsRequest) GetDataSubjects() []string
func (*DeleteDataSubjectsRequest) ProtoMessage ¶
func (*DeleteDataSubjectsRequest) ProtoMessage()
func (*DeleteDataSubjectsRequest) ProtoReflect ¶
func (x *DeleteDataSubjectsRequest) ProtoReflect() protoreflect.Message
func (*DeleteDataSubjectsRequest) Reset ¶
func (x *DeleteDataSubjectsRequest) Reset()
func (*DeleteDataSubjectsRequest) String ¶
func (x *DeleteDataSubjectsRequest) String() string
type DeleteDataSubjectsResponse ¶
type DeleteDataSubjectsResponse struct { DataSubjects []string `protobuf:"bytes,1,rep,name=data_subjects,json=dataSubjects,proto3" json:"data_subjects,omitempty"` // contains filtered or unexported fields }
* removed data-subjects
func (*DeleteDataSubjectsResponse) Descriptor
deprecated
func (*DeleteDataSubjectsResponse) Descriptor() ([]byte, []int)
Deprecated: Use DeleteDataSubjectsResponse.ProtoReflect.Descriptor instead.
func (*DeleteDataSubjectsResponse) GetDataSubjects ¶
func (x *DeleteDataSubjectsResponse) GetDataSubjects() []string
func (*DeleteDataSubjectsResponse) ProtoMessage ¶
func (*DeleteDataSubjectsResponse) ProtoMessage()
func (*DeleteDataSubjectsResponse) ProtoReflect ¶
func (x *DeleteDataSubjectsResponse) ProtoReflect() protoreflect.Message
func (*DeleteDataSubjectsResponse) Reset ¶
func (x *DeleteDataSubjectsResponse) Reset()
func (*DeleteDataSubjectsResponse) String ¶
func (x *DeleteDataSubjectsResponse) String() string
type GetKeyLinksRequest ¶
type GetKeyLinksRequest struct { DataOwnerId []string `protobuf:"bytes,1,rep,name=data_owner_id,json=dataOwnerId,proto3" json:"data_owner_id,omitempty"` // contains filtered or unexported fields }
* Retrieve all key links associated with certain data owner(s)
func (*GetKeyLinksRequest) Descriptor
deprecated
func (*GetKeyLinksRequest) GetDataOwnerId ¶
func (x *GetKeyLinksRequest) GetDataOwnerId() []string
func (*GetKeyLinksRequest) ProtoMessage ¶
func (*GetKeyLinksRequest) ProtoMessage()
func (*GetKeyLinksRequest) ProtoReflect ¶
func (x *GetKeyLinksRequest) ProtoReflect() protoreflect.Message
func (*GetKeyLinksRequest) Reset ¶
func (x *GetKeyLinksRequest) Reset()
func (*GetKeyLinksRequest) String ¶
func (x *GetKeyLinksRequest) String() string
type GetKeyLinksResponse ¶
type GetKeyLinksResponse struct { KeyLinks []*KeyLinks `protobuf:"bytes,1,rep,name=key_links,json=keyLinks,proto3" json:"key_links,omitempty"` // contains filtered or unexported fields }
* returns a list of data owners with their associated key links and their expiry.
func (*GetKeyLinksResponse) Descriptor
deprecated
func (*GetKeyLinksResponse) GetKeyLinks ¶
func (x *GetKeyLinksResponse) GetKeyLinks() []*KeyLinks
func (*GetKeyLinksResponse) ProtoMessage ¶
func (*GetKeyLinksResponse) ProtoMessage()
func (*GetKeyLinksResponse) ProtoReflect ¶
func (x *GetKeyLinksResponse) ProtoReflect() protoreflect.Message
func (*GetKeyLinksResponse) Reset ¶
func (x *GetKeyLinksResponse) Reset()
func (*GetKeyLinksResponse) String ¶
func (x *GetKeyLinksResponse) String() string
type KeyLinks ¶
type KeyLinks struct { DataOwner string `protobuf:"bytes,1,opt,name=data_owner,json=dataOwner,proto3" json:"data_owner,omitempty"` KeysAndTimestamps []*KeyLinks_KeysAndTimestamps `protobuf:"bytes,2,rep,name=keys_and_timestamps,json=keysAndTimestamps,proto3" json:"keys_and_timestamps,omitempty"` // contains filtered or unexported fields }
* one data owner 0 or more key links, each of which could have been used to encrypt data up to a certain point in time.
func (*KeyLinks) Descriptor
deprecated
func (*KeyLinks) GetDataOwner ¶
func (*KeyLinks) GetKeysAndTimestamps ¶
func (x *KeyLinks) GetKeysAndTimestamps() []*KeyLinks_KeysAndTimestamps
func (*KeyLinks) ProtoMessage ¶
func (*KeyLinks) ProtoMessage()
func (*KeyLinks) ProtoReflect ¶
func (x *KeyLinks) ProtoReflect() protoreflect.Message
type KeyLinks_KeysAndTimestamps ¶
type KeyLinks_KeysAndTimestamps struct { KeyLink string `protobuf:"bytes,1,opt,name=key_link,json=keyLink,proto3" json:"key_link,omitempty"` ExpiryTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiry_time,json=expiryTime,proto3" json:"expiry_time,omitempty"` // contains filtered or unexported fields }
func (*KeyLinks_KeysAndTimestamps) Descriptor
deprecated
func (*KeyLinks_KeysAndTimestamps) GetExpiryTime ¶
func (x *KeyLinks_KeysAndTimestamps) GetExpiryTime() *timestamppb.Timestamp
func (*KeyLinks_KeysAndTimestamps) GetKeyLink ¶
func (x *KeyLinks_KeysAndTimestamps) GetKeyLink() string
func (*KeyLinks_KeysAndTimestamps) ProtoMessage ¶
func (*KeyLinks_KeysAndTimestamps) ProtoMessage()
func (*KeyLinks_KeysAndTimestamps) ProtoReflect ¶
func (x *KeyLinks_KeysAndTimestamps) ProtoReflect() protoreflect.Message
func (*KeyLinks_KeysAndTimestamps) Reset ¶
func (x *KeyLinks_KeysAndTimestamps) Reset()
func (*KeyLinks_KeysAndTimestamps) String ¶
func (x *KeyLinks_KeysAndTimestamps) String() string
type RtbfServiceClient ¶
type RtbfServiceClient interface { GetKeyLinks(ctx context.Context, in *GetKeyLinksRequest, opts ...grpc.CallOption) (*GetKeyLinksResponse, error) AddKeyLink(ctx context.Context, in *AddKeyLinkRequest, opts ...grpc.CallOption) (*AddKeyLinkResponse, error) }
RtbfServiceClient is the client API for RtbfService 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 NewRtbfServiceClient ¶
func NewRtbfServiceClient(cc grpc.ClientConnInterface) RtbfServiceClient
type RtbfServiceServer ¶
type RtbfServiceServer interface { GetKeyLinks(context.Context, *GetKeyLinksRequest) (*GetKeyLinksResponse, error) AddKeyLink(context.Context, *AddKeyLinkRequest) (*AddKeyLinkResponse, error) // contains filtered or unexported methods }
RtbfServiceServer is the server API for RtbfService service. All implementations must embed UnimplementedRtbfServiceServer for forward compatibility
type UnimplementedDataSubjectsServiceServer ¶
type UnimplementedDataSubjectsServiceServer struct { }
UnimplementedDataSubjectsServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedDataSubjectsServiceServer) AddKeyLink ¶
func (UnimplementedDataSubjectsServiceServer) AddKeyLink(context.Context, *AddKeyLinkRequest) (*AddKeyLinkResponse, error)
func (UnimplementedDataSubjectsServiceServer) DeleteDataSubjects ¶
func (UnimplementedDataSubjectsServiceServer) DeleteDataSubjects(context.Context, *DeleteDataSubjectsRequest) (*DeleteDataSubjectsResponse, error)
func (UnimplementedDataSubjectsServiceServer) GetKeyLinks ¶
func (UnimplementedDataSubjectsServiceServer) GetKeyLinks(context.Context, *GetKeyLinksRequest) (*GetKeyLinksResponse, error)
type UnimplementedRtbfServiceServer ¶
type UnimplementedRtbfServiceServer struct { }
UnimplementedRtbfServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedRtbfServiceServer) AddKeyLink ¶
func (UnimplementedRtbfServiceServer) AddKeyLink(context.Context, *AddKeyLinkRequest) (*AddKeyLinkResponse, error)
func (UnimplementedRtbfServiceServer) GetKeyLinks ¶
func (UnimplementedRtbfServiceServer) GetKeyLinks(context.Context, *GetKeyLinksRequest) (*GetKeyLinksResponse, error)
type UnsafeDataSubjectsServiceServer ¶
type UnsafeDataSubjectsServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDataSubjectsServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DataSubjectsServiceServer will result in compilation errors.
type UnsafeRtbfServiceServer ¶
type UnsafeRtbfServiceServer interface {
// contains filtered or unexported methods
}
UnsafeRtbfServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to RtbfServiceServer will result in compilation errors.