Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sensuctl commands support (sensu#3274)
* initial sensuctl command install & exec support Signed-off-by: Justin Kolberg <[email protected]> * add initial support for listing sensuctl commands Signed-off-by: Justin Kolberg <[email protected]> * add support for deleting sensuctl commands Signed-off-by: Justin Kolberg <[email protected]> * add context to ExecCommand args Signed-off-by: Justin Kolberg <[email protected]> * check asset type & provider before install Signed-off-by: Justin Kolberg <[email protected]> * appease the linter Signed-off-by: Justin Kolberg <[email protected]> * fix sensuctl command install via url Signed-off-by: Justin Kolberg <[email protected]> * verify checksum of command defs installed via url Signed-off-by: Justin Kolberg <[email protected]> * refresh tokens & set env for sensuctl commands Signed-off-by: Justin Kolberg <[email protected]> * bump go to 1.13.3 Signed-off-by: Justin Kolberg <[email protected]> * verify go mods on appveyor Signed-off-by: Justin Kolberg <[email protected]> * use go mod download instead of verify Signed-off-by: Justin Kolberg <[email protected]> * RefreshAccessToken now takes *v2.Tokens Signed-off-by: Justin Kolberg <[email protected]> * add timeout to bolt in sensuctl command cmd Signed-off-by: Justin Kolberg <[email protected]> * start asset manager before opening commands.db to create cache dir Signed-off-by: Justin Kolberg <[email protected]> * update wording, make name && url/checksum flags mutually exclusive Signed-off-by: Justin Kolberg <[email protected]> * command install should use url to archive, not asset def Signed-off-by: Justin Kolberg <[email protected]> * return error when deleting a non-existant command Signed-off-by: Justin Kolberg <[email protected]> * add tests for InstallCommandFromBonsai Signed-off-by: Justin Kolberg <[email protected]> * add tests for InstallCommandFromURL Signed-off-by: Justin Kolberg <[email protected]> * add tests for ExecCommand Signed-off-by: Justin Kolberg <[email protected]> * append args to command in ExecCommand Signed-off-by: Justin Kolberg <[email protected]> * Get method for MockAssetGetter should use a pointer receiver Signed-off-by: Justin Kolberg <[email protected]>
- Loading branch information