Documentation
¶
Index ¶
- type Manager
- func (m *Manager) ChangePruningFreqInterval()
- func (m *Manager) GetModuleIndex() int
- func (m *Manager) GetName() string
- func (m *Manager) PruneAgent() string
- func (m *Manager) SetEngine(e engine.ContainerEngine)
- func (m *Manager) SetGetMicroservicesCallback(fn func() []string)
- func (m *Manager) Start() error
- func (m *Manager) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Manager ¶
type Manager struct {
// contains filtered or unexported fields
}
Manager manages image pruning for all container engine types.
func GetInstance ¶
func GetInstance() *Manager
GetInstance returns the singleton pruning Manager instance.
func (*Manager) ChangePruningFreqInterval ¶
func (m *Manager) ChangePruningFreqInterval()
ChangePruningFreqInterval reschedules frequency-based pruning with new interval. Cancels the old frequency goroutine before launching a new one to prevent leaks.
func (*Manager) GetModuleIndex ¶
GetModuleIndex returns the module index (Docker Pruning Manager doesn't have a specific index)
func (*Manager) PruneAgent ¶
PruneAgent prunes dangling images on demand (CLI command / controller API). which calls docker system prune (dangling-only). This is intentionally lighter than scheduled pruning which removes all unused images.
func (*Manager) SetEngine ¶
func (m *Manager) SetEngine(e engine.ContainerEngine)
SetEngine sets the ContainerEngine to use for pruning. When set, pruning delegates to engine.PruneImages() instead of the Docker-specific logic, enabling correct pruning for iofog/containerd and other non-Docker engines.
func (*Manager) SetGetMicroservicesCallback ¶
SetGetMicroservicesCallback sets a callback that returns image names for ALL currently configured microservices (running or not). These images are protected from scheduled/threshold pruning. Called by the supervisor after ProcessManager is wired up.