Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContextualTuples ¶
type ContextualTuples struct {
// contains filtered or unexported fields
}
func New ¶
func New(typesys *typesystem.TypeSystem, tupleKeys []*openfgapb.TupleKey) (*ContextualTuples, error)
New validates the input tuples against the typesystem and, if valid, returns those tuples as ContextualTuples
func (*ContextualTuples) Read ¶
func (c *ContextualTuples) Read(tk *openfgapb.TupleKey) []*openfgapb.TupleKey
Read returns the list of contextual tuples that match 'object#relation'
func (*ContextualTuples) ReadUserTuple ¶
ReadUserTuple returns, if found, a contextual tuple that matches the input 'object#relation@user' and a bool indicating whether such tuple was found.
func (*ContextualTuples) ReadUsersetTuples ¶
func (c *ContextualTuples) ReadUsersetTuples(tk *openfgapb.TupleKey) []*openfgapb.TupleKey
ReadUsersetTuples returns the list of tuples that match the input 'object#relation' and whose user is a userset
Click to show internal directories.
Click to hide internal directories.