Documentation ¶
Index ¶
- Constants
- Variables
- type DeckhouseController
- func (dml *DeckhouseController) DiscoverDeckhouseModules(ctx context.Context, moduleEventC <-chan events.ModuleEvent, ...) error
- func (dml *DeckhouseController) InitModulesAndConfigsStatuses() error
- func (dml *DeckhouseController) LoadModule(moduleSource, modulePath string) (*modules.BasicModule, error)
- func (dml *DeckhouseController) LoadModules() ([]*modules.BasicModule, error)
- func (dml *DeckhouseController) StartPluggableModulesControllers(ctx context.Context)
Constants ¶
View Source
const ( ModuleOrderIdx = 2 ModuleNameIdx = 3 )
Variables ¶
View Source
var (
ErrModuleAlreadyExists = errors.New("module already exists")
)
Functions ¶
This section is empty.
Types ¶
type DeckhouseController ¶
type DeckhouseController struct {
// contains filtered or unexported fields
}
func NewDeckhouseController ¶
func NewDeckhouseController(ctx context.Context, config *rest.Config, mm *module_manager.ModuleManager, metricStorage *metric_storage.MetricStorage) (*DeckhouseController, error)
func (*DeckhouseController) DiscoverDeckhouseModules ¶ added in v1.60.1
func (dml *DeckhouseController) DiscoverDeckhouseModules(ctx context.Context, moduleEventC <-chan events.ModuleEvent, deckhouseConfigC <-chan utils.Values) error
discovers modules on the fs, runs modules events loop (register/delete/etc)
func (*DeckhouseController) InitModulesAndConfigsStatuses ¶ added in v1.59.0
func (dml *DeckhouseController) InitModulesAndConfigsStatuses() error
InitModulesAndConfigsStatuses inits and moduleconfigs' status fields at start up
func (*DeckhouseController) LoadModule ¶ added in v1.59.0
func (dml *DeckhouseController) LoadModule(moduleSource, modulePath string) (*modules.BasicModule, error)
LoadModule reads single directory and returns BasicModule modulePath is in the following format: /deckhouse-controller/external-modules/<module_name>/<module_version>
func (*DeckhouseController) LoadModules ¶
func (dml *DeckhouseController) LoadModules() ([]*modules.BasicModule, error)
func (*DeckhouseController) StartPluggableModulesControllers ¶ added in v1.60.1
func (dml *DeckhouseController) StartPluggableModulesControllers(ctx context.Context)
Start function starts all child controllers linked with Modules
Click to show internal directories.
Click to hide internal directories.