sysinfo

package
v1.10.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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.

var (
	// SysInfo provides global system information.
	SysInfo *SystemInformation = &SystemInformation{}
)

func (*SystemInformation) ToJSON

func (sysInfo *SystemInformation) ToJSON() (string, error)

ToJSON converts the system information to JSON.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL