Class: Vault::LeaderStatus
- Defined in:
- lib/vault/api/sys/leader.rb
Instance Attribute Summary collapse
-
#address ⇒ String
readonly
URL where the server is running.
Instance Method Summary collapse
-
#ha? ⇒ Boolean
deprecated
Deprecated.
Use #ha_enabled? instead
-
#ha_enabled? ⇒ Boolean
Returns whether the high-availability mode is enabled.
-
#is_leader? ⇒ Boolean
deprecated
Deprecated.
Use #leader? instead
-
#is_self? ⇒ Boolean
deprecated
Deprecated.
Use #leader? instead
-
#leader? ⇒ Boolean
Returns whether the Vault server queried is the leader.
-
#self? ⇒ Boolean
deprecated
Deprecated.
Use #leader? instead
Methods inherited from Response
#==, decode, #initialize, #to_h
Constructor Details
This class inherits a constructor from Vault::Response
Instance Attribute Details
#address ⇒ String (readonly)
URL where the server is running.
19 |
# File 'lib/vault/api/sys/leader.rb', line 19 field :leader_address, as: :address |
Instance Method Details
#ha? ⇒ Boolean
Deprecated.
Use #ha_enabled? instead
22 |
# File 'lib/vault/api/sys/leader.rb', line 22 def ha?; ha_enabled?; end |
#ha_enabled? ⇒ Boolean
Returns whether the high-availability mode is enabled.
9 |
# File 'lib/vault/api/sys/leader.rb', line 9 field :ha_enabled, as: :ha_enabled? |
#is_leader? ⇒ Boolean
Deprecated.
Use #leader? instead
25 |
# File 'lib/vault/api/sys/leader.rb', line 25 def is_leader?; leader?; end |
#is_self? ⇒ Boolean
Deprecated.
Use #leader? instead
28 |
# File 'lib/vault/api/sys/leader.rb', line 28 def is_self?; leader?; end |
#leader? ⇒ Boolean
Returns whether the Vault server queried is the leader.
14 |
# File 'lib/vault/api/sys/leader.rb', line 14 field :is_self, as: :leader? |
#self? ⇒ Boolean
Deprecated.
Use #leader? instead
31 |
# File 'lib/vault/api/sys/leader.rb', line 31 def self?; leader?; end |