Create interface that clients that talk to the api must fulfill.

Signed-off-by: David Calavera <david.calavera@gmail.com>
Upstream-commit: 8b15839ee85b291266d07f97d9ad6ca0326d1339
Component: engine
This commit is contained in:
David Calavera
2015-12-04 17:02:06 -05:00
parent 68562127c9
commit 964dd12e59
29 changed files with 283 additions and 208 deletions

View File

@ -8,18 +8,6 @@ import (
"github.com/docker/docker/runconfig"
)
// ContainerCommitOptions hods parameters to commit changes into a container.
type ContainerCommitOptions struct {
ContainerID string
RepositoryName string
Tag string
Comment string
Author string
Changes []string
Pause bool
JSONConfig string
}
// ContainerCommit applies changes into a container and creates a new tagged image.
func (cli *Client) ContainerCommit(options types.ContainerCommitOptions) (types.ContainerCommitResponse, error) {
query := url.Values{}