Documentation
¶
Index ¶
- func FromFGATupleKey(fgatk openfga.TupleKey) authz.TupleKey
- func NewEntityKeySplit(v string) authz.EntityKey
- func ToFGATupleKey(tk authz.TupleKey) openfga.TupleKey
- type FGAClient
- func (c *FGAClient) Check(ctx context.Context, tk authz.TupleKey, ctxTuples ...authz.TupleKey) (bool, error)
- func (c *FGAClient) CreateModel(ctx context.Context, fn string) (string, error)
- func (c *FGAClient) CreateStore(ctx context.Context, storeName string) (string, error)
- func (c *FGAClient) DeleteTuple(ctx context.Context, tk authz.TupleKey) error
- func (c *FGAClient) GetObjectTuples(ctx context.Context, tk authz.TupleKey) ([]authz.TupleKey, error)
- func (c *FGAClient) ListObjects(ctx context.Context, tk authz.TupleKey) ([]authz.TupleKey, error)
- func (c *FGAClient) SetExclusiveRelation(ctx context.Context, tk authz.TupleKey) error
- func (c *FGAClient) SetExclusiveSubjectRelation(ctx context.Context, tk authz.TupleKey, checkRelations ...authz.Relation) error
- func (c *FGAClient) WriteTuple(ctx context.Context, tk authz.TupleKey) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewEntityKeySplit ¶
Types ¶
type FGAClient ¶
type FGAClient struct {
ModelID string
// contains filtered or unexported fields
}
func NewFGAClient ¶
func (*FGAClient) CreateModel ¶
func (*FGAClient) CreateStore ¶
func (*FGAClient) DeleteTuple ¶
func (*FGAClient) GetObjectTuples ¶
func (*FGAClient) ListObjects ¶
func (*FGAClient) SetExclusiveRelation ¶
func (*FGAClient) SetExclusiveSubjectRelation ¶
Click to show internal directories.
Click to hide internal directories.