Help us shape the future of Go! Take the 2026 Go Developer Survey

resolve

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CatalogWalker

func CatalogWalker(
	listCatalogs func(context.Context, ...client.ListOption) ([]catalogd.ClusterCatalog, error),
	getPackage func(context.Context, *catalogd.ClusterCatalog, string) (*declcfg.DeclarativeConfig, error),
) func(ctx context.Context, packageName string, f CatalogWalkFunc, catalogListOpts ...client.ListOption) error

func NoDependencyValidation

func NoDependencyValidation(bundle *declcfg.Bundle) error

Types

type CatalogResolver

type CatalogResolver struct {
	WalkCatalogsFunc func(context.Context, string, CatalogWalkFunc, ...client.ListOption) error
	Validations      []ValidationFunc
}

func (*CatalogResolver) Resolve

Resolve returns a Bundle from a catalog that needs to get installed on the cluster.

type Func

func (Func) Resolve

type Resolver

type Resolver interface {
	Resolve(ctx context.Context, ext *ocv1.ClusterExtension, installedBundle *ocv1.BundleMetadata) (*declcfg.Bundle, *bsemver.Version, *declcfg.Deprecation, error)
}

type ValidationFunc

type ValidationFunc func(*declcfg.Bundle) error

Jump to

Keyboard shortcuts

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