Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DNSCacheDescriptorName is the name of the descriptor for VPP DNS cache server functionality
DNSCacheDescriptorName = "vpp-dns-cache"
)
Variables ¶
This section is empty.
Functions ¶
func NewDNSCacheDescriptor ¶
func NewDNSCacheDescriptor(dnsHandler vppcalls.DNSVppAPI, log logging.PluginLogger) *scheduler.KVDescriptor
NewDNSCacheDescriptor creates a new instance of the DNSCache descriptor.
Types ¶
type DNSCacheDescriptor ¶
type DNSCacheDescriptor struct {
// contains filtered or unexported fields
}
DNSCacheDescriptor teaches KVScheduler how to configure VPP to act as DNS cache server.
func (*DNSCacheDescriptor) Create ¶
func (d *DNSCacheDescriptor) Create(key string, value *dns.DNSCache) (metadata interface{}, err error)
Create enables and configures DNS functionality in VPP using VPP's binary api
func (*DNSCacheDescriptor) Delete ¶
func (d *DNSCacheDescriptor) Delete(key string, value *dns.DNSCache, metadata interface{}) error
Delete disables (and removes configuration) DNS functionality in VPP using VPP's binary api
func (*DNSCacheDescriptor) ValidateDNSCache ¶
func (d *DNSCacheDescriptor) ValidateDNSCache(key string, dnsCache *dns.DNSCache) error
ValidateDNSCache validates content of DNS cache server configuration
Click to show internal directories.
Click to hide internal directories.