* make docker: build a docker image for redoctober
* add a convenient entrypoint to generate certificates out of the box
* add detection based on RO_CERTS and RO_KEYS
instead of detection based on the presence of RO_DATA, add RO_CERTS and RO_KEYS
which are paths to the ceritificates and keys so we can generate them more
effectively.
Signed-off-by: Daniel Dao <dqminh@cloudflare.com>
* dockerfile: bump golang to 1.7.1
The major work here has been:
1. Clean up some go idioms to make the code more idiomatic and simplify
functions where possible to minimize number of lines where there was
unnecessary code.
2. Document as many of the functions and packages as possible.
3. Add a test suite for the padding package.
4. Force 'go fmt' when 'make' is performed.
5. Better handling of errors throughout the code. There were quite a few
that were ignored, now they are handled and reported on (e.g. if the
JSON in the password vault is broken it will no longer be ignored, etc.)
6. Changed the names of a number of functions to make them clearer.
The code could now do with someone who knows it well to go through and
document everything clearly for release.