// GetVersionInfo returns a map containing the version info defined above.
GetVersionInfo returns a map containing the version info defined above.
// GetVersionInfo returns a map containing the version info defined above .
func GetVersionInfo() map[string]string {
	var err error
	versionInfo := make(map[string]string)
	versionInfo["DDEV-Local version"] = DdevVersion
	versionInfo["web"] = GetWebImage()
	versionInfo["db"] = GetDBImage(nodeps.MariaDB)
	versionInfo["dba"] = GetDBAImage()
	versionInfo["router"] = RouterImage + ":" + RouterTag
	versionInfo["ddev-ssh-agent"] = SSHAuthImage + ":" + SSHAuthTag
	versionInfo["build info"] = BUILDINFO
	versionInfo["os"] = runtime.GOOS
	if versionInfo["docker"], err = GetDockerVersion(); err != nil {
		versionInfo["docker"] = fmt.Sprintf("failed to GetDockerVersion(): %v", err)
	}
	if versionInfo["docker-compose"], err = GetDockerComposeVersion(); err != nil {
		versionInfo["docker-compose"] = fmt.Sprintf("failed to GetDockerComposeVersion(): %v", err)
	}
	if runtime.GOOS == "windows" {
		versionInfo["docker type"] = "Docker Desktop For Windows"
	}
	return versionInfo
}
func GetVersionInfo ( ) map [ string ] string { var err error versionInfo := make ( map [ string ] string ) versionInfo [ " " ] = DdevVersion versionInfo [ " " ] = GetWebImage ( ) versionInfo [ " " ] = GetDBImage ( nodeps . MariaDB ) versionInfo [ " " ] = GetDBAImage ( ) versionInfo [ " " ] = RouterImage + " " + RouterTag versionInfo [ " " ] = SSHAuthImage + " " + SSHAuthTag versionInfo [ " " ] = BUILDINFO versionInfo [ " " ] = runtime . GOOS if versionInfo [ " " ] , err = GetDockerVersion ( ) ; err != nil { versionInfo [ " " ] = fmt . Sprintf ( " " , err ) } if versionInfo [ " " ] , err = GetDockerComposeVersion ( ) ; err != nil { versionInfo [ " " ] = fmt . Sprintf ( " " , err ) } if runtime . GOOS == " " { versionInfo [ " " ] = " " } return versionInfo }
GetVersionInfo returns a map containing the version info defined above.
GetVersionInfo returns a map containing the version info defined above .