api: add sandbox CreateContainer API

And make CreateContainer in api.go a wrapper of it.

Signed-off-by: Peng Tao <bergwolf@gmail.com>
This commit is contained in:
Peng Tao
2018-04-18 17:25:10 +08:00
parent ef89131b85
commit f6aa8a23fc
5 changed files with 49 additions and 22 deletions

View File

@@ -69,3 +69,8 @@ func (p *Sandbox) Resume() error {
func (p *Sandbox) Delete() error {
return nil
}
// CreateContainer implements the VCSandbox function of the same name.
func (p *Sandbox) CreateContainer(conf vc.ContainerConfig) (vc.VCContainer, error) {
return &Container{}, nil
}