Class: K8y::REST::Auth::Providers::GCP::CommandProvider

Inherits:
ProviderBase show all
Defined in:
lib/k8y/rest/auth/providers/gcp/command_provider.rb

Instance Method Summary collapse

Methods inherited from ProviderBase

#configure_connection, #generate_token!

Methods inherited from AuthBase

#configure_connection

Constructor Details

#initialize(cmd_path:, access_token: nil, cmd_args: nil, expiry: nil, expiry_key: nil, token_key: nil) ⇒ CommandProvider

TODO: this is a shameless copy of abonas/kubeclient. It’s worth it to build this from scratch, if only for the better understanding that comes along with it



18
19
20
21
22
23
24
25
26
# File 'lib/k8y/rest/auth/providers/gcp/command_provider.rb', line 18

def initialize(cmd_path:, access_token: nil, cmd_args: nil, expiry: nil, expiry_key: nil, token_key: nil)
  super
  @access_token = access_token
  @cmd_args = cmd_args
  @cmd_path = cmd_path
  @expiry = expiry
  @expiry_key = expiry_key
  @token_key = token_key
end