firestore

package
v0.45.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2026 License: MIT Imports: 5 Imported by: 0

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

Run creates an instance of the Firestore GCloud container type. The URI uses the empty string as the protocol.

func (*Container) ProjectID

func (c *Container) ProjectID() string

ProjectID returns the project ID of the Firestore container.

func (*Container) URI

func (c *Container) URI() string

URI returns the URI of the Firestore container.

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

Customize is a NOOP. It's defined to satisfy the testcontainers.ContainerCustomizer interface.

Jump to

Keyboard shortcuts

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