Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SysInfo provides global system information. SysInfo = &SystemInformation{} )
Functions ¶
func InitSystemInfo ¶
func InitSystemInfo(revaVersion *RevaVersion) error
InitSystemInfo initializes the global system information object and also registers the corresponding metrics.
Types ¶
type RevaVersion ¶
type RevaVersion struct {
Version string `json:"version"`
BuildDate string `json:"build_date"`
GitCommit string `json:"git_commit" sysinfo:"omitlabel"`
GoVersion string `json:"go_version" sysinfo:"omitlabel"`
}
RevaVersion stores version information about Reva.
type SystemInformation ¶
type SystemInformation struct {
// Reva holds the main Reva information
Reva *RevaVersion `json:"reva"`
}
SystemInformation stores general information about Reva and the system it's running on.
func (*SystemInformation) ToJSON ¶
func (sysInfo *SystemInformation) ToJSON() (string, error)
ToJSON converts the system information to JSON.
Click to show internal directories.
Click to hide internal directories.