-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat: replace IsCreated with Exists for Client interface from package docker #558
Conversation
… docker Signed-off-by: zhyon404 <zhyong4@gmail.com>
Thanks for your contribution! 🎉 👍 |
This PR fixes #478 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
/lgtm
@all-contributors Please add @zhyon404 for code contribution. |
I've put up a pull request to add @zhyon404! 🎉 |
@@ -59,7 +59,7 @@ type Client interface { | |||
StartBuildkitd(ctx context.Context, tag, name, mirror string) (string, error) | |||
|
|||
IsRunning(ctx context.Context, name string) (bool, error) | |||
IsCreated(ctx context.Context, name string) (bool, error) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's better to add a new method Exists
and mark IsCreated
deprecated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We are still in alpha, thus I think it also works although we remove it directly.
There is no project that relies on us, currently.
fix #478