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 ¶
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 (*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).
Click to show internal directories.
Click to hide internal directories.