Skip to content

Commit

Permalink
Document function details.
Browse files Browse the repository at this point in the history
Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
  • Loading branch information
humblec committed Jan 6, 2019
1 parent 5ebedbd commit 3ff00a2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/connection/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ var (
_ CSIConnection = &csiConnection{}
)

// NewConnection returns a grpc connection object to remote CSI driver.
func NewConnection(
address string, timeout time.Duration) (CSIConnection, error) {
conn, err := connect(address, timeout)
Expand Down Expand Up @@ -117,6 +118,7 @@ func (c *csiConnection) GetDriverName(ctx context.Context) (string, error) {
return name, nil
}

// NodeGetId returns unique node id from NodeGetInfoResponse
func (c *csiConnection) NodeGetId(ctx context.Context) (string, error) {
client := csi.NewNodeClient(c.conn)

Expand Down

0 comments on commit 3ff00a2

Please sign in to comment.