fga

package
v0.63.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

Mock generation

Here is the command that was used to generate mocks:

mockery --name OpenFGAServiceClient --dir path-to-OpenFGAServiceClient-interface --with-expecter

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OpenFGAClientServicer

type OpenFGAClientServicer interface {
	Check(ctx context.Context, object string, relation string, user string, tenantId string) (*openfgav1.CheckResponse, error)
	Read(ctx context.Context, object *string, relation *string, user *string, tenantId string) (*openfgav1.ReadResponse, error)
	Exists(ctx context.Context, tuple *openfgav1.TupleKeyWithoutCondition, tenantId string) (bool, error)
	Writes(ctx context.Context, writes []*openfgav1.TupleKey, deletes []*openfgav1.TupleKeyWithoutCondition, tenantId string) (bool, error)
	Write(ctx context.Context, object string, relation string, user string, tenantId string) (bool, error)
	WriteIfNeeded(ctx context.Context, tuples []*openfgav1.TupleKeyWithoutCondition, tenantId string) error
	DeleteIfNeeded(ctx context.Context, tuples []*openfgav1.TupleKeyWithoutCondition, tenantId string) error
	Delete(ctx context.Context, object string, relation string, user string, tenantId string) (bool, error)
	ModelId(ctx context.Context, tenantId string) (string, error)
	StoreId(ctx context.Context, tenantId string) (string, error)
}

Directories

Path Synopsis
policy_services

Jump to

Keyboard shortcuts

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