sysinfo

package
v1.28.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

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.

Jump to

Keyboard shortcuts

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