Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunSchema1_0CheckTests ¶
func RunSchema1_0CheckTests(t *testing.T, client ClientInterface)
RunSchema1_0CheckTests is the 1.0 version of RunSchema1_1CheckTests.
func RunSchema1_1CheckTests ¶
func RunSchema1_1CheckTests(t *testing.T, client ClientInterface)
RunSchema1_1CheckTests is public so can be run when OpenFGA is used as a library. An OpenFGA server needs to be running and the client parameter is a client for the server.
Types ¶
type ClientInterface ¶
type ClientInterface interface {
CreateStore(ctx context.Context, in *pb.CreateStoreRequest, opts ...grpc.CallOption) (*pb.CreateStoreResponse, error)
WriteAuthorizationModel(ctx context.Context, in *pb.WriteAuthorizationModelRequest, opts ...grpc.CallOption) (*pb.WriteAuthorizationModelResponse, error)
Write(ctx context.Context, in *pb.WriteRequest, opts ...grpc.CallOption) (*pb.WriteResponse, error)
Check(ctx context.Context, in *pb.CheckRequest, opts ...grpc.CallOption) (*pb.CheckResponse, error)
}
Click to show internal directories.
Click to hide internal directories.