provider

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 26 Imported by: 3

Documentation

Index

Constants

View Source
const (
	OsLabelPrefix    = "operatorframework.io/os"
	ArchLabelPrefix  = "operatorframework.io/arch"
	DefaultOsLabel   = "operatorframework.io/os.linux"
	DefaultArchLabel = "operatorframework.io/arch.amd64"
	Supported        = "supported"
)

Variables

This section is empty.

Functions

func PackageManifestKeyFunc

func PackageManifestKeyFunc(obj interface{}) (string, error)

func SplitPackageManifestKey

func SplitPackageManifestKey(key string) (catsrcname, namespace, name string, err error)

Types

type PackageManifestProvider

type PackageManifestProvider interface {
	Get(namespace, name string) (*operators.PackageManifest, error)
	List(namespace string, selector labels.Selector) (*operators.PackageManifestList, error)
}

type RegistryProvider

type RegistryProvider struct {
	queueinformer.Operator
	// contains filtered or unexported fields
}

RegistryProvider aggregates several `CatalogSources` and establishes gRPC connections to their registry servers.

func NewRegistryProvider

func NewRegistryProvider(ctx context.Context, crClient versioned.Interface, operator queueinformer.Operator, wakeupInterval time.Duration, globalNamespace string) (*RegistryProvider, error)

func (*RegistryProvider) Get

func (p *RegistryProvider) Get(namespace, name string) (*operators.PackageManifest, error)

func (*RegistryProvider) List

func (p *RegistryProvider) List(namespace string, selector labels.Selector) (*operators.PackageManifestList, error)

func (*RegistryProvider) Run

func (p *RegistryProvider) Run(ctx context.Context)

Run starts the provider's source connection management and catalog informers without blocking.

Jump to

Keyboard shortcuts

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