Documentation
¶
Index ¶
- Variables
- func Apply(ctx context.Context, a dnspolicy.Adapter, cfg *contracts.DNSRecordStepConfig, ...) (*sdk.TypedStepResult[*contracts.DNSRecordStepOutput], error)
- func ExpandCredsMap(in map[string]string) map[string]string
- func NewAdapter(provider string, creds map[string]string) (dnspolicy.Adapter, error)
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 ¶
func Apply(ctx context.Context, a dnspolicy.Adapter, cfg *contracts.DNSRecordStepConfig, input *contracts.DNSRecordStepInput) (*sdk.TypedStepResult[*contracts.DNSRecordStepOutput], error)
Apply performs the actual DNS record mutation post-gate-pass. Returns a typed step result with status="ok"|"provider-error".
func ExpandCredsMap ¶
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.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.