api: add sandbox Status API

It returns the status of current sandbox.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao
2018-04-20 15:52:46 +08:00
parent b3d9683743
commit 488c3ee353
4 changed files with 40 additions and 0 deletions

View File

@@ -50,6 +50,7 @@ type VCSandbox interface {
Resume() error
Release() error
Delete() error
Status() SandboxStatus
CreateContainer(contConfig ContainerConfig) (VCContainer, error)
DeleteContainer(contID string) (VCContainer, error)
StartContainer(containerID string) (VCContainer, error)