Class: InfisicalSDK::InfisicalClient
- Inherits:
-
Object
- Object
- InfisicalSDK::InfisicalClient
- Defined in:
- lib/infisical-sdk.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#command_runner ⇒ Object
readonly
Returns the value of attribute command_runner.
-
#cryptography ⇒ Object
readonly
Returns the value of attribute cryptography.
-
#infisical ⇒ Object
readonly
Returns the value of attribute infisical.
-
#secrets ⇒ Object
readonly
Returns the value of attribute secrets.
Instance Method Summary collapse
- #free_mem ⇒ Object
-
#initialize(site_url = nil, cache_ttl = 300) ⇒ InfisicalClient
constructor
A new instance of InfisicalClient.
Constructor Details
#initialize(site_url = nil, cache_ttl = 300) ⇒ InfisicalClient
Returns a new instance of InfisicalClient.
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/infisical-sdk.rb', line 19 def initialize(site_url = nil, cache_ttl = 300) settings = ClientSettings.new( # We preset these values or we'll get type validation errors (thanks Quicktype!) access_token: nil, client_secret: nil, client_id: nil, auth: nil, ssl_certificate_path: nil, user_agent: 'infisical-ruby-sdk', cache_ttl: cache_ttl, site_url: site_url ) @infisical = InfisicalLib @handle = @infisical.init(settings.to_dynamic.compact.to_json) @command_runner = CommandRunner.new(@infisical, @handle) @secrets = SecretsClient.new(@command_runner) @auth = AuthClient.new(@command_runner) @cryptography = CryptographyClient.new(@command_runner) end |
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
17 18 19 |
# File 'lib/infisical-sdk.rb', line 17 def auth @auth end |
#command_runner ⇒ Object (readonly)
Returns the value of attribute command_runner.
17 18 19 |
# File 'lib/infisical-sdk.rb', line 17 def command_runner @command_runner end |
#cryptography ⇒ Object (readonly)
Returns the value of attribute cryptography.
17 18 19 |
# File 'lib/infisical-sdk.rb', line 17 def cryptography @cryptography end |
#infisical ⇒ Object (readonly)
Returns the value of attribute infisical.
17 18 19 |
# File 'lib/infisical-sdk.rb', line 17 def infisical @infisical end |
#secrets ⇒ Object (readonly)
Returns the value of attribute secrets.
17 18 19 |
# File 'lib/infisical-sdk.rb', line 17 def secrets @secrets end |
Instance Method Details
#free_mem ⇒ Object
41 42 43 |
# File 'lib/infisical-sdk.rb', line 41 def free_mem @infisical.free_mem(@handle) end |