postgres

package
v0.0.0-...-0eac6c9 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package postgres provides a PostgreSQL implementation of the repository interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuditRepository

func NewAuditRepository(db *pgxpool.Pool, auditCfg config.AuditConfig) *auditRepository

NewAuditRepository creates a new Audit repository.

func NewKLRRepository

func NewKLRRepository(db *gorm.DB) service.KeyLifecycleRegistry

NewKLRRepository creates a new KLR repository.

func NewPostgresRiskRepository

func NewPostgresRiskRepository(db *gorm.DB) repository.RiskRepository

NewPostgresRiskRepository creates a new PostgresRiskRepository.

Types

type PostgresRiskRepository

type PostgresRiskRepository struct {
	// contains filtered or unexported fields
}

PostgresRiskRepository is a PostgreSQL implementation of the RiskRepository.

func (*PostgresRiskRepository) GetTenantRiskProfile

func (r *PostgresRiskRepository) GetTenantRiskProfile(ctx context.Context, tenantID string) (*models.TenantRiskProfile, error)

GetTenantRiskProfile retrieves the risk profile for a given tenant.

func (*PostgresRiskRepository) UpsertTenantRiskProfile

func (r *PostgresRiskRepository) UpsertTenantRiskProfile(ctx context.Context, profile *models.TenantRiskProfile) error

UpsertTenantRiskProfile creates or updates the risk profile for a tenant.

Jump to

Keyboard shortcuts

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