Module: Temporalio::EnvConfig

Defined in:
lib/temporalio/env_config.rb

Overview

Environment and file-based configuration for Temporal clients

WARNING: Experimental API.

Defined Under Namespace

Classes: ClientConfig, ClientConfigProfile, ClientConfigTLS

Instance Attribute Summary collapse

Instance Attribute Details

#addressString? (readonly)

Returns Client address.

Returns:

  • (String, nil)

    Client address



141
# File 'lib/temporalio/env_config.rb', line 141

ClientConfigProfile = Data.define(:address, :namespace, :api_key, :tls, :grpc_meta)

#api_keyString? (readonly)

Returns Client API key.

Returns:

  • (String, nil)

    Client API key



141
# File 'lib/temporalio/env_config.rb', line 141

ClientConfigProfile = Data.define(:address, :namespace, :api_key, :tls, :grpc_meta)

#client_certPathname, ... (readonly)

Returns Client certificate source.

Returns:

  • (Pathname, String, nil)

    Client certificate source



26
# File 'lib/temporalio/env_config.rb', line 26

ClientConfigTLS = Data.define(:disabled, :server_name, :server_root_ca_cert, :client_cert, :client_private_key)

#client_private_keyPathname, ... (readonly)

Returns Client key source.

Returns:

  • (Pathname, String, nil)

    Client key source



26
# File 'lib/temporalio/env_config.rb', line 26

ClientConfigTLS = Data.define(:disabled, :server_name, :server_root_ca_cert, :client_cert, :client_private_key)

#disabledBoolean? (readonly)

Returns If true, TLS is explicitly disabled; if nil, not specified.

Returns:

  • (Boolean, nil)

    If true, TLS is explicitly disabled; if nil, not specified



26
# File 'lib/temporalio/env_config.rb', line 26

ClientConfigTLS = Data.define(:disabled, :server_name, :server_root_ca_cert, :client_cert, :client_private_key)

#grpc_metaHash (readonly)

Returns gRPC metadata.

Returns:

  • (Hash)

    gRPC metadata



141
# File 'lib/temporalio/env_config.rb', line 141

ClientConfigProfile = Data.define(:address, :namespace, :api_key, :tls, :grpc_meta)

#namespaceString? (readonly)

Returns Client namespace.

Returns:

  • (String, nil)

    Client namespace



141
# File 'lib/temporalio/env_config.rb', line 141

ClientConfigProfile = Data.define(:address, :namespace, :api_key, :tls, :grpc_meta)

#profilesHash<String, ClientConfigProfile> (readonly)

Returns Map of profile name to its corresponding ClientConfigProfile.

Returns:

  • (Hash<String, ClientConfigProfile>)

    Map of profile name to its corresponding ClientConfigProfile



232
# File 'lib/temporalio/env_config.rb', line 232

ClientConfig = Data.define(:profiles)

#server_nameString? (readonly)

Returns SNI override.

Returns:

  • (String, nil)

    SNI override



26
# File 'lib/temporalio/env_config.rb', line 26

ClientConfigTLS = Data.define(:disabled, :server_name, :server_root_ca_cert, :client_cert, :client_private_key)

#server_root_ca_certPathname, ... (readonly)

Returns Server CA certificate source.

Returns:

  • (Pathname, String, nil)

    Server CA certificate source



26
# File 'lib/temporalio/env_config.rb', line 26

ClientConfigTLS = Data.define(:disabled, :server_name, :server_root_ca_cert, :client_cert, :client_private_key)

#tlsClientConfigTLS? (readonly)

Returns TLS configuration.

Returns:



141
# File 'lib/temporalio/env_config.rb', line 141

ClientConfigProfile = Data.define(:address, :namespace, :api_key, :tls, :grpc_meta)