zrok/agent/version.go

15 lines
387 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
)
func (i *agentGrpcImpl) Version(_ context.Context, _ *agentGrpc.VersionRequest) (*agentGrpc.VersionReply, error) {
2024-08-23 18:27:20 +02:00
v := build.String()
2024-08-23 18:41:13 +02:00
logrus.Infof("responding to version inquiry with '%v'", v)
2024-08-26 17:39:13 +02:00
return &agentGrpc.VersionReply{V: v}, nil
2024-08-23 17:31:46 +02:00
}