client/pkg/kn/commands/plugin
Roland Huß 3594b39659 refactor(plugins): Improved and simplified verifier and plugin list (#313)
* refactor(plugins): Improved and simplified verifier and plugin list

* Added proper executable check for current user
* Refactor plugin_list to make it more straightforward
* Seperate errors and warnings
* Don't return an error when no plugin is installed and `plugin list` is called
* Simplified tests
* Check assumption that a prefix is given in verify()

* fix(plugins): Fixed broken homedir expansion

* fix(plugin): Adapted to proper permission handling

E.g. if u-x, g+x and the user has the group of the file, but is also owner of the file then he is not allowed to execute the file.

* test(plugins): Added checks for the execution check for plugins

* chore(plugins): optimized tests to reflect the real unix behaviour

* chore(plugins): Moved plugin seenMap to top-level verify method.

Also, allow symlinks without warnings.

* refactor(plugins): Split up some methods in plugin_verifier to make them shorter

* fix: Tuned `plugin list` for better handling when no plugin directory exists
2019-08-08 14:30:59 -07:00
..
plugin.go Implements Kn plugins re-using some code from kubectl plugins. (#249) 2019-07-26 13:29:48 -07:00
plugin_handler.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00
plugin_handler_test.go Implements Kn plugins re-using some code from kubectl plugins. (#249) 2019-07-26 13:29:48 -07:00
plugin_list.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00
plugin_list_flags.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00
plugin_list_flags_test.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00
plugin_list_test.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00
plugin_test.go Implements Kn plugins re-using some code from kubectl plugins. (#249) 2019-07-26 13:29:48 -07:00
plugin_test_helper.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00
plugin_verifier.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00
plugin_verifier_test.go refactor(plugins): Improved and simplified verifier and plugin list (#313) 2019-08-08 14:30:59 -07:00