gcloud

package module
v0.40.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2025 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GCloudContainer deprecated

type GCloudContainer struct {
	testcontainers.Container
	Settings options
	URI      string
}

Deprecated: use the specialized containers instead: - [bigquery.Container] - [bigtable.Container] - [datastore.Container] - [firestore.Container] - [pubsub.Container] - [spanner.Container]

func RunBigQuery deprecated added in v0.32.0

Deprecated: use [bigquery.Run] instead. RunBigQuery creates an instance of the GCloud container type for BigQuery. The URI uses http:// as the protocol.

func RunBigQueryContainer deprecated

func RunBigQueryContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [bigquery.Run] instead. RunBigQueryContainer creates an instance of the GCloud container type for BigQuery.

func RunBigTable deprecated added in v0.32.0

Deprecated: use [bigtable.Run] instead RunBigTable creates an instance of the GCloud container type for BigTable.

func RunBigTableContainer deprecated

func RunBigTableContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [bigtable.Run] instead RunBigTableContainer creates an instance of the GCloud container type for BigTable.

func RunDatastore deprecated added in v0.32.0

func RunDatastore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [datastore.Run] instead RunDatastore creates an instance of the GCloud container type for Datastore.

func RunDatastoreContainer deprecated

func RunDatastoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [datastore.Run] instead RunDatastoreContainer creates an instance of the GCloud container type for Datastore.

func RunFirestore deprecated added in v0.32.0

func RunFirestore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [firestore.Run] instead RunFirestore creates an instance of the GCloud container type for Firestore.

func RunFirestoreContainer deprecated

func RunFirestoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [firestore.Run] instead RunFirestoreContainer creates an instance of the GCloud container type for Firestore.

func RunPubsub deprecated added in v0.32.0

Deprecated: use [pubsub.Run] instead RunPubsub creates an instance of the GCloud container type for Pubsub.

func RunPubsubContainer deprecated

func RunPubsubContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [pubsub.Run] instead RunPubsubContainer creates an instance of the GCloud container type for Pubsub.

func RunSpanner deprecated added in v0.32.0

Deprecated: use [spanner.Run] instead RunSpanner creates an instance of the GCloud container type for Spanner.

func RunSpannerContainer deprecated

func RunSpannerContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)

Deprecated: use [spanner.Run] instead RunSpannerContainer creates an instance of the GCloud container type for Spanner.

type Option

type Option func(*options) error

Option is an option for the GCloud container.

func WithDataYAML deprecated added in v0.35.0

func WithDataYAML(r io.Reader) Option

Deprecated: Use [bigquery.WithDataYAML] instead. WithDataYAML seeds the BigQuery project for the GCloud container with an io.Reader representing the data yaml file, which is used to copy the file to the container, and then processed to seed the BigQuery project.

Other GCloud containers will ignore this option. If this option is passed multiple times, an error is returned.

func WithProjectID

func WithProjectID(projectID string) Option

WithProjectID sets the project ID for the GCloud container.

func (Option) Customize

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

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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