adapter

package
v2.0.0-beta+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewARPEntryDescriptor

func NewARPEntryDescriptor(typedDescriptor *ARPEntryDescriptor) *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

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 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
}

Jump to

Keyboard shortcuts

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