zrok/agent/version.go

15 lines
394 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)
2024-09-18 17:54:37 +02:00
return &agentGrpc.VersionResponse{V: v}, nil
2024-08-23 17:31:46 +02:00
}