Mirko Teodorovic
8ea26c5ab7
NOISSUE - Add user groups ( #1228 )
...
* adding group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding user group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add retrieve methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default admin user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add default admin user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding endpoints
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* changes signature for AssignUser
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding tests
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* bug fixing retrieving groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* bug fixing retrieving groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* retrieve groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change environment for admin
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change environment for admin
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* retrieve groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove adding default group
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* expose port for debugging purposes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix tests, and linter errors
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add prefix Users for groups endpoint
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix linter problems
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix endpoint prefix url
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix endpoint test
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add group features in cli
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove println
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when user is created return id in response
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* when user is created return id in response
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding default admin env
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* proper alignment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* proper alignment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename method
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* return user id when created
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* return user id when created
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove unused variable
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix to retrieve whole tree starting from parent
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add endpoint to list groups for user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add readme for groups
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fixing bugs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fixing bugs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add group commands for add and remove user
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace default email, use example.com
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix capital letters beginning of sentence
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove warning for deprecated api, mistakenly copied
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* simplify repo methods, rely on db driver rather than the check before operation
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* check if group is valid
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* openapi spec 3.0
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove check for existing users in groups before delete
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change func signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change func signature
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bugs, resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix bugs, resolve comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix alignment
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add missing command
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize envs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix doc
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix compile
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize cli commands
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* minor corrections
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename methods
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix naming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* renaming
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* resolve comments, minor changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2020-09-23 23:18:53 +02:00
Dušan Borovčanin
ea3a891c91
MF-1190 - Add pkg for library packages ( #1191 )
...
* Move messaging to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move errors to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Transformers to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move SDK to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Remove Transformers from root
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix make proto
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Add copyrights header
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Move Auth client to pkg
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix dependencies
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Update dependencies and vendors
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
* Fix CI
Signed-off-by: dusanb94 <dusan.borovcanin@mainflux.com>
2020-06-03 15:16:19 +02:00
Ivan Milošević
a5fb55c328
NOISSUE - Refactor provision tool ( #1189 )
...
* Use bulk sdk functions for generating Things and Channels
Add prefix option
Signed-off-by: Ivan Milošević <iva@blokovi.com>
* Update readme
Remove dead code
Rename variable
Signed-off-by: Ivan Milošević <iva@blokovi.com>
2020-06-01 17:34:10 +02:00
Manuel Imperiale
9e2bb4933a
NOISSUE - Fix connect CLI command and remove ConnectThing func from SDK ( #1051 )
...
* NOISSUE - Fix connect CLI command and remove ConnectThing func from SDK
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
* Rm ConnectThing from bootstrap
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
2020-03-03 10:58:30 +01:00
Mirko Teodorovic
5e35cbe06b
NOISSUE - Fix docs ( #952 )
...
* fix missing timeout
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* upd tools readme.md
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* upd tools readme.md
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add mising Referer header required for pass reset request
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-11-16 16:20:29 +01:00
Dušan Borovčanin
23b421bdc5
Fix provision tool connect error handling ( #879 )
...
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-10-08 19:31:13 +02:00
Dušan Borovčanin
873ef4c96f
NOISSUE - Simplify MQTT benchmarking tool ( #852 )
...
* Fix user creation
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Extract client creation to separate method
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove message generating in separate goroutine
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove runSub and runPub methods
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Refactor benchmark code
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix typos
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update client message handling
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix microseconds typo
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Simplify client
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Don't take zero-messages clients int count
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Fix token timeout condition
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Add timeout for publisher
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Update Paho lib version
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Temporary drop SenML and subscribe support
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Calculate payload size
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
* Remove templates
Signed-off-by: Dušan Borovčanin <dusan.borovcanin@mainflux.com>
2019-09-25 19:02:29 +02:00
Drasko DRASKOVIC
5ef6aa84de
NOISSUE - Clean NginX files, move .gitignores to dirs ( #853 )
...
* Remove nginx entrypoint trash, move .gitignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Add node_modules to Aedes .gitignore
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Move docker .gitignore to nginx
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-09-16 11:47:34 +02:00
Mirko Teodorovic
640dfb7e19
NOISSUE - update mqtt prov tool and some refactor ( #831 )
...
* refactor code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add some comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* connect each thing with each channel
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reverting - structure fields must be exported
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert some names
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move meausuring time start
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* revert changes to .gitignore
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-09-05 13:39:58 +02:00
Drasko DRASKOVIC
f090573567
NOISSUE - Improve MQTT benchmarking tools ( #828 )
...
* Refactor mqtt-bench
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Refactor mqtt-bench and provision tools
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Improve README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Remove provision generated toml file
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Update README
Signed-off-by: drasko <drasko.draskovic@gmail.com>
* Replace `tcp` with `tcps` for mtls
Signed-off-by: drasko <drasko.draskovic@gmail.com>
2019-08-30 14:09:12 +02:00
Mirko Teodorovic
bfd12304ac
NOISSUE - update mqtt benchmark ( #824 )
...
* update gitignore
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* fix dates for cert
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* reorganize code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* print to stdout for creating result file from script
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add script for testing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add time measeuring
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* separate test in one file each
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* move config.toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update docs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add connection check, and prevent blocking of publisher when connection fails
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-27 14:21:39 +02:00
Mirko Teodorovic
19834dfc51
MF-295 add mqtt benchmark tool ( #817 )
...
* adding mqtt benchmark tool
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding mqtt benchmark tool - vendoring
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add mtls support
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* tool for channel provision, reorganize code
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* adding config toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* tool for channel provision, adding ssl cert gen
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add config toml
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add readme for provision
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update readme
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some printing
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add test configs
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove some dead code, and sort comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace statistics lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* replace statistics lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* add cobra and viper
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* styling changes
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove statistic lib
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* change type visibility
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* remove empty line
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update vendor
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* update deps
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* rename variable
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* small changes, adding comments
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
* error handling
Signed-off-by: Mirko Teodorovic <mirko.teodorovic@gmail.com>
2019-08-13 12:56:31 +02:00