mirror of
https://github.com/nikdoof/vsphere-influxdb-go.git
synced 2025-12-19 05:29:21 +00:00
add vendoring with go dep
This commit is contained in:
22
vendor/github.com/influxdata/influxdb/monitor/build_info.go
generated
vendored
Normal file
22
vendor/github.com/influxdata/influxdb/monitor/build_info.go
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
package monitor
|
||||
|
||||
import "github.com/influxdata/influxdb/monitor/diagnostics"
|
||||
|
||||
// build holds information of the build of the current executable.
|
||||
type build struct {
|
||||
Version string
|
||||
Commit string
|
||||
Branch string
|
||||
Time string
|
||||
}
|
||||
|
||||
func (b *build) Diagnostics() (*diagnostics.Diagnostics, error) {
|
||||
d := map[string]interface{}{
|
||||
"Version": b.Version,
|
||||
"Commit": b.Commit,
|
||||
"Branch": b.Branch,
|
||||
"Build Time": b.Time,
|
||||
}
|
||||
|
||||
return diagnostics.RowFromMap(d), nil
|
||||
}
|
||||
Reference in New Issue
Block a user