zrok/agent/version.go

18 lines
455 B
Go
Raw Normal View History

2024-08-23 17:31:46 +02:00
package agent
import (
"context"
2024-08-23 18:31:02 +02:00
"github.com/openziti/zrok/agent/agentGrpc"
2024-08-23 18:27:20 +02:00
"github.com/openziti/zrok/build"
2024-08-23 18:41:13 +02:00
"github.com/sirupsen/logrus"
2024-08-23 17:31:46 +02:00
)
2024-09-18 17:54:37 +02:00
func (i *agentGrpcImpl) Version(_ context.Context, _ *agentGrpc.VersionRequest) (*agentGrpc.VersionResponse, error) {
2024-08-23 18:27:20 +02:00
v := build.String()
2024-09-25 17:20:03 +02:00
logrus.Debugf("responding to version inquiry with '%v'", v)
return &agentGrpc.VersionResponse{
V: v,
2024-11-06 23:18:20 +01:00
ConsoleEndpoint: i.agent.httpEndpoint,
}, nil
2024-08-23 17:31:46 +02:00
}