Documentation ¶
Index ¶
- Constants
- func GetAndWriteResourceCoverage(webhookIP string, resourceName string, outputFile string, ...) error
- func GetAndWriteTotalCoverage(webhookIP string, outputFile string) error
- func GetDefaultKubePath() (string, error)
- func GetResourceCoverage(webhookIP string, resourceName string) (string, error)
- func GetTotalCoverage(webhookIP string) (*coveragecalculator.CoverageValues, error)
- func GetWebhookServiceIP(kubeConfigPath string, clusterName string, namespace string, ...) (string, error)
Constants ¶
View Source
const ( // WebhookResourceCoverageEndPoint constant for resource coverage API endpoint. WebhookResourceCoverageEndPoint = "https://%s:443" + webhook.ResourceCoverageEndPoint + "?resource=%s" // WebhookTotalCoverageEndPoint constant for total coverage API endpoint. WebhookTotalCoverageEndPoint = "https://%s:443" + webhook.TotalCoverageEndPoint )
Variables ¶
This section is empty.
Functions ¶
func GetAndWriteResourceCoverage ¶
func GetAndWriteResourceCoverage(webhookIP string, resourceName string, outputFile string, displayRules view.DisplayRules) error
GetAndWriteResourceCoverage is a helper method that uses GetResourceCoverage to get coverage and write it to a file.
func GetAndWriteTotalCoverage ¶
GetAndWriteTotalCoverage uses the GetTotalCoverage method to get total coverage and write it to a output file.
func GetDefaultKubePath ¶
GetDefaultKubePath helper method to fetch kubeconfig path.
func GetResourceCoverage ¶
GetResourceCoverage is a helper method to get Coverage data for a resource from the service webhook.
func GetTotalCoverage ¶
func GetTotalCoverage(webhookIP string) (*coveragecalculator.CoverageValues, error)
GetTotalCoverage calls the total coverage API to retrieve total coverage values.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.