data_subjects

package
v2.87.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 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: "ListDataSubjectKeylinks",
			Handler:    _DataSubjectsService_ListDataSubjectKeylinks_Handler,
		},
		{
			MethodName: "AddDataSubjectsKeyLinks",
			Handler:    _DataSubjectsService_AddDataSubjectsKeyLinks_Handler,
		},
		{
			MethodName: "DeleteDataSubjects",
			Handler:    _DataSubjectsService_DeleteDataSubjects_Handler,
		},
		{
			MethodName: "ListDataSubjects",
			Handler:    _DataSubjectsService_ListDataSubjects_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

Functions

func RegisterDataSubjectsServiceServer

func RegisterDataSubjectsServiceServer(s grpc.ServiceRegistrar, srv DataSubjectsServiceServer)

Types

type AddDataSubjectsKeyLinksRequest

type AddDataSubjectsKeyLinksRequest struct {
	ProjectId           string                 `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	DataSubjectKeylinks []*DatasubjectKeylinks `protobuf:"bytes,2,rep,name=data_subject_keylinks,json=dataSubjectKeylinks,proto3" json:"data_subject_keylinks,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDataSubjectsKeyLinksRequest) Descriptor deprecated

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

Deprecated: Use AddDataSubjectsKeyLinksRequest.ProtoReflect.Descriptor instead.

func (x *AddDataSubjectsKeyLinksRequest) GetDataSubjectKeylinks() []*DatasubjectKeylinks

func (*AddDataSubjectsKeyLinksRequest) GetProjectId

func (x *AddDataSubjectsKeyLinksRequest) GetProjectId() string

func (*AddDataSubjectsKeyLinksRequest) ProtoMessage

func (*AddDataSubjectsKeyLinksRequest) ProtoMessage()

func (*AddDataSubjectsKeyLinksRequest) ProtoReflect

func (*AddDataSubjectsKeyLinksRequest) Reset

func (x *AddDataSubjectsKeyLinksRequest) Reset()

func (*AddDataSubjectsKeyLinksRequest) String

type AddDataSubjectsKeyLinksResponse

type AddDataSubjectsKeyLinksResponse struct {
	StoredCount int64 `protobuf:"varint,1,opt,name=stored_count,json=storedCount,proto3" json:"stored_count,omitempty"`
	// issues with stored data items. Now the service call just throws an exception
	//
	// Deprecated: Do not use.
	Issues []*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues `protobuf:"bytes,2,rep,name=issues,proto3" json:"issues,omitempty"`
	// contains filtered or unexported fields
}

func (*AddDataSubjectsKeyLinksResponse) Descriptor deprecated

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

Deprecated: Use AddDataSubjectsKeyLinksResponse.ProtoReflect.Descriptor instead.

func (*AddDataSubjectsKeyLinksResponse) GetIssues deprecated

func (*AddDataSubjectsKeyLinksResponse) GetStoredCount

func (x *AddDataSubjectsKeyLinksResponse) GetStoredCount() int64

func (*AddDataSubjectsKeyLinksResponse) ProtoMessage

func (*AddDataSubjectsKeyLinksResponse) ProtoMessage()

func (*AddDataSubjectsKeyLinksResponse) ProtoReflect

func (*AddDataSubjectsKeyLinksResponse) Reset

func (*AddDataSubjectsKeyLinksResponse) String

type AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues deprecated

type AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues struct {
	DataSubjectId string `protobuf:"bytes,1,opt,name=data_subject_id,json=dataSubjectId,proto3" json:"data_subject_id,omitempty"`
	KeyLink       string `protobuf:"bytes,2,opt,name=key_link,json=keyLink,proto3" json:"key_link,omitempty"`
	Message       string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"`
	IssueType     string `protobuf:"bytes,4,opt,name=issue_type,json=issueType,proto3" json:"issue_type,omitempty"`
	// contains filtered or unexported fields
}

* this list is empty when nothing has gone wrong. issue_type are currently:

DuplicateKey: (when you have the same project/data_subject/keylink tuple). Harmless InvalidArgument: when you have a project_id or key_link that is not a uuid

Deprecated: Do not use.

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) Descriptor deprecated

Deprecated: Use AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues.ProtoReflect.Descriptor instead.

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) GetDataSubjectId

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) GetIssueType

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) GetMessage

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) ProtoMessage

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) ProtoReflect

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) Reset

func (*AddDataSubjectsKeyLinksResponse_AddDataSubjectsIssues) String

type DataSubjectsServiceClient

type DataSubjectsServiceClient interface {
	// *
	// Retrieve all key links associated with certain data subject(s)
	//
	// returns: a list of data subject with their associated key links and their
	// expiry.
	ListDataSubjectKeylinks(ctx context.Context, in *ListDataSubjectKeylinksRequest, opts ...grpc.CallOption) (*ListDataSubjectKeylinksResponse, error)
	// * called by an entity that can create key link(s) like the event-gateway or a batch-job
	//
	// typically (but not necessarily) only one key link is added at the same time.
	//
	// The list of DatasubjectKeylinks is combined with a project_id; the DSS uses this to find the linked
	// organization_id
	AddDataSubjectsKeyLinks(ctx context.Context, in *AddDataSubjectsKeyLinksRequest, opts ...grpc.CallOption) (*AddDataSubjectsKeyLinksResponse, error)
	// *
	// delete data subjects from the DSS database, and returns the deleted key links and timestamps
	DeleteDataSubjects(ctx context.Context, in *DeleteDataSubjectsRequest, opts ...grpc.CallOption) (*DeleteDataSubjectsResponse, error)
	// *
	// list data subjects from the DSS database
	ListDataSubjects(ctx context.Context, in *ListDataSubjectsRequest, opts ...grpc.CallOption) (*ListDataSubjectsResponse, 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 {
	// *
	// Retrieve all key links associated with certain data subject(s)
	//
	// returns: a list of data subject with their associated key links and their
	// expiry.
	ListDataSubjectKeylinks(context.Context, *ListDataSubjectKeylinksRequest) (*ListDataSubjectKeylinksResponse, error)
	// * called by an entity that can create key link(s) like the event-gateway or a batch-job
	//
	// typically (but not necessarily) only one key link is added at the same time.
	//
	// The list of DatasubjectKeylinks is combined with a project_id; the DSS uses this to find the linked
	// organization_id
	AddDataSubjectsKeyLinks(context.Context, *AddDataSubjectsKeyLinksRequest) (*AddDataSubjectsKeyLinksResponse, error)
	// *
	// delete data subjects from the DSS database, and returns the deleted key links and timestamps
	DeleteDataSubjects(context.Context, *DeleteDataSubjectsRequest) (*DeleteDataSubjectsResponse, error)
	// *
	// list data subjects from the DSS database
	ListDataSubjects(context.Context, *ListDataSubjectsRequest) (*ListDataSubjectsResponse, error)
}

DataSubjectsServiceServer is the server API for DataSubjectsService service. All implementations should embed UnimplementedDataSubjectsServiceServer for forward compatibility

type DatasubjectKeylinks struct {
	DataSubjectId         string                                     `protobuf:"bytes,1,opt,name=data_subject_id,json=dataSubjectId,proto3" json:"data_subject_id,omitempty"`
	KeylinksAndTimestamps []*DatasubjectKeylinks_KeylinkAndTimestamp `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

* one data subject 0 or more key links, each of which could have been used to encrypt data up to a certain point in time.

func (*DatasubjectKeylinks) Descriptor deprecated

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

Deprecated: Use DatasubjectKeylinks.ProtoReflect.Descriptor instead.

func (*DatasubjectKeylinks) GetDataSubjectId

func (x *DatasubjectKeylinks) GetDataSubjectId() string

func (*DatasubjectKeylinks) GetKeylinksAndTimestamps

func (x *DatasubjectKeylinks) GetKeylinksAndTimestamps() []*DatasubjectKeylinks_KeylinkAndTimestamp

func (*DatasubjectKeylinks) ProtoMessage

func (*DatasubjectKeylinks) ProtoMessage()

func (*DatasubjectKeylinks) ProtoReflect

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

func (*DatasubjectKeylinks) Reset

func (x *DatasubjectKeylinks) Reset()

func (*DatasubjectKeylinks) String

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

Deprecated: Use DatasubjectKeylinks_KeylinkAndTimestamp.ProtoReflect.Descriptor instead.

type DeleteDataSubjectsRequest

type DeleteDataSubjectsRequest struct {
	DataSubjects []string `protobuf:"bytes,1,rep,name=data_subjects,json=dataSubjects,proto3" json:"data_subjects,omitempty"`
	// this parameter is filled in in the management-api from the identity of the caller
	// it must be empty when a call is made to the management-api.
	OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// contains filtered or unexported fields
}

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

func (x *DeleteDataSubjectsRequest) GetOrganizationId() 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 {
	DeletedKeylinksCount int64 `protobuf:"varint,1,opt,name=deleted_keylinks_count,json=deletedKeylinksCount,proto3" json:"deleted_keylinks_count,omitempty"`
	// contains filtered or unexported fields
}

func (*DeleteDataSubjectsResponse) Descriptor deprecated

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

Deprecated: Use DeleteDataSubjectsResponse.ProtoReflect.Descriptor instead.

func (*DeleteDataSubjectsResponse) GetDeletedKeylinksCount

func (x *DeleteDataSubjectsResponse) GetDeletedKeylinksCount() int64

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 ListDataSubjectKeylinksRequest

type ListDataSubjectKeylinksRequest struct {

	// data_subject_id is defined by the external organization, and can be almost any string (customer-id, car license plate
	// mac address, ....
	// here we're just adding a sanity constraints to limit to printable characters
	DataSubjectId []string `protobuf:"bytes,1,rep,name=data_subject_id,json=dataSubjectId,proto3" json:"data_subject_id,omitempty"`
	// this parameter is filled in in the management-api from the identity of the caller
	// it must be empty when a call is made to the management-api.
	OrganizationId string `protobuf:"bytes,2,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDataSubjectKeylinksRequest) Descriptor deprecated

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

Deprecated: Use ListDataSubjectKeylinksRequest.ProtoReflect.Descriptor instead.

func (*ListDataSubjectKeylinksRequest) GetDataSubjectId

func (x *ListDataSubjectKeylinksRequest) GetDataSubjectId() []string

func (*ListDataSubjectKeylinksRequest) GetOrganizationId

func (x *ListDataSubjectKeylinksRequest) GetOrganizationId() string

func (*ListDataSubjectKeylinksRequest) ProtoMessage

func (*ListDataSubjectKeylinksRequest) ProtoMessage()

func (*ListDataSubjectKeylinksRequest) ProtoReflect

func (*ListDataSubjectKeylinksRequest) Reset

func (x *ListDataSubjectKeylinksRequest) Reset()

func (*ListDataSubjectKeylinksRequest) String

type ListDataSubjectKeylinksResponse

type ListDataSubjectKeylinksResponse struct {
	DataSubjectKeylinks []*DatasubjectKeylinks `protobuf:"bytes,1,rep,name=data_subject_keylinks,json=dataSubjectKeylinks,proto3" json:"data_subject_keylinks,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDataSubjectKeylinksResponse) Descriptor deprecated

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

Deprecated: Use ListDataSubjectKeylinksResponse.ProtoReflect.Descriptor instead.

func (x *ListDataSubjectKeylinksResponse) GetDataSubjectKeylinks() []*DatasubjectKeylinks

func (*ListDataSubjectKeylinksResponse) ProtoMessage

func (*ListDataSubjectKeylinksResponse) ProtoMessage()

func (*ListDataSubjectKeylinksResponse) ProtoReflect

func (*ListDataSubjectKeylinksResponse) Reset

func (*ListDataSubjectKeylinksResponse) String

type ListDataSubjectsRequest added in v2.48.0

type ListDataSubjectsRequest struct {

	// https://cloud.google.com/apis/design/design_patterns#list_pagination
	PageToken string `protobuf:"bytes,1,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// maximum number of results returned. 0 means the server decides.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// this parameter is filled in in the management-api from the identity of the caller
	// it must be empty when a call is made to the management-api.
	OrganizationId string `protobuf:"bytes,3,opt,name=organization_id,json=organizationId,proto3" json:"organization_id,omitempty"`
	// contains filtered or unexported fields
}

func (*ListDataSubjectsRequest) Descriptor deprecated added in v2.48.0

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

Deprecated: Use ListDataSubjectsRequest.ProtoReflect.Descriptor instead.

func (*ListDataSubjectsRequest) GetOrganizationId added in v2.48.0

func (x *ListDataSubjectsRequest) GetOrganizationId() string

func (*ListDataSubjectsRequest) GetPageSize added in v2.48.0

func (x *ListDataSubjectsRequest) GetPageSize() int32

func (*ListDataSubjectsRequest) GetPageToken added in v2.48.0

func (x *ListDataSubjectsRequest) GetPageToken() string

func (*ListDataSubjectsRequest) ProtoMessage added in v2.48.0

func (*ListDataSubjectsRequest) ProtoMessage()

func (*ListDataSubjectsRequest) ProtoReflect added in v2.48.0

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

func (*ListDataSubjectsRequest) Reset added in v2.48.0

func (x *ListDataSubjectsRequest) Reset()

func (*ListDataSubjectsRequest) String added in v2.48.0

func (x *ListDataSubjectsRequest) String() string

type ListDataSubjectsResponse added in v2.48.0

type ListDataSubjectsResponse struct {
	DataSubjects  []*ListDataSubjectsResponse_DataSubjectInfo `protobuf:"bytes,1,rep,name=data_subjects,json=dataSubjects,proto3" json:"data_subjects,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 (*ListDataSubjectsResponse) Descriptor deprecated added in v2.48.0

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

Deprecated: Use ListDataSubjectsResponse.ProtoReflect.Descriptor instead.

func (*ListDataSubjectsResponse) GetDataSubjects added in v2.48.0

func (*ListDataSubjectsResponse) GetNextPageToken added in v2.48.0

func (x *ListDataSubjectsResponse) GetNextPageToken() string

func (*ListDataSubjectsResponse) ProtoMessage added in v2.48.0

func (*ListDataSubjectsResponse) ProtoMessage()

func (*ListDataSubjectsResponse) ProtoReflect added in v2.48.0

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

func (*ListDataSubjectsResponse) Reset added in v2.48.0

func (x *ListDataSubjectsResponse) Reset()

func (*ListDataSubjectsResponse) String added in v2.48.0

func (x *ListDataSubjectsResponse) String() string

type ListDataSubjectsResponse_DataSubjectInfo added in v2.48.0

type ListDataSubjectsResponse_DataSubjectInfo struct {
	DataSubjectId string `protobuf:"bytes,1,opt,name=data_subject_id,json=dataSubjectId,proto3" json:"data_subject_id,omitempty"`
	// contains filtered or unexported fields
}

for future info expansion we put the data subject in a message

func (*ListDataSubjectsResponse_DataSubjectInfo) Descriptor deprecated added in v2.48.0

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

Deprecated: Use ListDataSubjectsResponse_DataSubjectInfo.ProtoReflect.Descriptor instead.

func (*ListDataSubjectsResponse_DataSubjectInfo) GetDataSubjectId added in v2.48.0

func (x *ListDataSubjectsResponse_DataSubjectInfo) GetDataSubjectId() string

func (*ListDataSubjectsResponse_DataSubjectInfo) ProtoMessage added in v2.48.0

func (*ListDataSubjectsResponse_DataSubjectInfo) ProtoReflect added in v2.48.0

func (*ListDataSubjectsResponse_DataSubjectInfo) Reset added in v2.48.0

func (*ListDataSubjectsResponse_DataSubjectInfo) String added in v2.48.0

type UnimplementedDataSubjectsServiceServer

type UnimplementedDataSubjectsServiceServer struct {
}

UnimplementedDataSubjectsServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedDataSubjectsServiceServer) DeleteDataSubjects

func (UnimplementedDataSubjectsServiceServer) ListDataSubjects added in v2.48.0

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.

Jump to

Keyboard shortcuts

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