Documentation
¶
Index ¶
- type Config
- type ConfigMapConfig
- type Plugin
- func (p *Plugin) Name() string
- func (p *Plugin) OnAdd(endpoint *externaldnsv1alpha1.DNSEndpoint) error
- func (p *Plugin) OnDelete(endpoint *externaldnsv1alpha1.DNSEndpoint) error
- func (p *Plugin) OnIngressAdd(ing *networkingv1.Ingress) error
- func (p *Plugin) OnIngressDelete(ing *networkingv1.Ingress) error
- func (p *Plugin) OnIngressUpdate(ing *networkingv1.Ingress) error
- func (p *Plugin) OnServiceAdd(svc *corev1.Service) error
- func (p *Plugin) OnServiceDelete(svc *corev1.Service) error
- func (p *Plugin) OnServiceUpdate(svc *corev1.Service) error
- func (p *Plugin) OnUpdate(endpoint *externaldnsv1alpha1.DNSEndpoint) error
- func (p *Plugin) ServeDNS(ctx context.Context, w dns.ResponseWriter, r *dns.Msg) (int, error)
- func (p *Plugin) Start(ctx context.Context) error
- func (p *Plugin) Stop()
- func (p *Plugin) Transfer(zone string, serial uint32) (<-chan []dns.RR, error)
- type SOAConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Core settings
Namespace string
TTL uint32
Zones []string
// SOA configuration
SOA SOAConfig
// ConfigMap settings for zone serial persistence
ConfigMap ConfigMapConfig
}
Config holds the plugin configuration
func DefaultConfig ¶
func DefaultConfig() *Config
DefaultConfig returns a configuration with sensible defaults
type ConfigMapConfig ¶
type ConfigMapConfig struct {
Name string // ConfigMap name
Namespace string // ConfigMap namespace
}
ConfigMapConfig holds ConfigMap settings
type Plugin ¶
Plugin represents the ExternalDNS CoreDNS plugin
func (*Plugin) OnAdd ¶
func (p *Plugin) OnAdd(endpoint *externaldnsv1alpha1.DNSEndpoint) error
OnAdd handles DNSEndpoint addition events
func (*Plugin) OnDelete ¶
func (p *Plugin) OnDelete(endpoint *externaldnsv1alpha1.DNSEndpoint) error
OnDelete handles DNSEndpoint deletion events
func (*Plugin) OnIngressAdd ¶
func (p *Plugin) OnIngressAdd(ing *networkingv1.Ingress) error
OnIngressAdd handles Ingress addition events
func (*Plugin) OnIngressDelete ¶
func (p *Plugin) OnIngressDelete(ing *networkingv1.Ingress) error
OnIngressDelete handles Ingress deletion events
func (*Plugin) OnIngressUpdate ¶
func (p *Plugin) OnIngressUpdate(ing *networkingv1.Ingress) error
OnIngressUpdate handles Ingress update events
func (*Plugin) OnServiceAdd ¶
OnServiceAdd handles Service addition events
func (*Plugin) OnServiceDelete ¶
OnServiceDelete handles Service deletion events
func (*Plugin) OnServiceUpdate ¶
OnServiceUpdate handles Service update events
func (*Plugin) OnUpdate ¶
func (p *Plugin) OnUpdate(endpoint *externaldnsv1alpha1.DNSEndpoint) error
OnUpdate handles DNSEndpoint update events
Click to show internal directories.
Click to hide internal directories.