Skip to content

Commit

Permalink
feat: preheat compatible with harbor (#837)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi committed Nov 29, 2021
1 parent e226095 commit 3586412
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion api/manager/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -4251,7 +4251,7 @@ var doc = `{
"startTime": {
"type": "string"
},
"state": {
"status": {
"type": "string"
}
}
Expand Down
2 changes: 1 addition & 1 deletion api/manager/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -4237,7 +4237,7 @@
"startTime": {
"type": "string"
},
"state": {
"status": {
"type": "string"
}
}
Expand Down
2 changes: 1 addition & 1 deletion api/manager/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -527,7 +527,7 @@ definitions:
type: string
startTime:
type: string
state:
status:
type: string
type: object
types.ResetPasswordRequest:
Expand Down
2 changes: 1 addition & 1 deletion docs/en/api-reference/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-CN/api-reference/api-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
2 changes: 1 addition & 1 deletion manager/service/preheat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion manager/types/preheat.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}
Expand Down

0 comments on commit 3586412

Please sign in to comment.