adapter

package
v3.3.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewARPEntryDescriptor

func NewARPEntryDescriptor(typedDescriptor *ARPEntryDescriptor) *KVDescriptor

func NewDHCPProxyDescriptor

func NewDHCPProxyDescriptor(typedDescriptor *DHCPProxyDescriptor) *KVDescriptor

func NewIPScanNeighborDescriptor

func NewIPScanNeighborDescriptor(typedDescriptor *IPScanNeighborDescriptor) *KVDescriptor

func NewL3XCDescriptor

func NewL3XCDescriptor(typedDescriptor *L3XCDescriptor) *KVDescriptor

func NewProxyARPDescriptor

func NewProxyARPDescriptor(typedDescriptor *ProxyARPDescriptor) *KVDescriptor

func NewProxyARPInterfaceDescriptor

func NewProxyARPInterfaceDescriptor(typedDescriptor *ProxyARPInterfaceDescriptor) *KVDescriptor

func NewRouteDescriptor

func NewRouteDescriptor(typedDescriptor *RouteDescriptor) *KVDescriptor

func NewTeibEntryDescriptor added in v3.2.0

func NewTeibEntryDescriptor(typedDescriptor *TeibEntryDescriptor) *KVDescriptor

func NewVRRPEntryDescriptor added in v3.2.0

func NewVRRPEntryDescriptor(typedDescriptor *VRRPEntryDescriptor) *KVDescriptor

func NewVrfTableDescriptor

func NewVrfTableDescriptor(typedDescriptor *VrfTableDescriptor) *KVDescriptor

Types

type ARPEntryDescriptor

type ARPEntryDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.ARPEntry) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.ARPEntry) error
	Create               func(key string, value *vpp_l3.ARPEntry) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.ARPEntry, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.ARPEntry, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.ARPEntry, metadata interface{}) bool
	Retrieve             func(correlate []ARPEntryKVWithMetadata) ([]ARPEntryKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.ARPEntry) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.ARPEntry) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type ARPEntryDescriptorAdapter

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

func (*ARPEntryDescriptorAdapter) Create

func (da *ARPEntryDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*ARPEntryDescriptorAdapter) Delete

func (da *ARPEntryDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*ARPEntryDescriptorAdapter) Dependencies

func (da *ARPEntryDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*ARPEntryDescriptorAdapter) DerivedValues

func (da *ARPEntryDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*ARPEntryDescriptorAdapter) Retrieve

func (da *ARPEntryDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*ARPEntryDescriptorAdapter) Update

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

func (*ARPEntryDescriptorAdapter) UpdateWithRecreate

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

func (*ARPEntryDescriptorAdapter) Validate

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

func (*ARPEntryDescriptorAdapter) ValueComparator

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

type ARPEntryKVWithMetadata

type ARPEntryKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.ARPEntry
	Metadata interface{}
	Origin   ValueOrigin
}

type DHCPProxyDescriptor

type DHCPProxyDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.DHCPProxy) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.DHCPProxy) error
	Create               func(key string, value *vpp_l3.DHCPProxy) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.DHCPProxy, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.DHCPProxy, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.DHCPProxy, metadata interface{}) bool
	Retrieve             func(correlate []DHCPProxyKVWithMetadata) ([]DHCPProxyKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.DHCPProxy) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.DHCPProxy) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type DHCPProxyDescriptorAdapter

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

func (*DHCPProxyDescriptorAdapter) Create

func (da *DHCPProxyDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*DHCPProxyDescriptorAdapter) Delete

func (da *DHCPProxyDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*DHCPProxyDescriptorAdapter) Dependencies

func (da *DHCPProxyDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*DHCPProxyDescriptorAdapter) DerivedValues

func (da *DHCPProxyDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*DHCPProxyDescriptorAdapter) Retrieve

func (da *DHCPProxyDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*DHCPProxyDescriptorAdapter) Update

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

func (*DHCPProxyDescriptorAdapter) UpdateWithRecreate

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

func (*DHCPProxyDescriptorAdapter) Validate

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

func (*DHCPProxyDescriptorAdapter) ValueComparator

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

type DHCPProxyKVWithMetadata

type DHCPProxyKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.DHCPProxy
	Metadata interface{}
	Origin   ValueOrigin
}

type IPScanNeighborDescriptor

type IPScanNeighborDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.IPScanNeighbor) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.IPScanNeighbor) error
	Create               func(key string, value *vpp_l3.IPScanNeighbor) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.IPScanNeighbor, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.IPScanNeighbor, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.IPScanNeighbor, metadata interface{}) bool
	Retrieve             func(correlate []IPScanNeighborKVWithMetadata) ([]IPScanNeighborKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.IPScanNeighbor) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.IPScanNeighbor) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type IPScanNeighborDescriptorAdapter

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

func (*IPScanNeighborDescriptorAdapter) Create

func (da *IPScanNeighborDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*IPScanNeighborDescriptorAdapter) Delete

func (da *IPScanNeighborDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*IPScanNeighborDescriptorAdapter) Dependencies

func (da *IPScanNeighborDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*IPScanNeighborDescriptorAdapter) DerivedValues

func (da *IPScanNeighborDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*IPScanNeighborDescriptorAdapter) Retrieve

func (da *IPScanNeighborDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*IPScanNeighborDescriptorAdapter) Update

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

func (*IPScanNeighborDescriptorAdapter) UpdateWithRecreate

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

func (*IPScanNeighborDescriptorAdapter) Validate

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

func (*IPScanNeighborDescriptorAdapter) ValueComparator

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

type IPScanNeighborKVWithMetadata

type IPScanNeighborKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.IPScanNeighbor
	Metadata interface{}
	Origin   ValueOrigin
}

type L3XCDescriptor

type L3XCDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.L3XConnect) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.L3XConnect) error
	Create               func(key string, value *vpp_l3.L3XConnect) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.L3XConnect, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.L3XConnect, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.L3XConnect, metadata interface{}) bool
	Retrieve             func(correlate []L3XCKVWithMetadata) ([]L3XCKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.L3XConnect) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.L3XConnect) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type L3XCDescriptorAdapter

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

func (*L3XCDescriptorAdapter) Create

func (da *L3XCDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*L3XCDescriptorAdapter) Delete

func (da *L3XCDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*L3XCDescriptorAdapter) Dependencies

func (da *L3XCDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*L3XCDescriptorAdapter) DerivedValues

func (da *L3XCDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*L3XCDescriptorAdapter) Retrieve

func (da *L3XCDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*L3XCDescriptorAdapter) Update

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

func (*L3XCDescriptorAdapter) UpdateWithRecreate

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

func (*L3XCDescriptorAdapter) Validate

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

func (*L3XCDescriptorAdapter) ValueComparator

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

type L3XCKVWithMetadata

type L3XCKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.L3XConnect
	Metadata interface{}
	Origin   ValueOrigin
}

type ProxyARPDescriptor

type ProxyARPDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.ProxyARP) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.ProxyARP) error
	Create               func(key string, value *vpp_l3.ProxyARP) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.ProxyARP, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.ProxyARP, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.ProxyARP, metadata interface{}) bool
	Retrieve             func(correlate []ProxyARPKVWithMetadata) ([]ProxyARPKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.ProxyARP) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.ProxyARP) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type ProxyARPDescriptorAdapter

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

func (*ProxyARPDescriptorAdapter) Create

func (da *ProxyARPDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*ProxyARPDescriptorAdapter) Delete

func (da *ProxyARPDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*ProxyARPDescriptorAdapter) Dependencies

func (da *ProxyARPDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*ProxyARPDescriptorAdapter) DerivedValues

func (da *ProxyARPDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*ProxyARPDescriptorAdapter) Retrieve

func (da *ProxyARPDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*ProxyARPDescriptorAdapter) Update

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

func (*ProxyARPDescriptorAdapter) UpdateWithRecreate

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

func (*ProxyARPDescriptorAdapter) Validate

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

func (*ProxyARPDescriptorAdapter) ValueComparator

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

type ProxyARPInterfaceDescriptor

type ProxyARPInterfaceDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.ProxyARP_Interface) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.ProxyARP_Interface) error
	Create               func(key string, value *vpp_l3.ProxyARP_Interface) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.ProxyARP_Interface, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.ProxyARP_Interface, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.ProxyARP_Interface, metadata interface{}) bool
	Retrieve             func(correlate []ProxyARPInterfaceKVWithMetadata) ([]ProxyARPInterfaceKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.ProxyARP_Interface) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.ProxyARP_Interface) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type ProxyARPInterfaceDescriptorAdapter

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

func (*ProxyARPInterfaceDescriptorAdapter) Create

func (da *ProxyARPInterfaceDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*ProxyARPInterfaceDescriptorAdapter) Delete

func (da *ProxyARPInterfaceDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*ProxyARPInterfaceDescriptorAdapter) Dependencies

func (da *ProxyARPInterfaceDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*ProxyARPInterfaceDescriptorAdapter) DerivedValues

func (da *ProxyARPInterfaceDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*ProxyARPInterfaceDescriptorAdapter) Retrieve

func (da *ProxyARPInterfaceDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*ProxyARPInterfaceDescriptorAdapter) Update

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

func (*ProxyARPInterfaceDescriptorAdapter) UpdateWithRecreate

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

func (*ProxyARPInterfaceDescriptorAdapter) Validate

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

func (*ProxyARPInterfaceDescriptorAdapter) ValueComparator

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

type ProxyARPInterfaceKVWithMetadata

type ProxyARPInterfaceKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.ProxyARP_Interface
	Metadata interface{}
	Origin   ValueOrigin
}

type ProxyARPKVWithMetadata

type ProxyARPKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.ProxyARP
	Metadata interface{}
	Origin   ValueOrigin
}

type RouteDescriptor

type RouteDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.Route) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.Route) error
	Create               func(key string, value *vpp_l3.Route) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.Route, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.Route, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.Route, metadata interface{}) bool
	Retrieve             func(correlate []RouteKVWithMetadata) ([]RouteKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.Route) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.Route) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type RouteDescriptorAdapter

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

func (*RouteDescriptorAdapter) Create

func (da *RouteDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*RouteDescriptorAdapter) Delete

func (da *RouteDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*RouteDescriptorAdapter) Dependencies

func (da *RouteDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*RouteDescriptorAdapter) DerivedValues

func (da *RouteDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*RouteDescriptorAdapter) Retrieve

func (da *RouteDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*RouteDescriptorAdapter) Update

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

func (*RouteDescriptorAdapter) UpdateWithRecreate

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

func (*RouteDescriptorAdapter) Validate

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

func (*RouteDescriptorAdapter) ValueComparator

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

type RouteKVWithMetadata

type RouteKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.Route
	Metadata interface{}
	Origin   ValueOrigin
}

type TeibEntryDescriptor added in v3.2.0

type TeibEntryDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.TeibEntry) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.TeibEntry) error
	Create               func(key string, value *vpp_l3.TeibEntry) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.TeibEntry, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.TeibEntry, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.TeibEntry, metadata interface{}) bool
	Retrieve             func(correlate []TeibEntryKVWithMetadata) ([]TeibEntryKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.TeibEntry) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.TeibEntry) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type TeibEntryDescriptorAdapter added in v3.2.0

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

func (*TeibEntryDescriptorAdapter) Create added in v3.2.0

func (da *TeibEntryDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*TeibEntryDescriptorAdapter) Delete added in v3.2.0

func (da *TeibEntryDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*TeibEntryDescriptorAdapter) Dependencies added in v3.2.0

func (da *TeibEntryDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*TeibEntryDescriptorAdapter) DerivedValues added in v3.2.0

func (da *TeibEntryDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*TeibEntryDescriptorAdapter) Retrieve added in v3.2.0

func (da *TeibEntryDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*TeibEntryDescriptorAdapter) Update added in v3.2.0

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

func (*TeibEntryDescriptorAdapter) UpdateWithRecreate added in v3.2.0

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

func (*TeibEntryDescriptorAdapter) Validate added in v3.2.0

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

func (*TeibEntryDescriptorAdapter) ValueComparator added in v3.2.0

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

type TeibEntryKVWithMetadata added in v3.2.0

type TeibEntryKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.TeibEntry
	Metadata interface{}
	Origin   ValueOrigin
}

type VRRPEntryDescriptor added in v3.2.0

type VRRPEntryDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.VRRPEntry) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.VRRPEntry) error
	Create               func(key string, value *vpp_l3.VRRPEntry) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_l3.VRRPEntry, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_l3.VRRPEntry, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.VRRPEntry, metadata interface{}) bool
	Retrieve             func(correlate []VRRPEntryKVWithMetadata) ([]VRRPEntryKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.VRRPEntry) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.VRRPEntry) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type VRRPEntryDescriptorAdapter added in v3.2.0

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

func (*VRRPEntryDescriptorAdapter) Create added in v3.2.0

func (da *VRRPEntryDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*VRRPEntryDescriptorAdapter) Delete added in v3.2.0

func (da *VRRPEntryDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*VRRPEntryDescriptorAdapter) Dependencies added in v3.2.0

func (da *VRRPEntryDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*VRRPEntryDescriptorAdapter) DerivedValues added in v3.2.0

func (da *VRRPEntryDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*VRRPEntryDescriptorAdapter) Retrieve added in v3.2.0

func (da *VRRPEntryDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*VRRPEntryDescriptorAdapter) Update added in v3.2.0

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

func (*VRRPEntryDescriptorAdapter) UpdateWithRecreate added in v3.2.0

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

func (*VRRPEntryDescriptorAdapter) Validate added in v3.2.0

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

func (*VRRPEntryDescriptorAdapter) ValueComparator added in v3.2.0

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

type VRRPEntryKVWithMetadata added in v3.2.0

type VRRPEntryKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.VRRPEntry
	Metadata interface{}
	Origin   ValueOrigin
}

type VrfTableDescriptor

type VrfTableDescriptor struct {
	Name                 string
	KeySelector          KeySelector
	ValueTypeName        string
	KeyLabel             func(key string) string
	ValueComparator      func(key string, oldValue, newValue *vpp_l3.VrfTable) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_l3.VrfTable) error
	Create               func(key string, value *vpp_l3.VrfTable) (metadata *vrfidx.VRFMetadata, err error)
	Delete               func(key string, value *vpp_l3.VrfTable, metadata *vrfidx.VRFMetadata) error
	Update               func(key string, oldValue, newValue *vpp_l3.VrfTable, oldMetadata *vrfidx.VRFMetadata) (newMetadata *vrfidx.VRFMetadata, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_l3.VrfTable, metadata *vrfidx.VRFMetadata) bool
	Retrieve             func(correlate []VrfTableKVWithMetadata) ([]VrfTableKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_l3.VrfTable) []KeyValuePair
	Dependencies         func(key string, value *vpp_l3.VrfTable) []Dependency
	RetrieveDependencies []string /* descriptor name */
}

type VrfTableDescriptorAdapter

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

func (*VrfTableDescriptorAdapter) Create

func (da *VrfTableDescriptorAdapter) Create(key string, value proto.Message) (metadata Metadata, err error)

func (*VrfTableDescriptorAdapter) Delete

func (da *VrfTableDescriptorAdapter) Delete(key string, value proto.Message, metadata Metadata) error

func (*VrfTableDescriptorAdapter) Dependencies

func (da *VrfTableDescriptorAdapter) Dependencies(key string, value proto.Message) []Dependency

func (*VrfTableDescriptorAdapter) DerivedValues

func (da *VrfTableDescriptorAdapter) DerivedValues(key string, value proto.Message) []KeyValuePair

func (*VrfTableDescriptorAdapter) Retrieve

func (da *VrfTableDescriptorAdapter) Retrieve(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*VrfTableDescriptorAdapter) Update

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

func (*VrfTableDescriptorAdapter) UpdateWithRecreate

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

func (*VrfTableDescriptorAdapter) Validate

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

func (*VrfTableDescriptorAdapter) ValueComparator

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

type VrfTableKVWithMetadata

type VrfTableKVWithMetadata struct {
	Key      string
	Value    *vpp_l3.VrfTable
	Metadata *vrfidx.VRFMetadata
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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