Class: Kubeclient::Config::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/kubeclient/config.rb

Overview

Kubernetes client configuration context class

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_endpoint, api_version, ssl_options, auth_options, namespace) ⇒ Context

Returns a new instance of Context.



12
13
14
15
16
17
18
# File 'lib/kubeclient/config.rb', line 12

def initialize(api_endpoint, api_version, ssl_options, auth_options, namespace)
  @api_endpoint = api_endpoint
  @api_version = api_version
  @ssl_options = ssl_options
  @auth_options = auth_options
  @namespace = namespace
end

Instance Attribute Details

#api_endpointObject (readonly)

Returns the value of attribute api_endpoint.



10
11
12
# File 'lib/kubeclient/config.rb', line 10

def api_endpoint
  @api_endpoint
end

#api_versionObject (readonly)

Returns the value of attribute api_version.



10
11
12
# File 'lib/kubeclient/config.rb', line 10

def api_version
  @api_version
end

#auth_optionsObject (readonly)

Returns the value of attribute auth_options.



10
11
12
# File 'lib/kubeclient/config.rb', line 10

def auth_options
  @auth_options
end

#namespaceObject (readonly)

Returns the value of attribute namespace.



10
11
12
# File 'lib/kubeclient/config.rb', line 10

def namespace
  @namespace
end

#ssl_optionsObject (readonly)

Returns the value of attribute ssl_options.



10
11
12
# File 'lib/kubeclient/config.rb', line 10

def ssl_options
  @ssl_options
end