Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GetHostPort and Close helpers to Resource #126

Merged
merged 1 commit into from
May 14, 2018
Merged

Conversation

dennwc
Copy link
Contributor

@dennwc dennwc commented May 13, 2018

This PR adds two helpers to Resource:

Close is a more idiomatic helper for purging resources associated with the container. Instead of calling pool.Purge(resource) user will be able to call resource.Close().

GetHostPort is a helper to get a full host:port address for the container. It allows hiding any details of port binding from the user.

@aeneasr
Copy link
Member

aeneasr commented May 14, 2018

Nice, thanks!

@aeneasr aeneasr merged commit 9b544b3 into ory:v3 May 14, 2018
@dennwc dennwc deleted the helpers branch May 14, 2018 11:29
xstevens pushed a commit to xstevens/dockertest that referenced this pull request Dec 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants