Documentation ¶
Index ¶
- type Exporter
- type Importer
- type Model
- type Reader
- func (s *Reader) Check(ctx context.Context, req *dsr3.CheckRequest) (*dsr3.CheckResponse, error)
- func (s *Reader) CheckPermission(ctx context.Context, req *dsr3.CheckPermissionRequest) (*dsr3.CheckPermissionResponse, error)
- func (s *Reader) CheckRelation(ctx context.Context, req *dsr3.CheckRelationRequest) (*dsr3.CheckRelationResponse, error)
- func (s *Reader) GetGraph(ctx context.Context, req *dsr3.GetGraphRequest) (*dsr3.GetGraphResponse, error)
- func (s *Reader) GetObject(ctx context.Context, req *dsr3.GetObjectRequest) (*dsr3.GetObjectResponse, error)
- func (s *Reader) GetObjectMany(ctx context.Context, req *dsr3.GetObjectManyRequest) (*dsr3.GetObjectManyResponse, error)
- func (s *Reader) GetObjects(ctx context.Context, req *dsr3.GetObjectsRequest) (*dsr3.GetObjectsResponse, error)
- func (s *Reader) GetRelation(ctx context.Context, req *dsr3.GetRelationRequest) (*dsr3.GetRelationResponse, error)
- func (s *Reader) GetRelations(ctx context.Context, req *dsr3.GetRelationsRequest) (*dsr3.GetRelationsResponse, error)
- func (s *Reader) Validate(msg proto.Message) error
- type Writer
- func (s *Writer) DeleteObject(ctx context.Context, req *dsw3.DeleteObjectRequest) (*dsw3.DeleteObjectResponse, error)
- func (s *Writer) DeleteRelation(ctx context.Context, req *dsw3.DeleteRelationRequest) (*dsw3.DeleteRelationResponse, error)
- func (s *Writer) SetObject(ctx context.Context, req *dsw3.SetObjectRequest) (*dsw3.SetObjectResponse, error)
- func (s *Writer) SetRelation(ctx context.Context, req *dsw3.SetRelationRequest) (*dsw3.SetRelationResponse, error)
- func (s *Writer) Validate(msg proto.Message) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter struct {
// contains filtered or unexported fields
}
func NewExporter ¶
func (*Exporter) Export ¶
func (s *Exporter) Export(req *dse3.ExportRequest, stream dse3.Exporter_ExportServer) error
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func NewImporter ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) DeleteManifest ¶
func (s *Model) DeleteManifest(ctx context.Context, req *dsm3.DeleteManifestRequest) (*dsm3.DeleteManifestResponse, error)
func (*Model) GetManifest ¶
func (s *Model) GetManifest(req *dsm3.GetManifestRequest, stream dsm3.Model_GetManifestServer) error
func (*Model) SetManifest ¶
func (s *Model) SetManifest(stream dsm3.Model_SetManifestServer) error
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) Check ¶
func (s *Reader) Check(ctx context.Context, req *dsr3.CheckRequest) (*dsr3.CheckResponse, error)
Check, if subject is permitted to access resource (object).
func (*Reader) CheckPermission ¶
func (s *Reader) CheckPermission(ctx context.Context, req *dsr3.CheckPermissionRequest) (*dsr3.CheckPermissionResponse, error)
CheckPermission, check if subject is permitted to access resource (object).
func (*Reader) CheckRelation ¶
func (s *Reader) CheckRelation(ctx context.Context, req *dsr3.CheckRelationRequest) (*dsr3.CheckRelationResponse, error)
CheckRelation, check if subject has the specified relation to a resource (object).
func (*Reader) GetGraph ¶
func (s *Reader) GetGraph(ctx context.Context, req *dsr3.GetGraphRequest) (*dsr3.GetGraphResponse, error)
GetGraph, return graph of connected objects and relations for requested anchor subject/object.
func (*Reader) GetObject ¶
func (s *Reader) GetObject(ctx context.Context, req *dsr3.GetObjectRequest) (*dsr3.GetObjectResponse, error)
GetObject, get single object instance.
func (*Reader) GetObjectMany ¶
func (s *Reader) GetObjectMany(ctx context.Context, req *dsr3.GetObjectManyRequest) (*dsr3.GetObjectManyResponse, error)
GetObjectMany, get multiple object instances by type+id, in a single request.
func (*Reader) GetObjects ¶
func (s *Reader) GetObjects(ctx context.Context, req *dsr3.GetObjectsRequest) (*dsr3.GetObjectsResponse, error)
GetObjects, gets (all) object instances, optionally filtered by object type, as a paginated array of objects.
func (*Reader) GetRelation ¶
func (s *Reader) GetRelation(ctx context.Context, req *dsr3.GetRelationRequest) (*dsr3.GetRelationResponse, error)
GetRelation, get a single relation instance based on subject, relation, object filter.
func (*Reader) GetRelations ¶
func (s *Reader) GetRelations(ctx context.Context, req *dsr3.GetRelationsRequest) (*dsr3.GetRelationsResponse, error)
GetRelations, gets paginated set of relation instances based on subject, relation, object filter.
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) DeleteObject ¶
func (s *Writer) DeleteObject(ctx context.Context, req *dsw3.DeleteObjectRequest) (*dsw3.DeleteObjectResponse, error)
func (*Writer) DeleteRelation ¶
func (s *Writer) DeleteRelation(ctx context.Context, req *dsw3.DeleteRelationRequest) (*dsw3.DeleteRelationResponse, error)
func (*Writer) SetObject ¶
func (s *Writer) SetObject(ctx context.Context, req *dsw3.SetObjectRequest) (*dsw3.SetObjectResponse, error)
object methods.
func (*Writer) SetRelation ¶
func (s *Writer) SetRelation(ctx context.Context, req *dsw3.SetRelationRequest) (*dsw3.SetRelationResponse, error)
relation methods.