api/execution: add Container suffix to relevant rpc calls
Signed-off-by: Kenfe-Mickael Laventure <mickael.laventure@gmail.com>
This commit is contained in:
@@ -38,9 +38,10 @@ var deleteCommand = cli.Command{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
if _, err := executionService.Delete(gocontext.Background(), &execution.DeleteContainerRequest{
|
||||
if _, err := executionService.DeleteContainer(gocontext.Background(), &execution.DeleteContainerRequest{
|
||||
ID: id,
|
||||
}); err != nil {
|
||||
return err
|
||||
|
||||
@@ -22,7 +22,7 @@ var inspectCommand = cli.Command{
|
||||
if id == "" {
|
||||
return fmt.Errorf("container id must be provided")
|
||||
}
|
||||
getResponse, err := executionService.Get(gocontext.Background(),
|
||||
getResponse, err := executionService.GetContainer(gocontext.Background(),
|
||||
&execution.GetContainerRequest{ID: id})
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
@@ -16,7 +16,7 @@ var listCommand = cli.Command{
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
listResponse, err := executionService.List(gocontext.Background(), &execution.ListContainersRequest{
|
||||
listResponse, err := executionService.ListContainers(gocontext.Background(), &execution.ListContainersRequest{
|
||||
Owner: []string{},
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
@@ -98,12 +98,12 @@ var runCommand = cli.Command{
|
||||
return err
|
||||
}
|
||||
|
||||
cr, err := executionService.Create(gocontext.Background(), crOpts)
|
||||
cr, err := executionService.CreateContainer(gocontext.Background(), crOpts)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
if _, err := executionService.Start(gocontext.Background(), &execution.StartContainerRequest{
|
||||
if _, err := executionService.StartContainer(gocontext.Background(), &execution.StartContainerRequest{
|
||||
ID: cr.Container.ID,
|
||||
}); err != nil {
|
||||
return err
|
||||
@@ -129,7 +129,7 @@ var runCommand = cli.Command{
|
||||
}
|
||||
}
|
||||
|
||||
if _, err := executionService.Delete(gocontext.Background(), &execution.DeleteContainerRequest{
|
||||
if _, err := executionService.DeleteContainer(gocontext.Background(), &execution.DeleteContainerRequest{
|
||||
ID: cr.Container.ID,
|
||||
}); err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user