diff options
Diffstat (limited to 'vendor')
-rw-r--r-- | vendor/code.gitea.io/sdk/gitea/miscellaneous.go | 11 | ||||
-rw-r--r-- | vendor/vendor.json | 6 |
2 files changed, 14 insertions, 3 deletions
diff --git a/vendor/code.gitea.io/sdk/gitea/miscellaneous.go b/vendor/code.gitea.io/sdk/gitea/miscellaneous.go index 30aaee77c8..dc56177ca6 100644 --- a/vendor/code.gitea.io/sdk/gitea/miscellaneous.go +++ b/vendor/code.gitea.io/sdk/gitea/miscellaneous.go @@ -11,3 +11,14 @@ type MarkdownOption struct { Context string Wiki bool } + +// ServerVersion wraps the version of the server +type ServerVersion struct { + Version string +} + +// ServerVersion returns the version of the server +func (c *Client) ServerVersion() (string, error) { + v := ServerVersion{} + return v.Version, c.getParsedResponse("GET", "/api/v1/version", nil, nil, &v) +} diff --git a/vendor/vendor.json b/vendor/vendor.json index afe768a0be..78ae8f3ff0 100644 --- a/vendor/vendor.json +++ b/vendor/vendor.json @@ -9,10 +9,10 @@ "revisionTime": "2017-02-22T02:52:05Z" }, { - "checksumSHA1": "K0VWBaa3ZUE598zVFGavdLB7vW4=", + "checksumSHA1": "qXD1HI8bTn7qNJZJOeZqQgxo354=", "path": "code.gitea.io/sdk/gitea", - "revision": "06902fe19508c7ede2be38b71287c665efa1f10d", - "revisionTime": "2017-02-19T11:17:32Z" + "revision": "8807a1d2ced513880b288a5e2add39df6bf72144", + "revisionTime": "2017-03-04T10:22:44Z" }, { "checksumSHA1": "IyfS7Rbl6OgR83QR7TOfKdDCq+M=", |