descriptor

package
v3.5.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL