Move parsing functions to pkg/parsers and the specific kernel handling

functions to pkg/parsers/kernel, and parsing filters to
pkg/parsers/filter. Adjust imports and package references.

Docker-DCO-1.1-Signed-off-by: Erik Hollensbe <github@hollensbe.org> (github: erikh)
This commit is contained in:
Erik Hollensbe 2014-07-28 17:23:38 -07:00 committed by Vincent Demeester
parent 1ed63a0f85
commit 29adea2e42
1 changed files with 2 additions and 2 deletions

View File

@ -8,7 +8,7 @@ import (
"regexp"
"strings"
"github.com/docker/docker/utils"
"github.com/docker/docker/pkg/parsers"
)
// ListOpts type
@ -94,7 +94,7 @@ func ValidateAttach(val string) (string, error) {
}
func ValidateLink(val string) (string, error) {
if _, err := utils.PartParser("name:alias", val); err != nil {
if _, err := parsers.PartParser("name:alias", val); err != nil {
return val, err
}
return val, nil