Documentation
¶
Index ¶
Constants ¶
View Source
const (
// DefaultProjectID is the default project ID for the Firestore container.
DefaultProjectID = "test-project"
)
Variables ¶
View Source
var WithProjectID = shared.WithProjectID
WithProjectID re-exports the common GCloud WithProjectID option
Functions ¶
This section is empty.
Types ¶
type Container ¶
type Container struct {
testcontainers.Container
// contains filtered or unexported fields
}
Container represents the Firestore container type used in the module
func Run ¶
func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*Container, error)
Run creates an instance of the Firestore GCloud container type. The URI uses the empty string as the protocol.
type Option ¶
type Option func(o *options) error
func WithDatastoreMode ¶
func WithDatastoreMode() Option
WithDatastoreMode sets the firestore emulator to run in datastore mode. Requires a cloud-sdk image with version 465.0.0 or higher
func (Option) Customize ¶
func (o Option) Customize(*testcontainers.GenericContainerRequest) error
Customize is a NOOP. It's defined to satisfy the testcontainers.ContainerCustomizer interface.
Click to show internal directories.
Click to hide internal directories.