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

func NewNAT44AddressPoolDescriptor(typedDescriptor *NAT44AddressPoolDescriptor) *KVDescriptor

func NewNAT44GlobalAddressDescriptor

func NewNAT44GlobalAddressDescriptor(typedDescriptor *NAT44GlobalAddressDescriptor) *KVDescriptor

func NewNAT44GlobalDescriptor

func NewNAT44GlobalDescriptor(typedDescriptor *NAT44GlobalDescriptor) *KVDescriptor

func NewNAT44GlobalInterfaceDescriptor

func NewNAT44GlobalInterfaceDescriptor(typedDescriptor *NAT44GlobalInterfaceDescriptor) *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 NAT44AddressPoolDescriptor

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

type NAT44AddressPoolDescriptorAdapter

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

func (*NAT44AddressPoolDescriptorAdapter) Create

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

func (*NAT44AddressPoolDescriptorAdapter) Delete

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

func (*NAT44AddressPoolDescriptorAdapter) Dependencies

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

func (*NAT44AddressPoolDescriptorAdapter) DerivedValues

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

func (*NAT44AddressPoolDescriptorAdapter) Retrieve

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

func (*NAT44AddressPoolDescriptorAdapter) Update

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

func (*NAT44AddressPoolDescriptorAdapter) UpdateWithRecreate

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

func (*NAT44AddressPoolDescriptorAdapter) Validate

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

func (*NAT44AddressPoolDescriptorAdapter) ValueComparator

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

type NAT44AddressPoolKVWithMetadata

type NAT44AddressPoolKVWithMetadata struct {
	Key      string
	Value    *vpp_nat.Nat44AddressPool
	Metadata interface{}
	Origin   ValueOrigin
}

type NAT44GlobalAddressDescriptor

type NAT44GlobalAddressDescriptor 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 []NAT44GlobalAddressKVWithMetadata) ([]NAT44GlobalAddressKVWithMetadata, 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 NAT44GlobalAddressDescriptorAdapter

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

func (*NAT44GlobalAddressDescriptorAdapter) Create

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

func (*NAT44GlobalAddressDescriptorAdapter) Delete

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

func (*NAT44GlobalAddressDescriptorAdapter) Dependencies

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

func (*NAT44GlobalAddressDescriptorAdapter) DerivedValues

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

func (*NAT44GlobalAddressDescriptorAdapter) Retrieve

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

func (*NAT44GlobalAddressDescriptorAdapter) Update

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

func (*NAT44GlobalAddressDescriptorAdapter) UpdateWithRecreate

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

func (*NAT44GlobalAddressDescriptorAdapter) Validate

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

func (*NAT44GlobalAddressDescriptorAdapter) ValueComparator

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

type NAT44GlobalAddressKVWithMetadata

type NAT44GlobalAddressKVWithMetadata 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 NAT44GlobalInterfaceDescriptor

type NAT44GlobalInterfaceDescriptor 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 []NAT44GlobalInterfaceKVWithMetadata) ([]NAT44GlobalInterfaceKVWithMetadata, 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 NAT44GlobalInterfaceDescriptorAdapter

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

func (*NAT44GlobalInterfaceDescriptorAdapter) Create

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

func (*NAT44GlobalInterfaceDescriptorAdapter) Delete

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

func (*NAT44GlobalInterfaceDescriptorAdapter) Dependencies

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

func (*NAT44GlobalInterfaceDescriptorAdapter) DerivedValues

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

func (*NAT44GlobalInterfaceDescriptorAdapter) Retrieve

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

func (*NAT44GlobalInterfaceDescriptorAdapter) Update

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

func (*NAT44GlobalInterfaceDescriptorAdapter) UpdateWithRecreate

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

func (*NAT44GlobalInterfaceDescriptorAdapter) Validate

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

func (*NAT44GlobalInterfaceDescriptorAdapter) ValueComparator

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

type NAT44GlobalInterfaceKVWithMetadata

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

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.Nat44Interface) bool
	NBKeyPrefix          string
	WithMetadata         bool
	MetadataMapFactory   MetadataMapFactory
	Validate             func(key string, value *vpp_nat.Nat44Interface) error
	Create               func(key string, value *vpp_nat.Nat44Interface) (metadata interface{}, err error)
	Delete               func(key string, value *vpp_nat.Nat44Interface, metadata interface{}) error
	Update               func(key string, oldValue, newValue *vpp_nat.Nat44Interface, oldMetadata interface{}) (newMetadata interface{}, err error)
	UpdateWithRecreate   func(key string, oldValue, newValue *vpp_nat.Nat44Interface, metadata interface{}) bool
	Retrieve             func(correlate []NAT44InterfaceKVWithMetadata) ([]NAT44InterfaceKVWithMetadata, error)
	IsRetriableFailure   func(err error) bool
	DerivedValues        func(key string, value *vpp_nat.Nat44Interface) []KeyValuePair
	Dependencies         func(key string, value *vpp_nat.Nat44Interface) []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.Nat44Interface
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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