File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,9 @@ type Container interface {
3232 //
3333 // If IOAttach options are passed the client will reattach to the IO for the running
3434 // task. If no task exists for the container a NotFound error is returned
35+ //
36+ // Clients must make sure that only one reader is attached to the task and consuming
37+ // the output from the task's fifos
3538 Task (context.Context , IOAttach ) (Task , error )
3639 // Image returns the image that the container is based on
3740 Image (context.Context ) (Image , error )
Original file line number Diff line number Diff line change @@ -68,6 +68,10 @@ func (c *cio) Close() error {
6868type IOCreation func (id string ) (IO , error )
6969
7070// IOAttach allows callers to reattach to running tasks
71+ //
72+ // There should only be one reader for a task's IO set
73+ // because fifo's can only be read from one reader or the output
74+ // will be sent only to the first reads
7175type IOAttach func (* FIFOSet ) (IO , error )
7276
7377// NewIO returns an IOCreation that will provide IO sets without a terminal
You can’t perform that action at this time.
0 commit comments