vppcalls

package
v3.5.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Handler = vpp.RegisterHandler(vpp.HandlerDesc{
	Name:       "dns",
	HandlerAPI: (*DNSVppAPI)(nil),
})

Functions

func AddHandlerVersion

func AddHandlerVersion(version vpp.Version, msgs []govppapi.Message, h NewHandlerFunc)

Types

type DNSVPPRead

type DNSVPPRead interface {
}

DNSVPPRead provides read methods for DNS cache server functionality

type DNSVPPWrite

type DNSVPPWrite interface {
	// EnableDNS make act VPP as DNS cache server
	EnableDNS() error

	// DisableDNS disables functionality that makes VPP act as DNS cache server
	DisableDNS() error

	// AddUpstreamDNSServer adds new upstream DNS Server to the upstream DNS server list
	AddUpstreamDNSServer(serverIPAddress net.IP) error

	// DeleteUpstreamDNSServer removes upstream DNS Server from the upstream DNS server list
	DeleteUpstreamDNSServer(serverIPAddress net.IP) error
}

DNSVPPWrite provides write methods for DNS cache server functionality

type DNSVppAPI

type DNSVppAPI interface {
	DNSVPPWrite
	DNSVPPRead
}

DNSVppAPI is API boundary for vppcall package access, introduced to properly test code dependent on vppcalls package

func CompatibleDNSHandler

func CompatibleDNSHandler(c vpp.Client, log logging.Logger) DNSVppAPI

type NewHandlerFunc

type NewHandlerFunc func(vpp.Client, logging.Logger) DNSVppAPI

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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