fix golint warnings/errors on package api/types/#14897
Conversation
|
Seems there are some failed test cases, I'll check the code and re-open this PR after fixing all bugs. |
909c677 to
cf1bb5d
Compare
api/types/types.go
Outdated
There was a problem hiding this comment.
As it is serialized as JSON, I think it would be better to do something like :
ParentID string `json:"ParentId"`This way, this limit the possible breakage of tools using the API.
api/types/types.go
Outdated
There was a problem hiding this comment.
Same as above, as it is serialized as JSON, I think it would be better to do something like :
HTTPProxy string `json:"HttpProxy"`
HTTPSProxy string `json:"HttpsProxy"`|
@WeiZhang555 I think you should rebase to make the integration-cli test passes (I'm pretty sure a fix has been merged 😉 ). |
cf1bb5d to
4afb258
Compare
|
@vdemeester Updated, let's see if this commit works better. 😄 |
4afb258 to
1447e28
Compare
1447e28 to
13b8643
Compare
|
Rebased |
13b8643 to
e1e23a3
Compare
|
Rebased again. |
|
@WeiZhang555 could you take care of my comments about the structure and the |
|
@vdemeester Yeah, I'm so sorry, I must have missed that, I would add |
e1e23a3 to
f105857
Compare
f105857 to
ad35621
Compare
|
@vdemeester Updated, sorry for my careless, I have added the |
|
@WeiZhang555 don't be sorry 😝, this is part a the learning and the contributing process 😊 😉. |
ad35621 to
b8259c0
Compare
|
@WeiZhang555 really sorry but needs another rebase :( |
b8259c0 to
eb238a9
Compare
|
@tiborvass Rebase done :) |
eb238a9 to
ec12c40
Compare
|
Rebased |
|
Needs another rebase to pick up the compile error on the Windows daemon build. |
ec12c40 to
caa4fd8
Compare
|
All green now. Ping @vdemeester @tiborvass @icecrime @jhowardmsft |
|
LGTM |
api/types/types.go
Outdated
There was a problem hiding this comment.
This one probably need a json:… too 😅
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
caa4fd8 to
3d6617f
Compare
|
@vdemeester Updated and rebased, thank you! 😄 |
|
LGTM. Merging! |
fix golint warnings/errors on package api/types/
Part of #14756
Let me know if anyone has suggestions or questions, thank you!
Signed-off-by: Zhang Wei zhangwei555@huawei.com