-
Notifications
You must be signed in to change notification settings - Fork 0
/
conf.go
36 lines (32 loc) · 1.09 KB
/
conf.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package webhookdocker
type CommonCfg struct {
NodeName string
HideNodeName bool `conf:"default:false"`
Docker struct {
ExternalInstanceInspection string `conf:""`
ShowRunning bool `conf:"default:false"`
Filter struct {
ContainerName string `conf:""`
NegateContainerName bool `conf:"default:false"`
ImageName string `conf:""`
NegateImageName bool `conf:"default:false"`
}
Listen struct {
ContainerEvents bool `conf:"default:true"`
NetworkEvents bool `conf:"default:true"`
VolumeEvents bool `conf:"default:true"`
ContainerActions []string `conf:"default:attach;create;destroy;detach;die;kill;oom;pause;rename;restart;start;stop;unpause;update"`
NetworkActions []string `conf:"default:create;connect;destroy;disconnect;remove"`
VolumeActions []string `conf:"default:create;destroy;mount;unmount"`
}
}
}
type Keybase struct {
Endpoint string `conf:""`
}
type Slack struct {
Endpoint string `conf:""`
}
type WebEx struct {
Endpoint string `conf:"flag:webex-endpoint"`
}