adapter

package
v3.5.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInterfaceAddressDescriptor added in v3.3.0

func NewInterfaceAddressDescriptor(typedDescriptor *InterfaceAddressDescriptor) *KVDescriptor

func NewInterfaceDescriptor

func NewInterfaceDescriptor(typedDescriptor *InterfaceDescriptor) *KVDescriptor

func NewInterfaceVrfDescriptor added in v3.3.0

func NewInterfaceVrfDescriptor(typedDescriptor *InterfaceVrfDescriptor) *KVDescriptor

Types

type InterfaceAddressDescriptor added in v3.3.0

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

type InterfaceAddressDescriptorAdapter added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) Create added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) Delete added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) Dependencies added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) DerivedValues added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) Retrieve added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) Update added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) UpdateWithRecreate added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) Validate added in v3.3.0

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

func (*InterfaceAddressDescriptorAdapter) ValueComparator added in v3.3.0

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

type InterfaceAddressKVWithMetadata added in v3.3.0

type InterfaceAddressKVWithMetadata struct {
	Key      string
	Value    *linux_interfaces.Interface
	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 *linux_interfaces.Interface) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *linux_interfaces.Interface) error
	Create               func(key string, value *linux_interfaces.Interface) (metadata *ifaceidx.LinuxIfMetadata, err error)
	Delete               func(key string, value *linux_interfaces.Interface, metadata *ifaceidx.LinuxIfMetadata) error
	Update               func(key string, oldValue, newValue *linux_interfaces.Interface, oldMetadata *ifaceidx.LinuxIfMetadata) (newMetadata *ifaceidx.LinuxIfMetadata, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *linux_interfaces.Interface, metadata *ifaceidx.LinuxIfMetadata) bool
	Retrieve             func(correlate []InterfaceKVWithMetadata) ([]InterfaceKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *linux_interfaces.Interface) []KeyValuePair
	Dependencies         func(key string, value *linux_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    *linux_interfaces.Interface
	Metadata *ifaceidx.LinuxIfMetadata
	Origin   ValueOrigin
}

type InterfaceVrfDescriptor added in v3.3.0

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

type InterfaceVrfDescriptorAdapter added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) Create added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) Delete added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) Dependencies added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) DerivedValues added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) Retrieve added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) Update added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) UpdateWithRecreate added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) Validate added in v3.3.0

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

func (*InterfaceVrfDescriptorAdapter) ValueComparator added in v3.3.0

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

type InterfaceVrfKVWithMetadata added in v3.3.0

type InterfaceVrfKVWithMetadata struct {
	Key      string
	Value    *linux_interfaces.Interface
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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