Documentation
¶
Index ¶
- type GCloudContainerdeprecated
- func RunBigQuery(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunBigQueryContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunBigTable(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunBigTableContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunDatastore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunDatastoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunFirestore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunFirestoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunPubsub(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunPubsubContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunSpanner(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- func RunSpannerContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)deprecated
- type Option
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
func RunBigQuery(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)
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
func RunBigTable(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)
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
func RunPubsub(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)
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
func RunSpanner(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*GCloudContainer, error)
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
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 ¶
WithProjectID sets the project ID for the GCloud container.
func (Option) Customize ¶
func (o Option) Customize(*testcontainers.GenericContainerRequest) error
Customize is a NOOP. It's defined to satisfy the testcontainers.ContainerCustomizer interface.