pkg/test/webhook-apicoverage/tools
Slavomir Kaslev c2a529b1b7 Fix several mishandled errors.Wrap conversions. (#992)
Fixes: e08acb95 (Remove all occurrences of github.com/pkg/errors. (#888))
2020-01-16 08:44:03 -08:00
..
README.md Move webhook apicoverage to knative/pkg (#555) 2019-08-06 07:16:55 -07:00
tools.go Fix several mishandled errors.Wrap conversions. (#992) 2020-01-16 08:44:03 -08:00

README.md

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:

  1. GetDefaultKubePath: Helper method to retrieve the path for Kubeconfig inside users home directory.
  2. GetWebhookServiceIP: Helper method to retrieve the public IP address for the webhook service. The service is setup as part of the apicoverage-webhook setup.
  3. 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 Setup
  4. GetAndWriteResourceCoverage: Helper method that uses GetResourceCoverage to retrieve resource coverage and writes output to a file.
  5. 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 Setup
  6. GetAndWriteTotalCoverage: Helper method that uses GetTotalCoverage to retrieve total coverage and writes output to a file.