ropa

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 File_strmprivacy_api_ropa_v1alpha_ropa_v1alpha_proto protoreflect.FileDescriptor
View Source
var RopaService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "strmprivacy.api.ropa.v1alpha.RopaService",
	HandlerType: (*RopaServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetRopa",
			Handler:    _RopaService_GetRopa_Handler,
		},
		{
			MethodName: "CreateRecord",
			Handler:    _RopaService_CreateRecord_Handler,
		},
		{
			MethodName: "GetRecord",
			Handler:    _RopaService_GetRecord_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "strmprivacy/api/ropa/v1alpha/ropa_v1alpha.proto",
}

RopaService_ServiceDesc is the grpc.ServiceDesc for RopaService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterRopaServiceServer

func RegisterRopaServiceServer(s grpc.ServiceRegistrar, srv RopaServiceServer)

Types

type CreateRecordRequest added in v3.17.0

type CreateRecordRequest struct {
	Record *v1alpha1.Ropa_Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

To create a new ROPA Record, leave its id empty. To create a new version of an existing record, set its id. The content of nested entities (parties, data subjects, data categories) are not updated. They may be provided with just their ids.

func (*CreateRecordRequest) Descriptor deprecated added in v3.17.0

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

Deprecated: Use CreateRecordRequest.ProtoReflect.Descriptor instead.

func (*CreateRecordRequest) GetRecord added in v3.17.0

func (x *CreateRecordRequest) GetRecord() *v1alpha1.Ropa_Record

func (*CreateRecordRequest) ProtoMessage added in v3.17.0

func (*CreateRecordRequest) ProtoMessage()

func (*CreateRecordRequest) ProtoReflect added in v3.17.0

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

func (*CreateRecordRequest) Reset added in v3.17.0

func (x *CreateRecordRequest) Reset()

func (*CreateRecordRequest) String added in v3.17.0

func (x *CreateRecordRequest) String() string

type CreateRecordResponse added in v3.17.0

type CreateRecordResponse struct {
	Record *v1alpha1.Ropa_Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateRecordResponse) Descriptor deprecated added in v3.17.0

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

Deprecated: Use CreateRecordResponse.ProtoReflect.Descriptor instead.

func (*CreateRecordResponse) GetRecord added in v3.17.0

func (x *CreateRecordResponse) GetRecord() *v1alpha1.Ropa_Record

func (*CreateRecordResponse) ProtoMessage added in v3.17.0

func (*CreateRecordResponse) ProtoMessage()

func (*CreateRecordResponse) ProtoReflect added in v3.17.0

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

func (*CreateRecordResponse) Reset added in v3.17.0

func (x *CreateRecordResponse) Reset()

func (*CreateRecordResponse) String added in v3.17.0

func (x *CreateRecordResponse) String() string

type GetRecordRequest added in v3.17.0

type GetRecordRequest struct {
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecordRequest) Descriptor deprecated added in v3.17.0

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

Deprecated: Use GetRecordRequest.ProtoReflect.Descriptor instead.

func (*GetRecordRequest) GetId added in v3.17.0

func (x *GetRecordRequest) GetId() string

func (*GetRecordRequest) ProtoMessage added in v3.17.0

func (*GetRecordRequest) ProtoMessage()

func (*GetRecordRequest) ProtoReflect added in v3.17.0

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

func (*GetRecordRequest) Reset added in v3.17.0

func (x *GetRecordRequest) Reset()

func (*GetRecordRequest) String added in v3.17.0

func (x *GetRecordRequest) String() string

type GetRecordResponse added in v3.17.0

type GetRecordResponse struct {
	Record *v1alpha1.Ropa_Record `protobuf:"bytes,1,opt,name=record,proto3" json:"record,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRecordResponse) Descriptor deprecated added in v3.17.0

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

Deprecated: Use GetRecordResponse.ProtoReflect.Descriptor instead.

func (*GetRecordResponse) GetRecord added in v3.17.0

func (x *GetRecordResponse) GetRecord() *v1alpha1.Ropa_Record

func (*GetRecordResponse) ProtoMessage added in v3.17.0

func (*GetRecordResponse) ProtoMessage()

func (*GetRecordResponse) ProtoReflect added in v3.17.0

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

func (*GetRecordResponse) Reset added in v3.17.0

func (x *GetRecordResponse) Reset()

func (*GetRecordResponse) String added in v3.17.0

func (x *GetRecordResponse) String() string

type GetRopaRequest

type GetRopaRequest struct {

	// Limits the number of records returned in the response.
	PageInfo *v1alpha.PageInfo `protobuf:"bytes,1,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

Get all (latest versions of) the ROPA records for the organization of the calling user.

func (*GetRopaRequest) Descriptor deprecated

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

Deprecated: Use GetRopaRequest.ProtoReflect.Descriptor instead.

func (*GetRopaRequest) GetPageInfo added in v3.17.0

func (x *GetRopaRequest) GetPageInfo() *v1alpha.PageInfo

func (*GetRopaRequest) ProtoMessage

func (*GetRopaRequest) ProtoMessage()

func (*GetRopaRequest) ProtoReflect

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

func (*GetRopaRequest) Reset

func (x *GetRopaRequest) Reset()

func (*GetRopaRequest) String

func (x *GetRopaRequest) String() string

type GetRopaResponse

type GetRopaResponse struct {
	Ropa     *v1alpha1.Ropa    `protobuf:"bytes,1,opt,name=ropa,proto3" json:"ropa,omitempty"`
	PageInfo *v1alpha.PageInfo `protobuf:"bytes,2,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRopaResponse) Descriptor deprecated

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

Deprecated: Use GetRopaResponse.ProtoReflect.Descriptor instead.

func (*GetRopaResponse) GetPageInfo added in v3.17.0

func (x *GetRopaResponse) GetPageInfo() *v1alpha.PageInfo

func (*GetRopaResponse) GetRopa

func (x *GetRopaResponse) GetRopa() *v1alpha1.Ropa

func (*GetRopaResponse) ProtoMessage

func (*GetRopaResponse) ProtoMessage()

func (*GetRopaResponse) ProtoReflect

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

func (*GetRopaResponse) Reset

func (x *GetRopaResponse) Reset()

func (*GetRopaResponse) String

func (x *GetRopaResponse) String() string

type RopaServiceClient

type RopaServiceClient interface {
	// This will return all (latest versions of) the records.
	GetRopa(ctx context.Context, in *GetRopaRequest, opts ...grpc.CallOption) (*GetRopaResponse, error)
	// Create a new record (leave its id empty) or a new version of an existing record (provide its id and current version).
	CreateRecord(ctx context.Context, in *CreateRecordRequest, opts ...grpc.CallOption) (*CreateRecordResponse, error)
	// Get a record by its id.
	GetRecord(ctx context.Context, in *GetRecordRequest, opts ...grpc.CallOption) (*GetRecordResponse, error)
}

RopaServiceClient is the client API for RopaService 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 RopaServiceServer

type RopaServiceServer interface {
	// This will return all (latest versions of) the records.
	GetRopa(context.Context, *GetRopaRequest) (*GetRopaResponse, error)
	// Create a new record (leave its id empty) or a new version of an existing record (provide its id and current version).
	CreateRecord(context.Context, *CreateRecordRequest) (*CreateRecordResponse, error)
	// Get a record by its id.
	GetRecord(context.Context, *GetRecordRequest) (*GetRecordResponse, error)
}

RopaServiceServer is the server API for RopaService service. All implementations should embed UnimplementedRopaServiceServer for forward compatibility

type UnimplementedRopaServiceServer

type UnimplementedRopaServiceServer struct {
}

UnimplementedRopaServiceServer should be embedded to have forward compatible implementations.

func (UnimplementedRopaServiceServer) CreateRecord added in v3.17.0

func (UnimplementedRopaServiceServer) GetRecord added in v3.17.0

func (UnimplementedRopaServiceServer) GetRopa

type UnsafeRopaServiceServer

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

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

Jump to

Keyboard shortcuts

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