Documentation ¶
Index ¶
- type ExtensionControl
- type Manager
- func (m *Manager) Attachable() bool
- func (m *Manager) ConfigureVM(vm *otto.Otto) prompt.Completer
- func (m *Manager) Exist(name string) bool
- func (m *Manager) Installed() (extensions []string)
- func (m *Manager) IsRunning(name string) bool
- func (m *Manager) Load(name string, args ...map[string]string) map[string]interface{}
- func (m *Manager) Run(name string, args ...map[string]string) map[string]interface{}
- func (m *Manager) Running() []string
- func (m *Manager) SetMainModule(main types.ModulesHub)
- func (m *Manager) Stop(name string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ExtensionControl ¶
type ExtensionControl struct {
// contains filtered or unexported fields
}
ExtensionControl provides functionalities for controlling a loaded extension
type Manager ¶
type Manager struct { types.ModuleCommon // contains filtered or unexported fields }
Manager implements Modules. It provides extension management functionalities.
func NewManager ¶
NewManager creates an instance of Manager
func (*Manager) Attachable ¶
Attachable indicates that a module can be loaded in attach mode
func (*Manager) ConfigureVM ¶
ConfigureVM implements types.ModulesHub. It configures the JS context and return any number of console prompt suggestions
func (*Manager) Load ¶
Load loads an extension. Returns control functions: - run: for running the extension. - isRunning: for checking run status - stop: for stopping the extension
func (*Manager) Run ¶
Run loads and starts an extension. It returns controls for checking run status and for stopping it.
func (*Manager) SetMainModule ¶
func (m *Manager) SetMainModule(main types.ModulesHub)
SetMainModule configures the main JS module