Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSRulesService ¶
type DNSRulesService interface {
// GetDNSRules creates a fresh copy of DNS rules that can be used when
// endpoint is restored on a restart.
// The endpoint lock must not be held while calling this function.
GetDNSRules(epID uint16) restore.DNSRules
// RemoveRestoredDNSRules removes any restored DNS rules for
// this endpoint from the DNS proxy.
RemoveRestoredDNSRules(epID uint16)
}
func NewDNSRulesService ¶
func NewDNSRulesService(logger *slog.Logger, dnsProxy fqdnproxy.DNSProxier, policyRepo policy.PolicyRepository) DNSRulesService
Click to show internal directories.
Click to hide internal directories.