nl-linux 0.3.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +5 -0
  3. data/CHANGELOG.md +6 -0
  4. data/Rakefile +14 -2
  5. data/generated/nl/linux/binder.rb +172 -44
  6. data/generated/nl/linux/conntrack.rb +1293 -370
  7. data/generated/nl/linux/dev_energymodel.rb +278 -93
  8. data/generated/nl/linux/devlink.rb +5654 -1954
  9. data/generated/nl/linux/dpll.rb +1838 -669
  10. data/generated/nl/linux/drm_ras.rb +234 -72
  11. data/generated/nl/linux/ethtool.rb +6683 -2885
  12. data/generated/nl/linux/fou.rb +308 -129
  13. data/generated/nl/linux/handshake.rb +277 -99
  14. data/generated/nl/linux/lockd.rb +88 -33
  15. data/generated/nl/linux/mptcp_pm.rb +639 -186
  16. data/generated/nl/linux/net_shaper.rb +782 -224
  17. data/generated/nl/linux/netdev.rb +2105 -631
  18. data/generated/nl/linux/nfsd.rb +1030 -358
  19. data/generated/nl/linux/nftables.rb +5041 -1612
  20. data/generated/nl/linux/nl80211.rb +4531 -871
  21. data/generated/nl/linux/nlctrl.rb +411 -119
  22. data/generated/nl/linux/ovpn.rb +1211 -293
  23. data/generated/nl/linux/ovs_datapath.rb +271 -106
  24. data/generated/nl/linux/ovs_flow.rb +1819 -354
  25. data/generated/nl/linux/ovs_packet.rb +257 -82
  26. data/generated/nl/linux/ovs_vport.rb +334 -132
  27. data/generated/nl/linux/psp.rb +916 -281
  28. data/generated/nl/linux/rt_addr.rb +369 -166
  29. data/generated/nl/linux/rt_link.rb +6708 -1450
  30. data/generated/nl/linux/rt_neigh.rb +919 -364
  31. data/generated/nl/linux/rt_route.rb +1034 -448
  32. data/generated/nl/linux/rt_rule.rb +775 -395
  33. data/generated/nl/linux/sunrpc_cache.rb +297 -102
  34. data/generated/nl/linux/tc.rb +9989 -1780
  35. data/generated/nl/linux/tcp_metrics.rb +327 -105
  36. data/generated/nl/linux/team.rb +279 -93
  37. data/generated/nl/linux/wireguard.rb +432 -95
  38. data/generated/nl/linux.rb +1 -0
  39. data/lib/nl/linux/nlctrl_resolver.rb +31 -0
  40. data/lib/nl/linux/version.rb +1 -1
  41. data/sig/generated/nl/linux/binder.rbs +366 -0
  42. data/sig/generated/nl/linux/conntrack.rbs +2787 -0
  43. data/sig/generated/nl/linux/dev_energymodel.rbs +636 -0
  44. data/sig/generated/nl/linux/devlink.rbs +12496 -0
  45. data/sig/generated/nl/linux/dpll.rbs +3461 -0
  46. data/sig/generated/nl/linux/drm_ras.rbs +553 -0
  47. data/sig/generated/nl/linux/ethtool.rbs +15291 -0
  48. data/sig/generated/nl/linux/fou.rbs +702 -0
  49. data/sig/generated/nl/linux/handshake.rbs +622 -0
  50. data/sig/generated/nl/linux/lockd.rbs +234 -0
  51. data/sig/generated/nl/linux/mptcp_pm.rbs +1511 -0
  52. data/sig/generated/nl/linux/net_shaper.rbs +1645 -0
  53. data/sig/generated/nl/linux/netdev.rbs +4187 -0
  54. data/sig/generated/nl/linux/nfsd.rbs +2520 -0
  55. data/sig/generated/nl/linux/nftables.rbs +10304 -0
  56. data/sig/generated/nl/linux/nl80211.rbs +9786 -0
  57. data/sig/generated/nl/linux/nlctrl.rbs +944 -0
  58. data/sig/generated/nl/linux/nlctrl_resolver.rbs +20 -0
  59. data/sig/generated/nl/linux/ovpn.rbs +2564 -0
  60. data/sig/generated/nl/linux/ovs_datapath.rbs +640 -0
  61. data/sig/generated/nl/linux/ovs_flow.rbs +3659 -0
  62. data/sig/generated/nl/linux/ovs_packet.rbs +540 -0
  63. data/sig/generated/nl/linux/ovs_vport.rbs +777 -0
  64. data/sig/generated/nl/linux/psp.rbs +1846 -0
  65. data/sig/generated/nl/linux/rt_addr.rbs +866 -0
  66. data/sig/generated/nl/linux/rt_link.rbs +13438 -0
  67. data/sig/generated/nl/linux/rt_neigh.rbs +2124 -0
  68. data/sig/generated/nl/linux/rt_route.rbs +2218 -0
  69. data/sig/generated/nl/linux/rt_rule.rbs +1726 -0
  70. data/sig/generated/nl/linux/sunrpc_cache.rbs +739 -0
  71. data/sig/generated/nl/linux/tc.rbs +19931 -0
  72. data/sig/generated/nl/linux/tcp_metrics.rbs +740 -0
  73. data/sig/generated/nl/linux/team.rbs +733 -0
  74. data/sig/generated/nl/linux/version.rbs +7 -0
  75. data/sig/generated/nl/linux/wireguard.rbs +1006 -0
  76. data/sig/generated/nl/linux.rbs +6 -0
  77. data/sig/generated/nl-linux.rbs +2 -0
  78. metadata +46 -7
@@ -0,0 +1,739 @@
1
+ # Generated from generated/nl/linux/sunrpc_cache.rb with RBS::Inline
2
+
3
+ module Nl
4
+ module Linux
5
+ # SUNRPC cache upcall support over generic netlink.
6
+ class Sunrpc < ::Nl::Genl::Family
7
+ NAME: ::String
8
+
9
+ VERSION: ::Integer
10
+
11
+ # @rbs (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
12
+ # @rbs | [R] (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) { (instance) -> R } -> R
13
+ # @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY)
14
+ # @param [#call] resolver
15
+ # @param [Symbol, nil] executor
16
+ # @param [Integer, nil] notification_capacity
17
+ # @return [Sunrpc]
18
+ # @overload open(resolver: ::Nl::Linux::DEFAULT_RESOLVER, executor: nil, notification_capacity: DEFAULT_NOTIFICATION_CAPACITY, &block)
19
+ # @param [#call] resolver
20
+ # @param [Symbol, nil] executor
21
+ # @param [Integer, nil] notification_capacity
22
+ # @yieldparam [Sunrpc] family
23
+ # @return [Object] the result of the block
24
+ def self.open: (?resolver: ^(::Nl::Genl::Client, ::String) -> ::Nl::Genl::FamilyInfo, ?executor: executor?, ?notification_capacity: ::Integer?) -> (::Nl::Family::Session & instance)
25
+
26
+ # @private
27
+ MCAST_GROUPS: Hash[::Symbol, ::Nl::McastGroup]
28
+
29
+ module Flags
30
+ module CacheType
31
+ IpMap: ::Integer
32
+
33
+ UnixGid: ::Integer
34
+ end
35
+ end
36
+
37
+ module Structs
38
+ end
39
+
40
+ module AttributeSets
41
+ class CacheNotify < ::Nl::AttributeSet
42
+ # Abstract class
43
+ class Attribute < ::Nl::AttributeSet::Attribute
44
+ end
45
+
46
+ # Known flags are defined in {Flags::CacheType}.
47
+ class CacheType < Attribute
48
+ TYPE: ::Integer
49
+
50
+ NAME: ::Symbol
51
+
52
+ # @private
53
+ ORDER: ::Integer
54
+
55
+ # @private
56
+ DATATYPE: untyped
57
+ end
58
+
59
+ # @private
60
+ BY_NAME: Hash[::Symbol, Attribute]
61
+
62
+ # @private
63
+ BY_TYPE: Hash[::Integer, Attribute]
64
+
65
+ # Known flags are defined in {Flags::CacheType}.
66
+ # @rbs return: ::Integer
67
+ # @return [Integer]
68
+ # @see CacheType
69
+ def cache_type: () -> ::Integer
70
+
71
+ # Looks up Attribute class by name.
72
+ # @rbs name: Symbol
73
+ # @rbs return: Attribute
74
+ # @param [Symbol] name
75
+ # @return [Attribute]
76
+ def self.by_name: (Symbol name) -> Attribute
77
+
78
+ # Looks up Attribute class by type value.
79
+ # @rbs type: Integer
80
+ # @rbs return: Attribute
81
+ # @param [Integer] type
82
+ # @return [Attribute]
83
+ def self.by_type: (Integer type) -> Attribute
84
+ end
85
+
86
+ class IpMap < ::Nl::AttributeSet
87
+ # Abstract class
88
+ class Attribute < ::Nl::AttributeSet::Attribute
89
+ end
90
+
91
+ class Seqno < Attribute
92
+ TYPE: ::Integer
93
+
94
+ NAME: ::Symbol
95
+
96
+ # @private
97
+ ORDER: ::Integer
98
+
99
+ # @private
100
+ DATATYPE: untyped
101
+ end
102
+
103
+ class Class < Attribute
104
+ TYPE: ::Integer
105
+
106
+ NAME: ::Symbol
107
+
108
+ # @private
109
+ ORDER: ::Integer
110
+
111
+ # @private
112
+ DATATYPE: untyped
113
+ end
114
+
115
+ class Addr < Attribute
116
+ TYPE: ::Integer
117
+
118
+ NAME: ::Symbol
119
+
120
+ # @private
121
+ ORDER: ::Integer
122
+
123
+ # @private
124
+ DATATYPE: untyped
125
+ end
126
+
127
+ class Domain < Attribute
128
+ TYPE: ::Integer
129
+
130
+ NAME: ::Symbol
131
+
132
+ # @private
133
+ ORDER: ::Integer
134
+
135
+ # @private
136
+ DATATYPE: untyped
137
+ end
138
+
139
+ class Negative < Attribute
140
+ TYPE: ::Integer
141
+
142
+ NAME: ::Symbol
143
+
144
+ # @private
145
+ ORDER: ::Integer
146
+
147
+ # @private
148
+ DATATYPE: untyped
149
+ end
150
+
151
+ class Expiry < Attribute
152
+ TYPE: ::Integer
153
+
154
+ NAME: ::Symbol
155
+
156
+ # @private
157
+ ORDER: ::Integer
158
+
159
+ # @private
160
+ DATATYPE: untyped
161
+ end
162
+
163
+ # @private
164
+ BY_NAME: Hash[::Symbol, Attribute]
165
+
166
+ # @private
167
+ BY_TYPE: Hash[::Integer, Attribute]
168
+
169
+ # @rbs return: ::Integer
170
+ # @return [Integer]
171
+ # @see Seqno
172
+ def seqno: () -> ::Integer
173
+
174
+ # @rbs return: ::String
175
+ # @return [String]
176
+ # @see Class
177
+ def class: () -> ::String
178
+
179
+ # @rbs return: ::String
180
+ # @return [String]
181
+ # @see Addr
182
+ def addr: () -> ::String
183
+
184
+ # @rbs return: ::String
185
+ # @return [String]
186
+ # @see Domain
187
+ def domain: () -> ::String
188
+
189
+ # @rbs return: ::Integer
190
+ # @return [Integer]
191
+ # @see Negative
192
+ def negative: () -> ::Integer
193
+
194
+ # @rbs return: ::Integer
195
+ # @return [Integer]
196
+ # @see Expiry
197
+ def expiry: () -> ::Integer
198
+
199
+ # Looks up Attribute class by name.
200
+ # @rbs name: Symbol
201
+ # @rbs return: Attribute
202
+ # @param [Symbol] name
203
+ # @return [Attribute]
204
+ def self.by_name: (Symbol name) -> Attribute
205
+
206
+ # Looks up Attribute class by type value.
207
+ # @rbs type: Integer
208
+ # @rbs return: Attribute
209
+ # @param [Integer] type
210
+ # @return [Attribute]
211
+ def self.by_type: (Integer type) -> Attribute
212
+ end
213
+
214
+ class IpMapReqs < ::Nl::AttributeSet
215
+ # Abstract class
216
+ class Attribute < ::Nl::AttributeSet::Attribute
217
+ end
218
+
219
+ class Requests < Attribute
220
+ TYPE: ::Integer
221
+
222
+ NAME: ::Symbol
223
+
224
+ # @private
225
+ MULTI: bool
226
+
227
+ # @private
228
+ ORDER: ::Integer
229
+ end
230
+
231
+ # @private
232
+ BY_NAME: Hash[::Symbol, Attribute]
233
+
234
+ # @private
235
+ BY_TYPE: Hash[::Integer, Attribute]
236
+
237
+ # @rbs return: ::Array[AttributeSets::IpMap]
238
+ # @return [Array<AttributeSets::IpMap>]
239
+ # @see Requests
240
+ def requests: () -> ::Array[AttributeSets::IpMap]
241
+
242
+ # Looks up Attribute class by name.
243
+ # @rbs name: Symbol
244
+ # @rbs return: Attribute
245
+ # @param [Symbol] name
246
+ # @return [Attribute]
247
+ def self.by_name: (Symbol name) -> Attribute
248
+
249
+ # Looks up Attribute class by type value.
250
+ # @rbs type: Integer
251
+ # @rbs return: Attribute
252
+ # @param [Integer] type
253
+ # @return [Attribute]
254
+ def self.by_type: (Integer type) -> Attribute
255
+ end
256
+
257
+ class UnixGid < ::Nl::AttributeSet
258
+ # Abstract class
259
+ class Attribute < ::Nl::AttributeSet::Attribute
260
+ end
261
+
262
+ class Seqno < Attribute
263
+ TYPE: ::Integer
264
+
265
+ NAME: ::Symbol
266
+
267
+ # @private
268
+ ORDER: ::Integer
269
+
270
+ # @private
271
+ DATATYPE: untyped
272
+ end
273
+
274
+ class Uid < Attribute
275
+ TYPE: ::Integer
276
+
277
+ NAME: ::Symbol
278
+
279
+ # @private
280
+ ORDER: ::Integer
281
+
282
+ # @private
283
+ DATATYPE: untyped
284
+ end
285
+
286
+ class Gids < Attribute
287
+ TYPE: ::Integer
288
+
289
+ NAME: ::Symbol
290
+
291
+ # @private
292
+ MULTI: bool
293
+
294
+ # @private
295
+ ORDER: ::Integer
296
+
297
+ # @private
298
+ DATATYPE: untyped
299
+ end
300
+
301
+ class Negative < Attribute
302
+ TYPE: ::Integer
303
+
304
+ NAME: ::Symbol
305
+
306
+ # @private
307
+ ORDER: ::Integer
308
+
309
+ # @private
310
+ DATATYPE: untyped
311
+ end
312
+
313
+ class Expiry < Attribute
314
+ TYPE: ::Integer
315
+
316
+ NAME: ::Symbol
317
+
318
+ # @private
319
+ ORDER: ::Integer
320
+
321
+ # @private
322
+ DATATYPE: untyped
323
+ end
324
+
325
+ # @private
326
+ BY_NAME: Hash[::Symbol, Attribute]
327
+
328
+ # @private
329
+ BY_TYPE: Hash[::Integer, Attribute]
330
+
331
+ # @rbs return: ::Integer
332
+ # @return [Integer]
333
+ # @see Seqno
334
+ def seqno: () -> ::Integer
335
+
336
+ # @rbs return: ::Integer
337
+ # @return [Integer]
338
+ # @see Uid
339
+ def uid: () -> ::Integer
340
+
341
+ # @rbs return: ::Array[::Integer]
342
+ # @return [Array<Integer>]
343
+ # @see Gids
344
+ def gids: () -> ::Array[::Integer]
345
+
346
+ # @rbs return: ::Integer
347
+ # @return [Integer]
348
+ # @see Negative
349
+ def negative: () -> ::Integer
350
+
351
+ # @rbs return: ::Integer
352
+ # @return [Integer]
353
+ # @see Expiry
354
+ def expiry: () -> ::Integer
355
+
356
+ # Looks up Attribute class by name.
357
+ # @rbs name: Symbol
358
+ # @rbs return: Attribute
359
+ # @param [Symbol] name
360
+ # @return [Attribute]
361
+ def self.by_name: (Symbol name) -> Attribute
362
+
363
+ # Looks up Attribute class by type value.
364
+ # @rbs type: Integer
365
+ # @rbs return: Attribute
366
+ # @param [Integer] type
367
+ # @return [Attribute]
368
+ def self.by_type: (Integer type) -> Attribute
369
+ end
370
+
371
+ class UnixGidReqs < ::Nl::AttributeSet
372
+ # Abstract class
373
+ class Attribute < ::Nl::AttributeSet::Attribute
374
+ end
375
+
376
+ class Requests < Attribute
377
+ TYPE: ::Integer
378
+
379
+ NAME: ::Symbol
380
+
381
+ # @private
382
+ MULTI: bool
383
+
384
+ # @private
385
+ ORDER: ::Integer
386
+ end
387
+
388
+ # @private
389
+ BY_NAME: Hash[::Symbol, Attribute]
390
+
391
+ # @private
392
+ BY_TYPE: Hash[::Integer, Attribute]
393
+
394
+ # @rbs return: ::Array[AttributeSets::UnixGid]
395
+ # @return [Array<AttributeSets::UnixGid>]
396
+ # @see Requests
397
+ def requests: () -> ::Array[AttributeSets::UnixGid]
398
+
399
+ # Looks up Attribute class by name.
400
+ # @rbs name: Symbol
401
+ # @rbs return: Attribute
402
+ # @param [Symbol] name
403
+ # @return [Attribute]
404
+ def self.by_name: (Symbol name) -> Attribute
405
+
406
+ # Looks up Attribute class by type value.
407
+ # @rbs type: Integer
408
+ # @rbs return: Attribute
409
+ # @param [Integer] type
410
+ # @return [Attribute]
411
+ def self.by_type: (Integer type) -> Attribute
412
+ end
413
+
414
+ class CacheFlush < ::Nl::AttributeSet
415
+ # Abstract class
416
+ class Attribute < ::Nl::AttributeSet::Attribute
417
+ end
418
+
419
+ # Known flags are defined in {Flags::CacheType}.
420
+ class Mask < Attribute
421
+ TYPE: ::Integer
422
+
423
+ NAME: ::Symbol
424
+
425
+ # @private
426
+ ORDER: ::Integer
427
+
428
+ # @private
429
+ DATATYPE: untyped
430
+ end
431
+
432
+ # @private
433
+ BY_NAME: Hash[::Symbol, Attribute]
434
+
435
+ # @private
436
+ BY_TYPE: Hash[::Integer, Attribute]
437
+
438
+ # Known flags are defined in {Flags::CacheType}.
439
+ # @rbs return: ::Integer
440
+ # @return [Integer]
441
+ # @see Mask
442
+ def mask: () -> ::Integer
443
+
444
+ # Looks up Attribute class by name.
445
+ # @rbs name: Symbol
446
+ # @rbs return: Attribute
447
+ # @param [Symbol] name
448
+ # @return [Attribute]
449
+ def self.by_name: (Symbol name) -> Attribute
450
+
451
+ # Looks up Attribute class by type value.
452
+ # @rbs type: Integer
453
+ # @rbs return: Attribute
454
+ # @param [Integer] type
455
+ # @return [Attribute]
456
+ def self.by_type: (Integer type) -> Attribute
457
+ end
458
+ end
459
+
460
+ module Messages
461
+ # Dump all pending ip_map requests
462
+ #
463
+ # Requires CAP_NET_ADMIN in the initial user namespace.
464
+ class DumpIpMapGetReqsRequest < ::Nl::Genl::Message
465
+ TYPE: ::Integer
466
+
467
+ FIXED_HEADER: untyped
468
+
469
+ ATTRIBUTE_SET: untyped
470
+
471
+ ATTRIBUTES: untyped
472
+ end
473
+
474
+ # Dump all pending ip_map requests
475
+ #
476
+ # Requires CAP_NET_ADMIN in the initial user namespace.
477
+ class DumpIpMapGetReqsReply < ::Nl::Genl::Message
478
+ TYPE: ::Integer
479
+
480
+ FIXED_HEADER: untyped
481
+
482
+ ATTRIBUTE_SET: untyped
483
+
484
+ ATTRIBUTES: untyped
485
+
486
+ # @rbs return: ::Array[AttributeSets::IpMap]
487
+ # @return [Array<AttributeSets::IpMap>]
488
+ # @see AttributeSets::IpMapReqs::Requests
489
+ def requests: () -> ::Array[AttributeSets::IpMap]
490
+ end
491
+
492
+ # Respond to one or more ip_map requests
493
+ #
494
+ # Requires CAP_NET_ADMIN in the initial user namespace.
495
+ class DoIpMapSetReqsRequest < ::Nl::Genl::Message
496
+ TYPE: ::Integer
497
+
498
+ FIXED_HEADER: untyped
499
+
500
+ ATTRIBUTE_SET: untyped
501
+
502
+ ATTRIBUTES: untyped
503
+
504
+ # @rbs return: ::Array[AttributeSets::IpMap]
505
+ # @return [Array<AttributeSets::IpMap>]
506
+ # @see AttributeSets::IpMapReqs::Requests
507
+ def requests: () -> ::Array[AttributeSets::IpMap]
508
+ end
509
+
510
+ # Dump all pending unix_gid requests
511
+ #
512
+ # Requires CAP_NET_ADMIN in the initial user namespace.
513
+ class DumpUnixGidGetReqsRequest < ::Nl::Genl::Message
514
+ TYPE: ::Integer
515
+
516
+ FIXED_HEADER: untyped
517
+
518
+ ATTRIBUTE_SET: untyped
519
+
520
+ ATTRIBUTES: untyped
521
+ end
522
+
523
+ # Dump all pending unix_gid requests
524
+ #
525
+ # Requires CAP_NET_ADMIN in the initial user namespace.
526
+ class DumpUnixGidGetReqsReply < ::Nl::Genl::Message
527
+ TYPE: ::Integer
528
+
529
+ FIXED_HEADER: untyped
530
+
531
+ ATTRIBUTE_SET: untyped
532
+
533
+ ATTRIBUTES: untyped
534
+
535
+ # @rbs return: ::Array[AttributeSets::UnixGid]
536
+ # @return [Array<AttributeSets::UnixGid>]
537
+ # @see AttributeSets::UnixGidReqs::Requests
538
+ def requests: () -> ::Array[AttributeSets::UnixGid]
539
+ end
540
+
541
+ # Respond to one or more unix_gid requests
542
+ #
543
+ # Requires CAP_NET_ADMIN in the initial user namespace.
544
+ class DoUnixGidSetReqsRequest < ::Nl::Genl::Message
545
+ TYPE: ::Integer
546
+
547
+ FIXED_HEADER: untyped
548
+
549
+ ATTRIBUTE_SET: untyped
550
+
551
+ ATTRIBUTES: untyped
552
+
553
+ # @rbs return: ::Array[AttributeSets::UnixGid]
554
+ # @return [Array<AttributeSets::UnixGid>]
555
+ # @see AttributeSets::UnixGidReqs::Requests
556
+ def requests: () -> ::Array[AttributeSets::UnixGid]
557
+ end
558
+
559
+ # Flush sunrpc caches (ip_map and/or unix_gid)
560
+ #
561
+ # Requires CAP_NET_ADMIN in the initial user namespace.
562
+ class DoCacheFlushRequest < ::Nl::Genl::Message
563
+ TYPE: ::Integer
564
+
565
+ FIXED_HEADER: untyped
566
+
567
+ ATTRIBUTE_SET: untyped
568
+
569
+ ATTRIBUTES: untyped
570
+
571
+ # Known flags are defined in {Flags::CacheType}.
572
+ # @rbs return: ::Integer
573
+ # @return [Integer]
574
+ # @see AttributeSets::CacheFlush::Mask
575
+ def mask: () -> ::Integer
576
+ end
577
+ end
578
+
579
+ module Notifications
580
+ # Notification that there are cache requests that need servicing
581
+ #
582
+ # Multicast group: `exportd`.
583
+ class CacheNotify < ::Nl::Genl::Message
584
+ TYPE: ::Integer
585
+
586
+ FIXED_HEADER: untyped
587
+
588
+ ATTRIBUTE_SET: untyped
589
+
590
+ ATTRIBUTES: untyped
591
+
592
+ # Known flags are defined in {Flags::CacheType}.
593
+ # @rbs return: ::Integer
594
+ # @return [Integer]
595
+ # @see AttributeSets::CacheNotify::CacheType
596
+ def cache_type: () -> ::Integer
597
+ end
598
+ end
599
+
600
+ # @private
601
+ NOTIFICATIONS: Hash[::Integer, ::Class]
602
+
603
+ # Dump all pending ip_map requests
604
+ #
605
+ # Requires CAP_NET_ADMIN in the initial user namespace.
606
+ # @rbs () -> Array[Messages::DumpIpMapGetReqsReply]
607
+ # | () { (Messages::DumpIpMapGetReqsReply) -> void } -> void
608
+ # @overload dump_ip_map_get_reqs(**args)
609
+ # Returns an array when no block is given.
610
+ # @param [Hash] args
611
+ # @return [Array<Messages::DumpIpMapGetReqsReply>]
612
+ # @overload dump_ip_map_get_reqs(**args, &block)
613
+ # Yields each reply when a block is given.
614
+ # @param [Hash] args
615
+ # @yieldparam [Messages::DumpIpMapGetReqsReply] reply
616
+ # @return [void]
617
+ # @see Messages::DumpIpMapGetReqsRequest
618
+ def dump_ip_map_get_reqs: () -> Array[Messages::DumpIpMapGetReqsReply]
619
+ | () { (Messages::DumpIpMapGetReqsReply) -> void } -> void
620
+
621
+ # Respond to one or more ip_map requests
622
+ #
623
+ # Requires CAP_NET_ADMIN in the initial user namespace.
624
+ # @rbs (?requests: ::Array[(AttributeSets::IpMap | ::Hash[::Symbol, untyped])]) -> void
625
+ # @param [Hash] args
626
+ # @option args [Array<AttributeSets::IpMap, Hash<Symbol, Object>>] requests
627
+ # @return [void]
628
+ # @see Messages::DoIpMapSetReqsRequest
629
+ def do_ip_map_set_reqs: (?requests: ::Array[AttributeSets::IpMap | ::Hash[::Symbol, untyped]]) -> void
630
+
631
+ # Dump all pending unix_gid requests
632
+ #
633
+ # Requires CAP_NET_ADMIN in the initial user namespace.
634
+ # @rbs () -> Array[Messages::DumpUnixGidGetReqsReply]
635
+ # | () { (Messages::DumpUnixGidGetReqsReply) -> void } -> void
636
+ # @overload dump_unix_gid_get_reqs(**args)
637
+ # Returns an array when no block is given.
638
+ # @param [Hash] args
639
+ # @return [Array<Messages::DumpUnixGidGetReqsReply>]
640
+ # @overload dump_unix_gid_get_reqs(**args, &block)
641
+ # Yields each reply when a block is given.
642
+ # @param [Hash] args
643
+ # @yieldparam [Messages::DumpUnixGidGetReqsReply] reply
644
+ # @return [void]
645
+ # @see Messages::DumpUnixGidGetReqsRequest
646
+ def dump_unix_gid_get_reqs: () -> Array[Messages::DumpUnixGidGetReqsReply]
647
+ | () { (Messages::DumpUnixGidGetReqsReply) -> void } -> void
648
+
649
+ # Respond to one or more unix_gid requests
650
+ #
651
+ # Requires CAP_NET_ADMIN in the initial user namespace.
652
+ # @rbs (?requests: ::Array[(AttributeSets::UnixGid | ::Hash[::Symbol, untyped])]) -> void
653
+ # @param [Hash] args
654
+ # @option args [Array<AttributeSets::UnixGid, Hash<Symbol, Object>>] requests
655
+ # @return [void]
656
+ # @see Messages::DoUnixGidSetReqsRequest
657
+ def do_unix_gid_set_reqs: (?requests: ::Array[AttributeSets::UnixGid | ::Hash[::Symbol, untyped]]) -> void
658
+
659
+ # Flush sunrpc caches (ip_map and/or unix_gid)
660
+ #
661
+ # Requires CAP_NET_ADMIN in the initial user namespace.
662
+ # @rbs (?mask: ::Integer) -> void
663
+ # @param [Hash] args
664
+ # @option args [Integer] mask Known flags are defined in {Flags::CacheType}.
665
+ # @return [void]
666
+ # @see Messages::DoCacheFlushRequest
667
+ def do_cache_flush: (?mask: ::Integer) -> void
668
+
669
+ class AsyncOperations
670
+ # @private
671
+ def initialize: () ?{ (?) -> untyped } -> untyped
672
+
673
+ # Dump all pending ip_map requests
674
+ #
675
+ # Requires CAP_NET_ADMIN in the initial user namespace.
676
+ # @rbs () -> ::Nl::Async::Stream[Messages::DumpIpMapGetReqsReply]
677
+ # @param [Hash] args
678
+ # @return [Nl::Async::Stream<Messages::DumpIpMapGetReqsReply>]
679
+ # @see Messages::DumpIpMapGetReqsRequest
680
+ def dump_ip_map_get_reqs: () -> ::Nl::Async::Stream[Messages::DumpIpMapGetReqsReply]
681
+
682
+ # Respond to one or more ip_map requests
683
+ #
684
+ # Requires CAP_NET_ADMIN in the initial user namespace.
685
+ # @rbs (?requests: ::Array[(AttributeSets::IpMap | ::Hash[::Symbol, untyped])]) -> ::Nl::Async::Future[void]
686
+ # @param [Hash] args
687
+ # @option args [Array<AttributeSets::IpMap, Hash<Symbol, Object>>] requests
688
+ # @return [Nl::Async::Future<void>]
689
+ # @see Messages::DoIpMapSetReqsRequest
690
+ def do_ip_map_set_reqs: (?requests: ::Array[AttributeSets::IpMap | ::Hash[::Symbol, untyped]]) -> ::Nl::Async::Future[void]
691
+
692
+ # Dump all pending unix_gid requests
693
+ #
694
+ # Requires CAP_NET_ADMIN in the initial user namespace.
695
+ # @rbs () -> ::Nl::Async::Stream[Messages::DumpUnixGidGetReqsReply]
696
+ # @param [Hash] args
697
+ # @return [Nl::Async::Stream<Messages::DumpUnixGidGetReqsReply>]
698
+ # @see Messages::DumpUnixGidGetReqsRequest
699
+ def dump_unix_gid_get_reqs: () -> ::Nl::Async::Stream[Messages::DumpUnixGidGetReqsReply]
700
+
701
+ # Respond to one or more unix_gid requests
702
+ #
703
+ # Requires CAP_NET_ADMIN in the initial user namespace.
704
+ # @rbs (?requests: ::Array[(AttributeSets::UnixGid | ::Hash[::Symbol, untyped])]) -> ::Nl::Async::Future[void]
705
+ # @param [Hash] args
706
+ # @option args [Array<AttributeSets::UnixGid, Hash<Symbol, Object>>] requests
707
+ # @return [Nl::Async::Future<void>]
708
+ # @see Messages::DoUnixGidSetReqsRequest
709
+ def do_unix_gid_set_reqs: (?requests: ::Array[AttributeSets::UnixGid | ::Hash[::Symbol, untyped]]) -> ::Nl::Async::Future[void]
710
+
711
+ # Flush sunrpc caches (ip_map and/or unix_gid)
712
+ #
713
+ # Requires CAP_NET_ADMIN in the initial user namespace.
714
+ # @rbs (?mask: ::Integer) -> ::Nl::Async::Future[void]
715
+ # @param [Hash] args
716
+ # @option args [Integer] mask Known flags are defined in {Flags::CacheType}.
717
+ # @return [Nl::Async::Future<void>]
718
+ # @see Messages::DoCacheFlushRequest
719
+ def do_cache_flush: (?mask: ::Integer) -> ::Nl::Async::Future[void]
720
+ end
721
+
722
+ # Returns the asynchronous operation facade for this family.
723
+ # @rbs (?stream_capacity: ::Integer?) -> AsyncOperations
724
+ # @param [::Integer, nil] stream_capacity
725
+ # @return [AsyncOperations]
726
+ def async: (?stream_capacity: ::Integer?) -> AsyncOperations
727
+
728
+ # @rbs (*(:none | :exportd) groups) -> self
729
+ # @param [Array<:none, :exportd>] groups
730
+ # @return [self]
731
+ def subscribe: (*:none | :exportd groups) -> self
732
+
733
+ # @rbs (*(:none | :exportd) groups) -> self
734
+ # @param [Array<:none, :exportd>] groups
735
+ # @return [self]
736
+ def unsubscribe: (*:none | :exportd groups) -> self
737
+ end
738
+ end
739
+ end