mirror of
https://github.com/hanzoai/pki.git
synced 2026-11-03 18:08:14 +00:00
daniel
xpki
Library for working with certificates and keys
Requirements
- GoLang 1.18+
Contribution
make allcomplete build and testmake testrun the testsmake testshortruns the tests skipping the end-to-end tests and the code coverage reportingmake covtestruns the tests with end-to-end and the code coverage reportingmake coverageview the code coverage results from the last make test run.make generateruns go generate to update any code generated filesmake fmtruns go fmt on the project.make lintruns the go linter on the project.
run make all once, then run make build or make test as needed.
First run:
make all
Tests:
make test
Optionally run golang race detector with test targets by setting RACE flag:
make test RACE=true
Review coverage report:
make covtest coverage
Environment
To work with keys on AWK KMS simulator container, set AWS environment to test values:
export AWS_ACCESS_KEY_ID=notusedbyemulator
export AWS_SECRET_ACCESS_KEY=notusedbyemulator
export AWS_DEFAULT_REGION=us-west-2
Tools
Languages
Go
98%
Shell
1.2%
Makefile
0.8%