Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/modules/socat.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ In example: `Run(context.Background(), "alpine/socat:1.8.0.1")`.

#### WithTarget

- 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>

The `WithTarget` function sets a single target for the Socat container, defined by the `Target` struct.
This struct can be built using the the following functions:

Expand All @@ -72,6 +74,8 @@ The Socat container exposes the following methods:

#### TargetURL

- 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>

The `TargetURL(port int)` method returns the URL for the exposed port of a target, nil if the port is not mapped.

<!--codeinclude-->
Expand Down
Loading