reader

package
v0.31.3 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 16 Imported by: 11

Documentation

Overview

Package reader is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Reader_GetObjectType_FullMethodName    = "/aserto.directory.reader.v2.Reader/GetObjectType"
	Reader_GetObjectTypes_FullMethodName   = "/aserto.directory.reader.v2.Reader/GetObjectTypes"
	Reader_GetRelationType_FullMethodName  = "/aserto.directory.reader.v2.Reader/GetRelationType"
	Reader_GetRelationTypes_FullMethodName = "/aserto.directory.reader.v2.Reader/GetRelationTypes"
	Reader_GetPermission_FullMethodName    = "/aserto.directory.reader.v2.Reader/GetPermission"
	Reader_GetPermissions_FullMethodName   = "/aserto.directory.reader.v2.Reader/GetPermissions"
	Reader_GetObject_FullMethodName        = "/aserto.directory.reader.v2.Reader/GetObject"
	Reader_GetObjectMany_FullMethodName    = "/aserto.directory.reader.v2.Reader/GetObjectMany"
	Reader_GetObjects_FullMethodName       = "/aserto.directory.reader.v2.Reader/GetObjects"
	Reader_GetRelation_FullMethodName      = "/aserto.directory.reader.v2.Reader/GetRelation"
	Reader_GetRelations_FullMethodName     = "/aserto.directory.reader.v2.Reader/GetRelations"
	Reader_CheckPermission_FullMethodName  = "/aserto.directory.reader.v2.Reader/CheckPermission"
	Reader_CheckRelation_FullMethodName    = "/aserto.directory.reader.v2.Reader/CheckRelation"
	Reader_GetGraph_FullMethodName         = "/aserto.directory.reader.v2.Reader/GetGraph"
)

Variables

View Source
var File_aserto_directory_reader_v2_reader_proto protoreflect.FileDescriptor
View Source
var Reader_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "aserto.directory.reader.v2.Reader",
	HandlerType: (*ReaderServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetObjectType",
			Handler:    _Reader_GetObjectType_Handler,
		},
		{
			MethodName: "GetObjectTypes",
			Handler:    _Reader_GetObjectTypes_Handler,
		},
		{
			MethodName: "GetRelationType",
			Handler:    _Reader_GetRelationType_Handler,
		},
		{
			MethodName: "GetRelationTypes",
			Handler:    _Reader_GetRelationTypes_Handler,
		},
		{
			MethodName: "GetPermission",
			Handler:    _Reader_GetPermission_Handler,
		},
		{
			MethodName: "GetPermissions",
			Handler:    _Reader_GetPermissions_Handler,
		},
		{
			MethodName: "GetObject",
			Handler:    _Reader_GetObject_Handler,
		},
		{
			MethodName: "GetObjectMany",
			Handler:    _Reader_GetObjectMany_Handler,
		},
		{
			MethodName: "GetObjects",
			Handler:    _Reader_GetObjects_Handler,
		},
		{
			MethodName: "GetRelation",
			Handler:    _Reader_GetRelation_Handler,
		},
		{
			MethodName: "GetRelations",
			Handler:    _Reader_GetRelations_Handler,
		},
		{
			MethodName: "CheckPermission",
			Handler:    _Reader_CheckPermission_Handler,
		},
		{
			MethodName: "CheckRelation",
			Handler:    _Reader_CheckRelation_Handler,
		},
		{
			MethodName: "GetGraph",
			Handler:    _Reader_GetGraph_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "aserto/directory/reader/v2/reader.proto",
}

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

Functions

func RegisterReaderHandler

func RegisterReaderHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterReaderHandler registers the http handlers for service Reader to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterReaderHandlerClient

func RegisterReaderHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReaderClient) error

RegisterReaderHandlerClient registers the http handlers for service Reader to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "ReaderClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "ReaderClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "ReaderClient" to call the correct interceptors.

func RegisterReaderHandlerFromEndpoint

func RegisterReaderHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterReaderHandlerFromEndpoint is same as RegisterReaderHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterReaderHandlerServer

func RegisterReaderHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReaderServer) error

RegisterReaderHandlerServer registers the http handlers for service Reader to "mux". UnaryRPC :call ReaderServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterReaderHandlerFromEndpoint instead.

func RegisterReaderServer

func RegisterReaderServer(s grpc.ServiceRegistrar, srv ReaderServer)

Types

type CheckPermissionRequest

type CheckPermissionRequest struct {

	// subject selector
	Subject *v2.ObjectIdentifier `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// permission selector
	Permission *v2.PermissionIdentifier `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"`
	// object selector
	Object *v2.ObjectIdentifier `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	// collect trace information
	Trace bool `protobuf:"varint,7,opt,name=trace,proto3" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckPermissionRequest) Descriptor deprecated

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

Deprecated: Use CheckPermissionRequest.ProtoReflect.Descriptor instead.

func (*CheckPermissionRequest) GetObject

func (x *CheckPermissionRequest) GetObject() *v2.ObjectIdentifier

func (*CheckPermissionRequest) GetPermission

func (x *CheckPermissionRequest) GetPermission() *v2.PermissionIdentifier

func (*CheckPermissionRequest) GetSubject

func (x *CheckPermissionRequest) GetSubject() *v2.ObjectIdentifier

func (*CheckPermissionRequest) GetTrace

func (x *CheckPermissionRequest) GetTrace() bool

func (*CheckPermissionRequest) ProtoMessage

func (*CheckPermissionRequest) ProtoMessage()

func (*CheckPermissionRequest) ProtoReflect

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

func (*CheckPermissionRequest) Reset

func (x *CheckPermissionRequest) Reset()

func (*CheckPermissionRequest) String

func (x *CheckPermissionRequest) String() string

type CheckPermissionResponse

type CheckPermissionResponse struct {

	// check result
	Check bool `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"`
	// trace information
	Trace []string `protobuf:"bytes,2,rep,name=trace,proto3" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckPermissionResponse) Descriptor deprecated

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

Deprecated: Use CheckPermissionResponse.ProtoReflect.Descriptor instead.

func (*CheckPermissionResponse) GetCheck

func (x *CheckPermissionResponse) GetCheck() bool

func (*CheckPermissionResponse) GetTrace

func (x *CheckPermissionResponse) GetTrace() []string

func (*CheckPermissionResponse) ProtoMessage

func (*CheckPermissionResponse) ProtoMessage()

func (*CheckPermissionResponse) ProtoReflect

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

func (*CheckPermissionResponse) Reset

func (x *CheckPermissionResponse) Reset()

func (*CheckPermissionResponse) String

func (x *CheckPermissionResponse) String() string

type CheckRelationRequest

type CheckRelationRequest struct {

	// subject selector
	Subject *v2.ObjectIdentifier `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
	// relation selector
	Relation *v2.RelationTypeIdentifier `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"`
	// object selector
	Object *v2.ObjectIdentifier `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`
	// collect trace information
	Trace bool `protobuf:"varint,7,opt,name=trace,proto3" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckRelationRequest) Descriptor deprecated

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

Deprecated: Use CheckRelationRequest.ProtoReflect.Descriptor instead.

func (*CheckRelationRequest) GetObject

func (x *CheckRelationRequest) GetObject() *v2.ObjectIdentifier

func (*CheckRelationRequest) GetRelation

func (*CheckRelationRequest) GetSubject

func (x *CheckRelationRequest) GetSubject() *v2.ObjectIdentifier

func (*CheckRelationRequest) GetTrace

func (x *CheckRelationRequest) GetTrace() bool

func (*CheckRelationRequest) ProtoMessage

func (*CheckRelationRequest) ProtoMessage()

func (*CheckRelationRequest) ProtoReflect

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

func (*CheckRelationRequest) Reset

func (x *CheckRelationRequest) Reset()

func (*CheckRelationRequest) String

func (x *CheckRelationRequest) String() string

type CheckRelationResponse

type CheckRelationResponse struct {

	// check result
	Check bool `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"`
	// trace information
	Trace []string `protobuf:"bytes,2,rep,name=trace,proto3" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckRelationResponse) Descriptor deprecated

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

Deprecated: Use CheckRelationResponse.ProtoReflect.Descriptor instead.

func (*CheckRelationResponse) GetCheck

func (x *CheckRelationResponse) GetCheck() bool

func (*CheckRelationResponse) GetTrace

func (x *CheckRelationResponse) GetTrace() []string

func (*CheckRelationResponse) ProtoMessage

func (*CheckRelationResponse) ProtoMessage()

func (*CheckRelationResponse) ProtoReflect

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

func (*CheckRelationResponse) Reset

func (x *CheckRelationResponse) Reset()

func (*CheckRelationResponse) String

func (x *CheckRelationResponse) String() string

type CheckResponse

type CheckResponse struct {

	// check result
	Check bool `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"`
	// trace information
	Trace []string `protobuf:"bytes,2,rep,name=trace,proto3" json:"trace,omitempty"`
	// contains filtered or unexported fields
}

func (*CheckResponse) Descriptor deprecated

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

Deprecated: Use CheckResponse.ProtoReflect.Descriptor instead.

func (*CheckResponse) GetCheck

func (x *CheckResponse) GetCheck() bool

func (*CheckResponse) GetTrace

func (x *CheckResponse) GetTrace() []string

func (*CheckResponse) ProtoMessage

func (*CheckResponse) ProtoMessage()

func (*CheckResponse) ProtoReflect

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

func (*CheckResponse) Reset

func (x *CheckResponse) Reset()

func (*CheckResponse) String

func (x *CheckResponse) String() string

type GetGraphRequest

type GetGraphRequest struct {

	// anchor selector
	Anchor *v2.ObjectIdentifier `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"`
	// subject selector
	Subject *v2.ObjectIdentifier `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
	// relation selector
	Relation *v2.RelationTypeIdentifier `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"`
	// object selector
	Object *v2.ObjectIdentifier `protobuf:"bytes,4,opt,name=object,proto3" json:"object,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGraphRequest) Descriptor deprecated

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

Deprecated: Use GetGraphRequest.ProtoReflect.Descriptor instead.

func (*GetGraphRequest) GetAnchor

func (x *GetGraphRequest) GetAnchor() *v2.ObjectIdentifier

func (*GetGraphRequest) GetObject

func (x *GetGraphRequest) GetObject() *v2.ObjectIdentifier

func (*GetGraphRequest) GetRelation

func (x *GetGraphRequest) GetRelation() *v2.RelationTypeIdentifier

func (*GetGraphRequest) GetSubject

func (x *GetGraphRequest) GetSubject() *v2.ObjectIdentifier

func (*GetGraphRequest) ProtoMessage

func (*GetGraphRequest) ProtoMessage()

func (*GetGraphRequest) ProtoReflect

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

func (*GetGraphRequest) Reset

func (x *GetGraphRequest) Reset()

func (*GetGraphRequest) String

func (x *GetGraphRequest) String() string

type GetGraphResponse

type GetGraphResponse struct {

	// dependency graph
	Results []*v2.ObjectDependency `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*GetGraphResponse) Descriptor deprecated

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

Deprecated: Use GetGraphResponse.ProtoReflect.Descriptor instead.

func (*GetGraphResponse) GetResults

func (x *GetGraphResponse) GetResults() []*v2.ObjectDependency

func (*GetGraphResponse) ProtoMessage

func (*GetGraphResponse) ProtoMessage()

func (*GetGraphResponse) ProtoReflect

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

func (*GetGraphResponse) Reset

func (x *GetGraphResponse) Reset()

func (*GetGraphResponse) String

func (x *GetGraphResponse) String() string

type GetObjectManyRequest

type GetObjectManyRequest struct {

	// object identifier list
	Param []*v2.ObjectIdentifier `protobuf:"bytes,1,rep,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectManyRequest) Descriptor deprecated

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

Deprecated: Use GetObjectManyRequest.ProtoReflect.Descriptor instead.

func (*GetObjectManyRequest) GetParam

func (x *GetObjectManyRequest) GetParam() []*v2.ObjectIdentifier

func (*GetObjectManyRequest) ProtoMessage

func (*GetObjectManyRequest) ProtoMessage()

func (*GetObjectManyRequest) ProtoReflect

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

func (*GetObjectManyRequest) Reset

func (x *GetObjectManyRequest) Reset()

func (*GetObjectManyRequest) String

func (x *GetObjectManyRequest) String() string

type GetObjectManyResponse

type GetObjectManyResponse struct {

	// array of object instances
	Results []*v2.Object `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectManyResponse) Descriptor deprecated

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

Deprecated: Use GetObjectManyResponse.ProtoReflect.Descriptor instead.

func (*GetObjectManyResponse) GetResults

func (x *GetObjectManyResponse) GetResults() []*v2.Object

func (*GetObjectManyResponse) ProtoMessage

func (*GetObjectManyResponse) ProtoMessage()

func (*GetObjectManyResponse) ProtoReflect

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

func (*GetObjectManyResponse) Reset

func (x *GetObjectManyResponse) Reset()

func (*GetObjectManyResponse) String

func (x *GetObjectManyResponse) String() string

type GetObjectRequest

type GetObjectRequest struct {

	// object selector
	Param *v2.ObjectIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// materialize the object relations objects
	WithRelations *bool `protobuf:"varint,2,opt,name=with_relations,json=withRelations,proto3,oneof" json:"with_relations,omitempty"`
	// pagination request
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectRequest) Descriptor deprecated

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

Deprecated: Use GetObjectRequest.ProtoReflect.Descriptor instead.

func (*GetObjectRequest) GetPage added in v0.21.6

func (x *GetObjectRequest) GetPage() *v2.PaginationRequest

func (*GetObjectRequest) GetParam

func (x *GetObjectRequest) GetParam() *v2.ObjectIdentifier

func (*GetObjectRequest) GetWithRelations added in v0.21.1

func (x *GetObjectRequest) GetWithRelations() bool

func (*GetObjectRequest) ProtoMessage

func (*GetObjectRequest) ProtoMessage()

func (*GetObjectRequest) ProtoReflect

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

func (*GetObjectRequest) Reset

func (x *GetObjectRequest) Reset()

func (*GetObjectRequest) String

func (x *GetObjectRequest) String() string

type GetObjectResponse

type GetObjectResponse struct {

	// object instance
	Result *v2.Object `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// object relations
	Relations []*v2.Relation `protobuf:"bytes,4,rep,name=relations,proto3" json:"relations,omitempty"`
	// pagination response
	Page *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectResponse) Descriptor deprecated

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

Deprecated: Use GetObjectResponse.ProtoReflect.Descriptor instead.

func (*GetObjectResponse) GetPage added in v0.21.6

func (x *GetObjectResponse) GetPage() *v2.PaginationResponse

func (*GetObjectResponse) GetRelations added in v0.21.5

func (x *GetObjectResponse) GetRelations() []*v2.Relation

func (*GetObjectResponse) GetResult

func (x *GetObjectResponse) GetResult() *v2.Object

func (*GetObjectResponse) ProtoMessage

func (*GetObjectResponse) ProtoMessage()

func (*GetObjectResponse) ProtoReflect

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

func (*GetObjectResponse) Reset

func (x *GetObjectResponse) Reset()

func (*GetObjectResponse) String

func (x *GetObjectResponse) String() string

type GetObjectTypeRequest

type GetObjectTypeRequest struct {

	// object type selector
	Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectTypeRequest) Descriptor deprecated

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

Deprecated: Use GetObjectTypeRequest.ProtoReflect.Descriptor instead.

func (*GetObjectTypeRequest) GetParam

func (*GetObjectTypeRequest) ProtoMessage

func (*GetObjectTypeRequest) ProtoMessage()

func (*GetObjectTypeRequest) ProtoReflect

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

func (*GetObjectTypeRequest) Reset

func (x *GetObjectTypeRequest) Reset()

func (*GetObjectTypeRequest) String

func (x *GetObjectTypeRequest) String() string

type GetObjectTypeResponse

type GetObjectTypeResponse struct {

	// object type instance
	Result *v2.ObjectType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectTypeResponse) Descriptor deprecated

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

Deprecated: Use GetObjectTypeResponse.ProtoReflect.Descriptor instead.

func (*GetObjectTypeResponse) GetResult

func (x *GetObjectTypeResponse) GetResult() *v2.ObjectType

func (*GetObjectTypeResponse) ProtoMessage

func (*GetObjectTypeResponse) ProtoMessage()

func (*GetObjectTypeResponse) ProtoReflect

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

func (*GetObjectTypeResponse) Reset

func (x *GetObjectTypeResponse) Reset()

func (*GetObjectTypeResponse) String

func (x *GetObjectTypeResponse) String() string

type GetObjectTypesRequest

type GetObjectTypesRequest struct {

	// pagination request
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectTypesRequest) Descriptor deprecated

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

Deprecated: Use GetObjectTypesRequest.ProtoReflect.Descriptor instead.

func (*GetObjectTypesRequest) GetPage

func (*GetObjectTypesRequest) ProtoMessage

func (*GetObjectTypesRequest) ProtoMessage()

func (*GetObjectTypesRequest) ProtoReflect

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

func (*GetObjectTypesRequest) Reset

func (x *GetObjectTypesRequest) Reset()

func (*GetObjectTypesRequest) String

func (x *GetObjectTypesRequest) String() string

type GetObjectTypesResponse

type GetObjectTypesResponse struct {

	// array of object types
	Results []*v2.ObjectType `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// pagination response
	Page *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectTypesResponse) Descriptor deprecated

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

Deprecated: Use GetObjectTypesResponse.ProtoReflect.Descriptor instead.

func (*GetObjectTypesResponse) GetPage

func (*GetObjectTypesResponse) GetResults

func (x *GetObjectTypesResponse) GetResults() []*v2.ObjectType

func (*GetObjectTypesResponse) ProtoMessage

func (*GetObjectTypesResponse) ProtoMessage()

func (*GetObjectTypesResponse) ProtoReflect

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

func (*GetObjectTypesResponse) Reset

func (x *GetObjectTypesResponse) Reset()

func (*GetObjectTypesResponse) String

func (x *GetObjectTypesResponse) String() string

type GetObjectsRequest

type GetObjectsRequest struct {

	// object type selector
	Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// pagination request
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectsRequest) Descriptor deprecated

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

Deprecated: Use GetObjectsRequest.ProtoReflect.Descriptor instead.

func (*GetObjectsRequest) GetPage

func (x *GetObjectsRequest) GetPage() *v2.PaginationRequest

func (*GetObjectsRequest) GetParam

func (x *GetObjectsRequest) GetParam() *v2.ObjectTypeIdentifier

func (*GetObjectsRequest) ProtoMessage

func (*GetObjectsRequest) ProtoMessage()

func (*GetObjectsRequest) ProtoReflect

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

func (*GetObjectsRequest) Reset

func (x *GetObjectsRequest) Reset()

func (*GetObjectsRequest) String

func (x *GetObjectsRequest) String() string

type GetObjectsResponse

type GetObjectsResponse struct {

	// array of object instances
	Results []*v2.Object `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// pagination response
	Page *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetObjectsResponse) Descriptor deprecated

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

Deprecated: Use GetObjectsResponse.ProtoReflect.Descriptor instead.

func (*GetObjectsResponse) GetPage

func (*GetObjectsResponse) GetResults

func (x *GetObjectsResponse) GetResults() []*v2.Object

func (*GetObjectsResponse) ProtoMessage

func (*GetObjectsResponse) ProtoMessage()

func (*GetObjectsResponse) ProtoReflect

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

func (*GetObjectsResponse) Reset

func (x *GetObjectsResponse) Reset()

func (*GetObjectsResponse) String

func (x *GetObjectsResponse) String() string

type GetPermissionRequest

type GetPermissionRequest struct {

	// permission selector
	Param *v2.PermissionIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionRequest) Descriptor deprecated

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

Deprecated: Use GetPermissionRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionRequest) GetParam

func (*GetPermissionRequest) ProtoMessage

func (*GetPermissionRequest) ProtoMessage()

func (*GetPermissionRequest) ProtoReflect

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

func (*GetPermissionRequest) Reset

func (x *GetPermissionRequest) Reset()

func (*GetPermissionRequest) String

func (x *GetPermissionRequest) String() string

type GetPermissionResponse

type GetPermissionResponse struct {

	// permission instance
	Result *v2.Permission `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionResponse) Descriptor deprecated

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

Deprecated: Use GetPermissionResponse.ProtoReflect.Descriptor instead.

func (*GetPermissionResponse) GetResult

func (x *GetPermissionResponse) GetResult() *v2.Permission

func (*GetPermissionResponse) ProtoMessage

func (*GetPermissionResponse) ProtoMessage()

func (*GetPermissionResponse) ProtoReflect

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

func (*GetPermissionResponse) Reset

func (x *GetPermissionResponse) Reset()

func (*GetPermissionResponse) String

func (x *GetPermissionResponse) String() string

type GetPermissionsRequest

type GetPermissionsRequest struct {

	// pagination request
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionsRequest) Descriptor deprecated

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

Deprecated: Use GetPermissionsRequest.ProtoReflect.Descriptor instead.

func (*GetPermissionsRequest) GetPage

func (*GetPermissionsRequest) ProtoMessage

func (*GetPermissionsRequest) ProtoMessage()

func (*GetPermissionsRequest) ProtoReflect

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

func (*GetPermissionsRequest) Reset

func (x *GetPermissionsRequest) Reset()

func (*GetPermissionsRequest) String

func (x *GetPermissionsRequest) String() string

type GetPermissionsResponse

type GetPermissionsResponse struct {

	// array of permissions
	Results []*v2.Permission `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// pagination response
	Page *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetPermissionsResponse) Descriptor deprecated

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

Deprecated: Use GetPermissionsResponse.ProtoReflect.Descriptor instead.

func (*GetPermissionsResponse) GetPage

func (*GetPermissionsResponse) GetResults

func (x *GetPermissionsResponse) GetResults() []*v2.Permission

func (*GetPermissionsResponse) ProtoMessage

func (*GetPermissionsResponse) ProtoMessage()

func (*GetPermissionsResponse) ProtoReflect

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

func (*GetPermissionsResponse) Reset

func (x *GetPermissionsResponse) Reset()

func (*GetPermissionsResponse) String

func (x *GetPermissionsResponse) String() string

type GetRelationRequest

type GetRelationRequest struct {

	// relation selector
	Param *v2.RelationIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// materialize relation objects
	WithObjects *bool `protobuf:"varint,2,opt,name=with_objects,json=withObjects,proto3,oneof" json:"with_objects,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRelationRequest) Descriptor deprecated

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

Deprecated: Use GetRelationRequest.ProtoReflect.Descriptor instead.

func (*GetRelationRequest) GetParam

func (x *GetRelationRequest) GetParam() *v2.RelationIdentifier

func (*GetRelationRequest) GetWithObjects added in v0.20.3

func (x *GetRelationRequest) GetWithObjects() bool

func (*GetRelationRequest) ProtoMessage

func (*GetRelationRequest) ProtoMessage()

func (*GetRelationRequest) ProtoReflect

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

func (*GetRelationRequest) Reset

func (x *GetRelationRequest) Reset()

func (*GetRelationRequest) String

func (x *GetRelationRequest) String() string

type GetRelationResponse

type GetRelationResponse struct {

	// array of relation instances
	Results []*v2.Relation `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// map of materialized relation objects
	Objects map[string]*v2.Object `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetRelationResponse) Descriptor deprecated

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

Deprecated: Use GetRelationResponse.ProtoReflect.Descriptor instead.

func (*GetRelationResponse) GetObjects added in v0.20.3

func (x *GetRelationResponse) GetObjects() map[string]*v2.Object

func (*GetRelationResponse) GetResults

func (x *GetRelationResponse) GetResults() []*v2.Relation

func (*GetRelationResponse) ProtoMessage

func (*GetRelationResponse) ProtoMessage()

func (*GetRelationResponse) ProtoReflect

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

func (*GetRelationResponse) Reset

func (x *GetRelationResponse) Reset()

func (*GetRelationResponse) String

func (x *GetRelationResponse) String() string

type GetRelationTypeRequest

type GetRelationTypeRequest struct {

	// relation type selector
	Param *v2.RelationTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRelationTypeRequest) Descriptor deprecated

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

Deprecated: Use GetRelationTypeRequest.ProtoReflect.Descriptor instead.

func (*GetRelationTypeRequest) GetParam

func (*GetRelationTypeRequest) ProtoMessage

func (*GetRelationTypeRequest) ProtoMessage()

func (*GetRelationTypeRequest) ProtoReflect

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

func (*GetRelationTypeRequest) Reset

func (x *GetRelationTypeRequest) Reset()

func (*GetRelationTypeRequest) String

func (x *GetRelationTypeRequest) String() string

type GetRelationTypeResponse

type GetRelationTypeResponse struct {

	// relation type instance
	Result *v2.RelationType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRelationTypeResponse) Descriptor deprecated

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

Deprecated: Use GetRelationTypeResponse.ProtoReflect.Descriptor instead.

func (*GetRelationTypeResponse) GetResult

func (x *GetRelationTypeResponse) GetResult() *v2.RelationType

func (*GetRelationTypeResponse) ProtoMessage

func (*GetRelationTypeResponse) ProtoMessage()

func (*GetRelationTypeResponse) ProtoReflect

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

func (*GetRelationTypeResponse) Reset

func (x *GetRelationTypeResponse) Reset()

func (*GetRelationTypeResponse) String

func (x *GetRelationTypeResponse) String() string

type GetRelationTypesRequest

type GetRelationTypesRequest struct {

	// object type selector
	Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// pagination request
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRelationTypesRequest) Descriptor deprecated

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

Deprecated: Use GetRelationTypesRequest.ProtoReflect.Descriptor instead.

func (*GetRelationTypesRequest) GetPage

func (*GetRelationTypesRequest) GetParam

func (*GetRelationTypesRequest) ProtoMessage

func (*GetRelationTypesRequest) ProtoMessage()

func (*GetRelationTypesRequest) ProtoReflect

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

func (*GetRelationTypesRequest) Reset

func (x *GetRelationTypesRequest) Reset()

func (*GetRelationTypesRequest) String

func (x *GetRelationTypesRequest) String() string

type GetRelationTypesResponse

type GetRelationTypesResponse struct {

	// array of relation types
	Results []*v2.RelationType `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// pagination response
	Page *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRelationTypesResponse) Descriptor deprecated

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

Deprecated: Use GetRelationTypesResponse.ProtoReflect.Descriptor instead.

func (*GetRelationTypesResponse) GetPage

func (*GetRelationTypesResponse) GetResults

func (x *GetRelationTypesResponse) GetResults() []*v2.RelationType

func (*GetRelationTypesResponse) ProtoMessage

func (*GetRelationTypesResponse) ProtoMessage()

func (*GetRelationTypesResponse) ProtoReflect

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

func (*GetRelationTypesResponse) Reset

func (x *GetRelationTypesResponse) Reset()

func (*GetRelationTypesResponse) String

func (x *GetRelationTypesResponse) String() string

type GetRelationsRequest

type GetRelationsRequest struct {

	// relation selector
	Param *v2.RelationIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
	// pagination request
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRelationsRequest) Descriptor deprecated

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

Deprecated: Use GetRelationsRequest.ProtoReflect.Descriptor instead.

func (*GetRelationsRequest) GetPage

func (*GetRelationsRequest) GetParam

func (x *GetRelationsRequest) GetParam() *v2.RelationIdentifier

func (*GetRelationsRequest) ProtoMessage

func (*GetRelationsRequest) ProtoMessage()

func (*GetRelationsRequest) ProtoReflect

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

func (*GetRelationsRequest) Reset

func (x *GetRelationsRequest) Reset()

func (*GetRelationsRequest) String

func (x *GetRelationsRequest) String() string

type GetRelationsResponse

type GetRelationsResponse struct {

	// array of relation instances
	Results []*v2.Relation `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// pagination response
	Page *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
	// contains filtered or unexported fields
}

func (*GetRelationsResponse) Descriptor deprecated

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

Deprecated: Use GetRelationsResponse.ProtoReflect.Descriptor instead.

func (*GetRelationsResponse) GetPage

func (*GetRelationsResponse) GetResults

func (x *GetRelationsResponse) GetResults() []*v2.Relation

func (*GetRelationsResponse) ProtoMessage

func (*GetRelationsResponse) ProtoMessage()

func (*GetRelationsResponse) ProtoReflect

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

func (*GetRelationsResponse) Reset

func (x *GetRelationsResponse) Reset()

func (*GetRelationsResponse) String

func (x *GetRelationsResponse) String() string

type ReaderClient

type ReaderClient interface {
	// object type metadata methods
	GetObjectType(ctx context.Context, in *GetObjectTypeRequest, opts ...grpc.CallOption) (*GetObjectTypeResponse, error)
	GetObjectTypes(ctx context.Context, in *GetObjectTypesRequest, opts ...grpc.CallOption) (*GetObjectTypesResponse, error)
	// relation type metadata methods
	GetRelationType(ctx context.Context, in *GetRelationTypeRequest, opts ...grpc.CallOption) (*GetRelationTypeResponse, error)
	GetRelationTypes(ctx context.Context, in *GetRelationTypesRequest, opts ...grpc.CallOption) (*GetRelationTypesResponse, error)
	// permission metadata methods
	GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*GetPermissionResponse, error)
	GetPermissions(ctx context.Context, in *GetPermissionsRequest, opts ...grpc.CallOption) (*GetPermissionsResponse, error)
	// object methods
	GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*GetObjectResponse, error)
	GetObjectMany(ctx context.Context, in *GetObjectManyRequest, opts ...grpc.CallOption) (*GetObjectManyResponse, error)
	GetObjects(ctx context.Context, in *GetObjectsRequest, opts ...grpc.CallOption) (*GetObjectsResponse, error)
	// relation methods
	GetRelation(ctx context.Context, in *GetRelationRequest, opts ...grpc.CallOption) (*GetRelationResponse, error)
	GetRelations(ctx context.Context, in *GetRelationsRequest, opts ...grpc.CallOption) (*GetRelationsResponse, error)
	// check permission method
	CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error)
	// check relation method
	CheckRelation(ctx context.Context, in *CheckRelationRequest, opts ...grpc.CallOption) (*CheckRelationResponse, error)
	// graph methods
	GetGraph(ctx context.Context, in *GetGraphRequest, opts ...grpc.CallOption) (*GetGraphResponse, error)
}

ReaderClient is the client API for Reader 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 NewReaderClient

func NewReaderClient(cc grpc.ClientConnInterface) ReaderClient

type ReaderServer

type ReaderServer interface {
	// object type metadata methods
	GetObjectType(context.Context, *GetObjectTypeRequest) (*GetObjectTypeResponse, error)
	GetObjectTypes(context.Context, *GetObjectTypesRequest) (*GetObjectTypesResponse, error)
	// relation type metadata methods
	GetRelationType(context.Context, *GetRelationTypeRequest) (*GetRelationTypeResponse, error)
	GetRelationTypes(context.Context, *GetRelationTypesRequest) (*GetRelationTypesResponse, error)
	// permission metadata methods
	GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
	GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
	// object methods
	GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
	GetObjectMany(context.Context, *GetObjectManyRequest) (*GetObjectManyResponse, error)
	GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error)
	// relation methods
	GetRelation(context.Context, *GetRelationRequest) (*GetRelationResponse, error)
	GetRelations(context.Context, *GetRelationsRequest) (*GetRelationsResponse, error)
	// check permission method
	CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
	// check relation method
	CheckRelation(context.Context, *CheckRelationRequest) (*CheckRelationResponse, error)
	// graph methods
	GetGraph(context.Context, *GetGraphRequest) (*GetGraphResponse, error)
}

ReaderServer is the server API for Reader service. All implementations should embed UnimplementedReaderServer for forward compatibility

type UnimplementedReaderServer

type UnimplementedReaderServer struct {
}

UnimplementedReaderServer should be embedded to have forward compatible implementations.

func (UnimplementedReaderServer) CheckPermission

func (UnimplementedReaderServer) CheckRelation

func (UnimplementedReaderServer) GetGraph

func (UnimplementedReaderServer) GetObject

func (UnimplementedReaderServer) GetObjectMany

func (UnimplementedReaderServer) GetObjectType

func (UnimplementedReaderServer) GetObjectTypes

func (UnimplementedReaderServer) GetObjects

func (UnimplementedReaderServer) GetPermission

func (UnimplementedReaderServer) GetPermissions

func (UnimplementedReaderServer) GetRelation

func (UnimplementedReaderServer) GetRelationType

func (UnimplementedReaderServer) GetRelationTypes

func (UnimplementedReaderServer) GetRelations

type UnsafeReaderServer

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

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

Jump to

Keyboard shortcuts

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