reader

package
v0.21.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

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    *v2.ObjectIdentifier     `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`       // subject selector
	Permission *v2.PermissionIdentifier `protobuf:"bytes,2,opt,name=permission,proto3" json:"permission,omitempty"` // permission selector
	Object     *v2.ObjectIdentifier     `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`         // object selector
	Trace      bool                     `protobuf:"varint,7,opt,name=trace,proto3" json:"trace,omitempty"`          // collect trace information
	// 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 bool     `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"` // check result (BOOL)
	Trace []string `protobuf:"bytes,2,rep,name=trace,proto3" json:"trace,omitempty"`  // trace information
	// 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  *v2.ObjectIdentifier       `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`   // subject selector
	Relation *v2.RelationTypeIdentifier `protobuf:"bytes,2,opt,name=relation,proto3" json:"relation,omitempty"` // relation selector
	Object   *v2.ObjectIdentifier       `protobuf:"bytes,3,opt,name=object,proto3" json:"object,omitempty"`     // object selector
	Trace    bool                       `protobuf:"varint,7,opt,name=trace,proto3" json:"trace,omitempty"`      // collect trace information
	// 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 bool     `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"` // check result (BOOL)
	Trace []string `protobuf:"bytes,2,rep,name=trace,proto3" json:"trace,omitempty"`  // trace information
	// 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 bool     `protobuf:"varint,1,opt,name=check,proto3" json:"check,omitempty"` // check result (BOOL)
	Trace []string `protobuf:"bytes,2,rep,name=trace,proto3" json:"trace,omitempty"`  // trace information
	// 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   *v2.ObjectIdentifier       `protobuf:"bytes,1,opt,name=anchor,proto3" json:"anchor,omitempty"`     // anchor selector
	Subject  *v2.ObjectIdentifier       `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`   // subject selector
	Relation *v2.RelationTypeIdentifier `protobuf:"bytes,3,opt,name=relation,proto3" json:"relation,omitempty"` // relation selector
	Object   *v2.ObjectIdentifier       `protobuf:"bytes,4,opt,name=object,proto3" json:"object,omitempty"`     // object selector
	// 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 {
	Results []*v2.ObjectDependency `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // dependency graph
	// 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 {
	Param []*v2.ObjectIdentifier `protobuf:"bytes,1,rep,name=param,proto3" json:"param,omitempty"` // object identifier list
	// 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 {
	Results []*v2.Object `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // array of object instances
	// 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 {
	Param *v2.ObjectIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // object selector
	// contains filtered or unexported fields
}

func (*GetObjectRequest) Descriptor deprecated

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

Deprecated: Use GetObjectRequest.ProtoReflect.Descriptor instead.

func (*GetObjectRequest) GetParam

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

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 {
	Result *v2.Object `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // object instance
	// contains filtered or unexported fields
}

func (*GetObjectResponse) Descriptor deprecated

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

Deprecated: Use GetObjectResponse.ProtoReflect.Descriptor instead.

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 {
	Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // object type selector
	// 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 {
	Result *v2.ObjectType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // object type instance
	// 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 {
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"` // pagination request
	// 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 {
	Results []*v2.ObjectType       `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // array of object types
	Page    *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`       // pagination response
	// 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 {
	Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // object type selector
	Page  *v2.PaginationRequest    `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`   // pagination request
	// 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 {
	Results []*v2.Object           `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // array of object instances
	Page    *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`       // pagination response
	// 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 {
	Param *v2.PermissionIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // permission selector
	// 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 {
	Result *v2.Permission `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // permission instance
	// 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 {
	Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"` // pagination request
	// 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 {
	Results []*v2.Permission       `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // array of permissions
	Page    *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`       // pagination response
	// 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 {
	Param       *v2.RelationIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`                                       // relation selector
	WithObjects *bool                  `protobuf:"varint,2,opt,name=with_objects,json=withObjects,proto3,oneof" json:"with_objects,omitempty"` // materialize relation objects
	// 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 {
	Results []*v2.Relation        `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // array of relation instances
	Objects map[string]*v2.Object ``                                                                    // map of materialized relation objects
	/* 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 {
	Param *v2.RelationTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // relation type selector
	// 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 {
	Result *v2.RelationType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"` // relation type instance
	// 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 {
	Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // object type selector
	Page  *v2.PaginationRequest    `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`   // pagination request
	// 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 {
	Results []*v2.RelationType     `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // array of relation types
	Page    *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`       // pagination response
	// 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 {
	Param *v2.RelationIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"` // relation selector
	Page  *v2.PaginationRequest  `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`   // pagination request
	// 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 {
	Results []*v2.Relation         `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` // array of relation instances
	Page    *v2.PaginationResponse `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`       // pagination response
	// 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 methods
	CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error)
	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 methods
	CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
	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