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 agentgroup 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 AgentGroup 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.AgentGroup,
	updated *agentmodel.AgentGroup,
) *agentmodel.AgentGroup

Sanitize preserves immutable fields from the existing AgentGroup to the updated one. Immutable fields: Metadata.CreatedAt, Status.Conditions (preserved, then updated condition appended by caller).

Jump to

Keyboard shortcuts

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