Add notification config for wcloud

This commit is contained in:
Tom Wilkie
2016-07-14 14:45:06 +01:00
parent f643920d11
commit c86fd3d5bd

View File

@@ -21,4 +21,12 @@ type Config struct {
RepoPath string `json:"repo_path" yaml:"repo_path"`
RepoKey string `json:"repo_key" yaml:"repo_key"`
KubeconfigPath string `json:"kubeconfig_path" yaml:"kubeconfig_path"`
Notifications []NotificationConfig `json:"notification" yaml:"notification"`
}
// NotificationConfig describes how to send notifications
type NotificationConfig struct {
SlackWebhookURL string `json:"slack_webhook_url" yaml:"slack_webhook_url"`
SlackUsername string `json:"slack_username" yaml:"slack_username"`
}