Class: Porkadot::Assets::Certs::Etcd
- Inherits:
-
Object
- Object
- Porkadot::Assets::Certs::Etcd
- Includes:
- Porkadot::Assets::CertsUtils
- Defined in:
- lib/porkadot/assets/certs/etcd.rb
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#global_config ⇒ Object
readonly
Returns the value of attribute global_config.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
- #ca_name ⇒ Object
- #client_name ⇒ Object
-
#initialize(global_config) ⇒ Etcd
constructor
A new instance of Etcd.
Methods included from Porkadot::Assets::CertsUtils
#_ca_cert, #_client_cert, #ca_cert, #ca_key, #client_cert, #client_key, #private_key, #public_key, #random_number, #to_base64, #to_pem, #unsigned_cert
Constructor Details
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
5 6 7 |
# File 'lib/porkadot/assets/certs/etcd.rb', line 5 def config @config end |
#global_config ⇒ Object (readonly)
Returns the value of attribute global_config.
4 5 6 |
# File 'lib/porkadot/assets/certs/etcd.rb', line 4 def global_config @global_config end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
6 7 8 |
# File 'lib/porkadot/assets/certs/etcd.rb', line 6 def logger @logger end |
Instance Method Details
#ca_name ⇒ Object
14 15 16 |
# File 'lib/porkadot/assets/certs/etcd.rb', line 14 def ca_name '/CN=kube-ca' end |
#client_name ⇒ Object
18 19 20 |
# File 'lib/porkadot/assets/certs/etcd.rb', line 18 def client_name '/CN=etcd-client' end |