Documentation ¶
Index ¶
- type OpenFGAClient
- func (c *OpenFGAClient) Check(ctx context.Context, object string, relation string, user string, ...) (*openfgav1.CheckResponse, error)
- func (c *OpenFGAClient) Delete(ctx context.Context, object string, relation string, user string, ...) (bool, error)
- func (c *OpenFGAClient) DeleteIfNeeded(ctx context.Context, tuples []*openfgav1.TupleKeyWithoutCondition, ...) error
- func (c *OpenFGAClient) Exists(ctx context.Context, tuple *openfgav1.TupleKeyWithoutCondition, ...) (bool, error)
- func (c *OpenFGAClient) ModelId(ctx context.Context, tenantId string) (string, error)
- func (c *OpenFGAClient) Read(ctx context.Context, object *string, relation *string, user *string, ...) (*openfgav1.ReadResponse, error)
- func (c *OpenFGAClient) StoreId(ctx context.Context, tenantId string) (string, error)
- func (c *OpenFGAClient) Write(ctx context.Context, object string, relation string, user string, ...) (bool, error)
- func (c *OpenFGAClient) WriteIfNeeded(ctx context.Context, tuples []*openfgav1.TupleKeyWithoutCondition, ...) error
- func (c *OpenFGAClient) Writes(ctx context.Context, writes []*openfgav1.TupleKey, ...) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenFGAClient ¶
type OpenFGAClient struct {
// contains filtered or unexported fields
}
func NewOpenFGAClient ¶
func NewOpenFGAClient(openFGAServiceClient openfgav1.OpenFGAServiceClient) (*OpenFGAClient, error)
func (*OpenFGAClient) Check ¶
func (c *OpenFGAClient) Check(ctx context.Context, object string, relation string, user string, tenantId string) (*openfgav1.CheckResponse, error)
func (*OpenFGAClient) DeleteIfNeeded ¶
func (c *OpenFGAClient) DeleteIfNeeded(ctx context.Context, tuples []*openfgav1.TupleKeyWithoutCondition, tenantId string) error
func (*OpenFGAClient) Exists ¶
func (c *OpenFGAClient) Exists(ctx context.Context, tuple *openfgav1.TupleKeyWithoutCondition, tenantId string) (bool, error)
func (*OpenFGAClient) Read ¶
func (c *OpenFGAClient) Read(ctx context.Context, object *string, relation *string, user *string, tenantId string) (*openfgav1.ReadResponse, error)
func (*OpenFGAClient) WriteIfNeeded ¶
func (c *OpenFGAClient) WriteIfNeeded(ctx context.Context, tuples []*openfgav1.TupleKeyWithoutCondition, tenantId string) error
Click to show internal directories.
Click to hide internal directories.