rtbf

package
v3.18.4 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

View Source
var File_strmprivacy_api_data_subjects_v1_data_subjects_v1_proto protoreflect.FileDescriptor
View Source
var File_strmprivacy_api_rtbf_v1_rtbf_v1_proto protoreflect.FileDescriptor
View Source
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) Descriptor() ([]byte, []int)

Deprecated: Use AddKeyLinkRequest.ProtoReflect.Descriptor instead.

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) Descriptor() ([]byte, []int)

Deprecated: Use AddKeyLinkResponse.ProtoReflect.Descriptor instead.

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.

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 (*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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use GetKeyLinksRequest.ProtoReflect.Descriptor instead.

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) Descriptor() ([]byte, []int)

Deprecated: Use GetKeyLinksResponse.ProtoReflect.Descriptor instead.

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 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) Descriptor() ([]byte, []int)

Deprecated: Use KeyLinks.ProtoReflect.Descriptor instead.

func (*KeyLinks) GetDataOwner

func (x *KeyLinks) GetDataOwner() string

func (*KeyLinks) GetKeysAndTimestamps

func (x *KeyLinks) GetKeysAndTimestamps() []*KeyLinks_KeysAndTimestamps

func (*KeyLinks) ProtoMessage

func (*KeyLinks) ProtoMessage()

func (*KeyLinks) ProtoReflect

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

func (*KeyLinks) Reset

func (x *KeyLinks) Reset()

func (*KeyLinks) String

func (x *KeyLinks) String() string
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() ([]byte, []int)

Deprecated: Use KeyLinks_KeysAndTimestamps.ProtoReflect.Descriptor instead.

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

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(context.Context, *AddKeyLinkRequest) (*AddKeyLinkResponse, error)

func (UnimplementedDataSubjectsServiceServer) DeleteDataSubjects

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(context.Context, *AddKeyLinkRequest) (*AddKeyLinkResponse, error)
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.

Jump to

Keyboard shortcuts

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