registry

package
v1.3.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2022 License: UPL-1.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ComponentDependenciesMet

func ComponentDependenciesMet(c spi.Component, context spi.ComponentContext) bool

ComponentDependenciesMet Checks if the declared dependencies for the component are ready and available; this is a shallow check of the direct dependencies, with the expectation that any indirect dependencies will be implicitly handled.

For now, a dependency is soft; that is, we only care if it's Ready if it's enabled; if not we pass the dependency check so as not to block the dependent. This would theoretically allow, for example, components that depend on Istio to continue to deploy if it's not enabled. In the long run, the dependency mechanism should likely go away and allow components to individually make those decisions.

func FindComponent

func FindComponent(componentName string) (bool, spi.Component)

func GetComponents

func GetComponents() []spi.Component

GetComponents returns the list of components that are installable and upgradeable. The components will be processed in the order items in the array The components will be processed in the order items in the array

func OverrideGetComponentsFn

func OverrideGetComponentsFn(fnType GetCompoentsFnType)

OverrideGetComponentsFn Allows overriding the set of registry components for testing purposes

func ResetGetComponentsFn

func ResetGetComponentsFn()

ResetGetComponentsFn Restores the GetComponents implementation to the default if it's been overridden for testing

Types

type GetCompoentsFnType

type GetCompoentsFnType func() []spi.Component

Jump to

Keyboard shortcuts

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