Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change “ID” to “Id” in Method names #173

Closed
saad-ali opened this issue Jan 24, 2018 · 11 comments
Closed

Change “ID” to “Id” in Method names #173

saad-ali opened this issue Jan 24, 2018 · 11 comments
Milestone

Comments

@saad-ali
Copy link
Member

Recommendation from a gRPC author after review of CSI API: follow https://google.github.io/styleguide/javaguide.html#s5.3-camel-case style guide

Specifically, GetNodeID(...) should be GetNodeId(...)

@saad-ali saad-ali added this to the v0.2 milestone Jan 24, 2018
@saad-ali
Copy link
Member Author

If we do this, @jieyu suggested renaming GetNodeId() to NodeGetId() for consistency with other method names in the Node service.

@jieyu
Copy link
Member

jieyu commented Jan 24, 2018

xref #137

@akutz suggested that

@saad-ali
Copy link
Member Author

Closed with #182

@pure-yesmat
Copy link

Hello,

This causes golint to fail for NodeGetId because it expects NodeGetID. Is the recommendation to ignore this error?

Should we use something like this for the go generated file:

you can use github.com/gogo/protobuf

message C {
	optional int64 size = 1 [(gogoproto.customname) = "MySize"];
}
type C struct {
	MySize		*int64
}

This is a snippet from: golang/protobuf#156

Thanks

@jdef
Copy link
Member

jdef commented Mar 7, 2018 via email

@jdef
Copy link
Member

jdef commented Mar 7, 2018 via email

@pure-yesmat
Copy link

The implementation of the NodeServer interface. Example:
type nodeServer struct{
}
func (ns *nodeServer) NodeGetId(...) {
}

@pure-yesmat
Copy link

Ping :)

@gpaul
Copy link

gpaul commented May 4, 2018

So, in your code...

@gpaul
Copy link

gpaul commented May 4, 2018

You're saying in order to implement the CSI spec you have to write Go code by hand that does not pass golint?

@gpaul
Copy link

gpaul commented May 4, 2018

I think you'll want to wait for and weigh in on golang/protobuf#555.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants