adapter

package
v2.2.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2019 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 NewProxyARPDescriptor

func NewProxyARPDescriptor(typedDescriptor *ProxyARPDescriptor) *KVDescriptor

func NewProxyARPInterfaceDescriptor

func NewProxyARPInterfaceDescriptor(typedDescriptor *ProxyARPInterfaceDescriptor) *KVDescriptor

func NewRouteDescriptor

func NewRouteDescriptor(typedDescriptor *RouteDescriptor) *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 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 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