Documentation ¶
Index ¶
- type Exporter
- type Importer
- type Reader
- func (s *Reader) CheckPermission(ctx context.Context, req *dsr2.CheckPermissionRequest) (*dsr2.CheckPermissionResponse, error)
- func (s *Reader) CheckRelation(ctx context.Context, req *dsr2.CheckRelationRequest) (*dsr2.CheckRelationResponse, error)
- func (s *Reader) GetGraph(ctx context.Context, req *dsr2.GetGraphRequest) (*dsr2.GetGraphResponse, error)
- func (s *Reader) GetObject(ctx context.Context, req *dsr2.GetObjectRequest) (*dsr2.GetObjectResponse, error)
- func (s *Reader) GetObjectMany(ctx context.Context, req *dsr2.GetObjectManyRequest) (*dsr2.GetObjectManyResponse, error)
- func (s *Reader) GetObjectType(ctx context.Context, req *dsr2.GetObjectTypeRequest) (*dsr2.GetObjectTypeResponse, error)
- func (s *Reader) GetObjectTypes(ctx context.Context, req *dsr2.GetObjectTypesRequest) (*dsr2.GetObjectTypesResponse, error)
- func (s *Reader) GetObjects(ctx context.Context, req *dsr2.GetObjectsRequest) (*dsr2.GetObjectsResponse, error)
- func (s *Reader) GetPermission(ctx context.Context, req *dsr2.GetPermissionRequest) (*dsr2.GetPermissionResponse, error)
- func (s *Reader) GetPermissions(ctx context.Context, req *dsr2.GetPermissionsRequest) (*dsr2.GetPermissionsResponse, error)
- func (s *Reader) GetRelation(ctx context.Context, req *dsr2.GetRelationRequest) (*dsr2.GetRelationResponse, error)
- func (s *Reader) GetRelationType(ctx context.Context, req *dsr2.GetRelationTypeRequest) (*dsr2.GetRelationTypeResponse, error)
- func (s *Reader) GetRelationTypes(ctx context.Context, req *dsr2.GetRelationTypesRequest) (*dsr2.GetRelationTypesResponse, error)
- func (s *Reader) GetRelations(ctx context.Context, req *dsr2.GetRelationsRequest) (*dsr2.GetRelationsResponse, error)
- type Writer
- func (s *Writer) DeleteObject(ctx context.Context, req *dsw2.DeleteObjectRequest) (*dsw2.DeleteObjectResponse, error)
- func (s *Writer) DeleteObjectType(_ context.Context, _ *dsw2.DeleteObjectTypeRequest) (*dsw2.DeleteObjectTypeResponse, error)
- func (s *Writer) DeletePermission(_ context.Context, _ *dsw2.DeletePermissionRequest) (*dsw2.DeletePermissionResponse, error)
- func (s *Writer) DeleteRelation(ctx context.Context, req *dsw2.DeleteRelationRequest) (*dsw2.DeleteRelationResponse, error)
- func (s *Writer) DeleteRelationType(_ context.Context, _ *dsw2.DeleteRelationTypeRequest) (*dsw2.DeleteRelationTypeResponse, error)
- func (s *Writer) SetObject(ctx context.Context, req *dsw2.SetObjectRequest) (*dsw2.SetObjectResponse, error)
- func (s *Writer) SetObjectType(_ context.Context, _ *dsw2.SetObjectTypeRequest) (*dsw2.SetObjectTypeResponse, error)
- func (s *Writer) SetPermission(_ context.Context, _ *dsw2.SetPermissionRequest) (*dsw2.SetPermissionResponse, error)
- func (s *Writer) SetRelation(ctx context.Context, req *dsw2.SetRelationRequest) (*dsw2.SetRelationResponse, error)
- func (s *Writer) SetRelationType(_ context.Context, _ *dsw2.SetRelationTypeRequest) (*dsw2.SetRelationTypeResponse, 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 *dse2.ExportRequest, stream dse2.Exporter_ExportServer) error
type Importer ¶
type Importer struct {
// contains filtered or unexported fields
}
func NewImporter ¶
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
func (*Reader) CheckPermission ¶
func (s *Reader) CheckPermission(ctx context.Context, req *dsr2.CheckPermissionRequest) (*dsr2.CheckPermissionResponse, error)
Check if subject has permission on object.
func (*Reader) CheckRelation ¶
func (s *Reader) CheckRelation(ctx context.Context, req *dsr2.CheckRelationRequest) (*dsr2.CheckRelationResponse, error)
Check if subject has relation to object.
func (*Reader) GetGraph ¶
func (s *Reader) GetGraph(ctx context.Context, req *dsr2.GetGraphRequest) (*dsr2.GetGraphResponse, error)
Get object dependency graph.
func (*Reader) GetObject ¶
func (s *Reader) GetObject(ctx context.Context, req *dsr2.GetObjectRequest) (*dsr2.GetObjectResponse, error)
Get single object instance.
func (*Reader) GetObjectMany ¶
func (s *Reader) GetObjectMany(ctx context.Context, req *dsr2.GetObjectManyRequest) (*dsr2.GetObjectManyResponse, error)
Get multiple object instances by id or type+key, in a single request.
func (*Reader) GetObjectType ¶
func (s *Reader) GetObjectType(ctx context.Context, req *dsr2.GetObjectTypeRequest) (*dsr2.GetObjectTypeResponse, error)
Get object type (metadata).
func (*Reader) GetObjectTypes ¶
func (s *Reader) GetObjectTypes(ctx context.Context, req *dsr2.GetObjectTypesRequest) (*dsr2.GetObjectTypesResponse, error)
Get all objects types (metadata) (paginated).
func (*Reader) GetObjects ¶
func (s *Reader) GetObjects(ctx context.Context, req *dsr2.GetObjectsRequest) (*dsr2.GetObjectsResponse, error)
Get all object instances, optionally filtered by object type. (paginated).
func (*Reader) GetPermission ¶
func (s *Reader) GetPermission(ctx context.Context, req *dsr2.GetPermissionRequest) (*dsr2.GetPermissionResponse, error)
Get permission (metadata).
func (*Reader) GetPermissions ¶
func (s *Reader) GetPermissions(ctx context.Context, req *dsr2.GetPermissionsRequest) (*dsr2.GetPermissionsResponse, error)
Get all permissions (metadata) (paginated).
func (*Reader) GetRelation ¶
func (s *Reader) GetRelation(ctx context.Context, req *dsr2.GetRelationRequest) (*dsr2.GetRelationResponse, error)
Get relation instances based on subject, relation, object filter.
func (*Reader) GetRelationType ¶
func (s *Reader) GetRelationType(ctx context.Context, req *dsr2.GetRelationTypeRequest) (*dsr2.GetRelationTypeResponse, error)
Get relation type (metadata).
func (*Reader) GetRelationTypes ¶
func (s *Reader) GetRelationTypes(ctx context.Context, req *dsr2.GetRelationTypesRequest) (*dsr2.GetRelationTypesResponse, error)
Get all relation types, optionally filtered by object type (metadata) (paginated).
func (*Reader) GetRelations ¶
func (s *Reader) GetRelations(ctx context.Context, req *dsr2.GetRelationsRequest) (*dsr2.GetRelationsResponse, error)
Get relation instances based on subject, relation, object filter (paginated).
type Writer ¶
type Writer struct {
// contains filtered or unexported fields
}
func (*Writer) DeleteObject ¶
func (s *Writer) DeleteObject(ctx context.Context, req *dsw2.DeleteObjectRequest) (*dsw2.DeleteObjectResponse, error)
DeleteObject, implementation is delegated to writer.v3.DeleteObject.
func (*Writer) DeleteObjectType ¶
func (s *Writer) DeleteObjectType(_ context.Context, _ *dsw2.DeleteObjectTypeRequest) (*dsw2.DeleteObjectTypeResponse, error)
DeleteObjectType, obsolete, use set manifest to manipulate metadata.
func (*Writer) DeletePermission ¶
func (s *Writer) DeletePermission(_ context.Context, _ *dsw2.DeletePermissionRequest) (*dsw2.DeletePermissionResponse, error)
DeletePermission, obsolete, use set manifest to manipulate metadata.
func (*Writer) DeleteRelation ¶
func (s *Writer) DeleteRelation(ctx context.Context, req *dsw2.DeleteRelationRequest) (*dsw2.DeleteRelationResponse, error)
DeleteRelation, implementation is delegated to writer.v3.DeleteRelation.
func (*Writer) DeleteRelationType ¶
func (s *Writer) DeleteRelationType(_ context.Context, _ *dsw2.DeleteRelationTypeRequest) (*dsw2.DeleteRelationTypeResponse, error)
DeleteRelationType, obsolete, use set manifest to manipulate metadata.
func (*Writer) SetObject ¶
func (s *Writer) SetObject(ctx context.Context, req *dsw2.SetObjectRequest) (*dsw2.SetObjectResponse, error)
SetObject, implementation is delegated to writer.v3.SetObject.
func (*Writer) SetObjectType ¶
func (s *Writer) SetObjectType(_ context.Context, _ *dsw2.SetObjectTypeRequest) (*dsw2.SetObjectTypeResponse, error)
SetObjectType, obsolete, use set manifest to manipulate metadata.
func (*Writer) SetPermission ¶
func (s *Writer) SetPermission(_ context.Context, _ *dsw2.SetPermissionRequest) (*dsw2.SetPermissionResponse, error)
SetPermission, obsolete, use set manifest to manipulate metadata.
func (*Writer) SetRelation ¶
func (s *Writer) SetRelation(ctx context.Context, req *dsw2.SetRelationRequest) (*dsw2.SetRelationResponse, error)
SetRelation, implementation is delegated to writer.v3.SetRelation.
func (*Writer) SetRelationType ¶
func (s *Writer) SetRelationType(_ context.Context, _ *dsw2.SetRelationTypeRequest) (*dsw2.SetRelationTypeResponse, error)
SetRelationType, obsolete, use set manifest to manipulate metadata.