pkg

package
v1.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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 GetNamespacesBatches(namespaces []inventory.Namespace, batchSize int) [][]inventory.Namespace

func HandleReport

func HandleReport(report inventory.Report, cfg *config.Application, account string) error

func PeriodicallyGetInventoryReport

func PeriodicallyGetInventoryReport(cfg *config.Application)

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

func SetLogger

func SetLogger(logger logger.Logger)

Types

type AccountRoutedReports added in v1.5.0

type AccountRoutedReports map[string]inventory.Report

type BatchedReports added in v1.6.0

type BatchedReports map[string][]inventory.Report

func GetInventoryReports added in v1.5.0

func GetInventoryReports(cfg *config.Application) (BatchedReports, error)

type ReportItem

type ReportItem struct {
	Namespace  inventory.Namespace
	Pods       []inventory.Pod
	Containers []inventory.Container
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL