forked from mirrors/homebox
embed version in binary
This commit is contained in:
parent
ca36e3b080
commit
0b92d57b85
10 changed files with 87 additions and 9 deletions
|
@ -821,6 +821,9 @@ const docTemplate = `{
|
|||
"types.ApiSummary": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"build": {
|
||||
"$ref": "#/definitions/types.Build"
|
||||
},
|
||||
"health": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
@ -838,6 +841,20 @@ const docTemplate = `{
|
|||
}
|
||||
}
|
||||
},
|
||||
"types.Build": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"build_time": {
|
||||
"type": "string"
|
||||
},
|
||||
"commit": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"types.DocumentOut": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
@ -813,6 +813,9 @@
|
|||
"types.ApiSummary": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"build": {
|
||||
"$ref": "#/definitions/types.Build"
|
||||
},
|
||||
"health": {
|
||||
"type": "boolean"
|
||||
},
|
||||
|
@ -830,6 +833,20 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"types.Build": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"build_time": {
|
||||
"type": "string"
|
||||
},
|
||||
"commit": {
|
||||
"type": "string"
|
||||
},
|
||||
"version": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
},
|
||||
"types.DocumentOut": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
|
|
@ -16,6 +16,8 @@ definitions:
|
|||
type: object
|
||||
types.ApiSummary:
|
||||
properties:
|
||||
build:
|
||||
$ref: '#/definitions/types.Build'
|
||||
health:
|
||||
type: boolean
|
||||
message:
|
||||
|
@ -27,6 +29,15 @@ definitions:
|
|||
type: string
|
||||
type: array
|
||||
type: object
|
||||
types.Build:
|
||||
properties:
|
||||
build_time:
|
||||
type: string
|
||||
commit:
|
||||
type: string
|
||||
version:
|
||||
type: string
|
||||
type: object
|
||||
types.DocumentOut:
|
||||
properties:
|
||||
id:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue