Skip to content

Commit 3f73722

Browse files
authored
docs: indicate version for the Run function (#2627)
* docs: indicate version for the Run function * docs(cockroachdb): move info message to the right section * docs: proper info architecture
1 parent ee9a148 commit 3f73722

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+344
-50
lines changed

docs/modules/artemis.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ go get github.com/testcontainers/testcontainers-go/modules/artemis
2424
[Connecting to an Artemis container](../../modules/artemis/examples_test.go) inside_block:connectToArtemisContainer
2525
<!--/codeinclude-->
2626

27-
## Module reference
27+
## Module Reference
28+
29+
### Run function
30+
31+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
32+
33+
!!!info
34+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2835

2936
The Artemis module exposes one entrypoint function to create the Artemis container, and this function receives three parameters:
3037

docs/modules/azurite.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/azurite
2020
[Creating a Azurite container](../../modules/azurite/examples_test.go) inside_block:runAzuriteContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Azurite module exposes one entrypoint function to create the Azurite container, and this function receives three parameters:
2633

docs/modules/cassandra.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/cassandra
2020
[Creating a Cassandra container](../../modules/cassandra/examples_test.go) inside_block:runCassandraContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Cassandra module exposes one entrypoint function to create the Cassandra container, and this function receives three parameters:
2633

docs/modules/chroma.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ go get github.com/testcontainers/testcontainers-go/modules/chroma
2525
[Creating a Chroma container](../../modules/chroma/examples_test.go) inside_block:runChromaContainer
2626
<!--/codeinclude-->
2727

28-
## Module reference
28+
## Module Reference
29+
30+
### Run function
31+
32+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
33+
34+
!!!info
35+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2936

3037
The Chroma module exposes one entrypoint function to create the Chroma container, and this function receives three parameters:
3138

docs/modules/clickhouse.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/clickhouse
2020
[Test for a ClickHouse container](../../modules/clickhouse/examples_test.go) inside_block:runClickHouseContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The ClickHouse module exposes one entrypoint function to create the ClickHouse container, and this function receives three parameters:
2633

docs/modules/cockroachdb.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/cockroachdb
2020
[Creating a CockroachDB container](../../modules/cockroachdb/examples_test.go) inside_block:runCockroachDBContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The CockroachDB module exposes one entrypoint function to create the CockroachDB container, and this function receives three parameters:
2633

@@ -32,9 +39,6 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
3239
- `string`, the Docker image to use.
3340
- `testcontainers.ContainerCustomizer`, a variadic argument for passing options.
3441

35-
!!!warning
36-
When TLS is enabled there's a very small, unlikely chance that the underlying driver can panic when registering the driver as part of waiting for CockroachDB to be ready to accept connections. If this is repeatedly happening please open an issue.
37-
3842
### Container Options
3943

4044
When starting the CockroachDB container, you can pass options in a variadic way to configure it.
@@ -65,6 +69,9 @@ Internally CockroachDB requires a client certificate for the user to connect wit
6569

6670
A helper `cockroachdb.NewTLSConfig` exists to generate all of this for you.
6771

72+
!!!warning
73+
When TLS is enabled there's a very small, unlikely chance that the underlying driver can panic when registering the driver as part of waiting for CockroachDB to be ready to accept connections. If this is repeatedly happening please open an issue.
74+
6875
### Container Methods
6976
7077
The CockroachDB container exposes the following methods:

docs/modules/consul.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/consul
2020
[Creating a Consul container](../../modules/consul/examples_test.go) inside_block:runConsulContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Consul module exposes one entrypoint function to create the Consul container, and this function receives three parameters:
2633

docs/modules/couchbase.md

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ go get github.com/testcontainers/testcontainers-go/modules/couchbase
2222

2323
## Module Reference
2424

25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
31+
2532
The Couchbase module exposes one entrypoint function to create the Couchbase container, and this function receives three parameters:
2633

2734
```golang

docs/modules/dolt.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/dolt
2020
[Creating a Dolt container](../../modules/dolt/examples_test.go) inside_block:runDoltContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Dolt module exposes one entrypoint function to create the Dolt container, and this function receives three parameters:
2633

docs/modules/elasticsearch.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/elasticsearch
2020
[Creating a Elasticsearch container](../../modules/elasticsearch/examples_test.go) inside_block:runElasticsearchContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Elasticsearch module exposes one entrypoint function to create the Elasticsearch container, and this function receives three parameters:
2633

docs/modules/gcloud.md

+16-8
Original file line numberDiff line numberDiff line change
@@ -75,20 +75,28 @@ It's important to set the target string of the `grpc.Dial` method using the cont
7575

7676
It's important to set the `option.WithEndpoint()` option using the container's URI, as shown in the Admin client example above.
7777

78-
## Module reference
78+
## Module Reference
7979

80-
The GCloud module exposes one entrypoint function to create the different GCloud emulators, and each function receives two parameters:
80+
### Run function
81+
82+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
83+
84+
!!!info
85+
The `RunXXXContainer(ctx, opts...)` functions are deprecated and will be removed in the next major release of _Testcontainers for Go_.
86+
87+
The GCloud module exposes one entrypoint function to create the different GCloud emulators, and each function receives three parameters:
8188

8289
```golang
83-
func RunBigQueryContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*BigQueryContainer, error)
84-
func RunBigTableContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*BigTableContainer, error)
85-
func RunDatastoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*DatastoreContainer, error)
86-
func RunFirestoreContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*FirestoreContainer, error)
87-
func RunPubsubContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*PubsubContainer, error)
88-
func RunSpannerContainer(ctx context.Context, opts ...testcontainers.ContainerCustomizer) (*SpannerContainer, error)
90+
func RunBigQuery(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*BigQueryContainer, error)
91+
func RunBigTable(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*BigTableContainer, error)
92+
func RunDatastore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*DatastoreContainer, error)
93+
func RunFirestore(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*FirestoreContainer, error)
94+
func RunPubsub(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*PubsubContainer, error)
95+
func RunSpanner(ctx context.Context, img string, opts ...testcontainers.ContainerCustomizer) (*SpannerContainer, error)
8996
```
9097

9198
- `context.Context`, the Go context.
99+
- `string`, the Docker image to use.
92100
- `testcontainers.ContainerCustomizer`, a variadic argument for passing options.
93101

94102
### Container Options

docs/modules/inbucket.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/inbucket
2020
[Creating a Inbucket container](../../modules/inbucket/examples_test.go) inside_block:runInbucketContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Inbucket module exposes one entrypoint function to create the Inbucket container, and this function receives three parameters:
2633

docs/modules/influxdb.md

+7
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ go get github.com/testcontainers/testcontainers-go/modules/influxdb
2222

2323
## Module Reference
2424

25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
31+
2532
The InfluxDB module exposes one entrypoint function to create the container, and this function receives three parameters:
2633

2734
```golang

docs/modules/k3s.md

+8-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/k3s
2020
[Test for a K3s container](../../modules/k3s/k3s_test.go) inside_block:runK3sContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The K3s module exposes one entrypoint function to create the K3s container, and this function receives three parameters:
2633

@@ -32,7 +39,6 @@ func Run(ctx context.Context, img string, opts ...testcontainers.ContainerCustom
3239
- `string`, the Docker image to use.
3340
- `testcontainers.ContainerCustomizer`, a variadic argument for passing options.
3441

35-
3642
### Container Ports
3743
These are the ports used by the K3s container:
3844
<!--codeinclude-->

docs/modules/k6.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ go get github.com/testcontainers/testcontainers-go/modules/k6
2727
[Creating a K6 container](../../modules/k6/examples_test.go) inside_block:runK6Container
2828
<!--/codeinclude-->
2929

30-
## Module reference
30+
## Module Reference
31+
32+
### Run function
33+
34+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
35+
36+
!!!info
37+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
3138

3239
The K6 module exposes one entrypoint function to run the K6 container, and this function receives three parameters:
3340

docs/modules/kafka.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/kafka
2020
[Creating a Kafka container](../../modules/kafka/examples_test.go) inside_block:runKafkaContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Kafka module exposes one entrypoint function to create the Kafka container, and this function receives three parameters:
2633

docs/modules/localstack.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ Running LocalStack as a stand-in for multiple AWS services during a test:
2525
Environment variables listed in [Localstack's README](https://github.com/localstack/localstack#configurations) may be used to customize Localstack's configuration.
2626
Use the `testcontainers.WithEnv` option when creating the `LocalStackContainer` to apply those variables.
2727

28-
## Module reference
28+
## Module Reference
29+
30+
### Run function
31+
32+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
33+
34+
!!!info
35+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2936

3037
The LocalStack module exposes one single function to create the LocalStack container, and this function receives three parameters:
3138

docs/modules/mariadb.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/mariadb
2020
[Creating a MariaDB container](../../modules/mariadb/examples_test.go) inside_block:runMariaDBContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The MariaDB module exposes one entrypoint function to create the MariaDB container, and this function receives three parameters:
2633

docs/modules/milvus.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/milvus
2020
[Creating a Milvus container](../../modules/milvus/examples_test.go) inside_block:runMilvusContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Milvus module exposes one entrypoint function to create the Milvus container, and this function receives three parameters:
2633

docs/modules/minio.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/minio
2020
[Creating a Minio container](../../modules/minio/examples_test.go) inside_block:runMinioContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The Minio module exposes one entrypoint function to create the Minio container, and this function receives three parameters:
2633

docs/modules/mockserver.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/mockserver
2020
[Creating a MockServer container](../../modules/mockserver/examples_test.go) inside_block:runMockServerContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The MockServer module exposes one entrypoint function to create the MockServer container, and this function receives three parameters:
2633

docs/modules/mongodb.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,14 @@ go get github.com/testcontainers/testcontainers-go/modules/mongodb
2020
[Creating a MongoDB container](../../modules/mongodb/examples_test.go) inside_block:runMongoDBContainer
2121
<!--/codeinclude-->
2222

23-
## Module reference
23+
## Module Reference
24+
25+
### Run function
26+
27+
- Not available until the next release of testcontainers-go <a href="https://github.com/testcontainers/testcontainers-go"><span class="tc-version">:material-tag: main</span></a>
28+
29+
!!!info
30+
The `RunContainer(ctx, opts...)` function is deprecated and will be removed in the next major release of _Testcontainers for Go_.
2431

2532
The MongoDB module exposes one entrypoint function to create the MongoDB container, and this function receives three parameters:
2633

0 commit comments

Comments
 (0)