fetcher

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

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

Documentation

Overview

Package fetcher provides implementation of the Fetcher component of the TKR Source Controller responsible for fetching TKR BOM, TKR compatibility and TKR package repository OCI images.

Index

Constants

View Source
const (
	// InitialDiscoveryRetry is the number of retries for the initial TKR sync-up
	InitialDiscoveryRetry = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	TKRNamespace         string
	LegacyTKRNamespace   string
	BOMImagePath         string
	BOMMetadataImagePath string
	TKRRepoImagePath     string
	TKRDiscoveryOption   TKRDiscoveryIntervals
}

Config contains the controller manager context.

type Fetcher

type Fetcher struct {
	Log    logr.Logger
	Client client.Client
	Config Config

	Registry registry.Registry

	Compatibility version.Compatibility
}

func (*Fetcher) SetupWithManager

func (f *Fetcher) SetupWithManager(m ctrl.Manager) error

func (*Fetcher) Start

func (f *Fetcher) Start(ctx context.Context) error

type TKRDiscoveryIntervals

type TKRDiscoveryIntervals struct {
	InitialDiscoveryFrequency    time.Duration
	ContinuousDiscoveryFrequency time.Duration
}

TKRDiscoveryIntervals contains the discovery intervals.

Jump to

Keyboard shortcuts

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