adapter

package
v3.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSyslogSenderDescriptor

func NewSyslogSenderDescriptor(typedDescriptor *SyslogSenderDescriptor) *KVDescriptor

Types

type SyslogSenderDescriptor

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

type SyslogSenderDescriptorAdapter

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

func (*SyslogSenderDescriptorAdapter) Create

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

func (*SyslogSenderDescriptorAdapter) Delete

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

func (*SyslogSenderDescriptorAdapter) Dependencies

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

func (*SyslogSenderDescriptorAdapter) DerivedValues

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

func (*SyslogSenderDescriptorAdapter) Retrieve

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

func (*SyslogSenderDescriptorAdapter) Update

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

func (*SyslogSenderDescriptorAdapter) UpdateWithRecreate

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

func (*SyslogSenderDescriptorAdapter) Validate

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

func (*SyslogSenderDescriptorAdapter) ValueComparator

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

type SyslogSenderKVWithMetadata

type SyslogSenderKVWithMetadata struct {
	Key      string
	Value    *vpp_syslog.Sender
	Metadata interface{}
	Origin   ValueOrigin
}

Jump to

Keyboard shortcuts

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