(events []HookEventRecord)
| 339 | } |
| 340 | |
| 341 | func hookEventsBundle(events []HookEventRecord) outputBundle { |
| 342 | return listBundle( |
| 343 | events, |
| 344 | events, |
| 345 | "Hook Events", |
| 346 | []string{hooksEventValue, "Family", "Sync", "Payload", "Patch"}, |
| 347 | hooksEventsKey, |
| 348 | []string{hooksEventKey, "family", "sync_eligible", "payload_schema", "patch_schema"}, |
| 349 | func(item HookEventRecord) []string { |
| 350 | return []string{ |
| 351 | stringOrDash(item.Event), |
| 352 | stringOrDash(item.Family), |
| 353 | strconv.FormatBool(item.SyncEligible), |
| 354 | stringOrDash(item.PayloadSchema), |
| 355 | stringOrDash(item.PatchSchema), |
| 356 | } |
| 357 | }, |
| 358 | func(item HookEventRecord) []string { |
| 359 | return []string{ |
| 360 | item.Event, |
| 361 | item.Family, |
| 362 | strconv.FormatBool(item.SyncEligible), |
| 363 | item.PayloadSchema, |
| 364 | item.PatchSchema, |
| 365 | } |
| 366 | }, |
| 367 | ) |
| 368 | } |
| 369 | |
| 370 | func hookRunsBundle(runs []HookRunRecord) outputBundle { |
| 371 | return listBundle( |
no test coverage detected