mirror of
https://github.com/aljazceru/kata-containers.git
synced 2025-12-18 23:04:20 +01:00
API: remove ProcessListContainer/ListProcesses
This commit will remove ProcessListContainer API from VCSandbox and ListProcesses from agent.proto. Fixes: #1668 Signed-off-by: bin <bin@hyper.sh>
This commit is contained in:
@@ -1125,18 +1125,6 @@ func (c *Container) ioStream(processID string) (io.WriteCloser, io.Reader, io.Re
|
||||
return stream.stdin(), stream.stdout(), stream.stderr(), nil
|
||||
}
|
||||
|
||||
func (c *Container) processList(ctx context.Context, options ProcessListOptions) (ProcessList, error) {
|
||||
if err := c.checkSandboxRunning("ps"); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
if c.state.State != types.StateRunning {
|
||||
return nil, fmt.Errorf("Container not running, impossible to list processes")
|
||||
}
|
||||
|
||||
return c.sandbox.agent.processListContainer(ctx, c.sandbox, *c, options)
|
||||
}
|
||||
|
||||
func (c *Container) stats(ctx context.Context) (*ContainerStats, error) {
|
||||
if err := c.checkSandboxRunning("stats"); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user