adapter

package
v0.8.8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package adapter implements the Domain resolution Adapter.

This file owns the Adapter — a thin struct wrapper around resolve.ResolveDomain. The Adapter satisfies interface-based injection points in the application layer where a concrete resolution dependency must be passed as a value rather than called as a free function.

Stateless by design — all resolution logic lives in the resolve package. Future deps (client, logger) will be wired here when cross-CR reads or observability hooks are required. Until then, resolution is pure and nothing is needed at construction time.

See also:

  • resolution/domain/resolve — resolution entry point and types
  • resolution/domain/contract — one-way proto projection
  • pkg/domain/application/service.go — primary consumer of Adapter.Resolve

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Adapter

type Adapter struct {
}

Adapter wraps the Domain resolution function for interface-based injection. Stateless — all resolution logic lives in resolve.ResolveDomain.

Planned future deps (add when needed):

  • client client.Client — for cross-CR reads (e.g. verifying Route ownership)
  • log logr.Logger — for resolution observability

func NewAdapter

func NewAdapter() *Adapter

NewAdapter constructs a stateless Domain resolution Adapter.

func (*Adapter) Resolve

Resolve delegates to resolve.ResolveDomain, returning the validated typed contract or an error if spec.contract fails validation.

Jump to

Keyboard shortcuts

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