rtbf

package
v2.48.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 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 added in v2.44.0

func RegisterDataSubjectsServiceServer(s grpc.ServiceRegistrar, srv DataSubjectsServiceServer)

func RegisterRtbfServiceServer

func RegisterRtbfServiceServer(s grpc.ServiceRegistrar, srv RtbfServiceServer)

Types

type AddKeyLinkRequest added in v2.44.0

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 added in v2.44.0

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

Deprecated: Use AddKeyLinkRequest.ProtoReflect.Descriptor instead.

func (x *AddKeyLinkRequest) GetKeyLink() []*KeyLinks

func (*AddKeyLinkRequest) ProtoMessage added in v2.44.0

func (*AddKeyLinkRequest) ProtoMessage()

func (*AddKeyLinkRequest) ProtoReflect added in v2.44.0

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

func (*AddKeyLinkRequest) Reset added in v2.44.0

func (x *AddKeyLinkRequest) Reset()

func (*AddKeyLinkRequest) String added in v2.44.0

func (x *AddKeyLinkRequest) String() string

type AddKeyLinkResponse added in v2.44.0

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

func (*AddKeyLinkResponse) Descriptor deprecated added in v2.44.0

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

Deprecated: Use AddKeyLinkResponse.ProtoReflect.Descriptor instead.

func (*AddKeyLinkResponse) ProtoMessage added in v2.44.0

func (*AddKeyLinkResponse) ProtoMessage()

func (*AddKeyLinkResponse) ProtoReflect added in v2.44.0

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

func (*AddKeyLinkResponse) Reset added in v2.44.0

func (x *AddKeyLinkResponse) Reset()

func (*AddKeyLinkResponse) String added in v2.44.0

func (x *AddKeyLinkResponse) String() string

type DataSubjectsServiceClient added in v2.44.0

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 added in v2.44.0

func NewDataSubjectsServiceClient(cc grpc.ClientConnInterface) DataSubjectsServiceClient

type DataSubjectsServiceServer added in v2.44.0

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 added in v2.44.0

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 added in v2.44.0

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

Deprecated: Use DeleteDataSubjectsRequest.ProtoReflect.Descriptor instead.

func (*DeleteDataSubjectsRequest) GetDataSubjects added in v2.44.0

func (x *DeleteDataSubjectsRequest) GetDataSubjects() []string

func (*DeleteDataSubjectsRequest) ProtoMessage added in v2.44.0

func (*DeleteDataSubjectsRequest) ProtoMessage()

func (*DeleteDataSubjectsRequest) ProtoReflect added in v2.44.0

func (*DeleteDataSubjectsRequest) Reset added in v2.44.0

func (x *DeleteDataSubjectsRequest) Reset()

func (*DeleteDataSubjectsRequest) String added in v2.44.0

func (x *DeleteDataSubjectsRequest) String() string

type DeleteDataSubjectsResponse added in v2.44.0

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 added in v2.44.0

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

Deprecated: Use DeleteDataSubjectsResponse.ProtoReflect.Descriptor instead.

func (*DeleteDataSubjectsResponse) GetDataSubjects added in v2.44.0

func (x *DeleteDataSubjectsResponse) GetDataSubjects() []string

func (*DeleteDataSubjectsResponse) ProtoMessage added in v2.44.0

func (*DeleteDataSubjectsResponse) ProtoMessage()

func (*DeleteDataSubjectsResponse) ProtoReflect added in v2.44.0

func (*DeleteDataSubjectsResponse) Reset added in v2.44.0

func (x *DeleteDataSubjectsResponse) Reset()

func (*DeleteDataSubjectsResponse) String added in v2.44.0

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 added in v2.44.0

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 added in v2.44.0

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

Deprecated: Use KeyLinks.ProtoReflect.Descriptor instead.

func (*KeyLinks) GetDataOwner added in v2.44.0

func (x *KeyLinks) GetDataOwner() string

func (*KeyLinks) GetKeysAndTimestamps added in v2.44.0

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

func (*KeyLinks) ProtoMessage added in v2.44.0

func (*KeyLinks) ProtoMessage()

func (*KeyLinks) ProtoReflect added in v2.44.0

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

func (*KeyLinks) Reset added in v2.44.0

func (x *KeyLinks) Reset()

func (*KeyLinks) String added in v2.44.0

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 added in v2.44.0

type UnimplementedDataSubjectsServiceServer struct {
}

UnimplementedDataSubjectsServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedDataSubjectsServiceServer) DeleteDataSubjects added in v2.44.0

type UnimplementedRtbfServiceServer

type UnimplementedRtbfServiceServer struct {
}

UnimplementedRtbfServiceServer must be embedded to have forward compatible implementations.

type UnsafeDataSubjectsServiceServer added in v2.44.0

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