Class: Conjur::API

Inherits:
Object
  • Object
show all
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_hostObject



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, options = {})
  standard_create Conjur::API.layer_asset_host, :layer, id, options
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(options = {})
  standard_list Conjur::API.layer_asset_host, :layer, options
end