adapter

package
v2.1.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 9, 2019 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 *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

func (*BDInterfaceDescriptorAdapter) Validate

func (da *BDInterfaceDescriptorAdapter) Validate(key string, value proto.Message) (err error)

func (*BDInterfaceDescriptorAdapter) ValueComparator

func (da *BDInterfaceDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) 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

func (*BridgeDomainDescriptorAdapter) Validate

func (da *BridgeDomainDescriptorAdapter) Validate(key string, value proto.Message) (err error)

func (*BridgeDomainDescriptorAdapter) ValueComparator

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

type BridgeDomainKVWithMetadata

type BridgeDomainKVWithMetadata struct {
	Key      string
	Value    *vpp_l2.BridgeDomain
	Metadata *idxvpp.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 *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

func (*FIBDescriptorAdapter) Validate

func (da *FIBDescriptorAdapter) Validate(key string, value proto.Message) (err error)

func (*FIBDescriptorAdapter) ValueComparator

func (da *FIBDescriptorAdapter) ValueComparator(key string, oldValue, newValue proto.Message) 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

func (*XConnectDescriptorAdapter) Validate

func (da *XConnectDescriptorAdapter) Validate(key string, value proto.Message) (err error)

func (*XConnectDescriptorAdapter) ValueComparator

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

type XConnectKVWithMetadata

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

Jump to

Keyboard shortcuts

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