command
module
Version:
v0.0.0-...-603c9bc
Opens a new window with list of versions in this module.
Published: Nov 8, 2021
License: MIT
Opens a new window with license information.
Imports: 21
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
adanos-mail-connector
伪装成为 SMTP 服务器,将邮件转换为 Adanos 事件发送给 Adanos-alert Server
type MailContent struct {
pattern.Helpers
ID string `json:"id"`
Origin string `json:"origin"`
Subject string `json:"subject"`
Body string `json:"body"`
From string `json:"from"`
To []string `json:"to"`
Links map[string]string `json:"links"`
}
事件转发规则,以 MailContent 对象为参数。事件转发规则配置文件格式为 YAML
- 如果没有指定任何规则,则全部转发
- 如果指定了规则,但是没有匹配,则丢弃事件,如果匹配规则,则转发
- name: 用于描述该规则
expr: Origin == "192.168.1.212:25"
- name: 规则 2
expr: any(To, {# matches "[email protected]"})
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.