Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigFileName = "config.yaml"
ConfigFileName is a name of botkube configuration file
View Source
var Notify = true
Notify flag to toggle event notification
Functions ¶
This section is empty.
Types ¶
type Communications ¶
type Communications struct { Slack Slack ElasticSearch ElasticSearch Mattermost Mattermost }
Communications channels to send events to
type Config ¶
type Config struct { Resources []Resource Recommendations bool Communications Communications Settings Settings }
Config structure of configuration yaml file
type ElasticSearch ¶ added in v0.7.0
type ElasticSearch struct { Enabled bool Username string Password string `yaml:",omitempty"` Server string Index Index }
ElasticSearch config auth settings
type EventType ¶ added in v0.8.0
type EventType string
EventType to watch
const ( // AllowedEventType K8s event types allowed to forward AllowedEventType EventType = WarningEvent // CreateEvent when resource is created CreateEvent EventType = "create" // UpdateEvent when resource is updated UpdateEvent EventType = "update" // DeleteEvent when resource deleted DeleteEvent EventType = "delete" // ErrorEvent on errors in resources ErrorEvent EventType = "error" // WarningEvent for warning events WarningEvent EventType = "warning" // AllEvent to watch all events AllEvent EventType = "all" )
type Mattermost ¶ added in v0.7.0
Mattermost configuration to authentication and send notifications
Click to show internal directories.
Click to hide internal directories.