-
Notifications
You must be signed in to change notification settings - Fork 43
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 functions which are used in Podman, CRI-O and containerd #165
Add functions which are used in Podman, CRI-O and containerd #165
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #165 +/- ##
==========================================
- Coverage 50.50% 50.37% -0.13%
==========================================
Files 24 25 +1
Lines 2865 2908 +43
==========================================
+ Hits 1447 1465 +18
- Misses 1220 1238 +18
- Partials 198 205 +7 ☔ View full report in Codecov by Sentry. |
409c235
to
c9e3356
Compare
@adrianreber It is common to use import aliases in Go. For example, the alias import criu "github.com/checkpoint-restore/go-criu/v6/rpc" |
Right, but the question is, if we come with a good name, then maybe the alias would not be necessary. |
c9e3356
to
115d2c1
Compare
Convenience functions to check if CRIU is available and at least a certain version are now used in containerd, CRI-O and Podman. This change moves those functions to go-criu. Signed-off-by: Adrian Reber <areber@redhat.com>
115d2c1
to
6908ab4
Compare
The missing test coverage seems to mainly in the test code. Not sure it makes sense to track test coverage in the actual test case 😉 |
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
Convenience functions to check if CRIU is available and at least a certain version are now used in containerd, CRI-O and Podman. This change moves those functions to go-criu.
I am not entirely sure about the naming and the location. If this used somewhere else it would be:
Which results in
utils
, which is a very generic name. Maybe changing the directory name tocrutils
would be better?Not sure. Any ideas about naming to make it easy to include and understand where it is coming from?