helper

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDatabase

func CreateDatabase(ctx context.Context, parentInstanceName, databaseID string) (string, error)

CreateDatabase creates a new Spanner database with the given parent instance name and database ID. Returns the database name or an error.

func CreateInstance

func CreateInstance(ctx context.Context, parentProjectID, instanceID string) (string, error)

CreateInstance creates a new Spanner instance with the given project and instance ID. Returns the instance name or an error.

func DeleteInstance

func DeleteInstance(ctx context.Context, instanceName string) error

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.

Jump to

Keyboard shortcuts

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