blob: 77a43ea3681e098e1959da77859725d9cfe32201 (
plain)
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
|
package event
import "ior/internal/types"
// --- compile-time interface satisfaction assertions ---
//
// Every generated concrete event type in internal/types must satisfy the Event
// interface (which composes EventIdentity and EventLifecycle). These assertions
// live in the event package rather than in the generated file so they are not
// overwritten by mage generate. The event package already imports types, so no
// new import cycle is introduced.
var (
// *types.OpenEvent is the most common event type; it carries open-syscall
// enter-event data (fd, flags, pathname).
_ Event = (*types.OpenEvent)(nil)
// *types.NullEvent is used for tracepoints that carry no extra payload
// beyond the base header fields.
_ Event = (*types.NullEvent)(nil)
// *types.FdEvent carries a single file-descriptor field (close, dup, etc.).
_ Event = (*types.FdEvent)(nil)
// *types.RetEvent is the exit-side event for all syscalls; it carries the
// kernel return value.
_ Event = (*types.RetEvent)(nil)
// *types.NameEvent carries a single filename field (unlink, mkdir, etc.).
_ Event = (*types.NameEvent)(nil)
// *types.PathEvent carries a pathname field for path-only syscalls.
_ Event = (*types.PathEvent)(nil)
// *types.FcntlEvent carries the fcntl command and argument fields.
_ Event = (*types.FcntlEvent)(nil)
// *types.Dup3Event carries the old and new file-descriptor fields for dup3.
_ Event = (*types.Dup3Event)(nil)
// *types.OpenByHandleAtEvent carries the mount-fd and flags for
// open_by_handle_at syscalls.
_ Event = (*types.OpenByHandleAtEvent)(nil)
)
|