Documentation ¶
Index ¶
- Constants
- Variables
- func DumpAPIData(ctx ginkgo.SpecContext, client *apiclient.Client, config *ReportFailedConfig)
- func DumpServiceLogs(ctx ginkgo.SpecContext, testEnv types.Environment, config *ReportFailedConfig)
- func GetCustomScanConfig(scanFamiliesConfig *apitypes.ScanFamiliesConfig, scope string, ...) apitypes.ScanConfig
- func GetFullScanConfig(scope string, timeout time.Duration) apitypes.ScanConfig
- func ReportFailed(ctx ginkgo.SpecContext, testEnv types.Environment, client *apiclient.Client, ...)
- func UpdateScanConfigToStartNow(config *apitypes.ScanConfig) *apitypes.ScanConfig
- type APIObject
- type ReportFailedConfig
Constants ¶
View Source
const DefaultTimeout = 60 * time.Second
Variables ¶
View Source
var FullScanFamiliesConfig = apitypes.ScanFamiliesConfig{ Exploits: &apitypes.ExploitsConfig{ Enabled: to.Ptr(true), }, InfoFinder: &apitypes.InfoFinderConfig{ Enabled: to.Ptr(true), }, Malware: &apitypes.MalwareConfig{ Enabled: to.Ptr(false), }, Misconfigurations: &apitypes.MisconfigurationsConfig{ Enabled: to.Ptr(true), }, Rootkits: &apitypes.RootkitsConfig{ Enabled: to.Ptr(true), }, Sbom: &apitypes.SBOMConfig{ Enabled: to.Ptr(true), }, Secrets: &apitypes.SecretsConfig{ Enabled: to.Ptr(true), }, Vulnerabilities: &apitypes.VulnerabilitiesConfig{ Enabled: to.Ptr(true), }, }
Functions ¶
func DumpAPIData ¶
func DumpAPIData(ctx ginkgo.SpecContext, client *apiclient.Client, config *ReportFailedConfig)
nolint:cyclop DumpAPIData prints API objects filtered using test parameters (e.g. assets filtered by scope, scan configs filtered by id). If filter not provided, no objects are printed.
func DumpServiceLogs ¶
func DumpServiceLogs(ctx ginkgo.SpecContext, testEnv types.Environment, config *ReportFailedConfig)
DumpServiceLogs prints service logs since the test started until it failed.
func GetCustomScanConfig ¶
func GetCustomScanConfig(scanFamiliesConfig *apitypes.ScanFamiliesConfig, scope string, timeoutSeconds int) apitypes.ScanConfig
func GetFullScanConfig ¶
func GetFullScanConfig(scope string, timeout time.Duration) apitypes.ScanConfig
func ReportFailed ¶
func ReportFailed(ctx ginkgo.SpecContext, testEnv types.Environment, client *apiclient.Client, config *ReportFailedConfig)
ReportFailed gathers relevant API data and docker service logs for debugging purposes.
func UpdateScanConfigToStartNow ¶
func UpdateScanConfigToStartNow(config *apitypes.ScanConfig) *apitypes.ScanConfig
Types ¶
type ReportFailedConfig ¶
type ReportFailedConfig struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.