mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Add an IDResponse type
Generated from a swagger spec and use it for container exec response Signed-off-by: Daniel Nephin <dnephin@docker.com>
This commit is contained in:
parent
bad849fc82
commit
01883c136d
8 changed files with 31 additions and 26 deletions
|
|
@ -8,8 +8,8 @@ import (
|
|||
)
|
||||
|
||||
// ContainerExecCreate creates a new exec configuration to run an exec process.
|
||||
func (cli *Client) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.ContainerExecCreateResponse, error) {
|
||||
var response types.ContainerExecCreateResponse
|
||||
func (cli *Client) ContainerExecCreate(ctx context.Context, container string, config types.ExecConfig) (types.IDResponse, error) {
|
||||
var response types.IDResponse
|
||||
resp, err := cli.post(ctx, "/containers/"+container+"/exec", nil, config, nil)
|
||||
if err != nil {
|
||||
return response, err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue