pkg

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInventoryReport

func GetInventoryReport(cfg *config.Application) (inventory.Report, error)

GetInventoryReport is an atomic method for getting in-use image results, in parallel for multiple namespaces

func HandleReport

func HandleReport(report inventory.Report, cfg *config.Application) 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 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