Documentation
¶
Index ¶
- type Module
- type Supervisor
- func (s *Supervisor) BeginConfigReload()
- func (s *Supervisor) CaptureReloadEngineContext() *reloadEngineContext
- func (s *Supervisor) GetModuleIndex() int
- func (s *Supervisor) GetName() string
- func (s *Supervisor) ReloadConfig() error
- func (s *Supervisor) ReloadConfigWithContext(reloadCtx *reloadEngineContext) error
- func (s *Supervisor) SetContainerdAttachOnly(v bool)
- func (s *Supervisor) SetPrestartedContainerd(svc *containerd.Service)
- func (s *Supervisor) Start() error
- func (s *Supervisor) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Module ¶
type Module interface {
// Start starts the module
Start() error
// Stop stops the module gracefully
Stop() error
// GetName returns the module name
GetName() string
// GetModuleIndex returns the module index (for status reporting)
GetModuleIndex() int
}
Module represents an ioFog module that can be managed by the Supervisor
type Supervisor ¶
type Supervisor struct {
// contains filtered or unexported fields
}
Supervisor orchestrates all ioFog modules
func NewSupervisor ¶
func NewSupervisor() *Supervisor
NewSupervisor creates a new Supervisor instance
func (*Supervisor) BeginConfigReload ¶
func (s *Supervisor) BeginConfigReload()
BeginConfigReload snapshots engine connection settings before LoadConfig replaces them.
func (*Supervisor) CaptureReloadEngineContext ¶
func (s *Supervisor) CaptureReloadEngineContext() *reloadEngineContext
CaptureReloadEngineContext snapshots containerEngineUrl before config reload for warm revert.
func (*Supervisor) GetModuleIndex ¶
func (s *Supervisor) GetModuleIndex() int
GetModuleIndex returns the supervisor module index
func (*Supervisor) GetName ¶
func (s *Supervisor) GetName() string
GetName returns the supervisor module name
func (*Supervisor) ReloadConfig ¶
func (s *Supervisor) ReloadConfig() error
ReloadConfig notifies all modules that configuration has been reloaded.
func (*Supervisor) ReloadConfigWithContext ¶
func (s *Supervisor) ReloadConfigWithContext(reloadCtx *reloadEngineContext) error
ReloadConfigWithContext notifies modules after config reload with engine lifecycle handling.
func (*Supervisor) SetContainerdAttachOnly ¶
func (s *Supervisor) SetContainerdAttachOnly(v bool)
SetContainerdAttachOnly marks containerd as owned by the data-plane unit (Plan 11 split).
func (*Supervisor) SetPrestartedContainerd ¶
func (s *Supervisor) SetPrestartedContainerd(svc *containerd.Service)
SetPrestartedContainerd injects an embedded containerd service already started in main (embedded engine). Supervisor will not start containerd again; it only runs the watchdog and stops containerd on shutdown unless attach-only (runtime split).
func (*Supervisor) Start ¶
func (s *Supervisor) Start() error
Start starts all modules in the correct order
func (*Supervisor) Stop ¶
func (s *Supervisor) Stop() error
Stop stops all modules gracefully in reverse order