Documentation ¶
Index ¶
- type DNSCache
- type DNSHandler
- type DNSProxy
- func (p *DNSProxy) CacheAddr() (string, error)
- func (p *DNSProxy) GetSetsForFQDN(fqdn firewallv1.FQDNSelector, fqdnSets []firewallv1.IPSet) (result []firewallv1.IPSet)
- func (p *DNSProxy) GetSetsForRendering(fqdns []firewallv1.FQDNSelector) (result []RenderIPSet)
- func (p *DNSProxy) IsInitialized() bool
- func (p *DNSProxy) Run(ctx context.Context)
- func (p *DNSProxy) Stop()
- func (p *DNSProxy) UpdateDNSServerAddr(addr string) error
- type DNSProxyHandler
- type IPVersion
- type RenderIPSet
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSHandler ¶
type DNSProxy ¶
type DNSProxy struct {
// contains filtered or unexported fields
}
func (*DNSProxy) GetSetsForFQDN ¶
func (p *DNSProxy) GetSetsForFQDN(fqdn firewallv1.FQDNSelector, fqdnSets []firewallv1.IPSet) (result []firewallv1.IPSet)
func (*DNSProxy) GetSetsForRendering ¶
func (p *DNSProxy) GetSetsForRendering(fqdns []firewallv1.FQDNSelector) (result []RenderIPSet)
func (*DNSProxy) IsInitialized ¶
func (*DNSProxy) UpdateDNSServerAddr ¶
type DNSProxyHandler ¶
type DNSProxyHandler struct {
// contains filtered or unexported fields
}
func NewDNSProxyHandler ¶
func NewDNSProxyHandler(log logr.Logger, cache *DNSCache) *DNSProxyHandler
func (*DNSProxyHandler) ServeDNS ¶
func (h *DNSProxyHandler) ServeDNS(w dnsgo.ResponseWriter, request *dnsgo.Msg)
func (*DNSProxyHandler) UpdateDNSServerAddr ¶
func (h *DNSProxyHandler) UpdateDNSServerAddr(addr string) error
UpdateDNSServerAddr validates and if successful updates DNS server address
type RenderIPSet ¶
type RenderIPSet struct { SetName string `json:"setName,omitempty"` IPs []string `json:"ips,omitempty"` Version IPVersion `json:"version,omitempty"` }
RenderIPSet stores set info for rendering
Click to show internal directories.
Click to hide internal directories.