package
0.0.0-20191106183803-93838817ef49
Repository: https://github.com/lionelvillard/pkg.git
Documentation: pkg.go.dev
# README
Tools
Tools package is intended to contain types and public helper methods that provide utilities to solves common requirements across repos. It currently contains following helper methods:
GetDefaultKubePath
: Helper method to retrieve the path for Kubeconfig inside users home directory.GetWebhookServiceIP
: Helper method to retrieve the public IP address for the webhook service. The service is setup as part of the apicoverage-webhook setup.GetResourceCoverage
: Helper method to retrieve Coverage data for a resource passed as parameter. The coverage data is retrieved from the API that is exposed by the HTTP server in Webhook SetupGetAndWriteResourceCoverage
: Helper method that usesGetResourceCoverage
to retrieve resource coverage and writes output to a file.GetTotalCoverage
: Helper method to retrieve total coverage data for a repo. The coverage data is retrieved from the API that is exposed by the HTTP server in Webhook SetupGetAndWriteTotalCoverage
: Helper method that usesGetTotalCoverage
to retrieve total coverage and writes output to a file.