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)
Upstream-commit: 29adea2e42
Component: cli
This commit is contained in:
committed by
Vincent Demeester
parent
acf41deb77
commit
81ffb1c91a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user