e4b6adc88e
This cleans up some of the package API's used for interacting with volumes, and simplifies management. Signed-off-by: Brian Goff <cpuguy83@gmail.com>
12 lines
479 B
Go
12 lines
479 B
Go
package service // import "github.com/docker/docker/volume/service"
|
|
|
|
import "strings"
|
|
|
|
// normalizeVolumeName is a platform specific function to normalize the name
|
|
// of a volume. On Windows, as NTFS is case insensitive, under
|
|
// c:\ProgramData\Docker\Volumes\, the folders John and john would be synonymous.
|
|
// Hence we can't allow the volume "John" and "john" to be created as separate
|
|
// volumes.
|
|
func normalizeVolumeName(name string) string {
|
|
return strings.ToLower(name)
|
|
}
|