Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithCustomizer ¶ added in v0.8.3
WithCustomizer function option to use the customizer
Types ¶
type Customizer ¶ added in v0.8.3
type Customizer struct {
// contains filtered or unexported fields
}
Customizer type represents a container customizer for transferring state from the options to the container
func (Customizer) Customize ¶ added in v0.8.3
func (c Customizer) Customize(req *testcontainers.GenericContainerRequest) error
Customize satisfies the ContainerCustomizer interface
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 WithContainerName ¶ added in v0.8.3
WithContainerName allows the container name to be set when using reusable containers
func WithMemory ¶ added in v0.8.3
WithMemory sets the memory for the openFGA container
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