Documentation
¶
Overview ¶
Package reader is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterReaderHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterReaderHandlerClient(ctx context.Context, mux *runtime.ServeMux, client ReaderClient) error
- func RegisterReaderHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterReaderHandlerServer(ctx context.Context, mux *runtime.ServeMux, server ReaderServer) error
- func RegisterReaderServer(s grpc.ServiceRegistrar, srv ReaderServer)
- type CheckPermissionRequestdeprecated
- func (*CheckPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPermissionRequest) GetObject() *v2.ObjectIdentifier
- func (x *CheckPermissionRequest) GetPermission() *v2.PermissionIdentifier
- func (x *CheckPermissionRequest) GetSubject() *v2.ObjectIdentifier
- func (x *CheckPermissionRequest) GetTrace() bool
- func (*CheckPermissionRequest) ProtoMessage()
- func (x *CheckPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *CheckPermissionRequest) Reset()
- func (x *CheckPermissionRequest) String() string
- type CheckPermissionResponsedeprecated
- func (*CheckPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckPermissionResponse) GetCheck() bool
- func (x *CheckPermissionResponse) GetTrace() []string
- func (*CheckPermissionResponse) ProtoMessage()
- func (x *CheckPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *CheckPermissionResponse) Reset()
- func (x *CheckPermissionResponse) String() string
- type CheckRelationRequestdeprecated
- func (*CheckRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRelationRequest) GetObject() *v2.ObjectIdentifier
- func (x *CheckRelationRequest) GetRelation() *v2.RelationTypeIdentifier
- func (x *CheckRelationRequest) GetSubject() *v2.ObjectIdentifier
- func (x *CheckRelationRequest) GetTrace() bool
- func (*CheckRelationRequest) ProtoMessage()
- func (x *CheckRelationRequest) ProtoReflect() protoreflect.Message
- func (x *CheckRelationRequest) Reset()
- func (x *CheckRelationRequest) String() string
- type CheckRelationResponsedeprecated
- func (*CheckRelationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckRelationResponse) GetCheck() bool
- func (x *CheckRelationResponse) GetTrace() []string
- func (*CheckRelationResponse) ProtoMessage()
- func (x *CheckRelationResponse) ProtoReflect() protoreflect.Message
- func (x *CheckRelationResponse) Reset()
- func (x *CheckRelationResponse) String() string
- type CheckResponsedeprecated
- func (*CheckResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CheckResponse) GetCheck() bool
- func (x *CheckResponse) GetTrace() []string
- func (*CheckResponse) ProtoMessage()
- func (x *CheckResponse) ProtoReflect() protoreflect.Message
- func (x *CheckResponse) Reset()
- func (x *CheckResponse) String() string
- type GetGraphRequestdeprecated
- func (*GetGraphRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetGraphRequest) GetAnchor() *v2.ObjectIdentifier
- func (x *GetGraphRequest) GetObject() *v2.ObjectIdentifier
- func (x *GetGraphRequest) GetRelation() *v2.RelationTypeIdentifier
- func (x *GetGraphRequest) GetSubject() *v2.ObjectIdentifier
- func (*GetGraphRequest) ProtoMessage()
- func (x *GetGraphRequest) ProtoReflect() protoreflect.Message
- func (x *GetGraphRequest) Reset()
- func (x *GetGraphRequest) String() string
- type GetGraphResponsedeprecated
- func (*GetGraphResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetGraphResponse) GetResults() []*v2.ObjectDependency
- func (*GetGraphResponse) ProtoMessage()
- func (x *GetGraphResponse) ProtoReflect() protoreflect.Message
- func (x *GetGraphResponse) Reset()
- func (x *GetGraphResponse) String() string
- type GetObjectManyRequestdeprecated
- func (*GetObjectManyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectManyRequest) GetParam() []*v2.ObjectIdentifier
- func (*GetObjectManyRequest) ProtoMessage()
- func (x *GetObjectManyRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectManyRequest) Reset()
- func (x *GetObjectManyRequest) String() string
- type GetObjectManyResponsedeprecated
- func (*GetObjectManyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectManyResponse) GetResults() []*v2.Object
- func (*GetObjectManyResponse) ProtoMessage()
- func (x *GetObjectManyResponse) ProtoReflect() protoreflect.Message
- func (x *GetObjectManyResponse) Reset()
- func (x *GetObjectManyResponse) String() string
- type GetObjectRequestdeprecated
- func (*GetObjectRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectRequest) GetPage() *v2.PaginationRequest
- func (x *GetObjectRequest) GetParam() *v2.ObjectIdentifier
- func (x *GetObjectRequest) GetWithRelations() bool
- func (*GetObjectRequest) ProtoMessage()
- func (x *GetObjectRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectRequest) Reset()
- func (x *GetObjectRequest) String() string
- type GetObjectResponsedeprecated
- func (*GetObjectResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectResponse) GetPage() *v2.PaginationResponse
- func (x *GetObjectResponse) GetRelations() []*v2.Relation
- func (x *GetObjectResponse) GetResult() *v2.Object
- func (*GetObjectResponse) ProtoMessage()
- func (x *GetObjectResponse) ProtoReflect() protoreflect.Message
- func (x *GetObjectResponse) Reset()
- func (x *GetObjectResponse) String() string
- type GetObjectTypeRequestdeprecated
- func (*GetObjectTypeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectTypeRequest) GetParam() *v2.ObjectTypeIdentifier
- func (*GetObjectTypeRequest) ProtoMessage()
- func (x *GetObjectTypeRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectTypeRequest) Reset()
- func (x *GetObjectTypeRequest) String() string
- type GetObjectTypeResponsedeprecated
- func (*GetObjectTypeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectTypeResponse) GetResult() *v2.ObjectType
- func (*GetObjectTypeResponse) ProtoMessage()
- func (x *GetObjectTypeResponse) ProtoReflect() protoreflect.Message
- func (x *GetObjectTypeResponse) Reset()
- func (x *GetObjectTypeResponse) String() string
- type GetObjectTypesRequestdeprecated
- func (*GetObjectTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectTypesRequest) GetPage() *v2.PaginationRequest
- func (*GetObjectTypesRequest) ProtoMessage()
- func (x *GetObjectTypesRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectTypesRequest) Reset()
- func (x *GetObjectTypesRequest) String() string
- type GetObjectTypesResponsedeprecated
- func (*GetObjectTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectTypesResponse) GetPage() *v2.PaginationResponse
- func (x *GetObjectTypesResponse) GetResults() []*v2.ObjectType
- func (*GetObjectTypesResponse) ProtoMessage()
- func (x *GetObjectTypesResponse) ProtoReflect() protoreflect.Message
- func (x *GetObjectTypesResponse) Reset()
- func (x *GetObjectTypesResponse) String() string
- type GetObjectsRequestdeprecated
- func (*GetObjectsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectsRequest) GetPage() *v2.PaginationRequest
- func (x *GetObjectsRequest) GetParam() *v2.ObjectTypeIdentifier
- func (*GetObjectsRequest) ProtoMessage()
- func (x *GetObjectsRequest) ProtoReflect() protoreflect.Message
- func (x *GetObjectsRequest) Reset()
- func (x *GetObjectsRequest) String() string
- type GetObjectsResponsedeprecated
- func (*GetObjectsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetObjectsResponse) GetPage() *v2.PaginationResponse
- func (x *GetObjectsResponse) GetResults() []*v2.Object
- func (*GetObjectsResponse) ProtoMessage()
- func (x *GetObjectsResponse) ProtoReflect() protoreflect.Message
- func (x *GetObjectsResponse) Reset()
- func (x *GetObjectsResponse) String() string
- type GetPermissionRequestdeprecated
- func (*GetPermissionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionRequest) GetParam() *v2.PermissionIdentifier
- func (*GetPermissionRequest) ProtoMessage()
- func (x *GetPermissionRequest) ProtoReflect() protoreflect.Message
- func (x *GetPermissionRequest) Reset()
- func (x *GetPermissionRequest) String() string
- type GetPermissionResponsedeprecated
- func (*GetPermissionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionResponse) GetResult() *v2.Permission
- func (*GetPermissionResponse) ProtoMessage()
- func (x *GetPermissionResponse) ProtoReflect() protoreflect.Message
- func (x *GetPermissionResponse) Reset()
- func (x *GetPermissionResponse) String() string
- type GetPermissionsRequestdeprecated
- func (*GetPermissionsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionsRequest) GetPage() *v2.PaginationRequest
- func (*GetPermissionsRequest) ProtoMessage()
- func (x *GetPermissionsRequest) ProtoReflect() protoreflect.Message
- func (x *GetPermissionsRequest) Reset()
- func (x *GetPermissionsRequest) String() string
- type GetPermissionsResponsedeprecated
- func (*GetPermissionsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetPermissionsResponse) GetPage() *v2.PaginationResponse
- func (x *GetPermissionsResponse) GetResults() []*v2.Permission
- func (*GetPermissionsResponse) ProtoMessage()
- func (x *GetPermissionsResponse) ProtoReflect() protoreflect.Message
- func (x *GetPermissionsResponse) Reset()
- func (x *GetPermissionsResponse) String() string
- type GetRelationRequestdeprecated
- func (*GetRelationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationRequest) GetParam() *v2.RelationIdentifier
- func (x *GetRelationRequest) GetWithObjects() bool
- func (*GetRelationRequest) ProtoMessage()
- func (x *GetRelationRequest) ProtoReflect() protoreflect.Message
- func (x *GetRelationRequest) Reset()
- func (x *GetRelationRequest) String() string
- type GetRelationResponsedeprecated
- func (*GetRelationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationResponse) GetObjects() map[string]*v2.Object
- func (x *GetRelationResponse) GetResults() []*v2.Relation
- func (*GetRelationResponse) ProtoMessage()
- func (x *GetRelationResponse) ProtoReflect() protoreflect.Message
- func (x *GetRelationResponse) Reset()
- func (x *GetRelationResponse) String() string
- type GetRelationTypeRequestdeprecated
- func (*GetRelationTypeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationTypeRequest) GetParam() *v2.RelationTypeIdentifier
- func (*GetRelationTypeRequest) ProtoMessage()
- func (x *GetRelationTypeRequest) ProtoReflect() protoreflect.Message
- func (x *GetRelationTypeRequest) Reset()
- func (x *GetRelationTypeRequest) String() string
- type GetRelationTypeResponsedeprecated
- func (*GetRelationTypeResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationTypeResponse) GetResult() *v2.RelationType
- func (*GetRelationTypeResponse) ProtoMessage()
- func (x *GetRelationTypeResponse) ProtoReflect() protoreflect.Message
- func (x *GetRelationTypeResponse) Reset()
- func (x *GetRelationTypeResponse) String() string
- type GetRelationTypesRequestdeprecated
- func (*GetRelationTypesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationTypesRequest) GetPage() *v2.PaginationRequest
- func (x *GetRelationTypesRequest) GetParam() *v2.ObjectTypeIdentifier
- func (*GetRelationTypesRequest) ProtoMessage()
- func (x *GetRelationTypesRequest) ProtoReflect() protoreflect.Message
- func (x *GetRelationTypesRequest) Reset()
- func (x *GetRelationTypesRequest) String() string
- type GetRelationTypesResponsedeprecated
- func (*GetRelationTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationTypesResponse) GetPage() *v2.PaginationResponse
- func (x *GetRelationTypesResponse) GetResults() []*v2.RelationType
- func (*GetRelationTypesResponse) ProtoMessage()
- func (x *GetRelationTypesResponse) ProtoReflect() protoreflect.Message
- func (x *GetRelationTypesResponse) Reset()
- func (x *GetRelationTypesResponse) String() string
- type GetRelationsRequestdeprecated
- func (*GetRelationsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationsRequest) GetPage() *v2.PaginationRequest
- func (x *GetRelationsRequest) GetParam() *v2.RelationIdentifier
- func (*GetRelationsRequest) ProtoMessage()
- func (x *GetRelationsRequest) ProtoReflect() protoreflect.Message
- func (x *GetRelationsRequest) Reset()
- func (x *GetRelationsRequest) String() string
- type GetRelationsResponsedeprecated
- func (*GetRelationsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetRelationsResponse) GetPage() *v2.PaginationResponse
- func (x *GetRelationsResponse) GetResults() []*v2.Relation
- func (*GetRelationsResponse) ProtoMessage()
- func (x *GetRelationsResponse) ProtoReflect() protoreflect.Message
- func (x *GetRelationsResponse) Reset()
- func (x *GetRelationsResponse) String() string
- type ReaderClient
- type ReaderServer
- type UnimplementedReaderServer
- func (UnimplementedReaderServer) CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
- func (UnimplementedReaderServer) CheckRelation(context.Context, *CheckRelationRequest) (*CheckRelationResponse, error)
- func (UnimplementedReaderServer) GetGraph(context.Context, *GetGraphRequest) (*GetGraphResponse, error)
- func (UnimplementedReaderServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
- func (UnimplementedReaderServer) GetObjectMany(context.Context, *GetObjectManyRequest) (*GetObjectManyResponse, error)
- func (UnimplementedReaderServer) GetObjectType(context.Context, *GetObjectTypeRequest) (*GetObjectTypeResponse, error)
- func (UnimplementedReaderServer) GetObjectTypes(context.Context, *GetObjectTypesRequest) (*GetObjectTypesResponse, error)
- func (UnimplementedReaderServer) GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error)
- func (UnimplementedReaderServer) GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
- func (UnimplementedReaderServer) GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
- func (UnimplementedReaderServer) GetRelation(context.Context, *GetRelationRequest) (*GetRelationResponse, error)
- func (UnimplementedReaderServer) GetRelationType(context.Context, *GetRelationTypeRequest) (*GetRelationTypeResponse, error)
- func (UnimplementedReaderServer) GetRelationTypes(context.Context, *GetRelationTypesRequest) (*GetRelationTypesResponse, error)
- func (UnimplementedReaderServer) GetRelations(context.Context, *GetRelationsRequest) (*GetRelationsResponse, error)
- type UnsafeReaderServer
Constants ¶
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 ¶
var File_aserto_directory_reader_v2_reader_proto protoreflect.FileDescriptor
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 ¶
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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 (x *CheckRelationRequest) GetRelation() *v2.RelationTypeIdentifier
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
type GetGraphResponse struct {
// dependency graph
Results []*v2.ObjectDependency `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
type GetObjectManyRequest struct {
// object identifier list
Param []*v2.ObjectIdentifier `protobuf:"bytes,1,rep,name=param,proto3" json:"param,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
type GetObjectTypeRequest struct {
// object type selector
Param *v2.ObjectTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetObjectTypeRequest) Descriptor
deprecated
func (*GetObjectTypeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectTypeRequest.ProtoReflect.Descriptor instead.
func (*GetObjectTypeRequest) GetParam ¶
func (x *GetObjectTypeRequest) GetParam() *v2.ObjectTypeIdentifier
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
deprecated
type GetObjectTypeResponse struct {
// object type instance
Result *v2.ObjectType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
type GetObjectTypesRequest struct {
// pagination request
Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetObjectTypesRequest) Descriptor
deprecated
func (*GetObjectTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectTypesRequest.ProtoReflect.Descriptor instead.
func (*GetObjectTypesRequest) GetPage ¶
func (x *GetObjectTypesRequest) GetPage() *v2.PaginationRequest
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetObjectTypesResponse) Descriptor
deprecated
func (*GetObjectTypesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectTypesResponse.ProtoReflect.Descriptor instead.
func (*GetObjectTypesResponse) GetPage ¶
func (x *GetObjectTypesResponse) GetPage() *v2.PaginationResponse
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetObjectsResponse) Descriptor
deprecated
func (*GetObjectsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetObjectsResponse.ProtoReflect.Descriptor instead.
func (*GetObjectsResponse) GetPage ¶
func (x *GetObjectsResponse) GetPage() *v2.PaginationResponse
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
deprecated
type GetPermissionRequest struct {
// permission selector
Param *v2.PermissionIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetPermissionRequest) Descriptor
deprecated
func (*GetPermissionRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionRequest.ProtoReflect.Descriptor instead.
func (*GetPermissionRequest) GetParam ¶
func (x *GetPermissionRequest) GetParam() *v2.PermissionIdentifier
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
deprecated
type GetPermissionResponse struct {
// permission instance
Result *v2.Permission `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
type GetPermissionsRequest struct {
// pagination request
Page *v2.PaginationRequest `protobuf:"bytes,9,opt,name=page,proto3" json:"page,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetPermissionsRequest) Descriptor
deprecated
func (*GetPermissionsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionsRequest.ProtoReflect.Descriptor instead.
func (*GetPermissionsRequest) GetPage ¶
func (x *GetPermissionsRequest) GetPage() *v2.PaginationRequest
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetPermissionsResponse) Descriptor
deprecated
func (*GetPermissionsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetPermissionsResponse.ProtoReflect.Descriptor instead.
func (*GetPermissionsResponse) GetPage ¶
func (x *GetPermissionsResponse) GetPage() *v2.PaginationResponse
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
type GetRelationTypeRequest struct {
// relation type selector
Param *v2.RelationTypeIdentifier `protobuf:"bytes,1,opt,name=param,proto3" json:"param,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetRelationTypeRequest) Descriptor
deprecated
func (*GetRelationTypeRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRelationTypeRequest.ProtoReflect.Descriptor instead.
func (*GetRelationTypeRequest) GetParam ¶
func (x *GetRelationTypeRequest) GetParam() *v2.RelationTypeIdentifier
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
deprecated
type GetRelationTypeResponse struct {
// relation type instance
Result *v2.RelationType `protobuf:"bytes,1,opt,name=result,proto3" json:"result,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetRelationTypesRequest) Descriptor
deprecated
func (*GetRelationTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRelationTypesRequest.ProtoReflect.Descriptor instead.
func (*GetRelationTypesRequest) GetPage ¶
func (x *GetRelationTypesRequest) GetPage() *v2.PaginationRequest
func (*GetRelationTypesRequest) GetParam ¶
func (x *GetRelationTypesRequest) GetParam() *v2.ObjectTypeIdentifier
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetRelationTypesResponse) Descriptor
deprecated
func (*GetRelationTypesResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRelationTypesResponse.ProtoReflect.Descriptor instead.
func (*GetRelationTypesResponse) GetPage ¶
func (x *GetRelationTypesResponse) GetPage() *v2.PaginationResponse
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetRelationsRequest) Descriptor
deprecated
func (*GetRelationsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetRelationsRequest.ProtoReflect.Descriptor instead.
func (*GetRelationsRequest) GetPage ¶
func (x *GetRelationsRequest) GetPage() *v2.PaginationRequest
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
deprecated
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
}
Deprecated: Marked as deprecated in aserto/directory/reader/v2/reader.proto.
func (*GetRelationsResponse) Descriptor
deprecated
func (*GetRelationsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetRelationsResponse.ProtoReflect.Descriptor instead.
func (*GetRelationsResponse) GetPage ¶
func (x *GetRelationsResponse) GetPage() *v2.PaginationResponse
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 {
// Deprecated: Do not use.
// get object type metadata
GetObjectType(ctx context.Context, in *GetObjectTypeRequest, opts ...grpc.CallOption) (*GetObjectTypeResponse, error)
// Deprecated: Do not use.
// list object type metadata
GetObjectTypes(ctx context.Context, in *GetObjectTypesRequest, opts ...grpc.CallOption) (*GetObjectTypesResponse, error)
// Deprecated: Do not use.
// get relation type metadata
GetRelationType(ctx context.Context, in *GetRelationTypeRequest, opts ...grpc.CallOption) (*GetRelationTypeResponse, error)
// Deprecated: Do not use.
// list relation type metadata
GetRelationTypes(ctx context.Context, in *GetRelationTypesRequest, opts ...grpc.CallOption) (*GetRelationTypesResponse, error)
// Deprecated: Do not use.
// get permission metadata
GetPermission(ctx context.Context, in *GetPermissionRequest, opts ...grpc.CallOption) (*GetPermissionResponse, error)
// Deprecated: Do not use.
// list permission metadata
GetPermissions(ctx context.Context, in *GetPermissionsRequest, opts ...grpc.CallOption) (*GetPermissionsResponse, error)
// Deprecated: Do not use.
// get object
// Deprecated: directory.v2.GetObject is deprecated, use directory.v3.GetObject.
GetObject(ctx context.Context, in *GetObjectRequest, opts ...grpc.CallOption) (*GetObjectResponse, error)
// Deprecated: Do not use.
// get multiple objects
// Deprecated: directory.v2.GetObjectMany is deprecated, update to use directory.v3.GetObjectMany.
GetObjectMany(ctx context.Context, in *GetObjectManyRequest, opts ...grpc.CallOption) (*GetObjectManyResponse, error)
// Deprecated: Do not use.
// list objects
// Deprecated: directory.v2.GetObjects is deprecated, update to use directory.v3.GetObjects.
GetObjects(ctx context.Context, in *GetObjectsRequest, opts ...grpc.CallOption) (*GetObjectsResponse, error)
// Deprecated: Do not use.
// get relation
// Deprecated: directory.v2.GetRelation is deprecated, update to use directory.v3.GetRelation.
GetRelation(ctx context.Context, in *GetRelationRequest, opts ...grpc.CallOption) (*GetRelationResponse, error)
// Deprecated: Do not use.
// list relations
// Deprecated: directory.v2.GetRelations is deprecated, update to use directory.v3.GetRelations.
GetRelations(ctx context.Context, in *GetRelationsRequest, opts ...grpc.CallOption) (*GetRelationsResponse, error)
// Deprecated: Do not use.
// check permission
// Deprecated: directory.v2.CheckPermission is deprecated, update to use directory.v3.Check.
CheckPermission(ctx context.Context, in *CheckPermissionRequest, opts ...grpc.CallOption) (*CheckPermissionResponse, error)
// Deprecated: Do not use.
// check relation
// Deprecated: directory.v2.CheckRelation is deprecated, update to use directory.v3.Check.
CheckRelation(ctx context.Context, in *CheckRelationRequest, opts ...grpc.CallOption) (*CheckRelationResponse, error)
// Deprecated: Do not use.
// get object relationship graph
// Deprecated: directory.v2.GetGraph is deprecated, update to use directory.v3.GetGraph.
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 {
// Deprecated: Do not use.
// get object type metadata
GetObjectType(context.Context, *GetObjectTypeRequest) (*GetObjectTypeResponse, error)
// Deprecated: Do not use.
// list object type metadata
GetObjectTypes(context.Context, *GetObjectTypesRequest) (*GetObjectTypesResponse, error)
// Deprecated: Do not use.
// get relation type metadata
GetRelationType(context.Context, *GetRelationTypeRequest) (*GetRelationTypeResponse, error)
// Deprecated: Do not use.
// list relation type metadata
GetRelationTypes(context.Context, *GetRelationTypesRequest) (*GetRelationTypesResponse, error)
// Deprecated: Do not use.
// get permission metadata
GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
// Deprecated: Do not use.
// list permission metadata
GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
// Deprecated: Do not use.
// get object
// Deprecated: directory.v2.GetObject is deprecated, use directory.v3.GetObject.
GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
// Deprecated: Do not use.
// get multiple objects
// Deprecated: directory.v2.GetObjectMany is deprecated, update to use directory.v3.GetObjectMany.
GetObjectMany(context.Context, *GetObjectManyRequest) (*GetObjectManyResponse, error)
// Deprecated: Do not use.
// list objects
// Deprecated: directory.v2.GetObjects is deprecated, update to use directory.v3.GetObjects.
GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error)
// Deprecated: Do not use.
// get relation
// Deprecated: directory.v2.GetRelation is deprecated, update to use directory.v3.GetRelation.
GetRelation(context.Context, *GetRelationRequest) (*GetRelationResponse, error)
// Deprecated: Do not use.
// list relations
// Deprecated: directory.v2.GetRelations is deprecated, update to use directory.v3.GetRelations.
GetRelations(context.Context, *GetRelationsRequest) (*GetRelationsResponse, error)
// Deprecated: Do not use.
// check permission
// Deprecated: directory.v2.CheckPermission is deprecated, update to use directory.v3.Check.
CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
// Deprecated: Do not use.
// check relation
// Deprecated: directory.v2.CheckRelation is deprecated, update to use directory.v3.Check.
CheckRelation(context.Context, *CheckRelationRequest) (*CheckRelationResponse, error)
// Deprecated: Do not use.
// get object relationship graph
// Deprecated: directory.v2.GetGraph is deprecated, update to use directory.v3.GetGraph.
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) CheckPermission(context.Context, *CheckPermissionRequest) (*CheckPermissionResponse, error)
func (UnimplementedReaderServer) CheckRelation ¶
func (UnimplementedReaderServer) CheckRelation(context.Context, *CheckRelationRequest) (*CheckRelationResponse, error)
func (UnimplementedReaderServer) GetGraph ¶
func (UnimplementedReaderServer) GetGraph(context.Context, *GetGraphRequest) (*GetGraphResponse, error)
func (UnimplementedReaderServer) GetObject ¶
func (UnimplementedReaderServer) GetObject(context.Context, *GetObjectRequest) (*GetObjectResponse, error)
func (UnimplementedReaderServer) GetObjectMany ¶
func (UnimplementedReaderServer) GetObjectMany(context.Context, *GetObjectManyRequest) (*GetObjectManyResponse, error)
func (UnimplementedReaderServer) GetObjectType ¶
func (UnimplementedReaderServer) GetObjectType(context.Context, *GetObjectTypeRequest) (*GetObjectTypeResponse, error)
func (UnimplementedReaderServer) GetObjectTypes ¶
func (UnimplementedReaderServer) GetObjectTypes(context.Context, *GetObjectTypesRequest) (*GetObjectTypesResponse, error)
func (UnimplementedReaderServer) GetObjects ¶
func (UnimplementedReaderServer) GetObjects(context.Context, *GetObjectsRequest) (*GetObjectsResponse, error)
func (UnimplementedReaderServer) GetPermission ¶
func (UnimplementedReaderServer) GetPermission(context.Context, *GetPermissionRequest) (*GetPermissionResponse, error)
func (UnimplementedReaderServer) GetPermissions ¶
func (UnimplementedReaderServer) GetPermissions(context.Context, *GetPermissionsRequest) (*GetPermissionsResponse, error)
func (UnimplementedReaderServer) GetRelation ¶
func (UnimplementedReaderServer) GetRelation(context.Context, *GetRelationRequest) (*GetRelationResponse, error)
func (UnimplementedReaderServer) GetRelationType ¶
func (UnimplementedReaderServer) GetRelationType(context.Context, *GetRelationTypeRequest) (*GetRelationTypeResponse, error)
func (UnimplementedReaderServer) GetRelationTypes ¶
func (UnimplementedReaderServer) GetRelationTypes(context.Context, *GetRelationTypesRequest) (*GetRelationTypesResponse, error)
func (UnimplementedReaderServer) GetRelations ¶
func (UnimplementedReaderServer) GetRelations(context.Context, *GetRelationsRequest) (*GetRelationsResponse, error)
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.