Documentation ¶
Index ¶
- func NewBDInterfaceDescriptor(typedDescriptor *BDInterfaceDescriptor) *KVDescriptor
- func NewBridgeDomainDescriptor(typedDescriptor *BridgeDomainDescriptor) *KVDescriptor
- func NewFIBDescriptor(typedDescriptor *FIBDescriptor) *KVDescriptor
- func NewXConnectDescriptor(typedDescriptor *XConnectDescriptor) *KVDescriptor
- type BDInterfaceDescriptor
- type BDInterfaceDescriptorAdapter
- func (da *BDInterfaceDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *BDInterfaceDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *BDInterfaceDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *BDInterfaceDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *BDInterfaceDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *BDInterfaceDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *BDInterfaceDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *BDInterfaceDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *BDInterfaceDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type BDInterfaceKVWithMetadata
- type BridgeDomainDescriptor
- type BridgeDomainDescriptorAdapter
- func (da *BridgeDomainDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *BridgeDomainDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *BridgeDomainDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *BridgeDomainDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *BridgeDomainDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *BridgeDomainDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *BridgeDomainDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *BridgeDomainDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *BridgeDomainDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type BridgeDomainKVWithMetadata
- type FIBDescriptor
- type FIBDescriptorAdapter
- func (da *FIBDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *FIBDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *FIBDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *FIBDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *FIBDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *FIBDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *FIBDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *FIBDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *FIBDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type FIBKVWithMetadata
- type XConnectDescriptor
- type XConnectDescriptorAdapter
- func (da *XConnectDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *XConnectDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *XConnectDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *XConnectDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *XConnectDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *XConnectDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *XConnectDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *XConnectDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *XConnectDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type XConnectKVWithMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBDInterfaceDescriptor ¶
func NewBDInterfaceDescriptor(typedDescriptor *BDInterfaceDescriptor) *KVDescriptor
func NewBridgeDomainDescriptor ¶
func NewBridgeDomainDescriptor(typedDescriptor *BridgeDomainDescriptor) *KVDescriptor
func NewFIBDescriptor ¶
func NewFIBDescriptor(typedDescriptor *FIBDescriptor) *KVDescriptor
func NewXConnectDescriptor ¶
func NewXConnectDescriptor(typedDescriptor *XConnectDescriptor) *KVDescriptor
Types ¶
type BDInterfaceDescriptor ¶
type BDInterfaceDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *vpp_l2.BridgeDomain_Interface) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *vpp_l2.BridgeDomain_Interface) error Create func(key string, value *vpp_l2.BridgeDomain_Interface) (metadata interface{}, err error) Delete func(key string, value *vpp_l2.BridgeDomain_Interface, metadata interface{}) error Update func(key string, oldValue, newValue *vpp_l2.BridgeDomain_Interface, oldMetadata interface{}) (newMetadata interface{}, err error) UpdateWithRecreate func(key string, oldValue, newValue *vpp_l2.BridgeDomain_Interface, metadata interface{}) bool Retrieve func(correlate []BDInterfaceKVWithMetadata) ([]BDInterfaceKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *vpp_l2.BridgeDomain_Interface) []KeyValuePair Dependencies func(key string, value *vpp_l2.BridgeDomain_Interface) []Dependency RetrieveDependencies []string /* descriptor name */ }
type BDInterfaceDescriptorAdapter ¶
type BDInterfaceDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*BDInterfaceDescriptorAdapter) Create ¶
func (da *BDInterfaceDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
func (*BDInterfaceDescriptorAdapter) Delete ¶
func (da *BDInterfaceDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*BDInterfaceDescriptorAdapter) Dependencies ¶
func (da *BDInterfaceDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*BDInterfaceDescriptorAdapter) DerivedValues ¶
func (da *BDInterfaceDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*BDInterfaceDescriptorAdapter) Retrieve ¶
func (da *BDInterfaceDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*BDInterfaceDescriptorAdapter) Update ¶
func (da *BDInterfaceDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*BDInterfaceDescriptorAdapter) UpdateWithRecreate ¶
func (da *BDInterfaceDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
type BDInterfaceKVWithMetadata ¶
type BDInterfaceKVWithMetadata struct { Key string Value *vpp_l2.BridgeDomain_Interface Metadata interface{} Origin ValueOrigin }
type BridgeDomainDescriptor ¶
type BridgeDomainDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *vpp_l2.BridgeDomain) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *vpp_l2.BridgeDomain) error Create func(key string, value *vpp_l2.BridgeDomain) (metadata *idxvpp.OnlyIndex, err error) Delete func(key string, value *vpp_l2.BridgeDomain, metadata *idxvpp.OnlyIndex) error Update func(key string, oldValue, newValue *vpp_l2.BridgeDomain, oldMetadata *idxvpp.OnlyIndex) (newMetadata *idxvpp.OnlyIndex, err error) UpdateWithRecreate func(key string, oldValue, newValue *vpp_l2.BridgeDomain, metadata *idxvpp.OnlyIndex) bool Retrieve func(correlate []BridgeDomainKVWithMetadata) ([]BridgeDomainKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *vpp_l2.BridgeDomain) []KeyValuePair Dependencies func(key string, value *vpp_l2.BridgeDomain) []Dependency RetrieveDependencies []string /* descriptor name */ }
type BridgeDomainDescriptorAdapter ¶
type BridgeDomainDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*BridgeDomainDescriptorAdapter) Create ¶
func (da *BridgeDomainDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
func (*BridgeDomainDescriptorAdapter) Delete ¶
func (da *BridgeDomainDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*BridgeDomainDescriptorAdapter) Dependencies ¶
func (da *BridgeDomainDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*BridgeDomainDescriptorAdapter) DerivedValues ¶
func (da *BridgeDomainDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*BridgeDomainDescriptorAdapter) Retrieve ¶
func (da *BridgeDomainDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*BridgeDomainDescriptorAdapter) Update ¶
func (da *BridgeDomainDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*BridgeDomainDescriptorAdapter) UpdateWithRecreate ¶
func (da *BridgeDomainDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
type BridgeDomainKVWithMetadata ¶
type FIBDescriptor ¶
type FIBDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *vpp_l2.FIBEntry) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *vpp_l2.FIBEntry) error Create func(key string, value *vpp_l2.FIBEntry) (metadata interface{}, err error) Delete func(key string, value *vpp_l2.FIBEntry, metadata interface{}) error Update func(key string, oldValue, newValue *vpp_l2.FIBEntry, oldMetadata interface{}) (newMetadata interface{}, err error) UpdateWithRecreate func(key string, oldValue, newValue *vpp_l2.FIBEntry, metadata interface{}) bool Retrieve func(correlate []FIBKVWithMetadata) ([]FIBKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *vpp_l2.FIBEntry) []KeyValuePair Dependencies func(key string, value *vpp_l2.FIBEntry) []Dependency RetrieveDependencies []string /* descriptor name */ }
type FIBDescriptorAdapter ¶
type FIBDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*FIBDescriptorAdapter) Create ¶
func (da *FIBDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
func (*FIBDescriptorAdapter) Delete ¶
func (da *FIBDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*FIBDescriptorAdapter) Dependencies ¶
func (da *FIBDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*FIBDescriptorAdapter) DerivedValues ¶
func (da *FIBDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*FIBDescriptorAdapter) Retrieve ¶
func (da *FIBDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*FIBDescriptorAdapter) Update ¶
func (da *FIBDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*FIBDescriptorAdapter) UpdateWithRecreate ¶
func (da *FIBDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
type FIBKVWithMetadata ¶
type FIBKVWithMetadata struct { Key string Value *vpp_l2.FIBEntry Metadata interface{} Origin ValueOrigin }
type XConnectDescriptor ¶
type XConnectDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *vpp_l2.XConnectPair) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *vpp_l2.XConnectPair) error Create func(key string, value *vpp_l2.XConnectPair) (metadata interface{}, err error) Delete func(key string, value *vpp_l2.XConnectPair, metadata interface{}) error Update func(key string, oldValue, newValue *vpp_l2.XConnectPair, oldMetadata interface{}) (newMetadata interface{}, err error) UpdateWithRecreate func(key string, oldValue, newValue *vpp_l2.XConnectPair, metadata interface{}) bool Retrieve func(correlate []XConnectKVWithMetadata) ([]XConnectKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *vpp_l2.XConnectPair) []KeyValuePair Dependencies func(key string, value *vpp_l2.XConnectPair) []Dependency RetrieveDependencies []string /* descriptor name */ }
type XConnectDescriptorAdapter ¶
type XConnectDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*XConnectDescriptorAdapter) Create ¶
func (da *XConnectDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
func (*XConnectDescriptorAdapter) Delete ¶
func (da *XConnectDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*XConnectDescriptorAdapter) Dependencies ¶
func (da *XConnectDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*XConnectDescriptorAdapter) DerivedValues ¶
func (da *XConnectDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*XConnectDescriptorAdapter) Retrieve ¶
func (da *XConnectDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*XConnectDescriptorAdapter) Update ¶
func (da *XConnectDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*XConnectDescriptorAdapter) UpdateWithRecreate ¶
func (da *XConnectDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
Click to show internal directories.
Click to hide internal directories.