lifecycle

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 12 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 handles memory lifecycle operations.

func NewManager

func NewManager(st store.Store, emb embedder.Embedder, logger *slog.Logger) *Manager

NewManager creates a new lifecycle manager. emb may be nil; when nil, the consolidation phase is skipped.

func (*Manager) Run

func (m *Manager) Run(ctx context.Context, dryRun bool) (*Report, error)

Run executes all lifecycle operations and collects errors from all phases. Partial results are preserved even when some phases fail.

type Report

type Report struct {
	Expired           int `json:"expired"`
	Decayed           int `json:"decayed"`
	Consolidated      int `json:"consolidated"`
	Retired           int `json:"retired"`
	ConflictsResolved int `json:"conflicts_resolved"`
}

Report summarizes the results of a lifecycle run.

Jump to

Keyboard shortcuts

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