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 ¶
func (a *Adapter) Resolve(ctx context.Context, domain *networksv1alpha1.Domain) (*resolve.ResolvedDomain, error)
Resolve delegates to resolve.ResolveDomain, returning the validated typed contract or an error if spec.contract fails validation.