adapter

package
v2.2.0-alpha+incompatible Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLocalSIDDescriptor

func NewLocalSIDDescriptor(typedDescriptor *LocalSIDDescriptor) *KVDescriptor

func NewPolicyDescriptor

func NewPolicyDescriptor(typedDescriptor *PolicyDescriptor) *KVDescriptor

func NewSteeringDescriptor

func NewSteeringDescriptor(typedDescriptor *SteeringDescriptor) *KVDescriptor

Types

type LocalSIDDescriptor

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

type LocalSIDDescriptorAdapter

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

func (*LocalSIDDescriptorAdapter) Create

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

func (*LocalSIDDescriptorAdapter) Delete

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

func (*LocalSIDDescriptorAdapter) Dependencies

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

func (*LocalSIDDescriptorAdapter) DerivedValues

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

func (*LocalSIDDescriptorAdapter) Retrieve

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

func (*LocalSIDDescriptorAdapter) Update

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

func (*LocalSIDDescriptorAdapter) UpdateWithRecreate

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

func (*LocalSIDDescriptorAdapter) Validate

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

func (*LocalSIDDescriptorAdapter) ValueComparator

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

type LocalSIDKVWithMetadata

type LocalSIDKVWithMetadata struct {
	Key      string
	Value    *vpp_srv6.LocalSID
	Metadata interface{}
	Origin   ValueOrigin
}

type PolicyDescriptor

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

type PolicyDescriptorAdapter

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

func (*PolicyDescriptorAdapter) Create

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

func (*PolicyDescriptorAdapter) Delete

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

func (*PolicyDescriptorAdapter) Dependencies

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

func (*PolicyDescriptorAdapter) DerivedValues

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

func (*PolicyDescriptorAdapter) Retrieve

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

func (*PolicyDescriptorAdapter) Update

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

func (*PolicyDescriptorAdapter) UpdateWithRecreate

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

func (*PolicyDescriptorAdapter) Validate

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

func (*PolicyDescriptorAdapter) ValueComparator

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

type PolicyKVWithMetadata

type PolicyKVWithMetadata struct {
	Key      string
	Value    *vpp_srv6.Policy
	Metadata interface{}
	Origin   ValueOrigin
}

type SteeringDescriptor

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

type SteeringDescriptorAdapter

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

func (*SteeringDescriptorAdapter) Create

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

func (*SteeringDescriptorAdapter) Delete

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

func (*SteeringDescriptorAdapter) Dependencies

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

func (*SteeringDescriptorAdapter) DerivedValues

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

func (*SteeringDescriptorAdapter) Retrieve

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

func (*SteeringDescriptorAdapter) Update

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

func (*SteeringDescriptorAdapter) UpdateWithRecreate

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

func (*SteeringDescriptorAdapter) Validate

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

func (*SteeringDescriptorAdapter) ValueComparator

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

type SteeringKVWithMetadata

type SteeringKVWithMetadata struct {
	Key      string
	Value    *vpp_srv6.Steering
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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