Rename backend services for portal

Point domain services, bootstrap, and related
packages at Compliance Portal types so callers
stop depending on the old Trust Center names.

Signed-off-by: Bryan Frimin <bryan@probo.com>
This commit is contained in:
Bryan Frimin
2026-07-20 18:08:21 +02:00
parent 4bf3d4df79
commit 0f0f6643ad
47 changed files with 727 additions and 727 deletions

View File

@@ -23,11 +23,11 @@ import (
"go.probo.inc/probo/pkg/gid"
)
func (s *Service) EffectiveDomainForCompliancePage(
func (s *Service) EffectiveDomainForCompliancePortal(
ctx context.Context,
conn pg.Querier,
scope coredata.Scoper,
compliancePage *coredata.TrustCenter,
compliancePage *coredata.CompliancePortal,
) (*coredata.CustomDomain, error) {
byID, active, err := loadDomains(ctx, conn, scope, compliancePage)
if err != nil {
@@ -49,11 +49,11 @@ func (s *Service) EffectiveDomainForCompliancePage(
return nil, nil
}
func (s *Service) PublicURLForCompliancePage(
func (s *Service) PublicURLForCompliancePortal(
ctx context.Context,
conn pg.Querier,
scope coredata.Scoper,
compliancePage *coredata.TrustCenter,
compliancePage *coredata.CompliancePortal,
) (string, error) {
byID, active, err := loadDomains(ctx, conn, scope, compliancePage)
if err != nil {
@@ -80,7 +80,7 @@ func loadDomains(
ctx context.Context,
conn pg.Querier,
scope coredata.Scoper,
compliancePage *coredata.TrustCenter,
compliancePage *coredata.CompliancePortal,
) (map[gid.GID]*coredata.CustomDomain, map[gid.GID]bool, error) {
var ids []gid.GID
if compliancePage.CustomDomainID != nil {