Class: SDM::Gateway
- Inherits:
-
Object
- Object
- SDM::Gateway
- Defined in:
- lib/models/porcelain.rb
Overview
Gateway represents a StrongDM CLI installation running in gateway mode.
Instance Attribute Summary collapse
-
#bind_address ⇒ Object
The hostname/port tuple which the gateway daemon will bind to.
-
#id ⇒ Object
Unique identifier of the Gateway.
-
#listen_address ⇒ Object
The public hostname/port tuple at which the gateway will be accessible to clients.
-
#name ⇒ Object
Unique human-readable name of the Gateway.
-
#state ⇒ Object
The current state of the gateway.
Instance Method Summary collapse
-
#initialize(id: nil, name: nil, state: nil, listen_address: nil, bind_address: nil) ⇒ Gateway
constructor
A new instance of Gateway.
Constructor Details
#initialize(id: nil, name: nil, state: nil, listen_address: nil, bind_address: nil) ⇒ Gateway
Returns a new instance of Gateway.
3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 |
# File 'lib/models/porcelain.rb', line 3587 def initialize( id:nil \ , name:nil \ , state:nil \ , listen_address:nil \ , bind_address:nil \ ) if id != nil @id = id end if name != nil @name = name end if state != nil @state = state end if listen_address != nil @listen_address = listen_address end if bind_address != nil @bind_address = bind_address end end |
Instance Attribute Details
#bind_address ⇒ Object
The hostname/port tuple which the gateway daemon will bind to. If not provided on create, set to “0.0.0.0:<listen_address_port>”.
3586 3587 3588 |
# File 'lib/models/porcelain.rb', line 3586 def bind_address @bind_address end |
#id ⇒ Object
Unique identifier of the Gateway.
3576 3577 3578 |
# File 'lib/models/porcelain.rb', line 3576 def id @id end |
#listen_address ⇒ Object
The public hostname/port tuple at which the gateway will be accessible to clients.
3583 3584 3585 |
# File 'lib/models/porcelain.rb', line 3583 def listen_address @listen_address end |
#name ⇒ Object
Unique human-readable name of the Gateway. Generated if not provided on create.
3578 3579 3580 |
# File 'lib/models/porcelain.rb', line 3578 def name @name end |
#state ⇒ Object
The current state of the gateway. One of: “new”, “verifying_restart”, “restarting”, “started”, “stopped”, “dead”, “unknown”
3581 3582 3583 |
# File 'lib/models/porcelain.rb', line 3581 def state @state end |