pruning

package
v1.1.0-rc.8 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2026 License: EPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

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. Enabling or changing frequency does not prune immediately; the next run is the new ticker. Disk-threshold prune is unchanged.

func (*Manager) GetModuleIndex

func (m *Manager) GetModuleIndex() int

GetModuleIndex returns the module index (Edgelet Pruning Manager doesn't have a specific index)

func (*Manager) GetName

func (m *Manager) GetName() string

GetName returns the module name

func (*Manager) PruneAgent

func (m *Manager) PruneAgent() string

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

func (m *Manager) SetGetMicroservicesCallback(fn func() []string)

SetGetMicroservicesCallback sets a callback that returns image names for ALL currently configured microservices (controller-managed and local-deployed, running or not). These images are protected from scheduled/threshold pruning. Called by the supervisor after ProcessManager is wired up.

func (*Manager) SetPruneKnowledgeCallback added in v1.1.0

func (m *Manager) SetPruneKnowledgeCallback(fn func())

SetPruneKnowledgeCallback runs on the same scheduled tick as unused local models.

func (*Manager) SetPruneModelsCallback added in v1.1.0

func (m *Manager) SetPruneModelsCallback(fn func())

SetPruneModelsCallback runs on the same scheduled tick as image prune.

func (*Manager) Start

func (m *Manager) Start() error

Start starts the Edgelet Pruning Manager

func (*Manager) Stop

func (m *Manager) Stop() error

Stop stops the Edgelet Pruning Manager

Jump to

Keyboard shortcuts

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