-
Notifications
You must be signed in to change notification settings - Fork 18
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
Added Get and List RPC #49
Conversation
Codecov Report
@@ Coverage Diff @@
## main #49 +/- ##
==========================================
+ Coverage 24.81% 31.57% +6.76%
==========================================
Files 1 1
Lines 137 171 +34
==========================================
+ Hits 34 54 +20
- Misses 100 112 +12
- Partials 3 5 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
1e81512
to
cf4ca22
Compare
goopicsi.go
Outdated
@@ -126,6 +126,50 @@ func NVMeControllerConnect(request *pb.NVMfRemoteController) (*pb.NVMfRemoteCont | |||
return &pb.NVMfRemoteControllerConnectResponse{}, nil | |||
} | |||
|
|||
// NVMeControllerList lists all the connections to the remote NVMf controller | |||
func NVMeControllerList() (*pb.NVMfRemoteControllerListResponse, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change this to some other struct
instead of returning the proto messages
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
goopicsi.go
Outdated
} | ||
|
||
// NVMeControllerGet lists the connection to the remote NVMf controller corresponding to the given ID | ||
func NVMeControllerGet(request *pb.NVMfRemoteControllerGetRequest) (*pb.NVMfRemoteControllerGetResponse, error) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here as well, Avoid using the proto messages directly on the request and response objects.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
Added Get and List RPC Signed-off-by: harshita Pandey <harshita_pandey@dell.com> Removing proto messages Signed-off-by: harshita Pandey <harshita_pandey@dell.com>
c9eba76
to
fa5bbec
Compare
return err | ||
} | ||
log.Printf("Connection corresponding to the given ID: %v", response) | ||
return nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should you return some data here ?
Added the below RPCs:
NVMfRemoteControllerGet
NVMfRemoteControllerList