feat: preheat compatible with harbor (#837)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
a8483db342
commit
abfdbe924f
|
|
@ -4251,7 +4251,7 @@ var doc = `{
|
|||
"startTime": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"status": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4237,7 +4237,7 @@
|
|||
"startTime": {
|
||||
"type": "string"
|
||||
},
|
||||
"state": {
|
||||
"status": {
|
||||
"type": "string"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -527,7 +527,7 @@ definitions:
|
|||
type: string
|
||||
startTime:
|
||||
type: string
|
||||
state:
|
||||
status:
|
||||
type: string
|
||||
type: object
|
||||
types.ResetPasswordRequest:
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"`
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue