Documentation ¶
Index ¶
- func NewInterfaceDescriptor(typedDescriptor *InterfaceDescriptor) *KVDescriptor
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewInterfaceDescriptor ¶
func NewInterfaceDescriptor(typedDescriptor *InterfaceDescriptor) *KVDescriptor
Types ¶
type InterfaceDescriptor ¶
type InterfaceDescriptor struct { Name string KeySelector KeySelector ValueTypeName string KeyLabel func(key string) string ValueComparator func(key string, oldValue, newValue *mock_interfaces.Interface) bool NBKeyPrefix string WithMetadata bool MetadataMapFactory MetadataMapFactory Validate func(key string, value *mock_interfaces.Interface) error Create func(key string, value *mock_interfaces.Interface) (metadata *idxvpp.OnlyIndex, err error) Delete func(key string, value *mock_interfaces.Interface, metadata *idxvpp.OnlyIndex) error Update func(key string, oldValue, newValue *mock_interfaces.Interface, oldMetadata *idxvpp.OnlyIndex) (newMetadata *idxvpp.OnlyIndex, err error) UpdateWithRecreate func(key string, oldValue, newValue *mock_interfaces.Interface, metadata *idxvpp.OnlyIndex) bool Retrieve func(correlate []InterfaceKVWithMetadata) ([]InterfaceKVWithMetadata, error) IsRetriableFailure func(err error) bool DerivedValues func(key string, value *mock_interfaces.Interface) []KeyValuePair Dependencies func(key string, value *mock_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
Click to show internal directories.
Click to hide internal directories.