mirror of
https://github.com/compute-blade-community/compute-blade-agent.git
synced 2026-04-21 17:45:43 +02:00
feat(bladectl): add server version information to output (#100)
add server version information to output ensure the blade-name is always set --------- Co-authored-by: Cedric Kienzler <cedric@specht-labs.de>
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package agent
|
||||
|
||||
import (
|
||||
"time"
|
||||
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/fancontroller"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal"
|
||||
"github.com/compute-blade-community/compute-blade-agent/pkg/hal/led"
|
||||
@@ -51,3 +53,10 @@ type ComputeBladeAgentConfig struct {
|
||||
|
||||
ComputeBladeHalOpts hal.ComputeBladeHalOpts `mapstructure:"hal"`
|
||||
}
|
||||
|
||||
// ComputeBladeAgentInfo represents metadata information about a compute blade agent, including version, commit, and build time.
|
||||
type ComputeBladeAgentInfo struct {
|
||||
Version string
|
||||
Commit string
|
||||
BuildTime time.Time
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user