A project to parse meta information to extract IPs/ CIDRs from Github, Cloudflare and AWS (and more) for whitelisting. The output is produced in an nginx compatible format so you can use the binary executable in your cron to automatically refresh the list of IPs.
This project directly utilizes the following open sources projects:
- Cobra for implementing the CLI interactions
- Go-Resty as its HTTP client library
- Govvv to add version information during its build process
- Logrus as its logging library
- Dotsql for SQL migrations (not being used currently)
- Gopsutil - CPU for CPU information (not being used currently)
- Gopsutil - Load for system load information (not being used currently)
- Viper for reading configuration files
- Times for file times (atime, mtime, ctime, btime)
Code tries to conform to the Golang Standards Project layout template
-
Install Govvv
-
Clone the repository
git clone https://github.com/shammishailaj/metaparser.git
-
Change into the directory
cd metaparser
-
Issue the build command
make build
Or, grab the latest release from the releases page
help
To display help about a command
Invoked By: metaparser help [command]
For detailed documentation, use the inbuilt command docs
to generate the documentation.
For help on using the docs
command use:
metaparser help docs