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 ¶
Types ¶
type CatalogResolver ¶
type CatalogResolver struct { WalkCatalogsFunc func(context.Context, string, CatalogWalkFunc, ...client.ListOption) error Validations []ValidationFunc }
func (*CatalogResolver) Resolve ¶
func (r *CatalogResolver) Resolve(ctx context.Context, ext *ocv1.ClusterExtension, installedBundle *ocv1.BundleMetadata) (*declcfg.Bundle, *bsemver.Version, *declcfg.Deprecation, error)
Resolve returns a Bundle from a catalog that needs to get installed on the cluster.
type CatalogWalkFunc ¶
type CatalogWalkFunc func(context.Context, *catalogd.ClusterCatalog, *declcfg.DeclarativeConfig, error) error
type Func ¶
type Func func(ctx context.Context, ext *ocv1.ClusterExtension, installedBundle *ocv1.BundleMetadata) (*declcfg.Bundle, *bsemver.Version, *declcfg.Deprecation, error)
type Resolver ¶
type Resolver interface {
Resolve(ctx context.Context, ext *ocv1.ClusterExtension, installedBundle *ocv1.BundleMetadata) (*declcfg.Bundle, *bsemver.Version, *declcfg.Deprecation, error)
}
type ValidationFunc ¶
Click to show internal directories.
Click to hide internal directories.