Documentation
¶
Index ¶
- func CreateDatabase(ctx context.Context, parentInstanceName, databaseID string) (string, error)
- func CreateInstance(ctx context.Context, parentProjectID, instanceID string) (string, error)
- func DeleteInstance(ctx context.Context, instanceName string) error
- func NewTestContainer(ctx context.Context, image string, envVars map[string]string, ports []string, ...) (testcontainers.Container, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDatabase ¶
CreateDatabase creates a new Spanner database with the given parent instance name and database ID. Returns the database name or an error.
func CreateInstance ¶
CreateInstance creates a new Spanner instance with the given project and instance ID. Returns the instance name or an error.
func DeleteInstance ¶
DeleteInstance deletes the specified Spanner instance. Returns an error if the operation fails.
func NewTestContainer ¶
func NewTestContainer(ctx context.Context, image string, envVars map[string]string, ports []string, waitfor wait.Strategy, cmdArgs ...string) (testcontainers.Container, error)
NewTestContainer creates and starts a new test container with the specified image, environment variables, ports, wait strategy, and optional command arguments. Returns a testcontainers.Container instance or an error.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.