forked from johnjohnsp1/capsule8
/
subscription.pb.go
782 lines (692 loc) · 33.1 KB
/
subscription.pb.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
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: capsule8/api/v0/subscription.proto
package capsule8_api_v0
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf1 "github.com/golang/protobuf/ptypes/wrappers"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// The ContainerEventView specifies the level of detail to include for
// ContainerEvents.
type ContainerEventView int32
const (
// Default view of a ContainerEvent includes just basic information
ContainerEventView_BASIC ContainerEventView = 0
// Full view of a ContainerEvent includes raw Docker and OCI config JSON
// payloads
ContainerEventView_FULL ContainerEventView = 1
)
var ContainerEventView_name = map[int32]string{
0: "BASIC",
1: "FULL",
}
var ContainerEventView_value = map[string]int32{
"BASIC": 0,
"FULL": 1,
}
func (x ContainerEventView) String() string {
return proto.EnumName(ContainerEventView_name, int32(x))
}
func (ContainerEventView) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
// Possible interval types
type ThrottleModifier_IntervalType int32
const (
// milliseconds
ThrottleModifier_MILLISECOND ThrottleModifier_IntervalType = 0
// seconds
ThrottleModifier_SECOND ThrottleModifier_IntervalType = 1
// minutes
ThrottleModifier_MINUTE ThrottleModifier_IntervalType = 2
// hours
ThrottleModifier_HOUR ThrottleModifier_IntervalType = 3
)
var ThrottleModifier_IntervalType_name = map[int32]string{
0: "MILLISECOND",
1: "SECOND",
2: "MINUTE",
3: "HOUR",
}
var ThrottleModifier_IntervalType_value = map[string]int32{
"MILLISECOND": 0,
"SECOND": 1,
"MINUTE": 2,
"HOUR": 3,
}
func (x ThrottleModifier_IntervalType) String() string {
return proto.EnumName(ThrottleModifier_IntervalType_name, int32(x))
}
func (ThrottleModifier_IntervalType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor3, []int{12, 0}
}
//
// The Subscription message identifies a subscriber's interest in
// telemetry events.
//
type Subscription struct {
// Return events matching one or more of the specified event
// filters. If no event filters are specified, then no events
// will be returned.
EventFilter *EventFilter `protobuf:"bytes,1,opt,name=event_filter,json=eventFilter" json:"event_filter,omitempty"`
// If not empty, then only return events from containers matched
// by one or more of the specified container filters.
ContainerFilter *ContainerFilter `protobuf:"bytes,2,opt,name=container_filter,json=containerFilter" json:"container_filter,omitempty"`
// If not empty, then only return events that occurred after
// the specified relative duration subtracted from the current
// time (recorder time). If the resulting time is in the past, then the
// subscription will search for historic events before streaming
// live ones.
SinceDuration *google_protobuf1.Int64Value `protobuf:"bytes,10,opt,name=since_duration,json=sinceDuration" json:"since_duration,omitempty"`
// If not empty, then only return events that occurred before
// the specified relative duration added to `since_duration`.
// If `since_duration` is not supplied, return events from now and until
// the specified relative duration is hit.
ForDuration *google_protobuf1.Int64Value `protobuf:"bytes,11,opt,name=for_duration,json=forDuration" json:"for_duration,omitempty"`
// If not empty, apply the specified modifier to the subscription.
Modifier *Modifier `protobuf:"bytes,20,opt,name=modifier" json:"modifier,omitempty"`
}
func (m *Subscription) Reset() { *m = Subscription{} }
func (m *Subscription) String() string { return proto.CompactTextString(m) }
func (*Subscription) ProtoMessage() {}
func (*Subscription) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *Subscription) GetEventFilter() *EventFilter {
if m != nil {
return m.EventFilter
}
return nil
}
func (m *Subscription) GetContainerFilter() *ContainerFilter {
if m != nil {
return m.ContainerFilter
}
return nil
}
func (m *Subscription) GetSinceDuration() *google_protobuf1.Int64Value {
if m != nil {
return m.SinceDuration
}
return nil
}
func (m *Subscription) GetForDuration() *google_protobuf1.Int64Value {
if m != nil {
return m.ForDuration
}
return nil
}
func (m *Subscription) GetModifier() *Modifier {
if m != nil {
return m.Modifier
}
return nil
}
// The ContainerFilter restricts events in the Subscription to the
// running containers indicated. All of the fields in this message are
// effectively "ORed" together to create the list of containers to
// monitor for the subscription.
type ContainerFilter struct {
// Zero or more container IDs (e.g.
// 254dd98a7bf1581560ddace9f98b7933bfb3c2f5fc0504ec1b8dcc9614bc7062)
Ids []string `protobuf:"bytes,1,rep,name=ids" json:"ids,omitempty"`
// Zero or more container names (e.g. /ecstatic_darwin)
Names []string `protobuf:"bytes,2,rep,name=names" json:"names,omitempty"`
// Zero or more container image IDs (e.g.
// d462265d362c919b7dd37f8ba80caa822d13704695f47c8fc42a1c2266ecd164)
ImageIds []string `protobuf:"bytes,3,rep,name=image_ids,json=imageIds" json:"image_ids,omitempty"`
// Container image name (shell-style globs are supported). May be of the
// form "busybox", "foo/bar" or
// "sha256:d462265d362c919b7dd37f8ba80caa822d13704695f47c8fc42a1c2266ecd164"
ImageNames []string `protobuf:"bytes,4,rep,name=image_names,json=imageNames" json:"image_names,omitempty"`
}
func (m *ContainerFilter) Reset() { *m = ContainerFilter{} }
func (m *ContainerFilter) String() string { return proto.CompactTextString(m) }
func (*ContainerFilter) ProtoMessage() {}
func (*ContainerFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
func (m *ContainerFilter) GetIds() []string {
if m != nil {
return m.Ids
}
return nil
}
func (m *ContainerFilter) GetNames() []string {
if m != nil {
return m.Names
}
return nil
}
func (m *ContainerFilter) GetImageIds() []string {
if m != nil {
return m.ImageIds
}
return nil
}
func (m *ContainerFilter) GetImageNames() []string {
if m != nil {
return m.ImageNames
}
return nil
}
// The EventFilter specifies events to include. All of the specified
// fields are effectively "ORed" together to create the list of events
// included in the Subscription.
type EventFilter struct {
// Zero or more filters specifying which system calls to include
SyscallEvents []*SyscallEventFilter `protobuf:"bytes,1,rep,name=syscall_events,json=syscallEvents" json:"syscall_events,omitempty"`
// Zero or more filters specifying which process events to include
ProcessEvents []*ProcessEventFilter `protobuf:"bytes,2,rep,name=process_events,json=processEvents" json:"process_events,omitempty"`
// Zero or more filters specifying which file events to include
FileEvents []*FileEventFilter `protobuf:"bytes,3,rep,name=file_events,json=fileEvents" json:"file_events,omitempty"`
// Zero or more kernel functional calls to include
KernelEvents []*KernelFunctionCallFilter `protobuf:"bytes,4,rep,name=kernel_events,json=kernelEvents" json:"kernel_events,omitempty"`
// Zero or more network events to include
NetworkEvents []*NetworkEventFilter `protobuf:"bytes,5,rep,name=network_events,json=networkEvents" json:"network_events,omitempty"`
// Zero or more container events to include
ContainerEvents []*ContainerEventFilter `protobuf:"bytes,10,rep,name=container_events,json=containerEvents" json:"container_events,omitempty"`
// Zero or more character generators to configure and return events from
// (for debugging)
ChargenEvents []*ChargenEventFilter `protobuf:"bytes,100,rep,name=chargen_events,json=chargenEvents" json:"chargen_events,omitempty"`
// Zero or more ticker generators to configure and return events from
// (for debugging)
TickerEvents []*TickerEventFilter `protobuf:"bytes,101,rep,name=ticker_events,json=tickerEvents" json:"ticker_events,omitempty"`
}
func (m *EventFilter) Reset() { *m = EventFilter{} }
func (m *EventFilter) String() string { return proto.CompactTextString(m) }
func (*EventFilter) ProtoMessage() {}
func (*EventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} }
func (m *EventFilter) GetSyscallEvents() []*SyscallEventFilter {
if m != nil {
return m.SyscallEvents
}
return nil
}
func (m *EventFilter) GetProcessEvents() []*ProcessEventFilter {
if m != nil {
return m.ProcessEvents
}
return nil
}
func (m *EventFilter) GetFileEvents() []*FileEventFilter {
if m != nil {
return m.FileEvents
}
return nil
}
func (m *EventFilter) GetKernelEvents() []*KernelFunctionCallFilter {
if m != nil {
return m.KernelEvents
}
return nil
}
func (m *EventFilter) GetNetworkEvents() []*NetworkEventFilter {
if m != nil {
return m.NetworkEvents
}
return nil
}
func (m *EventFilter) GetContainerEvents() []*ContainerEventFilter {
if m != nil {
return m.ContainerEvents
}
return nil
}
func (m *EventFilter) GetChargenEvents() []*ChargenEventFilter {
if m != nil {
return m.ChargenEvents
}
return nil
}
func (m *EventFilter) GetTickerEvents() []*TickerEventFilter {
if m != nil {
return m.TickerEvents
}
return nil
}
// The SyscallEventFilter specifies which system call events to
// include in the Subscription. The specified fields are effectively
// "ANDed" to specify a matching event.
type SyscallEventFilter struct {
// Required; type of system call event (entry or exit)
Type SyscallEventType `protobuf:"varint,1,opt,name=type,enum=capsule8.api.v0.SyscallEventType" json:"type,omitempty"`
FilterExpression *Expression `protobuf:"bytes,100,opt,name=filter_expression,json=filterExpression" json:"filter_expression,omitempty"`
// Required; system call number from
// arch/x86/entry/syscalls/syscall_64.tbl
Id *google_protobuf1.Int64Value `protobuf:"bytes,2,opt,name=id" json:"id,omitempty"`
// Optional; return value of the system call (if type indicates exit).
Ret *google_protobuf1.Int64Value `protobuf:"bytes,20,opt,name=ret" json:"ret,omitempty"`
}
func (m *SyscallEventFilter) Reset() { *m = SyscallEventFilter{} }
func (m *SyscallEventFilter) String() string { return proto.CompactTextString(m) }
func (*SyscallEventFilter) ProtoMessage() {}
func (*SyscallEventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{3} }
func (m *SyscallEventFilter) GetType() SyscallEventType {
if m != nil {
return m.Type
}
return SyscallEventType_SYSCALL_EVENT_TYPE_UNKNOWN
}
func (m *SyscallEventFilter) GetFilterExpression() *Expression {
if m != nil {
return m.FilterExpression
}
return nil
}
func (m *SyscallEventFilter) GetId() *google_protobuf1.Int64Value {
if m != nil {
return m.Id
}
return nil
}
func (m *SyscallEventFilter) GetRet() *google_protobuf1.Int64Value {
if m != nil {
return m.Ret
}
return nil
}
// The ProcessEventFilter specifies which process events to include in
// the Subscription. The specified fields are effectively "ANDed" to
// specify a matching event.
type ProcessEventFilter struct {
// Required; the process event type to match
Type ProcessEventType `protobuf:"varint,1,opt,name=type,enum=capsule8.api.v0.ProcessEventType" json:"type,omitempty"`
FilterExpression *Expression `protobuf:"bytes,100,opt,name=filter_expression,json=filterExpression" json:"filter_expression,omitempty"`
// Optional; require exact match on the filename passed to execve(2)
ExecFilename *google_protobuf1.StringValue `protobuf:"bytes,12,opt,name=exec_filename,json=execFilename" json:"exec_filename,omitempty"`
// Optional; require pattern match on the filename passed to execve(2)
ExecFilenamePattern *google_protobuf1.StringValue `protobuf:"bytes,13,opt,name=exec_filename_pattern,json=execFilenamePattern" json:"exec_filename_pattern,omitempty"`
// Optional; require exact match on exit code
ExitCode *google_protobuf1.Int32Value `protobuf:"bytes,14,opt,name=exit_code,json=exitCode" json:"exit_code,omitempty"`
}
func (m *ProcessEventFilter) Reset() { *m = ProcessEventFilter{} }
func (m *ProcessEventFilter) String() string { return proto.CompactTextString(m) }
func (*ProcessEventFilter) ProtoMessage() {}
func (*ProcessEventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{4} }
func (m *ProcessEventFilter) GetType() ProcessEventType {
if m != nil {
return m.Type
}
return ProcessEventType_PROCESS_EVENT_TYPE_UNKNOWN
}
func (m *ProcessEventFilter) GetFilterExpression() *Expression {
if m != nil {
return m.FilterExpression
}
return nil
}
func (m *ProcessEventFilter) GetExecFilename() *google_protobuf1.StringValue {
if m != nil {
return m.ExecFilename
}
return nil
}
func (m *ProcessEventFilter) GetExecFilenamePattern() *google_protobuf1.StringValue {
if m != nil {
return m.ExecFilenamePattern
}
return nil
}
func (m *ProcessEventFilter) GetExitCode() *google_protobuf1.Int32Value {
if m != nil {
return m.ExitCode
}
return nil
}
// The FileEventFilter specifies which file events to include in the
// Subscription. The specified fields are effectively "ANDed" to
// specify a matching event.
type FileEventFilter struct {
// Required; the file event type to match
Type FileEventType `protobuf:"varint,1,opt,name=type,enum=capsule8.api.v0.FileEventType" json:"type,omitempty"`
FilterExpression *Expression `protobuf:"bytes,100,opt,name=filter_expression,json=filterExpression" json:"filter_expression,omitempty"`
// Optional; require exact match on the filename being acted upon
Filename *google_protobuf1.StringValue `protobuf:"bytes,10,opt,name=filename" json:"filename,omitempty"`
// Optional; require pattern match on the filename being acted upon
FilenamePattern *google_protobuf1.StringValue `protobuf:"bytes,11,opt,name=filename_pattern,json=filenamePattern" json:"filename_pattern,omitempty"`
// Optional; for file open events, require a match of the bits set
// for the open(2) flags argument
OpenFlagsMask *google_protobuf1.Int32Value `protobuf:"bytes,12,opt,name=open_flags_mask,json=openFlagsMask" json:"open_flags_mask,omitempty"`
// Optional; for file open events, require a match of the bits set
// for the open(2) or creat(2) mode argument
CreateModeMask *google_protobuf1.Int32Value `protobuf:"bytes,13,opt,name=create_mode_mask,json=createModeMask" json:"create_mode_mask,omitempty"`
}
func (m *FileEventFilter) Reset() { *m = FileEventFilter{} }
func (m *FileEventFilter) String() string { return proto.CompactTextString(m) }
func (*FileEventFilter) ProtoMessage() {}
func (*FileEventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{5} }
func (m *FileEventFilter) GetType() FileEventType {
if m != nil {
return m.Type
}
return FileEventType_FILE_EVENT_TYPE_UNKNOWN
}
func (m *FileEventFilter) GetFilterExpression() *Expression {
if m != nil {
return m.FilterExpression
}
return nil
}
func (m *FileEventFilter) GetFilename() *google_protobuf1.StringValue {
if m != nil {
return m.Filename
}
return nil
}
func (m *FileEventFilter) GetFilenamePattern() *google_protobuf1.StringValue {
if m != nil {
return m.FilenamePattern
}
return nil
}
func (m *FileEventFilter) GetOpenFlagsMask() *google_protobuf1.Int32Value {
if m != nil {
return m.OpenFlagsMask
}
return nil
}
func (m *FileEventFilter) GetCreateModeMask() *google_protobuf1.Int32Value {
if m != nil {
return m.CreateModeMask
}
return nil
}
// The KernelFunctionCallFilter specifies which kernel function call
// events to include in the Subscription. The arguments map defines
// values that will be fetched at each call and returned along with
// the event. In order to minimize event volume, a filter may be
// included that filters the kernel function calls based on the
// observed values of the specified arguments at the time of the
// kernel function call.
type KernelFunctionCallFilter struct {
// Required; the kernel function call event type to match
Type KernelFunctionCallEventType `protobuf:"varint,1,opt,name=type,enum=capsule8.api.v0.KernelFunctionCallEventType" json:"type,omitempty"`
// Required; the kernel symbol to match on
Symbol string `protobuf:"bytes,10,opt,name=symbol" json:"symbol,omitempty"`
// Optional; the field names and data to be returned by the kernel
// when the event triggers. Note that this is a map. The keys are the
// names to assign to the returned fields, and the values are a string
// describing the data to return, usually an expression involving the
// register containing the desired data and a suffix indicating the
// type of the data (e.g., "s32", "string", "u64", etc.). This map is
// used to construct the "fetchargs" passed to the kernel when creating
// the kernel probe.
Arguments map[string]string `protobuf:"bytes,11,rep,name=arguments" json:"arguments,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Optional; a filter to apply to kernel probe.
FilterExpression *Expression `protobuf:"bytes,100,opt,name=filter_expression,json=filterExpression" json:"filter_expression,omitempty"`
}
func (m *KernelFunctionCallFilter) Reset() { *m = KernelFunctionCallFilter{} }
func (m *KernelFunctionCallFilter) String() string { return proto.CompactTextString(m) }
func (*KernelFunctionCallFilter) ProtoMessage() {}
func (*KernelFunctionCallFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{6} }
func (m *KernelFunctionCallFilter) GetType() KernelFunctionCallEventType {
if m != nil {
return m.Type
}
return KernelFunctionCallEventType_KERNEL_FUNCTION_CALL_EVENT_TYPE_UNKNOWN
}
func (m *KernelFunctionCallFilter) GetSymbol() string {
if m != nil {
return m.Symbol
}
return ""
}
func (m *KernelFunctionCallFilter) GetArguments() map[string]string {
if m != nil {
return m.Arguments
}
return nil
}
func (m *KernelFunctionCallFilter) GetFilterExpression() *Expression {
if m != nil {
return m.FilterExpression
}
return nil
}
// The NetworkEventFilter specifies which network events to include in
// the Subscription. The included filter can be used to specify
// precisely which network events should be included.
type NetworkEventFilter struct {
// Required; the network event type to match
Type NetworkEventType `protobuf:"varint,1,opt,name=type,enum=capsule8.api.v0.NetworkEventType" json:"type,omitempty"`
// Optional; a filter to apply to events. Only events for which the
// evaluation of the filter expression is true will be returned.
FilterExpression *Expression `protobuf:"bytes,100,opt,name=filter_expression,json=filterExpression" json:"filter_expression,omitempty"`
}
func (m *NetworkEventFilter) Reset() { *m = NetworkEventFilter{} }
func (m *NetworkEventFilter) String() string { return proto.CompactTextString(m) }
func (*NetworkEventFilter) ProtoMessage() {}
func (*NetworkEventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{7} }
func (m *NetworkEventFilter) GetType() NetworkEventType {
if m != nil {
return m.Type
}
return NetworkEventType_NETWORK_EVENT_TYPE_UNKNOWN
}
func (m *NetworkEventFilter) GetFilterExpression() *Expression {
if m != nil {
return m.FilterExpression
}
return nil
}
// The ContainerEventFilter specifies which container lifecycle events
// to include in the Subscription. In order to restrict them to
// specific containers, use the ContainerFilter.
type ContainerEventFilter struct {
// Required, specify the particular type of event type to match
Type ContainerEventType `protobuf:"varint,1,opt,name=type,enum=capsule8.api.v0.ContainerEventType" json:"type,omitempty"`
// Optional, specifies how much detail to include in container events
View ContainerEventView `protobuf:"varint,2,opt,name=view,enum=capsule8.api.v0.ContainerEventView" json:"view,omitempty"`
// Optional; a filter to apply to events. Only events for which the
// evaluation of the filter expression is true will be returned.
FilterExpression *Expression `protobuf:"bytes,100,opt,name=filter_expression,json=filterExpression" json:"filter_expression,omitempty"`
}
func (m *ContainerEventFilter) Reset() { *m = ContainerEventFilter{} }
func (m *ContainerEventFilter) String() string { return proto.CompactTextString(m) }
func (*ContainerEventFilter) ProtoMessage() {}
func (*ContainerEventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{8} }
func (m *ContainerEventFilter) GetType() ContainerEventType {
if m != nil {
return m.Type
}
return ContainerEventType_CONTAINER_EVENT_TYPE_UNKNOWN
}
func (m *ContainerEventFilter) GetView() ContainerEventView {
if m != nil {
return m.View
}
return ContainerEventView_BASIC
}
func (m *ContainerEventFilter) GetFilterExpression() *Expression {
if m != nil {
return m.FilterExpression
}
return nil
}
// The ChargenEventFilter configures a character stream generator and
// includes events from it in the Subscription.
type ChargenEventFilter struct {
// Required; the length of character sequence strings to generate
Length uint64 `protobuf:"varint,1,opt,name=length" json:"length,omitempty"`
}
func (m *ChargenEventFilter) Reset() { *m = ChargenEventFilter{} }
func (m *ChargenEventFilter) String() string { return proto.CompactTextString(m) }
func (*ChargenEventFilter) ProtoMessage() {}
func (*ChargenEventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{9} }
func (m *ChargenEventFilter) GetLength() uint64 {
if m != nil {
return m.Length
}
return 0
}
// The TickerEventFilter configures a ticker stream generator and
// includes events from it in the Subscription.
type TickerEventFilter struct {
// Required; the interval at which ticker events are generated
Interval int64 `protobuf:"varint,1,opt,name=interval" json:"interval,omitempty"`
}
func (m *TickerEventFilter) Reset() { *m = TickerEventFilter{} }
func (m *TickerEventFilter) String() string { return proto.CompactTextString(m) }
func (*TickerEventFilter) ProtoMessage() {}
func (*TickerEventFilter) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{10} }
func (m *TickerEventFilter) GetInterval() int64 {
if m != nil {
return m.Interval
}
return 0
}
// Modifier specifies which stream modifiers to apply if any. For a given
// stream, a modifier can apply a throttle or limit etc. Modifiers can be
// used together.
type Modifier struct {
Throttle *ThrottleModifier `protobuf:"bytes,1,opt,name=throttle" json:"throttle,omitempty"`
Limit *LimitModifier `protobuf:"bytes,2,opt,name=limit" json:"limit,omitempty"`
}
func (m *Modifier) Reset() { *m = Modifier{} }
func (m *Modifier) String() string { return proto.CompactTextString(m) }
func (*Modifier) ProtoMessage() {}
func (*Modifier) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{11} }
func (m *Modifier) GetThrottle() *ThrottleModifier {
if m != nil {
return m.Throttle
}
return nil
}
func (m *Modifier) GetLimit() *LimitModifier {
if m != nil {
return m.Limit
}
return nil
}
// The ThrottleModifier modulates events sent by the Sensor to one per
// time interval specified.
type ThrottleModifier struct {
// Required; the interval to use
Interval int64 `protobuf:"varint,1,opt,name=interval" json:"interval,omitempty"`
// Required; the intreval type (milliseconds, seconds, etc.)
IntervalType ThrottleModifier_IntervalType `protobuf:"varint,2,opt,name=interval_type,json=intervalType,enum=capsule8.api.v0.ThrottleModifier_IntervalType" json:"interval_type,omitempty"`
}
func (m *ThrottleModifier) Reset() { *m = ThrottleModifier{} }
func (m *ThrottleModifier) String() string { return proto.CompactTextString(m) }
func (*ThrottleModifier) ProtoMessage() {}
func (*ThrottleModifier) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{12} }
func (m *ThrottleModifier) GetInterval() int64 {
if m != nil {
return m.Interval
}
return 0
}
func (m *ThrottleModifier) GetIntervalType() ThrottleModifier_IntervalType {
if m != nil {
return m.IntervalType
}
return ThrottleModifier_MILLISECOND
}
// The LimitModifier cancels the subscription on each Sensor after the
// specified number of events. The entire Subscription may return more
// events that this depending on how many active Sensors there are.
type LimitModifier struct {
// Limit the number of events
Limit int64 `protobuf:"varint,1,opt,name=limit" json:"limit,omitempty"`
}
func (m *LimitModifier) Reset() { *m = LimitModifier{} }
func (m *LimitModifier) String() string { return proto.CompactTextString(m) }
func (*LimitModifier) ProtoMessage() {}
func (*LimitModifier) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{13} }
func (m *LimitModifier) GetLimit() int64 {
if m != nil {
return m.Limit
}
return 0
}
func init() {
proto.RegisterType((*Subscription)(nil), "capsule8.api.v0.Subscription")
proto.RegisterType((*ContainerFilter)(nil), "capsule8.api.v0.ContainerFilter")
proto.RegisterType((*EventFilter)(nil), "capsule8.api.v0.EventFilter")
proto.RegisterType((*SyscallEventFilter)(nil), "capsule8.api.v0.SyscallEventFilter")
proto.RegisterType((*ProcessEventFilter)(nil), "capsule8.api.v0.ProcessEventFilter")
proto.RegisterType((*FileEventFilter)(nil), "capsule8.api.v0.FileEventFilter")
proto.RegisterType((*KernelFunctionCallFilter)(nil), "capsule8.api.v0.KernelFunctionCallFilter")
proto.RegisterType((*NetworkEventFilter)(nil), "capsule8.api.v0.NetworkEventFilter")
proto.RegisterType((*ContainerEventFilter)(nil), "capsule8.api.v0.ContainerEventFilter")
proto.RegisterType((*ChargenEventFilter)(nil), "capsule8.api.v0.ChargenEventFilter")
proto.RegisterType((*TickerEventFilter)(nil), "capsule8.api.v0.TickerEventFilter")
proto.RegisterType((*Modifier)(nil), "capsule8.api.v0.Modifier")
proto.RegisterType((*ThrottleModifier)(nil), "capsule8.api.v0.ThrottleModifier")
proto.RegisterType((*LimitModifier)(nil), "capsule8.api.v0.LimitModifier")
proto.RegisterEnum("capsule8.api.v0.ContainerEventView", ContainerEventView_name, ContainerEventView_value)
proto.RegisterEnum("capsule8.api.v0.ThrottleModifier_IntervalType", ThrottleModifier_IntervalType_name, ThrottleModifier_IntervalType_value)
}
func init() { proto.RegisterFile("capsule8/api/v0/subscription.proto", fileDescriptor3) }
var fileDescriptor3 = []byte{
// 1135 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xdb, 0x6e, 0xdb, 0x36,
0x18, 0xae, 0x0f, 0x29, 0xec, 0x5f, 0x3e, 0xa8, 0x5c, 0x36, 0x78, 0xc9, 0xd0, 0x65, 0x2a, 0x0a,
0xb4, 0x5b, 0x67, 0x17, 0x69, 0xbb, 0x06, 0xc3, 0x4e, 0xa9, 0x1b, 0xb7, 0x5e, 0x93, 0x34, 0x90,
0x93, 0xdc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