Add FifoIO to expose fifos directly to client

This allows clients an easier way to interact with the fifos for a
container without having to use the built in copyIO functions when
opening fifos.

It's nothing that clients could not have already coded but since we use
this type of functionality in the tests it makes sense to add an
implementation here.

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
Michael Crosby
2017-08-21 10:55:21 -04:00
parent 10460647f2
commit a8b21da538
4 changed files with 206 additions and 139 deletions

1
io.go
View File

@@ -24,7 +24,6 @@ type IOConfig struct {
type IO interface {
// Config returns the IO configuration.
Config() IOConfig
// Cancel aborts all current io operations
Cancel()
// Wait blocks until all io copy operations have completed