registry_checker

package
v0.1.9 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualObjects

func EqualObjects(a, b interface{}) bool

func ExtractContainerInfos

func ExtractContainerInfos(image string, obj interface{}) []store.ContainerInfo

func ExtractImages

func ExtractImages(obj interface{}) ([]string, error)

func ExtractPullSecretRefs

func ExtractPullSecretRefs(obj interface{}) (ret []string)

func GetImagesFromCronJob

func GetImagesFromCronJob(obj interface{}) ([]string, error)

func GetImagesFromDaemonSet

func GetImagesFromDaemonSet(obj interface{}) ([]string, error)

func GetImagesFromDeployment

func GetImagesFromDeployment(obj interface{}) ([]string, error)

func GetImagesFromStatefulSet

func GetImagesFromStatefulSet(obj interface{}) ([]string, error)

Types

type ControllerIndexers

type ControllerIndexers struct {
	// contains filtered or unexported fields
}

func (ControllerIndexers) CheckImageExistence

func (ci ControllerIndexers) CheckImageExistence(image string) bool

func (ControllerIndexers) GetContainerInfosForImage

func (ci ControllerIndexers) GetContainerInfosForImage(image string) (ret []store.ContainerInfo)

func (ControllerIndexers) GetKeychainForImage

func (ci ControllerIndexers) GetKeychainForImage(image string) *keychain

func (ControllerIndexers) GetKeysByIndex

func (ci ControllerIndexers) GetKeysByIndex(image string) (ret []string)

func (ControllerIndexers) GetObjectsByIndex

func (ci ControllerIndexers) GetObjectsByIndex(image string) (ret []interface{})

type RegistryChecker

type RegistryChecker struct {
	// contains filtered or unexported fields
}

func NewRegistryChecker

func NewRegistryChecker(
	kubeClient *kubernetes.Clientset,
	ignoredImages []string,
) *RegistryChecker

func (*RegistryChecker) Check

func (rc *RegistryChecker) Check()

func (*RegistryChecker) Collect

func (rc *RegistryChecker) Collect(ch chan<- prometheus.Metric)

Collect implements prometheus.Collector.

func (*RegistryChecker) Describe

func (rc *RegistryChecker) Describe(_ chan<- *prometheus.Desc)

Describe implements prometheus.Collector.

func (*RegistryChecker) Run

func (rc *RegistryChecker) Run(stopCh <-chan struct{})

Jump to

Keyboard shortcuts

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