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 (*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).
Click to show internal directories.
Click to hide internal directories.