Updated the libcontainer interface comments

Signed-off-by: rajasec <rajasec79@gmail.com>
This commit is contained in:
rajasec 2016-05-10 15:26:10 +05:30
parent c92d105863
commit 1ea17d73fe
2 changed files with 12 additions and 10 deletions

View File

@ -75,8 +75,8 @@ type BaseContainer interface {
// Returns the current status of the container. // Returns the current status of the container.
// //
// errors: // errors:
// ContainerDestroyed - Container no longer exists, // ContainerNotExists - Container no longer exists,
// SystemError - System error. // Systemerror - System error.
Status() (Status, error) Status() (Status, error)
// State returns the current container's state information. // State returns the current container's state information.
@ -91,8 +91,8 @@ type BaseContainer interface {
// Returns the PIDs inside this container. The PIDs are in the namespace of the calling process. // Returns the PIDs inside this container. The PIDs are in the namespace of the calling process.
// //
// errors: // errors:
// ContainerDestroyed - Container no longer exists, // ContainerNotExists - Container no longer exists,
// SystemError - System error. // Systemerror - System error.
// //
// Some of the returned PIDs may no longer refer to processes in the Container, unless // Some of the returned PIDs may no longer refer to processes in the Container, unless
// the Container state is PAUSED in which case every PID in the slice is valid. // the Container state is PAUSED in which case every PID in the slice is valid.
@ -101,8 +101,8 @@ type BaseContainer interface {
// Returns statistics for the container. // Returns statistics for the container.
// //
// errors: // errors:
// ContainerDestroyed - Container no longer exists, // ContainerNotExists - Container no longer exists,
// SystemError - System error. // Systemerror - System error.
Stats() (*Stats, error) Stats() (*Stats, error)
// Set resources of container as configured // Set resources of container as configured
@ -117,7 +117,7 @@ type BaseContainer interface {
// start. You can track process lifecycle with passed Process structure. // start. You can track process lifecycle with passed Process structure.
// //
// errors: // errors:
// ContainerDestroyed - Container no longer exists, // ContainerNotExists - Container no longer exists,
// ConfigInvalid - config is invalid, // ConfigInvalid - config is invalid,
// ContainerPaused - Container is paused, // ContainerPaused - Container is paused,
// SystemError - System error. // SystemError - System error.
@ -128,7 +128,7 @@ type BaseContainer interface {
// opens the fifo after start returns. // opens the fifo after start returns.
// //
// errors: // errors:
// ContainerDestroyed - Container no longer exists, // ContainerNotExists - Container no longer exists,
// ConfigInvalid - config is invalid, // ConfigInvalid - config is invalid,
// ContainerPaused - Container is paused, // ContainerPaused - Container is paused,
// SystemError - System error. // SystemError - System error.

View File

@ -92,7 +92,8 @@ type Container interface {
// If the Container state is PAUSED, do nothing. // If the Container state is PAUSED, do nothing.
// //
// errors: // errors:
// ContainerDestroyed - Container no longer exists, // ContainerNotExists - Container no longer exists,
// ContainerNotRunning - Container not running,
// Systemerror - System error. // Systemerror - System error.
Pause() error Pause() error
@ -101,7 +102,8 @@ type Container interface {
// If the Container state is RUNNING, do nothing. // If the Container state is RUNNING, do nothing.
// //
// errors: // errors:
// ContainerDestroyed - Container no longer exists, // ContainerNotExists - Container no longer exists,
// ContainerNotPaused - Container is not paused,
// Systemerror - System error. // Systemerror - System error.
Resume() error Resume() error