registry

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAbsent

func IsAbsent(err error) bool

func IsAuthnFail

func IsAuthnFail(err error) bool

func IsAuthzFail

func IsAuthzFail(err error) bool

func IsOldRegistry

func IsOldRegistry(err error) bool

Types

type Checker

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

func NewChecker

func NewChecker(
	stopCh <-chan struct{},
	kubeClient *kubernetes.Clientset,
	skipVerify bool,
	plainHTTP bool,
	caPths []string,
	forceCheckDisabledControllerKinds []string,
	ignoredImages []regexp.Regexp,
	defaultRegistry string,
	namespaceLabel string,
	mirrorsMap map[string]string,
) *Checker

func (*Checker) Check

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

func (*Checker) Collect

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

Collect implements prometheus.Collector.

func (*Checker) Describe

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

Describe implements prometheus.Collector.

func (*Checker) Tick

func (rc *Checker) Tick()

type ControllerIndexers

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

func (ControllerIndexers) ExtractPullSecretRefs

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

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

Jump to

Keyboard shortcuts

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