supervisor

package
v1.0.0-rc.4 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2026 License: EPL-2.0 Imports: 29 Imported by: 0

Documentation

Index

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) ReloadFromDisk

func (s *Supervisor) ReloadFromDisk() error

ReloadFromDisk performs a full hot reload: read disk, validate, update logger, notify modules.

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

Jump to

Keyboard shortcuts

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