Documentation ¶
Index ¶
- func NewDNSCacheDescriptor(typedDescriptor *DNSCacheDescriptor) *KVDescriptor
- type DNSCacheDescriptor
- type DNSCacheDescriptorAdapter
- func (da *DNSCacheDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *DNSCacheDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *DNSCacheDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *DNSCacheDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *DNSCacheDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *DNSCacheDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *DNSCacheDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *DNSCacheDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *DNSCacheDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type DNSCacheKVWithMetadata
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 }
Click to show internal directories.
Click to hide internal directories.