Michael Desa
246e65e598
Generalize chronograf.UsersStore Get method
...
The `Get` method on the UsersStore was generalize by changing the second
parameter to a struct. This allows the Store to retrieve users by more
than simply their name.
-Get(ctx context.Context, name string) (*User, error)
+Get(ctx context.Context, q UserQuery) (*User, error)
2017-10-18 14:17:42 -04:00
Michael de Sa
d9bec67e65
Clean up redundant error checks
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-16 14:33:47 -05:00
Michael de Sa
40428588f2
Refactor bolt UsersStore to use ID instead of name
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:33:16 -04:00
Michael de Sa
66eab84b40
Set ID on retrieved user from boltdb
...
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:32:35 -04:00
Jared Scheib
aedaafe426
Update bolt UsersStore for updated chronograf User
...
Signed-off-by: Michael de Sa <mjdesa@gmail.com>
Signed-off-by: Jared Scheib <jared.scheib@gmail.com>
2017-10-12 19:31:26 -04:00
Chris Goller
1e2de1d475
Add tests for bolt user store
2017-02-21 22:15:22 -06:00
Chris Goller
7a42a6611a
Update user bolt bucket to be different b/c schema change
2017-02-21 18:48:25 -06:00
Chris Goller
b304ac256e
Add get of all users for a data source
2017-02-17 15:13:51 -06:00
Chris Goller
2a2e188560
Refactor users and add client usersstore
2017-02-17 13:37:00 -06:00
Will Piers
c749203b11
Dont render routes if user is not authenticated
2016-11-21 14:20:33 -07:00
Will Piers
fe14fd74e3
Add users endpoints/storage plus me endpoint
2016-11-21 14:19:57 -07:00