crowdsec/pkg/database
Laurence Jones 55247cd46a
Add machines prune command (#2011)
* Add machines prune command

* Fix scope variable for naming scheme

* Add some freshness and add new features

* Fix force and fix duration if less than 60

* Allow duration to be more readable

* Fix description

* Improve func wording and make int machines length

* No point overloading functions

* Add prune to list of commands

* Check if GID is already the group if so no need to chown

* Revert "Check if GID is already the group if so no need to chown"

This reverts commit c7cef1773e.

* change all short desc to be similar, and made it really really clear when pruning it is not recoverable

* Better examples

* Match bouncer like for like

* Fix merge error

* Dont use log. and dont return error on user input to abort
2023-07-28 15:23:47 +01:00
..
ent add indexes on the FK between alerts and {decisions,metas,events} (#2188) 2023-05-11 13:49:01 +02:00
alerts.go errors.Wrap -> fmt.Errorf (#2333) 2023-07-06 10:14:45 +02:00
bouncers.go Update go dependencies (#2293) 2023-06-22 11:31:41 +02:00
config.go Update go dependencies (#2293) 2023-06-22 11:31:41 +02:00
database.go dependencies: replaced function calls to pkg/types, errors.Wrap (#2235) 2023-06-01 16:31:56 +02:00
decisions.go errors.Wrap -> fmt.Errorf (#2333) 2023-07-06 10:14:45 +02:00
errors.go Apiclient tests (#484) 2020-11-30 16:15:07 +01:00
file_utils.go Tighten windows sqlite database permissions (#1769) 2022-09-28 16:18:00 +02:00
file_utils_windows.go Tighten windows sqlite database permissions (#1769) 2022-09-28 16:18:00 +02:00
machines.go Add machines prune command (#2011) 2023-07-28 15:23:47 +01:00
utils.go local api (#482) 2020-11-30 10:37:17 +01:00