moduleloader

package
v1.73.9 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2025 License: Apache-2.0 Imports: 38 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrModuleIsNotFound              = errors.New("module is not found")
	ErrConversionsDirectoryPathEmpty = errors.New("conversions directory path is empty")
)

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

func New

func New(client client.Client, version, modulesDir, globalDir string, dc dependency.Container, exts *extenders.ExtendersStack, embeddedPolicy *helpers.ModuleUpdatePolicySpecContainer, conversionsStore *conversion.ConversionsStore, logger *log.Logger) *Loader

func (*Loader) GetModuleByName

func (l *Loader) GetModuleByName(name string) (*moduletypes.Module, error)

func (*Loader) GetModulesByExclusiveGroup added in v1.70.0

func (l *Loader) GetModulesByExclusiveGroup(exclusiveGroup string) []string

func (*Loader) LoadModule

func (l *Loader) LoadModule(_, modulePath string) (*addonmodules.BasicModule, error)

LoadModule implements the module loader interface from addon-operator, it reads single directory and returns BasicModule modulePath is in the following format: /deckhouse-controller/downloaded/<module_name>/<module_version>

func (*Loader) LoadModules

func (l *Loader) LoadModules() ([]*addonmodules.BasicModule, error)

LoadModules implements the module loader interface from addon-operator, used for registering modules in addon-operator

func (*Loader) LoadModulesFromFS

func (l *Loader) LoadModulesFromFS(ctx context.Context) error

LoadModulesFromFS parses and ensures modules from FS

func (*Loader) Sync

func (l *Loader) Sync(ctx context.Context) error

Sync syncs fs and cluster, restores or deletes modules

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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