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": {
|
"startTime": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"state": {
|
"status": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4237,7 +4237,7 @@
|
||||||
"startTime": {
|
"startTime": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"state": {
|
"status": {
|
||||||
"type": "string"
|
"type": "string"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -527,7 +527,7 @@ definitions:
|
||||||
type: string
|
type: string
|
||||||
startTime:
|
startTime:
|
||||||
type: string
|
type: string
|
||||||
state:
|
status:
|
||||||
type: string
|
type: string
|
||||||
type: object
|
type: object
|
||||||
types.ResetPasswordRequest:
|
types.ResetPasswordRequest:
|
||||||
|
|
|
||||||
|
|
@ -3839,7 +3839,7 @@ delete role by uri config
|
||||||
|**finishTime** <br>*optional*|string|
|
|**finishTime** <br>*optional*|string|
|
||||||
|**id** <br>*optional*|string|
|
|**id** <br>*optional*|string|
|
||||||
|**startTime** <br>*optional*|string|
|
|**startTime** <br>*optional*|string|
|
||||||
|**state** <br>*optional*|string|
|
|**status** <br>*optional*|string|
|
||||||
|
|
||||||
|
|
||||||
<a name="types-resetpasswordrequest"></a>
|
<a name="types-resetpasswordrequest"></a>
|
||||||
|
|
|
||||||
|
|
@ -3839,7 +3839,7 @@ delete role by uri config
|
||||||
|**finishTime** <br>*可选*|string|
|
|**finishTime** <br>*可选*|string|
|
||||||
|**id** <br>*可选*|string|
|
|**id** <br>*可选*|string|
|
||||||
|**startTime** <br>*可选*|string|
|
|**startTime** <br>*可选*|string|
|
||||||
|**state** <br>*可选*|string|
|
|**status** <br>*可选*|string|
|
||||||
|
|
||||||
|
|
||||||
<a name="types-resetpasswordrequest"></a>
|
<a name="types-resetpasswordrequest"></a>
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ func (s *rest) GetV1Preheat(ctx context.Context, rawID string) (*types.GetV1Preh
|
||||||
|
|
||||||
return &types.GetV1PreheatResponse{
|
return &types.GetV1PreheatResponse{
|
||||||
ID: strconv.FormatUint(uint64(job.ID), 10),
|
ID: strconv.FormatUint(uint64(job.ID), 10),
|
||||||
State: convertState(job.State),
|
Status: convertState(job.State),
|
||||||
StartTime: job.CreatedAt.String(),
|
StartTime: job.CreatedAt.String(),
|
||||||
FinishTime: job.UpdatedAt.String(),
|
FinishTime: job.UpdatedAt.String(),
|
||||||
}, nil
|
}, nil
|
||||||
|
|
|
||||||
|
|
@ -29,7 +29,7 @@ type CreateV1PreheatResponse struct {
|
||||||
|
|
||||||
type GetV1PreheatResponse struct {
|
type GetV1PreheatResponse struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
State string `json:"state"`
|
Status string `json:"status"`
|
||||||
StartTime string `json:"startTime,omitempty"`
|
StartTime string `json:"startTime,omitempty"`
|
||||||
FinishTime string `json:"finishTime,omitempty"`
|
FinishTime string `json:"finishTime,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue