-
Notifications
You must be signed in to change notification settings - Fork 0
/
event.go
298 lines (214 loc) · 13.4 KB
/
event.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
package constant
// EventType is the type of event that occurred in cloud foundry.
type EventType string
const (
// EventTypeApplicationCrash denotes an event where an application crashed.
EventTypeApplicationCrash EventType = "app.crash"
// EventTypeAuditApplicationCopyBits denotes an event where the CC copies bits
// from one application to another
EventTypeAuditApplicationCopyBits EventType = "audit.app.copy-bits"
// EventTypeAuditApplicationCreate denotes an event where the CC creates an
// applicaion.
EventTypeAuditApplicationCreate EventType = "audit.app.create"
// EventTypeAuditApplicationDeleteRequest denotes an event where the CC
// receives a request to delete an application.
EventTypeAuditApplicationDeleteRequest EventType = "audit.app.delete-request"
EventTypeAuditApplicationDropletMapped EventType = "audit.app.droplet.mapped"
// EventTypeAuditApplicationMapRoute denotes an event where the CC maps an
// application to a route.
EventTypeAuditApplicationMapRoute EventType = "audit.app.map-route"
// EventTypeAuditApplicationPackageCreate denotes an event where the CC creates an
// application package.
EventTypeAuditApplicationPackageCreate EventType = "audit.app.package.create"
// EventTypeAuditApplicationPackageDelete denotes an event where the CC deletes an
// application package.
EventTypeAuditApplicationPackageDelete EventType = "audit.app.package.delete"
// EventTypeAuditApplicationPackageDownload denotes an event where an application
// package is downloaded.
EventTypeAuditApplicationPackageDownload EventType = "audit.app.package.download"
// EventTypeAuditApplicationPackageUpload denotes an event where an application
// package is uploaded.
EventTypeAuditApplicationPackageUpload EventType = "audit.app.package.upload"
// EventTypeAuditApplicationRestage denotes an event where the CC restages an
// application.
EventTypeAuditApplicationRestage EventType = "audit.app.restage"
EventTypeAuditApplicationSSHAuthorized EventType = "audit.app.ssh-authorized"
EventTypeAuditApplicationSSHUnauthorized EventType = "audit.app.ssh-unauthorized"
// EventTypeAuditApplicationStart denotes an event where the CC starts an
// application.
EventTypeAuditApplicationStart EventType = "audit.app.start"
// EventTypeAuditApplicationStop denotes an event where the CC stops an
// application.
EventTypeAuditApplicationStop EventType = "audit.app.stop"
// EventTypeAuditApplicationUnmapRoute denotes an event where the CC unmaps
// an application from a route.
EventTypeAuditApplicationUnmapRoute EventType = "audit.app.unmap-route"
// EventTypeAuditApplicationUpdate denotes an event where the CC updates an
// application.
EventTypeAuditApplicationUpdate EventType = "audit.app.update"
// EventTypeAuditApplicationUploadBits denotes an event where application
// bits are uploaded to the CC.
EventTypeAuditApplicationUploadBits EventType = "audit.app.upload-bits"
// EventTypeOrganizationCreate denotes an event where the CC creates an
// organization.
EventTypeOrganizationCreate EventType = "audit.organization.create"
// EventTypeOrganizationDeleteRequest denotes an event where the CC receives
// request to delete an organization.
EventTypeOrganizationDeleteRequest EventType = "audit.organization.delete-request"
// EventTypeOrganizationUpdate denotes an event where the CC updates an
// organization.
EventTypeOrganizationUpdate EventType = "audit.organization.update"
// EventTypeAuditRouteCreate denotes an event where the CC creates a route.
EventTypeAuditRouteCreate EventType = "audit.route.create"
// EventTypeAuditRouteDeleteRequest denotes an event where the CC receives a
// request to delete a route.
EventTypeAuditRouteDeleteRequest EventType = "audit.route.delete-request"
// EventTypeAuditRouteUpdate denotes an event where the CC updates a route.
EventTypeAuditRouteUpdate EventType = "audit.route.update"
// EventTypeAuditServiceCreate denotes an event where the CC creates a service.
EventTypeAuditServiceCreate EventType = "audit.service.create"
// EventTypeAuditServiceDelete denotes an event where the CC deletes a service.
EventTypeAuditServiceDelete EventType = "audit.service.delete"
// EventTypeAuditServiceUpdate denotes an event where the CC updates a service.
EventTypeAuditServiceUpdate EventType = "audit.service.update"
// EventTypeAuditServiceBindingCreate denotes an event where the CC creates
// a service binding.
EventTypeAuditServiceBindingCreate EventType = "audit.service_binding.create"
// EventTypeAuditServiceBindingDelete denotes an event where the CC deletes
// a service binding.
EventTypeAuditServiceBindingDelete EventType = "audit.service_binding.delete"
// EventTypeAuditServiceBrokerCreate denotes an event where the CC creates
// a service broker.
EventTypeAuditServiceBrokerCreate EventType = "audit.service_broker.create"
// EventTypeAuditServiceBrokerDelete denotes an event where the CC deletes
// a service broker.
EventTypeAuditServiceBrokerDelete EventType = "audit.service_broker.delete"
// EventTypeAuditServiceBrokerUpdate denotes an event where the CC updates
// a service broker.
EventTypeAuditServiceBrokerUpdate EventType = "audit.service_broker.update"
EventTypeAuditServiceDashboardClientCreate EventType = "audit.service_dashboard_client.create"
EventTypeAuditServiceDashboardClientDelete EventType = "audit.service_dashboard_client.delete"
EventTypeServiceInstanceBindRoute EventType = "audit.service_instance.bind_route"
// EventTypeAuditServiceInstanceCreate denotes an event where the CC creates
// a service instance.
EventTypeAuditServiceInstanceCreate EventType = "audit.service_instance.create"
// EventTypeAuditServiceInstanceDelete denotes an event where the CC deletes
// a service instance.
EventTypeAuditServiceInstanceDelete EventType = "audit.service_instance.delete"
EventTypeServiceInstanceUnbindRoute EventType = "audit.service_instance.unbind_route"
// EventTypeAuditServiceInstanceUpdate denotes an event where the CC updates
// a service instance.
EventTypeAuditServiceInstanceUpdate EventType = "audit.service_instance.update"
EventTypeAuditServiceKeyCreate EventType = "audit.service_key.create"
EventTypeAuditServiceKeyDelete EventType = "audit.service_key.delete"
// EventTypeAuditServicePlanCreate denotes an event where the CC creates
// a service plan.
EventTypeAuditServicePlanCreate EventType = "audit.service_plan.create"
// EventTypeAuditServicePlanDelete denotes an event where the CC deletes
// a service plan.
EventTypeAuditServicePlanDelete EventType = "audit.service_plan.delete"
// EventTypeAuditServicePlanUpdate denotes an event where the CC updates
// a service plan.
EventTypeAuditServicePlanUpdate EventType = "audit.service_plan.update"
EventTypeAuditServicePlanVisibilityCreate EventType = "audit.service_plan_visibility.create"
EventTypeAuditServicePlanVisibilityDelete EventType = "audit.service_plan_visibility.delete"
EventTypeAuditServicePlanVisibilityUpdate EventType = "audit.service_plan_visibility.update"
// EventTypeAuditSpaceCreate denotes an event where the CC creates a space.
EventTypeAuditSpaceCreate EventType = "audit.space.create"
// EventTypeAuditSpaceDeleteRequest denotes an event where the CC receives a
// request to delete a space.
EventTypeAuditSpaceDeleteRequest EventType = "audit.space.delete-request"
// EventTypeAuditSpaceUpdate denotes an event where the CC updates a space.
EventTypeAuditSpaceUpdate EventType = "audit.space.update"
// EventTypeAuditUserProvidedServiceInstanceCreate denotes an event where the
// CC creates a user provided service instance.
EventTypeAuditUserProvidedServiceInstanceCreate EventType = "audit.user_provided_service_instance.create"
// EventTypeAuditUserProvidedServiceInstanceDelete denotes an event where the
// CC deletes a user provided service instance.
EventTypeAuditUserProvidedServiceInstanceDelete EventType = "audit.user_provided_service_instance.delete"
// EventTypeAuditUserProvidedServiceInstanceUpdate denotes an event where the
// CC updates a user provided service instance.
EventTypeAuditUserProvidedServiceInstanceUpdate EventType = "audit.user_provided_service_instance.update"
// EventTypeAuditUserSpaceAuditorAdd denotes an event where the CC associates
// an auditor with a space.
EventTypeAuditUserSpaceAuditorAdd EventType = "audit.user.space_auditor_add"
// EventTypeAuditUserSpaceAuditorRemove denotes an event where the CC removes
// an auditor from a space.
EventTypeAuditUserSpaceAuditorRemove EventType = "audit.user.space_auditor_remove"
// EventTypeAuditUserSpaceManagerAdd denotes an event where the CC associates
// a manager with a space.
EventTypeAuditUserSpaceManagerAdd EventType = "audit.user.space_manager_add"
// EventTypeAuditUserSpaceManagerRemove denotes an event where the CC removes
// a manager from a space.
EventTypeAuditUserSpaceManagerRemove EventType = "audit.user.space_manager_remove"
// EventTypeAuditUserSpaceDeveloperAdd denotes an event where the CC
// associates a developer with a space.
EventTypeAuditUserSpaceDeveloperAdd EventType = "audit.user.space_developer_add"
// EventTypeAuditUserSpaceDeveloperRemove denotes an event where the CC removes
// a developer from a space.
EventTypeAuditUserSpaceDeveloperRemove EventType = "audit.user.space_developer_remove"
// EventTypeAuditUserOrganizationAuditorAdd denotes an event where the CC
// associates an auditor with an organization.
EventTypeAuditUserOrganizationAuditorAdd EventType = "audit.user.organization_auditor_add"
// EventTypeAuditUserOrganizationAuditorRemove denotes an event where the CC
// removes an auditor from an organization.
EventTypeAuditUserOrganizationAuditorRemove EventType = "audit.user.organization_auditor_remove"
// EventTypeAuditUserOrganizationBillingManagerAdd denotes an event where the CC
// associates a billing manager with an organization.
EventTypeAuditUserOrganizationBillingManagerAdd EventType = "audit.user.organization_billing_manager_add"
// EventTypeAuditUserOrganizationBillingManagerRemove denotes an event where the CC
// removes a billing manager from an organization.
EventTypeAuditUserOrganizationBillingManagerRemove EventType = "audit.user.organization_billing_manager_remove"
// EventTypeAuditUserOrganizationManagerAdd denotes an event where the CC
// associates a manager with an organization.
EventTypeAuditUserOrganizationManagerAdd EventType = "audit.user.organization_manager_add"
// EventTypeAuditUserOrganizationManagerRemove denotes an event where the CC
// removes a manager from an organization.
EventTypeAuditUserOrganizationManagerRemove EventType = "audit.user.organization_manager_remove"
// EventTypeAuditUserOrganizationUserAdd denotes an event where the CC associates
// an organization with a user.
EventTypeAuditUserOrganizationUserAdd EventType = "audit.user.organization_user_add"
// EventTypeAuditUserOrganizationUserRemove denotes an event where the CC
// associates an organization with a user.
EventTypeAuditUserOrganizationUserRemove EventType = "audit.user.organization_user_remove"
EventTypeBlobRemoveOrphan EventType = "blob.remove_orphan"
// "experimental" events
// EventTypeAuditApplicationBuildCreate denotes an event where an application
// build is created.
EventTypeAuditApplicationBuildCreate EventType = "audit.app.build.create"
// EventTypeAuditApplicationDropletCreate denotes an event where an application
// droplet is created.
EventTypeAuditApplicationDropletCreate EventType = "audit.app.droplet.create"
// EventTypeAuditApplicationDropletDelete denotes an event where an application
// droplet is deleted.
EventTypeAuditApplicationDropletDelete EventType = "audit.app.droplet.delete"
// EventTypeAuditApplicationDropletDownload denotes an event where an application
// droplet is downloaded.
EventTypeAuditApplicationDropletDownload EventType = "audit.app.droplet.download"
// EventTypeAuditApplicationProcessCrash denotes an event where an application
// process crashes.
EventTypeAuditApplicationProcessCrash EventType = "audit.app.process.crash"
// EventTypeAuditApplicationProcessCreate denotes an event where the CC
// creates an application process.
EventTypeAuditApplicationProcessCreate EventType = "audit.app.process.create"
// EventTypeAuditApplicationProcessDelete denotes an event where the CC
// deletes an application process.
EventTypeAuditApplicationProcessDelete EventType = "audit.app.process.delete"
// EventTypeAuditApplicationProcessScale denotes an event where the CC scales
// an application process.
EventTypeAuditApplicationProcessScale EventType = "audit.app.process.scale"
// EventTypeAuditApplicationProcessTerminateInstance denotes an event where
// the CC terminates an application process instance.
EventTypeAuditApplicationProcessTerminateInstance EventType = "audit.app.process.terminate_instance"
// EventTypeAuditApplicationProcessUpdate denotes an event where the CC
// updates an application process.
EventTypeAuditApplicationProcessUpdate EventType = "audit.app.process.update"
// EventTypeAuditApplicationTaskCancel denotes an event where the CC cancels
// a task.
EventTypeAuditApplicationTaskCancel EventType = "audit.app.task.cancel"
// EventTypeAuditApplicationTaskCreate denotes an event where the CC creates
// a task.
EventTypeAuditApplicationTaskCreate EventType = "audit.app.task.create"
EventTypeServiceInstanceShare EventType = "audit.service_instance.share"
EventTypeServiceInstanceUnshare EventType = "audit.service_instance.unshare"
)