Skip to content
Snippets Groups Projects
Unverified Commit 3f4129bc authored by Morten Linderud's avatar Morten Linderud Committed by GitHub
Browse files

Implement /api/v1/version for rekor-server (#569)


* rekor-server: Implement /api/v1/version

This implements a version endpoint for rekor. This helps figure out the
version the server is currently running. It could later be used to
implement version compatibility with CLI utilities.

Example:
   λ rekor main» curl -s localhost:3000/api/v1/version | jq
   {
     "builddate": "'2021-12-27T13:20:32Z'",
     "commit": "12d1a47c",
     "treestate": "dirty",
     "version": "v0.4.0-15-g12d1a47-dirty"
   }

This removes some duplication of the build flags and inserts them into
/pkg/api which is then reused across the utilities.

Signed-off-by: default avatarMorten Linderud <morten@linderud.pw>

Signed-off-by: default avatarMorten Linderud <morten@linderud.pw>

* Generated files

Signed-off-by: default avatarMorten Linderud <morten@linderud.pw>
parent 12d1a47c
No related branches found
No related tags found
No related merge requests found
Showing
with 1079 additions and 48 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment