func (c *Client) GetUser(name string) (services.User, error) {
	if name == "" {
		return nil, trace.BadParameter("missing username")
	}
	out, err := c.Get(c.Endpoint("users", name), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	user, err := services.GetUserUnmarshaler()(out.Bytes())
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return user, nil
}
// GetUser returns a list of usernames registered in the system
GetUser returns a list of usernames registered in the system
// GetUser returns a list of usernames registered in the system
func (c *Client) GetUser(name string) (services.User, error) {
	if name == "" {
		return nil, trace.BadParameter("missing username")
	}
	out, err := c.Get(c.Endpoint("users", name), url.Values{})
	if err != nil {
		return nil, trace.Wrap(err)
	}
	user, err := services.GetUserUnmarshaler()(out.Bytes())
	if err != nil {
		return nil, trace.Wrap(err)
	}
	return user, nil
}
func ( c * Client ) GetUser ( name string ) ( services . User , error ) { if name == " " { return nil , trace . BadParameter ( " " ) } out , err := c . Get ( c . Endpoint ( " " , name ) , url . Values { } ) if err != nil { return nil , trace . Wrap ( err ) } user , err := services . GetUserUnmarshaler ( ) ( out . Bytes ( ) ) if err != nil { return nil , trace . Wrap ( err ) } return user , nil }
GetUser returns a list of usernames registered in the system
GetUser returns a list of usernames registered in the system