Add container to monitor in runtime
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
This commit is contained in:
parent
f36feb2ed4
commit
155185c2b2
4 changed files with 30 additions and 4 deletions
|
@ -60,3 +60,13 @@ func (c *Container) State(ctx context.Context) (containerd.State, error) {
|
|||
status: status,
|
||||
}, nil
|
||||
}
|
||||
|
||||
func (c *Container) Pause(ctx context.Context) error {
|
||||
_, err := c.shim.Pause(ctx, &shim.PauseRequest{})
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *Container) Resume(ctx context.Context) error {
|
||||
_, err := c.shim.Resume(ctx, &shim.ResumeRequest{})
|
||||
return err
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue