Breakaway from driver model, move cache into donut

This commit is contained in:
Harshavardhana
2015-06-30 16:30:02 -07:00
parent 72572d6c71
commit dc0df3dc0e
25 changed files with 346 additions and 2072 deletions

19
main.go
View File

@@ -26,8 +26,8 @@ import (
"github.com/dustin/go-humanize"
"github.com/minio/cli"
"github.com/minio/minio/pkg/api"
"github.com/minio/minio/pkg/iodine"
"github.com/minio/minio/pkg/server/httpserver"
)
var globalDebugFlag = false
@@ -78,7 +78,7 @@ func getAPIServerConfig(c *cli.Context) httpserver.Config {
Fatalln("Both certificate and key are required to enable https.")
}
tls := (certFile != "" && keyFile != "")
return httpserver.Config{
return api.Config{
Address: c.GlobalString("address"),
TLS: tls,
CertFile: certFile,
@@ -87,21 +87,6 @@ func getAPIServerConfig(c *cli.Context) httpserver.Config {
}
}
/*
func getWebServerConfigFunc(c *cli.Context) server.StartServerFunc {
config := httpserver.Config{
Address: c.GlobalString("address-mgmt"),
TLS: false,
CertFile: "",
KeyFile: "",
}
webDrivers := server.WebFactory{
Config: config,
}
return webDrivers.GetStartServerFunc()
}
*/
// Tries to get os/arch/platform specific information
// Returns a map of current os/arch/platform/memstats
func getSystemData() map[string]string {