Documentation
¶
Overview ¶
Package filter provides filters for certificate 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 Certificate 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.Certificate, updated *agentmodel.Certificate, ) *agentmodel.Certificate
Sanitize preserves immutable fields from the existing Certificate to the updated one. Immutable fields: Metadata.CreatedAt, Status (preserved entirely).
Click to show internal directories.
Click to hide internal directories.