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: 1 Imported by: 0

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 NewSanity

func NewSanity() *Sanity

NewSanity creates a new instance of Sanity filter.

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).

Jump to

Keyboard shortcuts

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