check

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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