execution/oci: use Status type instead of string
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
parent
7dd69a8597
commit
abaa421141
8 changed files with 56 additions and 44 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue