mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
30 lines
820 B
Go
30 lines
820 B
Go
|
package types
|
||
|
|
||
|
// configs holds structs used for internal communication between the
|
||
|
// frontend (such as an http server) and the backend (such as the
|
||
|
// docker daemon).
|
||
|
|
||
|
import (
|
||
|
"github.com/docker/docker/runconfig"
|
||
|
)
|
||
|
|
||
|
// ContainerRmConfig holds arguments for the container remove
|
||
|
// operation. This struct is used to tell the backend what operations
|
||
|
// to perform.
|
||
|
type ContainerRmConfig struct {
|
||
|
ForceRemove, RemoveVolume, RemoveLink bool
|
||
|
}
|
||
|
|
||
|
// ContainerCommitConfig contains build configs for commit operation,
|
||
|
// and is used when making a commit with the current state of the container.
|
||
|
type ContainerCommitConfig struct {
|
||
|
Pause bool
|
||
|
Repo string
|
||
|
Tag string
|
||
|
Author string
|
||
|
Comment string
|
||
|
// merge container config into commit config before commit
|
||
|
MergeConfigs bool
|
||
|
Config *runconfig.Config
|
||
|
}
|