adapter

package
v2.5.1+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBondedInterfaceDescriptor

func NewBondedInterfaceDescriptor(typedDescriptor *BondedInterfaceDescriptor) *KVDescriptor

func NewInterfaceDescriptor

func NewInterfaceDescriptor(typedDescriptor *InterfaceDescriptor) *KVDescriptor

func NewRxModeDescriptor

func NewRxModeDescriptor(typedDescriptor *RxModeDescriptor) *KVDescriptor

func NewRxPlacementDescriptor

func NewRxPlacementDescriptor(typedDescriptor *RxPlacementDescriptor) *KVDescriptor

func NewSpanDescriptor

func NewSpanDescriptor(typedDescriptor *SpanDescriptor) *KVDescriptor

func NewUnnumberedDescriptor

func NewUnnumberedDescriptor(typedDescriptor *UnnumberedDescriptor) *KVDescriptor

Types

type BondedInterfaceDescriptor

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

type BondedInterfaceDescriptorAdapter

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

func (*BondedInterfaceDescriptorAdapter) Create

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

func (*BondedInterfaceDescriptorAdapter) Delete

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

func (*BondedInterfaceDescriptorAdapter) Dependencies

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

func (*BondedInterfaceDescriptorAdapter) DerivedValues

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

func (*BondedInterfaceDescriptorAdapter) Retrieve

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

func (*BondedInterfaceDescriptorAdapter) Update

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

func (*BondedInterfaceDescriptorAdapter) UpdateWithRecreate

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

func (*BondedInterfaceDescriptorAdapter) Validate

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

func (*BondedInterfaceDescriptorAdapter) ValueComparator

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

type BondedInterfaceKVWithMetadata

type BondedInterfaceKVWithMetadata struct {
	Key      string
	Value    *vpp_interfaces.BondLink_BondedInterface
	Metadata interface{}
	Origin   ValueOrigin
}

type InterfaceDescriptor

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

type InterfaceDescriptorAdapter

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

func (*InterfaceDescriptorAdapter) Create

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

func (*InterfaceDescriptorAdapter) Delete

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

func (*InterfaceDescriptorAdapter) Dependencies

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

func (*InterfaceDescriptorAdapter) DerivedValues

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

func (*InterfaceDescriptorAdapter) Retrieve

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

func (*InterfaceDescriptorAdapter) Update

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

func (*InterfaceDescriptorAdapter) UpdateWithRecreate

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

func (*InterfaceDescriptorAdapter) Validate

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

func (*InterfaceDescriptorAdapter) ValueComparator

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

type InterfaceKVWithMetadata

type InterfaceKVWithMetadata struct {
	Key      string
	Value    *vpp_interfaces.Interface
	Metadata *ifaceidx.IfaceMetadata
	Origin   ValueOrigin
}

type RxModeDescriptor

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

type RxModeDescriptorAdapter

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

func (*RxModeDescriptorAdapter) Create

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

func (*RxModeDescriptorAdapter) Delete

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

func (*RxModeDescriptorAdapter) Dependencies

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

func (*RxModeDescriptorAdapter) DerivedValues

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

func (*RxModeDescriptorAdapter) Retrieve

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

func (*RxModeDescriptorAdapter) Update

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

func (*RxModeDescriptorAdapter) UpdateWithRecreate

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

func (*RxModeDescriptorAdapter) Validate

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

func (*RxModeDescriptorAdapter) ValueComparator

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

type RxModeKVWithMetadata

type RxModeKVWithMetadata struct {
	Key      string
	Value    *vpp_interfaces.Interface
	Metadata interface{}
	Origin   ValueOrigin
}

type RxPlacementDescriptor

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

type RxPlacementDescriptorAdapter

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

func (*RxPlacementDescriptorAdapter) Create

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

func (*RxPlacementDescriptorAdapter) Delete

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

func (*RxPlacementDescriptorAdapter) Dependencies

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

func (*RxPlacementDescriptorAdapter) DerivedValues

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

func (*RxPlacementDescriptorAdapter) Retrieve

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

func (*RxPlacementDescriptorAdapter) Update

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

func (*RxPlacementDescriptorAdapter) UpdateWithRecreate

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

func (*RxPlacementDescriptorAdapter) Validate

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

func (*RxPlacementDescriptorAdapter) ValueComparator

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

type RxPlacementKVWithMetadata

type RxPlacementKVWithMetadata struct {
	Key      string
	Value    *vpp_interfaces.Interface_RxPlacement
	Metadata interface{}
	Origin   ValueOrigin
}

type SpanDescriptor

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

type SpanDescriptorAdapter

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

func (*SpanDescriptorAdapter) Create

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

func (*SpanDescriptorAdapter) Delete

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

func (*SpanDescriptorAdapter) Dependencies

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

func (*SpanDescriptorAdapter) DerivedValues

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

func (*SpanDescriptorAdapter) Retrieve

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

func (*SpanDescriptorAdapter) Update

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

func (*SpanDescriptorAdapter) UpdateWithRecreate

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

func (*SpanDescriptorAdapter) Validate

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

func (*SpanDescriptorAdapter) ValueComparator

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

type SpanKVWithMetadata

type SpanKVWithMetadata struct {
	Key      string
	Value    *vpp_interfaces.Span
	Metadata interface{}
	Origin   ValueOrigin
}

type UnnumberedDescriptor

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

type UnnumberedDescriptorAdapter

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

func (*UnnumberedDescriptorAdapter) Create

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

func (*UnnumberedDescriptorAdapter) Delete

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

func (*UnnumberedDescriptorAdapter) Dependencies

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

func (*UnnumberedDescriptorAdapter) DerivedValues

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

func (*UnnumberedDescriptorAdapter) Retrieve

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

func (*UnnumberedDescriptorAdapter) Update

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

func (*UnnumberedDescriptorAdapter) UpdateWithRecreate

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

func (*UnnumberedDescriptorAdapter) Validate

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

func (*UnnumberedDescriptorAdapter) ValueComparator

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

type UnnumberedKVWithMetadata

type UnnumberedKVWithMetadata struct {
	Key      string
	Value    *vpp_interfaces.Interface_Unnumbered
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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