Class: Nl::Linux::Nftables::AttributeSets::SetAttrs
- Inherits:
-
AttributeSet
- Object
- AttributeSet
- Nl::Linux::Nftables::AttributeSets::SetAttrs
- Defined in:
- nl-linux/generated/nl/linux/nftables.rb
Defined Under Namespace
Classes: Attribute, Count, DataLen, DataType, Desc, Expr, Expressions, Flags, GcInterval, Handle, Id, KeyLen, KeyType, Name, ObjType, Pad, Policy, Table, Timeout, Type, Userdata
Constant Summary
Constants inherited from AttributeSet
Class Method Summary collapse
-
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
-
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
Instance Method Summary collapse
-
#count ⇒ Integer
number of set elements.
-
#data_len ⇒ Integer
mapping data length.
-
#data_type ⇒ Integer
mapping data type.
-
#desc ⇒ AttributeSets::SetDescAttrs
set description.
-
#expr ⇒ Array<AttributeSets::ExprAttrs>
set expression.
-
#expressions ⇒ AttributeSets::SetListAttrs
list of expressions.
-
#flags ⇒ Integer
bitmask of enum nft_set_flags.
-
#gc_interval ⇒ Integer
garbage collection interval.
-
#handle ⇒ Integer
set handle.
-
#id ⇒ Integer
uniquely identifies a set in a transaction.
-
#key_len ⇒ Integer
key data length.
-
#key_type ⇒ Integer
key data type, informational purpose only.
-
#name ⇒ String
set name.
-
#obj_type ⇒ Integer
stateful object type.
-
#policy ⇒ Integer
selection policy.
-
#table ⇒ String
table name.
-
#timeout ⇒ Integer
default timeout value.
-
#type ⇒ String
set backend type.
-
#userdata ⇒ String
user data.
Methods inherited from AttributeSet
#<<, #[], build_attributes, decode, #encode, #initialize
Constructor Details
This class inherits a constructor from Nl::AttributeSet
Class Method Details
.by_name(name) ⇒ Attribute
Looks up Attribute class by name.
1742 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1742 def by_name(name); BY_NAME.fetch(name); end |
.by_type(type) ⇒ Attribute
Looks up Attribute class by type value.
1748 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1748 def by_type(type); BY_TYPE.fetch(type); end |
Instance Method Details
#count ⇒ Integer
number of set elements
1735 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1735 def count; self[:"count"]&.value; end |
#data_len ⇒ Integer
mapping data length
1675 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1675 def data_len; self[:"data_len"]&.value; end |
#data_type ⇒ Integer
mapping data type
1670 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1670 def data_type; self[:"data_type"]&.value; end |
#desc ⇒ AttributeSets::SetDescAttrs
set description
1685 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1685 def desc; self[:"desc"]&.value; end |
#expr ⇒ Array<AttributeSets::ExprAttrs>
set expression
1720 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1720 def expr; self[:"expr"].map(&:value); end |
#expressions ⇒ AttributeSets::SetListAttrs
list of expressions
1725 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1725 def expressions; self[:"expressions"]&.value; end |
#flags ⇒ Integer
bitmask of enum nft_set_flags
Known flags are defined in Flags::SetFlags.
1655 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1655 def flags; self[:"flags"]&.value; end |
#gc_interval ⇒ Integer
garbage collection interval
1700 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1700 def gc_interval; self[:"gc_interval"]&.value; end |
#handle ⇒ Integer
set handle
1715 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1715 def handle; self[:"handle"]&.value; end |
#id ⇒ Integer
uniquely identifies a set in a transaction
1690 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1690 def id; self[:"id"]&.value; end |
#key_len ⇒ Integer
key data length
1665 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1665 def key_len; self[:"key_len"]&.value; end |
#key_type ⇒ Integer
key data type, informational purpose only
1660 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1660 def key_type; self[:"key_type"]&.value; end |
#name ⇒ String
set name
1648 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1648 def name; self[:"name"]&.value; end |
#obj_type ⇒ Integer
stateful object type
1710 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1710 def obj_type; self[:"obj_type"]&.value; end |
#policy ⇒ Integer
selection policy
1680 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1680 def policy; self[:"policy"]&.value; end |
#table ⇒ String
table name
1643 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1643 def table; self[:"table"]&.value; end |
#timeout ⇒ Integer
default timeout value
1695 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1695 def timeout; self[:"timeout"]&.value; end |
#type ⇒ String
set backend type
1730 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1730 def type; self[:"type"]&.value; end |
#userdata ⇒ String
user data
1705 |
# File 'nl-linux/generated/nl/linux/nftables.rb', line 1705 def userdata; self[:"userdata"]&.value; end |