registry_checker

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2023 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAbsent added in v0.1.12

func IsAbsent(err error) bool

func IsAuthnFail added in v0.1.12

func IsAuthnFail(err error) bool

func IsAuthzFail added in v0.1.12

func IsAuthzFail(err error) bool

func IsOldRegistry added in v0.1.12

func IsOldRegistry(err error) bool

Types

type ControllerIndexers

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

func (ControllerIndexers) ExtractPullSecretRefs added in v0.4.0

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

func (ControllerIndexers) GetContainerInfosForImage

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

func (ControllerIndexers) GetKeychainForImage

func (ci ControllerIndexers) GetKeychainForImage(image string) authn.Keychain

func (ControllerIndexers) GetObjectsByImageIndex added in v0.4.0

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

type RegistryChecker

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

func NewRegistryChecker

func NewRegistryChecker(
	stopCh <-chan struct{},
	kubeClient *kubernetes.Clientset,
	skipVerify bool,
	ignoredImages []regexp.Regexp,
	defaultRegistry string,
	namespaceLabel string,
) *RegistryChecker

func (*RegistryChecker) Check

func (rc *RegistryChecker) Check(imageName string) store.AvailabilityMode

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) Tick added in v0.2.0

func (rc *RegistryChecker) Tick()

Jump to

Keyboard shortcuts

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