improve container Task comment

Signed-off-by: fahed dorgaa <fahed.dorgaa@gmail.com>
This commit is contained in:
fahed dorgaa 2023-05-09 20:15:53 +02:00
parent 5dda3d8d55
commit 7e42dc34d4
No known key found for this signature in database
GPG Key ID: F35FF49760A865FA

View File

@ -61,8 +61,13 @@ type Container interface {
Spec(context.Context) (*oci.Spec, error) Spec(context.Context) (*oci.Spec, error)
// Task returns the current task for the container // Task returns the current task for the container
// //
// If cio.Load options are passed the client will Load the IO for the running
// task.
//
// If cio.Attach options are passed the client will reattach to the IO for the running // If cio.Attach options are passed the client will reattach to the IO for the running
// task. If no task exists for the container a NotFound error is returned // task.
//
// If no task exists for the container a NotFound error is returned
// //
// Clients must make sure that only one reader is attached to the task and consuming // Clients must make sure that only one reader is attached to the task and consuming
// the output from the task's fifos // the output from the task's fifos