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.
16 |
# File 'lib/vault/api/sys/leader.rb', line 16 field :leader_address, as: :address |
Instance Method Details
#ha? ⇒ Boolean
Deprecated.
Use #ha_enabled? instead
19 |
# File 'lib/vault/api/sys/leader.rb', line 19 def ha?; ha_enabled?; end |
#ha_enabled? ⇒ Boolean
Returns whether the high-availability mode is enabled.
6 |
# File 'lib/vault/api/sys/leader.rb', line 6 field :ha_enabled, as: :ha_enabled? |
#is_leader? ⇒ Boolean
Deprecated.
Use #leader? instead
22 |
# File 'lib/vault/api/sys/leader.rb', line 22 def is_leader?; leader?; end |
#is_self? ⇒ Boolean
Deprecated.
Use #leader? instead
25 |
# File 'lib/vault/api/sys/leader.rb', line 25 def is_self?; leader?; end |
#leader? ⇒ Boolean
Returns whether the Vault server queried is the leader.
11 |
# File 'lib/vault/api/sys/leader.rb', line 11 field :is_self, as: :leader? |
#self? ⇒ Boolean
Deprecated.
Use #leader? instead
28 |
# File 'lib/vault/api/sys/leader.rb', line 28 def self?; leader?; end |