dnsgate

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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gate

func Gate(ctx context.Context, reader dnspolicy.DNSPolicyReader, zone, name, recordType, owner string) error

Gate is the uncached entry point (one GetTXT per call). Use this for one-off invocations (CLI commands, integration tests). For step handlers processing many records in one apply, use NewCachingGate + Check.

func PolicyName

func PolicyName(zone string) string

PolicyName returns the TXT name where policy lives for a zone.

Types

type CachingGate

type CachingGate struct {
	// contains filtered or unexported fields
}

CachingGate is a Gate-call wrapper with per-zone caching. One *CachingGate per wfctl apply invocation; releases at end of invocation (no TTL).

func NewCachingGate

func NewCachingGate() *CachingGate

NewCachingGate returns a new CachingGate.

func (*CachingGate) Check

func (g *CachingGate) Check(ctx context.Context, reader dnspolicy.DNSPolicyReader, zone, name, recordType, owner string) error

Check is the cached entry point used by infra.dns_record step handlers processing multiple records in one apply (single GetTXT per zone, not per record).

Jump to

Keyboard shortcuts

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