filter

package
v0.1.35 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package filter provides filters for agentpackage domain model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Sanity

type Sanity struct{}

Sanity provides methods to sanitize AgentPackage during update operations. It preserves immutable fields (like CreatedAt) from the existing model to the new model.

func NewSanity

func NewSanity() *Sanity

NewSanity creates a new instance of Sanity filter.

func (*Sanity) Sanitize

func (f *Sanity) Sanitize(
	existing *agentmodel.AgentPackage,
	updated *agentmodel.AgentPackage,
) *agentmodel.AgentPackage

Sanitize preserves immutable fields from the existing AgentPackage to the updated one. Immutable fields: Metadata.CreatedAt, Status (preserved entirely).

Jump to

Keyboard shortcuts

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