dnsprovider

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: MIT Imports: 12 Imported by: 0

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. v1 supports digitalocean + cloudflare. Unknown providers return ErrUnknownProvider with the supported list.

Types

This section is empty.

Jump to

Keyboard shortcuts

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