forked from shreddedbacon/concourse-slackbot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
structs.go
46 lines (41 loc) · 1.36 KB
/
structs.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
37
38
39
40
41
42
43
44
45
46
package main
type AuthToken struct {
Type string `json:"type"`
Token string `json:"value"`
}
type ConcourseStatus struct {
Status string `json:"status"`
ID int `json:"id"`
}
type ConcourseEvent struct {
Data *Data `json:"data"`
Event string `json:"log"`
}
type Data struct {
Payload string `json:"payload"`
}
type Configuration struct {
SlackToken string `json:"slack_token"`
SlackBotName string `json:"slack_bot_name"`
SlackStartChannel string `json:"slack_start_channel"`
SlackStartMessage string `json:"slack_start_message"`
ConcourseURL string `json:"concourse_url"`
ConcourseUsername string `json:"concourse_username"`
ConcoursePassword string `json:"concourse_password"`
Debug bool `json:"debug"`
Quotes []string `json:"quotes"`
Commands []struct {
Command string `json:"command"`
Type string `json:"type"`
Help string `json:"help"`
AcceptResponse string `json:"accept_response"`
Options struct {
Team string `json:"team,omitempty"`
Pipeline string `json:"pipeline,omitempty"`
Job string `json:"job,omitempty"`
Skipoutput bool `json:"skipoutput,omitempty"`
Privileged bool `json:"privileged,omitempty"`
} `json:"options,omitempty"`
PrivilegedUsers []string `json:"privileged_users"`
} `json:"commands"`
}