Move ListOps to utils submodule

This will be needed for later use in docker-init without a docker
dependency
This commit is contained in:
Alexander Larsson
2013-10-25 15:13:24 -07:00
committed by Victor Vieux
parent 249f5a65a5
commit d063c8d941
6 changed files with 23 additions and 23 deletions
-12
View File
@@ -1480,18 +1480,6 @@ func (cli *DockerCli) CmdSearch(args ...string) error {
// Ports type - Used to parse multiple -p flags
type ports []int
// ListOpts type
type ListOpts []string
func (opts *ListOpts) String() string {
return fmt.Sprint(*opts)
}
func (opts *ListOpts) Set(value string) error {
*opts = append(*opts, value)
return nil
}
// AttachOpts stores arguments to 'docker run -a', eg. which streams to attach to
type AttachOpts map[string]bool