Class: Conductor::Client::SecretClient

Inherits:
Object
  • Object
show all
Defined in:
lib/conductor/client/secret_client.rb

Overview

SecretClient - High-level client for secret management operations (Orkes)

Instance Method Summary collapse

Constructor Details

#initialize(api_client) ⇒ SecretClient

Returns a new instance of SecretClient.



7
8
9
# File 'lib/conductor/client/secret_client.rb', line 7

def initialize(api_client)
  @secret_api = Http::Api::SecretResourceApi.new(api_client)
end

Instance Method Details

#delete_secret(key) ⇒ Object



27
28
29
# File 'lib/conductor/client/secret_client.rb', line 27

def delete_secret(key)
  @secret_api.delete_secret(key)
end

#delete_secret_tags(tags, key) ⇒ Object



43
44
45
# File 'lib/conductor/client/secret_client.rb', line 43

def delete_secret_tags(tags, key)
  @secret_api.delete_tag_for_secret(tags, key)
end

#get_secret(key) ⇒ Object



15
16
17
# File 'lib/conductor/client/secret_client.rb', line 15

def get_secret(key)
  @secret_api.get_secret(key)
end

#get_secret_tags(key) ⇒ Object



39
40
41
# File 'lib/conductor/client/secret_client.rb', line 39

def get_secret_tags(key)
  @secret_api.get_tags(key)
end

#list_all_secret_namesObject



19
20
21
# File 'lib/conductor/client/secret_client.rb', line 19

def list_all_secret_names
  @secret_api.list_all_secret_names
end

#list_secrets_that_user_can_grant_access_toObject



23
24
25
# File 'lib/conductor/client/secret_client.rb', line 23

def list_secrets_that_user_can_grant_access_to
  @secret_api.list_secrets_that_user_can_grant_access_to
end

#put_secret(key, value) ⇒ Object



11
12
13
# File 'lib/conductor/client/secret_client.rb', line 11

def put_secret(key, value)
  @secret_api.put_secret(value, key)
end

#secret_exists(key) ⇒ Object



31
32
33
# File 'lib/conductor/client/secret_client.rb', line 31

def secret_exists(key)
  @secret_api.secret_exists(key)
end

#set_secret_tags(tags, key) ⇒ Object



35
36
37
# File 'lib/conductor/client/secret_client.rb', line 35

def set_secret_tags(tags, key)
  @secret_api.put_tag_for_secret(tags, key)
end