Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OpenFGATestFixture ¶
type OpenFGATestFixture struct {
// contains filtered or unexported fields
}
OpenFGATestFixture configures the openFGA setup for testing
func NewFGATestcontainer ¶
func NewFGATestcontainer(ctx context.Context, opts ...Option) *OpenFGATestFixture
NewFGATestcontainer creates a new test container with the provided context and options
func (*OpenFGATestFixture) NewFgaClient ¶
NewFgaClient creates a new fga client with the provided test container
func (*OpenFGATestFixture) TeardownFixture ¶
func (o *OpenFGATestFixture) TeardownFixture() error
TeardownFixture terminates the openFGA container
type Option ¶
type Option func(c *OpenFGATestFixture)
Option is a functional configuration option for openFGA client
func WithModelFile ¶
WithModelFile sets the model file path for the openFGA client
func WithStoreName ¶
WithStoreName sets the store name for the openFGA client
func WithVersion ¶
WithVersion sets the version of the openFGA container to run
Click to show internal directories.
Click to hide internal directories.