mirror of
https://github.com/minio/minio.git
synced 2025-04-08 21:55:44 -04:00
new version format and some cleanup
This commit is contained in:
parent
d1f1b7ac31
commit
89a86948b5
@ -19,8 +19,6 @@ package rpc
|
|||||||
import (
|
import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"runtime"
|
"runtime"
|
||||||
|
|
||||||
"github.com/minio/minio/pkg/version"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// VersionArgs basic json RPC params
|
// VersionArgs basic json RPC params
|
||||||
@ -40,7 +38,8 @@ type VersionReply struct {
|
|||||||
// Get version
|
// Get version
|
||||||
func (v *VersionService) Get(r *http.Request, args *VersionArgs, reply *VersionReply) error {
|
func (v *VersionService) Get(r *http.Request, args *VersionArgs, reply *VersionReply) error {
|
||||||
reply.Version = "0.0.1"
|
reply.Version = "0.0.1"
|
||||||
reply.BuildDate = version.Version
|
//TODO: Better approach needed here to pass global states like version. --ab.
|
||||||
|
// reply.BuildDate = version.Version
|
||||||
reply.Architecture = runtime.GOARCH
|
reply.Architecture = runtime.GOARCH
|
||||||
reply.OperatingSystem = runtime.GOOS
|
reply.OperatingSystem = runtime.GOOS
|
||||||
return nil
|
return nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user