adapter

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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNSCacheDescriptor

func NewDNSCacheDescriptor(typedDescriptor *DNSCacheDescriptor) *KVDescriptor

Types

type DNSCacheDescriptor

type DNSCacheDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_dns.DNSCache) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_dns.DNSCache) error
	Create               func(key string, value *vpp_dns.DNSCache) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_dns.DNSCache, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_dns.DNSCache, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_dns.DNSCache, metadata interface{}) bool
	Retrieve             func(correlate []DNSCacheKVWithMetadata) ([]DNSCacheKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_dns.DNSCache) []KeyValuePair
	Dependencies         func(key string, value *vpp_dns.DNSCache) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type DNSCacheDescriptorAdapter

type DNSCacheDescriptorAdapter struct {
	// contains filtered or unexported fields
}

func (*DNSCacheDescriptorAdapter) Create

func (da *DNSCacheDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*DNSCacheDescriptorAdapter) Delete

func (da *DNSCacheDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*DNSCacheDescriptorAdapter) Dependencies

func (da *DNSCacheDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*DNSCacheDescriptorAdapter) DerivedValues

func (da *DNSCacheDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*DNSCacheDescriptorAdapter) Retrieve

func (da *DNSCacheDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*DNSCacheDescriptorAdapter) Update

func (da *DNSCacheDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)

func (*DNSCacheDescriptorAdapter) UpdateWithRecreate

func (da *DNSCacheDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool

func (*DNSCacheDescriptorAdapter) Validate

func (da *DNSCacheDescriptorAdapter) Validate(key string, value proto.Message) (err error)

func (*DNSCacheDescriptorAdapter) ValueComparator

func (da *DNSCacheDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool

type DNSCacheKVWithMetadata

type DNSCacheKVWithMetadata struct {
	Key      string
	Value    *vpp_dns.DNSCache
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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