feat: preheat compatible with harbor (#837)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2021-11-29 20:59:34 +08:00
parent a8483db342
commit abfdbe924f
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
7 changed files with 7 additions and 7 deletions

View File

@ -4251,7 +4251,7 @@ var doc = `{
"startTime": {
"type": "string"
},
"state": {
"status": {
"type": "string"
}
}

View File

@ -4237,7 +4237,7 @@
"startTime": {
"type": "string"
},
"state": {
"status": {
"type": "string"
}
}

View File

@ -527,7 +527,7 @@ definitions:
type: string
startTime:
type: string
state:
status:
type: string
type: object
types.ResetPasswordRequest:

View File

@ -3839,7 +3839,7 @@ delete role by uri config
|**finishTime** <br>*optional*|string|
|**id** <br>*optional*|string|
|**startTime** <br>*optional*|string|
|**state** <br>*optional*|string|
|**status** <br>*optional*|string|
<a name="types-resetpasswordrequest"></a>

View File

@ -3839,7 +3839,7 @@ delete role by uri config
|**finishTime** <br>*可选*|string|
|**id** <br>*可选*|string|
|**startTime** <br>*可选*|string|
|**state** <br>*可选*|string|
|**status** <br>*可选*|string|
<a name="types-resetpasswordrequest"></a>

View File

@ -76,7 +76,7 @@ func (s *rest) GetV1Preheat(ctx context.Context, rawID string) (*types.GetV1Preh
return &types.GetV1PreheatResponse{
ID: strconv.FormatUint(uint64(job.ID), 10),
State: convertState(job.State),
Status: convertState(job.State),
StartTime: job.CreatedAt.String(),
FinishTime: job.UpdatedAt.String(),
}, nil

View File

@ -29,7 +29,7 @@ type CreateV1PreheatResponse struct {
type GetV1PreheatResponse struct {
ID string `json:"id"`
State string `json:"state"`
Status string `json:"status"`
StartTime string `json:"startTime,omitempty"`
FinishTime string `json:"finishTime,omitempty"`
}