Documentation ¶
Index ¶
- type Development
- func (c *Development) Check(ctx context.Context, subject *v1.Subject, action string, entity *v1.Entity) (*v1.PermissionCheckResponse, error)
- func (c *Development) DeleteTuple(ctx context.Context, filter *v1.TupleFilter) (token token.EncodedSnapToken, err error)
- func (c *Development) LookupEntity(ctx context.Context, subject *v1.Subject, permission, entityType string) (res *v1.PermissionLookupEntityResponse, err error)
- func (c *Development) ReadSchema(ctx context.Context) (sch *v1.SchemaDefinition, err error)
- func (c *Development) ReadTuple(ctx context.Context, filter *v1.TupleFilter) (tuples *database.TupleCollection, ...)
- func (c *Development) WriteSchema(ctx context.Context, schema string) (err error)
- func (c *Development) WriteTuple(ctx context.Context, tuples []*v1.Tuple) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Development ¶ added in v0.4.0
func NewContainer ¶
func NewContainer() *Development
func (*Development) Check ¶ added in v0.4.0
func (c *Development) Check(ctx context.Context, subject *v1.Subject, action string, entity *v1.Entity) (*v1.PermissionCheckResponse, error)
Check - Creates new permission check request
func (*Development) DeleteTuple ¶ added in v0.4.0
func (c *Development) DeleteTuple(ctx context.Context, filter *v1.TupleFilter) (token token.EncodedSnapToken, err error)
DeleteTuple - Creates new delete relation tuple request
func (*Development) LookupEntity ¶ added in v0.4.0
func (c *Development) LookupEntity(ctx context.Context, subject *v1.Subject, permission, entityType string) (res *v1.PermissionLookupEntityResponse, err error)
LookupEntity - Looks up an entity's permissions for a given subject and permission
func (*Development) ReadSchema ¶ added in v0.4.0
func (c *Development) ReadSchema(ctx context.Context) (sch *v1.SchemaDefinition, err error)
ReadSchema - Creates new read schema request
func (*Development) ReadTuple ¶ added in v0.4.0
func (c *Development) ReadTuple(ctx context.Context, filter *v1.TupleFilter) (tuples *database.TupleCollection, continuousToken database.EncodedContinuousToken, err error)
ReadTuple - Creates new read API request
func (*Development) WriteSchema ¶ added in v0.4.0
func (c *Development) WriteSchema(ctx context.Context, schema string) (err error)
WriteSchema - Creates new write schema request
func (*Development) WriteTuple ¶ added in v0.4.0
WriteTuple - Creates new write API request
Click to show internal directories.
Click to hide internal directories.