Documentation ¶
Index ¶
- func NewBondedInterfaceDescriptor(typedDescriptor *BondedInterfaceDescriptor) *KVDescriptor
- func NewInterfaceDescriptor(typedDescriptor *InterfaceDescriptor) *KVDescriptor
- func NewUnnumberedDescriptor(typedDescriptor *UnnumberedDescriptor) *KVDescriptor
- type BondedInterfaceDescriptor
- type BondedInterfaceDescriptorAdapter
- func (da *BondedInterfaceDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *BondedInterfaceDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *BondedInterfaceDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *BondedInterfaceDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *BondedInterfaceDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *BondedInterfaceDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *BondedInterfaceDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *BondedInterfaceDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *BondedInterfaceDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type BondedInterfaceKVWithMetadata
- type InterfaceDescriptor
- type InterfaceDescriptorAdapter
- func (da *InterfaceDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *InterfaceDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *InterfaceDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *InterfaceDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *InterfaceDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *InterfaceDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *InterfaceDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *InterfaceDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *InterfaceDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type InterfaceKVWithMetadata
- type UnnumberedDescriptor
- type UnnumberedDescriptorAdapter
- func (da *UnnumberedDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
- func (da *UnnumberedDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
- func (da *UnnumberedDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
- func (da *UnnumberedDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
- func (da *UnnumberedDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
- func (da *UnnumberedDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
- func (da *UnnumberedDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
- func (da *UnnumberedDescriptorAdapter) Validate(key string, value proto.Message) (err error)
- func (da *UnnumberedDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
- type UnnumberedKVWithMetadata
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBondedInterfaceDescriptor ¶
func NewBondedInterfaceDescriptor(typedDescriptor *BondedInterfaceDescriptor) *KVDescriptor
func NewInterfaceDescriptor ¶
func NewInterfaceDescriptor(typedDescriptor *InterfaceDescriptor) *KVDescriptor
func NewUnnumberedDescriptor ¶
func NewUnnumberedDescriptor(typedDescriptor *UnnumberedDescriptor) *KVDescriptor
Types ¶
type BondedInterfaceDescriptor ¶
type BondedInterfaceDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *vpp_interfaces.BondLink_BondedInterface) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *vpp_interfaces.BondLink_BondedInterface) error Create func(key string, value *vpp_interfaces.BondLink_BondedInterface) (metadata interface{}, err error) Delete func(key string, value *vpp_interfaces.BondLink_BondedInterface, metadata interface{}) error Update func(key string, oldValue, newValue *vpp_interfaces.BondLink_BondedInterface, oldMetadata interface{}) (newMetadata interface{}, err error) UpdateWithRecreate func(key string, oldValue, newValue *vpp_interfaces.BondLink_BondedInterface, metadata interface{}) bool Retrieve func(correlate []BondedInterfaceKVWithMetadata) ([]BondedInterfaceKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *vpp_interfaces.BondLink_BondedInterface) []KeyValuePair Dependencies func(key string, value *vpp_interfaces.BondLink_BondedInterface) []Dependency RetrieveDependencies []string /* descriptor name */ }
type BondedInterfaceDescriptorAdapter ¶
type BondedInterfaceDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*BondedInterfaceDescriptorAdapter) Create ¶
func (da *BondedInterfaceDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
func (*BondedInterfaceDescriptorAdapter) Delete ¶
func (da *BondedInterfaceDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*BondedInterfaceDescriptorAdapter) Dependencies ¶
func (da *BondedInterfaceDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*BondedInterfaceDescriptorAdapter) DerivedValues ¶
func (da *BondedInterfaceDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*BondedInterfaceDescriptorAdapter) Retrieve ¶
func (da *BondedInterfaceDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*BondedInterfaceDescriptorAdapter) Update ¶
func (da *BondedInterfaceDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*BondedInterfaceDescriptorAdapter) UpdateWithRecreate ¶
func (da *BondedInterfaceDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
func (*BondedInterfaceDescriptorAdapter) Validate ¶
func (da *BondedInterfaceDescriptorAdapter) Validate(key string, value proto.Message) (err error)
func (*BondedInterfaceDescriptorAdapter) ValueComparator ¶
func (da *BondedInterfaceDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
type BondedInterfaceKVWithMetadata ¶
type BondedInterfaceKVWithMetadata struct { Key string Value *vpp_interfaces.BondLink_BondedInterface Metadata interface{} Origin ValueOrigin }
type InterfaceDescriptor ¶
type InterfaceDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *vpp_interfaces.Interface) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *vpp_interfaces.Interface) error Create func(key string, value *vpp_interfaces.Interface) (metadata *ifaceidx.IfaceMetadata, err error) Delete func(key string, value *vpp_interfaces.Interface, metadata *ifaceidx.IfaceMetadata) error Update func(key string, oldValue, newValue *vpp_interfaces.Interface, oldMetadata *ifaceidx.IfaceMetadata) (newMetadata *ifaceidx.IfaceMetadata, err error) UpdateWithRecreate func(key string, oldValue, newValue *vpp_interfaces.Interface, metadata *ifaceidx.IfaceMetadata) bool Retrieve func(correlate []InterfaceKVWithMetadata) ([]InterfaceKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *vpp_interfaces.Interface) []KeyValuePair Dependencies func(key string, value *vpp_interfaces.Interface) []Dependency RetrieveDependencies []string /* descriptor name */ }
type InterfaceDescriptorAdapter ¶
type InterfaceDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*InterfaceDescriptorAdapter) Create ¶
func (da *InterfaceDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
func (*InterfaceDescriptorAdapter) Delete ¶
func (da *InterfaceDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*InterfaceDescriptorAdapter) Dependencies ¶
func (da *InterfaceDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*InterfaceDescriptorAdapter) DerivedValues ¶
func (da *InterfaceDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*InterfaceDescriptorAdapter) Retrieve ¶
func (da *InterfaceDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*InterfaceDescriptorAdapter) Update ¶
func (da *InterfaceDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*InterfaceDescriptorAdapter) UpdateWithRecreate ¶
func (da *InterfaceDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
func (*InterfaceDescriptorAdapter) Validate ¶
func (da *InterfaceDescriptorAdapter) Validate(key string, value proto.Message) (err error)
func (*InterfaceDescriptorAdapter) ValueComparator ¶
func (da *InterfaceDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
type InterfaceKVWithMetadata ¶
type InterfaceKVWithMetadata struct { Key string Value *vpp_interfaces.Interface Metadata *ifaceidx.IfaceMetadata Origin ValueOrigin }
type UnnumberedDescriptor ¶
type UnnumberedDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *vpp_interfaces.Interface_Unnumbered) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *vpp_interfaces.Interface_Unnumbered) error Create func(key string, value *vpp_interfaces.Interface_Unnumbered) (metadata interface{}, err error) Delete func(key string, value *vpp_interfaces.Interface_Unnumbered, metadata interface{}) error Update func(key string, oldValue, newValue *vpp_interfaces.Interface_Unnumbered, oldMetadata interface{}) (newMetadata interface{}, err error) UpdateWithRecreate func(key string, oldValue, newValue *vpp_interfaces.Interface_Unnumbered, metadata interface{}) bool Retrieve func(correlate []UnnumberedKVWithMetadata) ([]UnnumberedKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *vpp_interfaces.Interface_Unnumbered) []KeyValuePair Dependencies func(key string, value *vpp_interfaces.Interface_Unnumbered) []Dependency RetrieveDependencies []string /* descriptor name */ }
type UnnumberedDescriptorAdapter ¶
type UnnumberedDescriptorAdapter struct {
// contains filtered or unexported fields
}
func (*UnnumberedDescriptorAdapter) Create ¶
func (da *UnnumberedDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)
func (*UnnumberedDescriptorAdapter) Delete ¶
func (da *UnnumberedDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error
func (*UnnumberedDescriptorAdapter) Dependencies ¶
func (da *UnnumberedDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency
func (*UnnumberedDescriptorAdapter) DerivedValues ¶
func (da *UnnumberedDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair
func (*UnnumberedDescriptorAdapter) Retrieve ¶
func (da *UnnumberedDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)
func (*UnnumberedDescriptorAdapter) Update ¶
func (da *UnnumberedDescriptorAdapter) Update(key string, oldValue, newValue proto.Message, oldMetadata Metadata) (newMetadata Metadata, err error)
func (*UnnumberedDescriptorAdapter) UpdateWithRecreate ¶
func (da *UnnumberedDescriptorAdapter) UpdateWithRecreate(key string, oldValue, newValue proto.Message, metadata Metadata) bool
func (*UnnumberedDescriptorAdapter) Validate ¶
func (da *UnnumberedDescriptorAdapter) Validate(key string, value proto.Message) (err error)
func (*UnnumberedDescriptorAdapter) ValueComparator ¶
func (da *UnnumberedDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) bool
type UnnumberedKVWithMetadata ¶
type UnnumberedKVWithMetadata struct { Key string Value *vpp_interfaces.Interface_Unnumbered Metadata interface{} Origin ValueOrigin }
Click to show internal directories.
Click to hide internal directories.