adapter

package
v2.0.0-alpha+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

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 *l2.BridgeDomain_Interface) bool
	NBKeyPrefix        string
	WithMetadata       bool
	MetadataMapFactory MetadataMapFactory
	Add                func(key string, value *l2.BridgeDomain_Interface) (metadata interface{}, err error)
	Delete             func(key string, value *l2.BridgeDomain_Interface, metadata interface{}) error
	Modify             func(key string, oldValue, newValue *l2.BridgeDomain_Interface, oldMetadata interface{}) (newMetadata interface{}, err error)
	ModifyWithRecreate func(key string, oldValue, newValue *l2.BridgeDomain_Interface, metadata interface{}) bool
	Update             func(key string, value *l2.BridgeDomain_Interface, metadata interface{}) error
	IsRetriableFailure func(err error) bool
	Dependencies       func(key string, value *l2.BridgeDomain_Interface) []Dependency
	DerivedValues      func(key string, value *l2.BridgeDomain_Interface) []KeyValuePair
	Dump               func(correlate []BDInterfaceKVWithMetadata) ([]BDInterfaceKVWithMetadata, error)
	DumpDependencies   []string /* descriptor name */
}

type BDInterfaceDescriptorAdapter

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

func (*BDInterfaceDescriptorAdapter) Add

func (da *BDInterfaceDescriptorAdapter) Add(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) Dump

func (da *BDInterfaceDescriptorAdapter) Dump(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*BDInterfaceDescriptorAdapter) Modify

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

func (*BDInterfaceDescriptorAdapter) ModifyWithRecreate

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

func (*BDInterfaceDescriptorAdapter) Update

func (da *BDInterfaceDescriptorAdapter) Update(key string, value proto.Message, metadata Metadata) error

func (*BDInterfaceDescriptorAdapter) ValueComparator

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

type BDInterfaceKVWithMetadata

type BDInterfaceKVWithMetadata struct {
	Key      string
	Value    *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 *l2.BridgeDomain) bool
	NBKeyPrefix        string
	WithMetadata       bool
	MetadataMapFactory MetadataMapFactory
	Add                func(key string, value *l2.BridgeDomain) (metadata *idxvpp2.OnlyIndex, err error)
	Delete             func(key string, value *l2.BridgeDomain, metadata *idxvpp2.OnlyIndex) error
	Modify             func(key string, oldValue, newValue *l2.BridgeDomain, oldMetadata *idxvpp2.OnlyIndex) (newMetadata *idxvpp2.OnlyIndex, err error)
	ModifyWithRecreate func(key string, oldValue, newValue *l2.BridgeDomain, metadata *idxvpp2.OnlyIndex) bool
	Update             func(key string, value *l2.BridgeDomain, metadata *idxvpp2.OnlyIndex) error
	IsRetriableFailure func(err error) bool
	Dependencies       func(key string, value *l2.BridgeDomain) []Dependency
	DerivedValues      func(key string, value *l2.BridgeDomain) []KeyValuePair
	Dump               func(correlate []BridgeDomainKVWithMetadata) ([]BridgeDomainKVWithMetadata, error)
	DumpDependencies   []string /* descriptor name */
}

type BridgeDomainDescriptorAdapter

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

func (*BridgeDomainDescriptorAdapter) Add

func (da *BridgeDomainDescriptorAdapter) Add(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) Dump

func (da *BridgeDomainDescriptorAdapter) Dump(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*BridgeDomainDescriptorAdapter) Modify

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

func (*BridgeDomainDescriptorAdapter) ModifyWithRecreate

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

func (*BridgeDomainDescriptorAdapter) Update

func (da *BridgeDomainDescriptorAdapter) Update(key string, value proto.Message, metadata Metadata) error

func (*BridgeDomainDescriptorAdapter) ValueComparator

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

type BridgeDomainKVWithMetadata

type BridgeDomainKVWithMetadata struct {
	Key      string
	Value    *l2.BridgeDomain
	Metadata *idxvpp2.OnlyIndex
	Origin   ValueOrigin
}

type FIBDescriptor

type FIBDescriptor struct {
	Name               string
	KeySelector        KeySelector
	ValueTypeName      string
	KeyLabel           func(key string) string
	ValueComparator    func(key string, oldValue, newValue *l2.FIBEntry) bool
	NBKeyPrefix        string
	WithMetadata       bool
	MetadataMapFactory MetadataMapFactory
	Add                func(key string, value *l2.FIBEntry) (metadata interface{}, err error)
	Delete             func(key string, value *l2.FIBEntry, metadata interface{}) error
	Modify             func(key string, oldValue, newValue *l2.FIBEntry, oldMetadata interface{}) (newMetadata interface{}, err error)
	ModifyWithRecreate func(key string, oldValue, newValue *l2.FIBEntry, metadata interface{}) bool
	Update             func(key string, value *l2.FIBEntry, metadata interface{}) error
	IsRetriableFailure func(err error) bool
	Dependencies       func(key string, value *l2.FIBEntry) []Dependency
	DerivedValues      func(key string, value *l2.FIBEntry) []KeyValuePair
	Dump               func(correlate []FIBKVWithMetadata) ([]FIBKVWithMetadata, error)
	DumpDependencies   []string /* descriptor name */
}

type FIBDescriptorAdapter

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

func (*FIBDescriptorAdapter) Add

func (da *FIBDescriptorAdapter) Add(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) Dump

func (da *FIBDescriptorAdapter) Dump(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*FIBDescriptorAdapter) Modify

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

func (*FIBDescriptorAdapter) ModifyWithRecreate

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

func (*FIBDescriptorAdapter) Update

func (da *FIBDescriptorAdapter) Update(key string, value proto.Message, metadata Metadata) error

func (*FIBDescriptorAdapter) ValueComparator

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

type FIBKVWithMetadata

type FIBKVWithMetadata struct {
	Key      string
	Value    *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 *l2.XConnectPair) bool
	NBKeyPrefix        string
	WithMetadata       bool
	MetadataMapFactory MetadataMapFactory
	Add                func(key string, value *l2.XConnectPair) (metadata interface{}, err error)
	Delete             func(key string, value *l2.XConnectPair, metadata interface{}) error
	Modify             func(key string, oldValue, newValue *l2.XConnectPair, oldMetadata interface{}) (newMetadata interface{}, err error)
	ModifyWithRecreate func(key string, oldValue, newValue *l2.XConnectPair, metadata interface{}) bool
	Update             func(key string, value *l2.XConnectPair, metadata interface{}) error
	IsRetriableFailure func(err error) bool
	Dependencies       func(key string, value *l2.XConnectPair) []Dependency
	DerivedValues      func(key string, value *l2.XConnectPair) []KeyValuePair
	Dump               func(correlate []XConnectKVWithMetadata) ([]XConnectKVWithMetadata, error)
	DumpDependencies   []string /* descriptor name */
}

type XConnectDescriptorAdapter

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

func (*XConnectDescriptorAdapter) Add

func (da *XConnectDescriptorAdapter) Add(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) Dump

func (da *XConnectDescriptorAdapter) Dump(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*XConnectDescriptorAdapter) Modify

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

func (*XConnectDescriptorAdapter) ModifyWithRecreate

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

func (*XConnectDescriptorAdapter) Update

func (da *XConnectDescriptorAdapter) Update(key string, value proto.Message, metadata Metadata) error

func (*XConnectDescriptorAdapter) ValueComparator

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

type XConnectKVWithMetadata

type XConnectKVWithMetadata struct {
	Key      string
	Value    *l2.XConnectPair
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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