Documentation ¶
Index ¶
- Constants
- Variables
- type SenderDescriptor
- func (d *SenderDescriptor) Create(key string, sender *vpp_syslog.Sender) (metadata interface{}, err error)
- func (d *SenderDescriptor) Delete(key string, sender *vpp_syslog.Sender, metadata interface{}) error
- func (d *SenderDescriptor) EquivalentIPRedirect(key string, oldSender, newSender *vpp_syslog.Sender) bool
- func (d *SenderDescriptor) GetDescriptor() *adapter.SyslogSenderDescriptor
- func (d *SenderDescriptor) Retrieve(correlate []adapter.SyslogSenderKVWithMetadata) (dump []adapter.SyslogSenderKVWithMetadata, err error)
- func (d *SenderDescriptor) Validate(key string, sender *vpp_syslog.Sender) error
Constants ¶
View Source
const (
SyslogSenderDescriptorName = "vpp-syslog-sender"
)
Variables ¶
View Source
var (
ErrSyslogSenderWithoutCollector = errors.New("VPP syslog sender defined without collector IP")
)
Functions ¶
This section is empty.
Types ¶
type SenderDescriptor ¶
type SenderDescriptor struct {
// contains filtered or unexported fields
}
func NewSenderDescriptor ¶
func NewSenderDescriptor(handler vppcalls.SyslogVppAPI, log logging.LoggerFactory) *SenderDescriptor
func (*SenderDescriptor) Create ¶
func (d *SenderDescriptor) Create(key string, sender *vpp_syslog.Sender) (metadata interface{}, err error)
func (*SenderDescriptor) Delete ¶
func (d *SenderDescriptor) Delete(key string, sender *vpp_syslog.Sender, metadata interface{}) error
func (*SenderDescriptor) EquivalentIPRedirect ¶
func (d *SenderDescriptor) EquivalentIPRedirect(key string, oldSender, newSender *vpp_syslog.Sender) bool
EquivalentIPRedirect is case-insensitive comparison function for punt.IpRedirect.
func (*SenderDescriptor) GetDescriptor ¶
func (d *SenderDescriptor) GetDescriptor() *adapter.SyslogSenderDescriptor
func (*SenderDescriptor) Retrieve ¶
func (d *SenderDescriptor) Retrieve(correlate []adapter.SyslogSenderKVWithMetadata) (dump []adapter.SyslogSenderKVWithMetadata, err error)
func (*SenderDescriptor) Validate ¶
func (d *SenderDescriptor) Validate(key string, sender *vpp_syslog.Sender) error
Click to show internal directories.
Click to hide internal directories.