Skip to content

Commit

Permalink
Allow to get an unique name of the client
Browse files Browse the repository at this point in the history
  • Loading branch information
vasayxtx committed Nov 15, 2020
1 parent 650457e commit c670274
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,12 @@ func (c *Client) User() string {
return c.namenode.User
}

// Name returns the unique name that the Client uses in communication
// with namenodes and datanodes.
func (c *Client) Name() string {
return c.namenode.ClientName
}

// ReadFile reads the file named by filename and returns the contents.
func (c *Client) ReadFile(filename string) ([]byte, error) {
f, err := c.Open(filename)
Expand Down

0 comments on commit c670274

Please sign in to comment.