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 Deployment resolution Adapter.

This file owns the Adapter — a thin struct wrapper around resolve.ResolveDeployment. The Adapter exists to satisfy 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.

Current deps are intentionally empty — client and logger will be added here when resolution requires cross-CR reads or observability hooks. Until then, resolution is pure and stateless so no deps are needed.

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 Deployment resolution function for interface-based injection. Stateless — all resolution logic lives in resolve.ResolveDeployment.

Planned future deps (add when needed):

  • client client.Client — for cross-CR reads during resolution.
  • log logr.Logger — for resolution observability.

func NewAdapter

func NewAdapter() *Adapter

NewAdapter constructs a stateless Deployment resolution Adapter.

func (*Adapter) Resolve

Resolve delegates to resolve.ResolveDeployment, returning the resolved Deployment contract or an error if the CR spec fails validation.

Jump to

Keyboard shortcuts

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