mirror of https://github.com/docker/cli.git
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:
parent
1ed63a0f85
commit
29adea2e42
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue