client

package
v0.61.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Delete

func (c *OpenFGAClient) Delete(ctx context.Context, object string, relation string, user string, tenantId string) (bool, 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) ModelId

func (c *OpenFGAClient) ModelId(ctx context.Context, tenantId string) (string, error)

func (*OpenFGAClient) Read

func (c *OpenFGAClient) Read(ctx context.Context, object *string, relation *string, user *string, tenantId string) (*openfgav1.ReadResponse, error)

func (*OpenFGAClient) StoreId

func (c *OpenFGAClient) StoreId(ctx context.Context, tenantId string) (string, error)

func (*OpenFGAClient) Write

func (c *OpenFGAClient) Write(ctx context.Context, object string, relation string, user string, tenantId string) (bool, error)

func (*OpenFGAClient) WriteIfNeeded

func (c *OpenFGAClient) WriteIfNeeded(ctx context.Context, tuples []*openfgav1.TupleKeyWithoutCondition, tenantId string) error

func (*OpenFGAClient) Writes

func (c *OpenFGAClient) Writes(ctx context.Context, writes []*openfgav1.TupleKey, deletes []*openfgav1.TupleKeyWithoutCondition, tenantId string) (bool, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL