Class: Conjur::API
- Inherits:
-
Object
- Object
- Conjur::API
- Defined in:
- lib/conjur/layer-api.rb,
lib/conjur/api/layers.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.layer_asset_host ⇒ Object
3 4 5 |
# File 'lib/conjur/layer-api.rb', line 3 def layer_asset_host ENV["CONJUR_LAYER_ASSET_URL"] || Conjur::Core::API.host end |
Instance Method Details
#create_layer(id, options = {}) ⇒ Object
5 6 7 |
# File 'lib/conjur/api/layers.rb', line 5 def create_layer(id, = {}) standard_create Conjur::API.layer_asset_host, :layer, id, end |
#layer(id) ⇒ Object
13 14 15 |
# File 'lib/conjur/api/layers.rb', line 13 def layer id standard_show Conjur::API.layer_asset_host, :layer, id end |
#layers(options = {}) ⇒ Object
9 10 11 |
# File 'lib/conjur/api/layers.rb', line 9 def layers( = {}) standard_list Conjur::API.layer_asset_host, :layer, end |