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: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDNAT44Descriptor

func NewDNAT44Descriptor(typedDescriptor *DNAT44Descriptor) *KVDescriptor

func NewNAT44AddressDescriptor

func NewNAT44AddressDescriptor(typedDescriptor *NAT44AddressDescriptor) *KVDescriptor

func NewNAT44GlobalDescriptor

func NewNAT44GlobalDescriptor(typedDescriptor *NAT44GlobalDescriptor) *KVDescriptor

func NewNAT44InterfaceDescriptor

func NewNAT44InterfaceDescriptor(typedDescriptor *NAT44InterfaceDescriptor) *KVDescriptor

Types

type DNAT44Descriptor

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

type DNAT44DescriptorAdapter

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

func (*DNAT44DescriptorAdapter) Create

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

func (*DNAT44DescriptorAdapter) Delete

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

func (*DNAT44DescriptorAdapter) Dependencies

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

func (*DNAT44DescriptorAdapter) DerivedValues

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

func (*DNAT44DescriptorAdapter) Retrieve

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

func (*DNAT44DescriptorAdapter) Update

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

func (*DNAT44DescriptorAdapter) UpdateWithRecreate

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

func (*DNAT44DescriptorAdapter) Validate

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

func (*DNAT44DescriptorAdapter) ValueComparator

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

type DNAT44KVWithMetadata

type DNAT44KVWithMetadata struct {
	Key      string
	Value    *vpp_nat.DNat44
	Metadata interface{}
	Origin   ValueOrigin
}

type NAT44AddressDescriptor

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

type NAT44AddressDescriptorAdapter

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

func (*NAT44AddressDescriptorAdapter) Create

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

func (*NAT44AddressDescriptorAdapter) Delete

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

func (*NAT44AddressDescriptorAdapter) Dependencies

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

func (*NAT44AddressDescriptorAdapter) DerivedValues

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

func (*NAT44AddressDescriptorAdapter) Retrieve

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

func (*NAT44AddressDescriptorAdapter) Update

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

func (*NAT44AddressDescriptorAdapter) UpdateWithRecreate

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

func (*NAT44AddressDescriptorAdapter) Validate

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

func (*NAT44AddressDescriptorAdapter) ValueComparator

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

type NAT44AddressKVWithMetadata

type NAT44AddressKVWithMetadata struct {
	Key      string
	Value    *vpp_nat.Nat44Global_Address
	Metadata interface{}
	Origin   ValueOrigin
}

type NAT44GlobalDescriptor

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

type NAT44GlobalDescriptorAdapter

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

func (*NAT44GlobalDescriptorAdapter) Create

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

func (*NAT44GlobalDescriptorAdapter) Delete

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

func (*NAT44GlobalDescriptorAdapter) Dependencies

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

func (*NAT44GlobalDescriptorAdapter) DerivedValues

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

func (*NAT44GlobalDescriptorAdapter) Retrieve

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

func (*NAT44GlobalDescriptorAdapter) Update

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

func (*NAT44GlobalDescriptorAdapter) UpdateWithRecreate

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

func (*NAT44GlobalDescriptorAdapter) Validate

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

func (*NAT44GlobalDescriptorAdapter) ValueComparator

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

type NAT44GlobalKVWithMetadata

type NAT44GlobalKVWithMetadata struct {
	Key      string
	Value    *vpp_nat.Nat44Global
	Metadata interface{}
	Origin   ValueOrigin
}

type NAT44InterfaceDescriptor

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

type NAT44InterfaceDescriptorAdapter

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

func (*NAT44InterfaceDescriptorAdapter) Create

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

func (*NAT44InterfaceDescriptorAdapter) Delete

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

func (*NAT44InterfaceDescriptorAdapter) Dependencies

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

func (*NAT44InterfaceDescriptorAdapter) DerivedValues

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

func (*NAT44InterfaceDescriptorAdapter) Retrieve

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

func (*NAT44InterfaceDescriptorAdapter) Update

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

func (*NAT44InterfaceDescriptorAdapter) UpdateWithRecreate

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

func (*NAT44InterfaceDescriptorAdapter) Validate

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

func (*NAT44InterfaceDescriptorAdapter) ValueComparator

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

type NAT44InterfaceKVWithMetadata

type NAT44InterfaceKVWithMetadata struct {
	Key      string
	Value    *vpp_nat.Nat44Global_Interface
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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