Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Generate ¶
func Generate(auditLogsPath string, swaggerPath string, filter string, storeInFilePath string, detailed bool) ([]byte, error)
Generate provides a full REST API coverage report based on k8s audit log and swagger definition, by passing params: - "filter" you can limit the report to specific resources, as an example, "/apis/kubevirt.io/v1alpha3/" limits to kubevirt v1alpha3; "" no limit - "storeInFilePath" instead of sending the report to stdout it is possible to keep it as a file in JSON format (always detailed) - "detailed" whether a printed report should contain coverage information for each resource, if not it will show only the total coverage number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.