adapter

package
v2.0.0-alpha+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewARPDescriptor

func NewARPDescriptor(typedDescriptor *ARPDescriptor) *KVDescriptor

func NewRouteDescriptor

func NewRouteDescriptor(typedDescriptor *RouteDescriptor) *KVDescriptor

Types

type ARPDescriptor

type ARPDescriptor struct {
	Name               string
	KeySelector        KeySelector
	ValueTypeName      string
	KeyLabel           func(key string) string
	ValueComparator    func(key string, oldValue, newValue *l3.LinuxStaticARPEntry) bool
	NBKeyPrefix        string
	WithMetadata       bool
	MetadataMapFactory MetadataMapFactory
	Add                func(key string, value *l3.LinuxStaticARPEntry) (metadata interface{}, err error)
	Delete             func(key string, value *l3.LinuxStaticARPEntry, metadata interface{}) error
	Modify             func(key string, oldValue, newValue *l3.LinuxStaticARPEntry, oldMetadata interface{}) (newMetadata interface{}, err error)
	ModifyWithRecreate func(key string, oldValue, newValue *l3.LinuxStaticARPEntry, metadata interface{}) bool
	Update             func(key string, value *l3.LinuxStaticARPEntry, metadata interface{}) error
	IsRetriableFailure func(err error) bool
	Dependencies       func(key string, value *l3.LinuxStaticARPEntry) []Dependency
	DerivedValues      func(key string, value *l3.LinuxStaticARPEntry) []KeyValuePair
	Dump               func(correlate []ARPKVWithMetadata) ([]ARPKVWithMetadata, error)
	DumpDependencies   []string /* descriptor name */
}

type ARPDescriptorAdapter

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

func (*ARPDescriptorAdapter) Add

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

func (*ARPDescriptorAdapter) Delete

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

func (*ARPDescriptorAdapter) Dependencies

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

func (*ARPDescriptorAdapter) DerivedValues

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

func (*ARPDescriptorAdapter) Dump

func (da *ARPDescriptorAdapter) Dump(correlate []KVWithMetadata) ([]KVWithMetadata, error)

func (*ARPDescriptorAdapter) Modify

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

func (*ARPDescriptorAdapter) ModifyWithRecreate

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

func (*ARPDescriptorAdapter) Update

func (da *ARPDescriptorAdapter) Update(key string, value proto.Message, metadata Metadata) error

func (*ARPDescriptorAdapter) ValueComparator

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

type ARPKVWithMetadata

type ARPKVWithMetadata struct {
	Key      string
	Value    *l3.LinuxStaticARPEntry
	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 *l3.LinuxStaticRoute) bool
	NBKeyPrefix        string
	WithMetadata       bool
	MetadataMapFactory MetadataMapFactory
	Add                func(key string, value *l3.LinuxStaticRoute) (metadata interface{}, err error)
	Delete             func(key string, value *l3.LinuxStaticRoute, metadata interface{}) error
	Modify             func(key string, oldValue, newValue *l3.LinuxStaticRoute, oldMetadata interface{}) (newMetadata interface{}, err error)
	ModifyWithRecreate func(key string, oldValue, newValue *l3.LinuxStaticRoute, metadata interface{}) bool
	Update             func(key string, value *l3.LinuxStaticRoute, metadata interface{}) error
	IsRetriableFailure func(err error) bool
	Dependencies       func(key string, value *l3.LinuxStaticRoute) []Dependency
	DerivedValues      func(key string, value *l3.LinuxStaticRoute) []KeyValuePair
	Dump               func(correlate []RouteKVWithMetadata) ([]RouteKVWithMetadata, error)
	DumpDependencies   []string /* descriptor name */
}

type RouteDescriptorAdapter

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

func (*RouteDescriptorAdapter) Add

func (da *RouteDescriptorAdapter) Add(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) Dump

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

func (*RouteDescriptorAdapter) Modify

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

func (*RouteDescriptorAdapter) ModifyWithRecreate

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

func (*RouteDescriptorAdapter) Update

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

func (*RouteDescriptorAdapter) ValueComparator

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

type RouteKVWithMetadata

type RouteKVWithMetadata struct {
	Key      string
	Value    *l3.LinuxStaticRoute
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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