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: 3 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewIPPuntRedirectDescriptor

func NewIPPuntRedirectDescriptor(typedDescriptor *IPPuntRedirectDescriptor) *KVDescriptor

func NewPuntExceptionDescriptor

func NewPuntExceptionDescriptor(typedDescriptor *PuntExceptionDescriptor) *KVDescriptor

func NewPuntToHostDescriptor

func NewPuntToHostDescriptor(typedDescriptor *PuntToHostDescriptor) *KVDescriptor

Types

type IPPuntRedirectDescriptor

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

type IPPuntRedirectDescriptorAdapter

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

func (*IPPuntRedirectDescriptorAdapter) Create

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

func (*IPPuntRedirectDescriptorAdapter) Delete

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

func (*IPPuntRedirectDescriptorAdapter) Dependencies

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

func (*IPPuntRedirectDescriptorAdapter) DerivedValues

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

func (*IPPuntRedirectDescriptorAdapter) Retrieve

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

func (*IPPuntRedirectDescriptorAdapter) Update

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

func (*IPPuntRedirectDescriptorAdapter) UpdateWithRecreate

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

func (*IPPuntRedirectDescriptorAdapter) Validate

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

func (*IPPuntRedirectDescriptorAdapter) ValueComparator

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

type IPPuntRedirectKVWithMetadata

type IPPuntRedirectKVWithMetadata struct {
	Key      string
	Value    *vpp_punt.IPRedirect
	Metadata interface{}
	Origin   ValueOrigin
}

type PuntExceptionDescriptor

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

type PuntExceptionDescriptorAdapter

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

func (*PuntExceptionDescriptorAdapter) Create

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

func (*PuntExceptionDescriptorAdapter) Delete

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

func (*PuntExceptionDescriptorAdapter) Dependencies

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

func (*PuntExceptionDescriptorAdapter) DerivedValues

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

func (*PuntExceptionDescriptorAdapter) Retrieve

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

func (*PuntExceptionDescriptorAdapter) Update

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

func (*PuntExceptionDescriptorAdapter) UpdateWithRecreate

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

func (*PuntExceptionDescriptorAdapter) Validate

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

func (*PuntExceptionDescriptorAdapter) ValueComparator

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

type PuntExceptionKVWithMetadata

type PuntExceptionKVWithMetadata struct {
	Key      string
	Value    *vpp_punt.Exception
	Metadata interface{}
	Origin   ValueOrigin
}

type PuntToHostDescriptor

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

type PuntToHostDescriptorAdapter

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

func (*PuntToHostDescriptorAdapter) Create

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

func (*PuntToHostDescriptorAdapter) Delete

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

func (*PuntToHostDescriptorAdapter) Dependencies

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

func (*PuntToHostDescriptorAdapter) DerivedValues

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

func (*PuntToHostDescriptorAdapter) Retrieve

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

func (*PuntToHostDescriptorAdapter) Update

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

func (*PuntToHostDescriptorAdapter) UpdateWithRecreate

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

func (*PuntToHostDescriptorAdapter) Validate

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

func (*PuntToHostDescriptorAdapter) ValueComparator

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

type PuntToHostKVWithMetadata

type PuntToHostKVWithMetadata struct {
	Key      string
	Value    *vpp_punt.ToHost
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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