execution/oci: use Status type instead of string

Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
Kenfe-Mickael Laventure 2016-12-14 19:10:35 -08:00
parent 7dd69a8597
commit abaa421141
8 changed files with 56 additions and 44 deletions

View file

@ -13,8 +13,7 @@ import (
)
var (
emptyResponse = &google_protobuf.Empty{}
ErrProcessNotFound = fmt.Errorf("Process not found")
emptyResponse = &google_protobuf.Empty{}
)
func New(executor Executor) (*Service, error) {
@ -24,8 +23,7 @@ func New(executor Executor) (*Service, error) {
}
type Service struct {
executor Executor
supervisor *Supervisor
executor Executor
}
func (s *Service) Create(ctx context.Context, r *api.CreateContainerRequest) (*api.CreateContainerResponse, error) {