dnsprovider

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 19 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownProvider = errors.New("dnsprovider: unknown provider")

ErrUnknownProvider is returned when NewAdapter receives a provider name that has no registered adapter.

Functions

func Apply

Apply performs the actual DNS record mutation post-gate-pass. Returns a typed step result with status="ok"|"provider-error".

func ExpandCredsMap

func ExpandCredsMap(in map[string]string) map[string]string

ExpandCredsMap applies os.ExpandEnv to each value. Template-form ('{{ env "X" }}') is pre-resolved by the engine; this catches bare-shell form ('$X' or '${X}'). EXPORTED: called from internal/plugin.go step handler.

func NewAdapter

func NewAdapter(provider string, creds map[string]string) (dnspolicy.Adapter, error)

NewAdapter dispatches on provider name (case-folded) + creds map. Providers self-register via init(). Unknown providers return ErrUnknownProvider with the supported list.

func Register added in v0.3.0

func Register(provider string, f AdapterFactory)

Register registers an adapter factory for a provider key (case-folded). Called from each provider file's init().

Types

type AdapterFactory added in v0.3.0

type AdapterFactory func(creds map[string]string) (dnspolicy.Adapter, error)

AdapterFactory constructs a dnspolicy.Adapter from a creds map.

Jump to

Keyboard shortcuts

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