Documentation ¶
Index ¶
- func Check(ctx context.Context, service services.IPermissionService, subject *v1.Subject, ...) (res *v1.PermissionCheckResponse, err error)
- func DeleteTuple(ctx context.Context, service services.IRelationshipService, ...) (token token.EncodedSnapToken, err error)
- func LookupEntity(ctx context.Context, service services.IPermissionService, subject *v1.Subject, ...) (res *v1.PermissionLookupEntityResponse, err error)
- func ReadSchema(ctx context.Context, service services.ISchemaService, version string) (sch *v1.SchemaDefinition, err error)
- func ReadTuple(ctx context.Context, service services.IRelationshipService, ...) (tuples *database.TupleCollection, ...)
- func WriteSchema(ctx context.Context, service services.ISchemaService, schema string) (version string, err error)
- func WriteTuple(ctx context.Context, service services.IRelationshipService, tuples []*v1.Tuple, ...) (token token.EncodedSnapToken, err error)
- type Container
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, snapToken string) (res *v1.PermissionCheckResponse, err error)
Check - Creates new permission check request
func DeleteTuple ¶
func DeleteTuple(ctx context.Context, service services.IRelationshipService, filter *v1.TupleFilter) (token token.EncodedSnapToken, err error)
DeleteTuple - Creates new delete relation tuple request
func LookupEntity ¶
func LookupEntity(ctx context.Context, service services.IPermissionService, subject *v1.Subject, permission, entityType, version, snapToken string) (res *v1.PermissionLookupEntityResponse, err error)
LookupEntity -
func ReadSchema ¶
func ReadSchema(ctx context.Context, service services.ISchemaService, version string) (sch *v1.SchemaDefinition, err error)
ReadSchema - Creates new read schema request
func ReadTuple ¶
func ReadTuple(ctx context.Context, service services.IRelationshipService, filter *v1.TupleFilter, snap string) (tuples *database.TupleCollection, continuousToken database.EncodedContinuousToken, err error)
ReadTuple - Creates new read API request
func WriteSchema ¶
func WriteSchema(ctx context.Context, service services.ISchemaService, schema string) (version string, err error)
WriteSchema - Creates new write schema request
func WriteTuple ¶
func WriteTuple(ctx context.Context, service services.IRelationshipService, tuples []*v1.Tuple, version string) (token token.EncodedSnapToken, err error)
WriteTuple - Creates new write API request
Types ¶
type Container ¶
type Container struct { P services.IPermissionService R services.IRelationshipService S services.ISchemaService }
Container - Structure for container instance
Click to show internal directories.
Click to hide internal directories.