Install csc CLI tool for testing CSI RPCs locally.
- Your application should start a gRPC server on a specific port.
- Refer CSI spec for getting details on functions to be implemented.
For running your application locally without any setup, you may directly run your binary/code like -
go run cmd/main.go
Note: The port number on which the gRPC server is running is needed while running csc commands.
Sample for testing GetPluginInfo() identity function -
csc identity plugin-info --endpoint tcp://127.0.0.1:50052
Note: In the above command 50052
is the port where the server is running for this application.
You may replace it the port number noted in Start running your app section
Next, test different identity, node and controller RPC methods by updating the above command.