Documentation ¶
Index ¶
- func Check(ctx context.Context, service services.IPermissionService, subject *v1.Subject, ...) (res commands.CheckResponse, err error)
- func DeleteTuple(ctx context.Context, service services.IRelationshipService, tuple *v1.Tuple) (err error)
- func LookupQuery(ctx context.Context, service services.IPermissionService, entityType string, ...) (res commands.LookupQueryResponse, err error)
- func ReadSchema(ctx context.Context, manager managers.IEntityConfigManager, version string) (sch *v1.Schema, err error)
- func ReadTuple(ctx context.Context, service services.IRelationshipService, ...) (tuples tuple.ITupleCollection, err error)
- func WriteSchema(ctx context.Context, manager managers.IEntityConfigManager, configs string) (version string, err error)
- func WriteTuple(ctx context.Context, service services.IRelationshipService, tuple *v1.Tuple, ...) (err error)
- type Development
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
func Check(ctx context.Context, service services.IPermissionService, subject *v1.Subject, action string, entity *v1.Entity, version string) (res commands.CheckResponse, err error)
Check -
func DeleteTuple ¶
func DeleteTuple(ctx context.Context, service services.IRelationshipService, tuple *v1.Tuple) (err error)
DeleteTuple -
func LookupQuery ¶
func LookupQuery(ctx context.Context, service services.IPermissionService, entityType string, action string, subject *v1.Subject, version string) (res commands.LookupQueryResponse, err error)
LookupQuery -
func ReadSchema ¶
func ReadSchema(ctx context.Context, manager managers.IEntityConfigManager, version string) (sch *v1.Schema, err error)
ReadSchema -
func ReadTuple ¶
func ReadTuple(ctx context.Context, service services.IRelationshipService, filter *v1.TupleFilter) (tuples tuple.ITupleCollection, err error)
ReadTuple -
func WriteSchema ¶
func WriteSchema(ctx context.Context, manager managers.IEntityConfigManager, configs string) (version string, err error)
WriteSchema -
func WriteTuple ¶
func WriteTuple(ctx context.Context, service services.IRelationshipService, tuple *v1.Tuple, version string) (err error)
WriteTuple -
Types ¶
type Development ¶ added in v0.4.0
type Development struct { P services.IPermissionService R services.IRelationshipService M managers.IEntityConfigManager }
Development -
Click to show internal directories.
Click to hide internal directories.