Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/whyeasy/zally-cleaner
A Go app to run as job to clean up old results from Zally Server.
https://github.com/whyeasy/zally-cleaner
Last synced: 16 days ago
JSON representation
A Go app to run as job to clean up old results from Zally Server.
- Host: GitHub
- URL: https://github.com/whyeasy/zally-cleaner
- Owner: Whyeasy
- License: apache-2.0
- Created: 2020-11-10T12:17:28.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-17T15:40:39.000Z (about 4 years ago)
- Last Synced: 2024-06-21T03:12:38.237Z (6 months ago)
- Language: Go
- Size: 18.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
![build](https://github.com/Whyeasy/zally-cleaner/workflows/build/badge.svg)
![status-badge](https://goreportcard.com/badge/github.com/Whyeasy/zally-cleaner)
![Github go.mod Go version](https://img.shields.io/github/go-mod/go-version/Whyeasy/zally-cleaner)# zally-cleaner
A Go app to run as a job to clean up old results from Zally Server and if it's backed with a Postgres Database.
## Requirements
Provide the Postgres host; `--postgresHost` or as env variable `POSTGRES_HOST`.
Provide the Postgres database name: `--postgresDatabase` or as env variable `POSTGRES_DB`.
Provide the Postgres user: `--postgresUser` or as env variable `POSTGRES_USER`.
Provide the Postgres user password: `--postgresPassword` or as env variable `POSTGRES_PASSWORD`.
### Optional
Change the port to use to connect to Postgres; `--postgresPort ` or as env variable `POSTGRES_PORT`. The default value is `"5432"`. Provide value as a string.
Change the SSL connection mode to Postgres; `--postgresSSL` or as env variable `POSTGRES_SSL`. The default value is `require`.
Change the retention period of the records to keep. `--zallyRetention ` or as env variable `ZALLY_RETENTION`. The default value is `"7"`. Provide value as a string and all entries older than the value will be deleted!
Change if you don't use the Zally violations metrics output. `--zallyMetrics ` or as env variable `ZALLY_METRICS`. The value is `"true"`. Provide value as a string.