Documentation ¶
Index ¶
- func GetAccountRoutedNamespaces(defaultAccount string, namespaces []inventory.Namespace, ...) map[string][]inventory.Namespace
- func GetAllNamespaces(cfg *config.Application) ([]inventory.Namespace, error)
- func GetInventoryReportForNamespaces(cfg *config.Application, namespaces []inventory.Namespace) (inventory.Report, error)
- func GetNamespacesBatches(namespaces []inventory.Namespace, batchSize int) [][]inventory.Namespace
- func HandleReport(report inventory.Report, reportInfo *healthreporter.InventoryReportInfo, ...) error
- func PeriodicallyGetInventoryReport(cfg *config.Application, ch integration.Channels, ...)
- func SetLogger(logger logger.Logger)
- type AccountRoutedReports
- type BatchedReports
- type ReportItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAccountRoutedNamespaces ¶ added in v1.5.0
func GetAccountRoutedNamespaces(defaultAccount string, namespaces []inventory.Namespace, accountRoutes config.AccountRoutes, namespaceLabelRouting config.AccountRouteByNamespaceLabel) map[string][]inventory.Namespace
func GetAllNamespaces ¶ added in v1.5.0
func GetAllNamespaces(cfg *config.Application) ([]inventory.Namespace, error)
func GetInventoryReportForNamespaces ¶ added in v1.5.0
func GetInventoryReportForNamespaces( cfg *config.Application, namespaces []inventory.Namespace, ) (inventory.Report, error)
GetInventoryReportForNamespaces is an atomic method for getting in-use image results, in parallel for multiple namespaces
func GetNamespacesBatches ¶ added in v1.6.0
func HandleReport ¶
func HandleReport(report inventory.Report, reportInfo *healthreporter.InventoryReportInfo, cfg *config.Application, account string) error
func PeriodicallyGetInventoryReport ¶
func PeriodicallyGetInventoryReport(cfg *config.Application, ch integration.Channels, gatedReportInfo *healthreporter.GatedReportInfo)
PeriodicallyGetInventoryReport periodically retrieve image results and report/output them according to the configuration. Note: Errors do not cause the function to exit, since this is periodically running
Types ¶
type AccountRoutedReports ¶ added in v1.5.0
type BatchedReports ¶ added in v1.6.0
func GetInventoryReports ¶ added in v1.5.0
func GetInventoryReports(cfg *config.Application) (BatchedReports, error)
Directories ¶
Path | Synopsis |
---|---|
Wraps some of the initialization details for the k8s clientset
|
Wraps some of the initialization details for the k8s clientset |
Defines the logging interface available to the application code
|
Defines the logging interface available to the application code |
Determines the Execution Modes supported by the application.
|
Determines the Execution Modes supported by the application. |
Once In-Use Image data has been gathered, this package reports the data to Anchore
|
Once In-Use Image data has been gathered, this package reports the data to Anchore |
Click to show internal directories.
Click to hide internal directories.