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
Move io.go into io package #1782
Conversation
bd297cd
to
bd46b0c
Compare
Codecov Report
@@ Coverage Diff @@
## master #1782 +/- ##
=======================================
Coverage 49.06% 49.06%
=======================================
Files 77 77
Lines 7719 7719
=======================================
Hits 3787 3787
Misses 3289 3289
Partials 643 643
Continue to review full report at Codecov.
|
LGTM |
io/io.go
Outdated
@@ -1,4 +1,4 @@ | |||
package containerd | |||
package io |
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.
This package name is problematic is that it overlaps with one of the more common packages, io
, that is commonly used in conjunction with this package. The only better, minimal name I can come up with is cio
, which would be short for "Container IO".
LGTM after changing the name to |
task.go
Outdated
@@ -5,7 +5,7 @@ import ( | |||
"context" | |||
"encoding/json" | |||
"fmt" | |||
"io" | |||
goio "io" |
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.
Unneeded now
container.go
Outdated
// Spec returns the OCI runtime specification | ||
Spec(context.Context) (*specs.Spec, error) | ||
// Task returns the current task for the container | ||
// | ||
// If IOAttach options are passed the client will reattach to the IO for the running | ||
// If io.Attach options are passed the client will reattach to the IO for the running |
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.
nit: io
-> cio
?
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
Thanks, fixed both of those issues |
As discussed in #1756
Move
io*.go
from the root package into anio
package so the logic can be tested separate from integration tests.If this looks good I can write a godoc string for the package and couple unit tests.