Documentation ¶
Index ¶
- func GetClusterClient(ctx context.Context, client client.Client, cluster *v1alpha1.TemporalCluster, ...) (temporalclient.Client, error)
- func GetClusterClientTLSConfig(ctx context.Context, client client.Client, cluster *v1alpha1.TemporalCluster) (*tls.Config, error)
- func GetClusterNamespaceClient(ctx context.Context, client client.Client, cluster *v1alpha1.TemporalCluster, ...) (temporalclient.NamespaceClient, error)
- func GetTlSConfigFromSecret(secret *corev1.Secret) (*tls.Config, error)
- func NamespaceToRegisterNamespaceRequest(namespace *v1alpha1.TemporalNamespace) *workflowservice.RegisterNamespaceRequest
- type ClientOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClusterClient ¶
func GetClusterClient(ctx context.Context, client client.Client, cluster *v1alpha1.TemporalCluster, overrides ...ClientOption) (temporalclient.Client, error)
GetClusterClient returns a temporal sdk client for the provider temporal cluster.
func GetClusterClientTLSConfig ¶
func GetClusterClientTLSConfig(ctx context.Context, client client.Client, cluster *v1alpha1.TemporalCluster) (*tls.Config, error)
GetClusterClientTLSConfig returns the tls configuration for the provided temporal cluster.
func GetClusterNamespaceClient ¶
func GetClusterNamespaceClient(ctx context.Context, client client.Client, cluster *v1alpha1.TemporalCluster, overrides ...ClientOption) (temporalclient.NamespaceClient, error)
GetClusterNamespaceClient returns a temporal sdk namespace client for the provider temporal cluster.
func GetTlSConfigFromSecret ¶
GetTlSConfigFromSecret returns a tls.Config from the provided secret. The secret should contain 3 keys: ca.crt, tls.crt and tls.key.
func NamespaceToRegisterNamespaceRequest ¶
func NamespaceToRegisterNamespaceRequest(namespace *v1alpha1.TemporalNamespace) *workflowservice.RegisterNamespaceRequest
Types ¶
type ClientOption ¶
type ClientOption func(opts *temporalclient.Options)
ClientOption is an override option for temporal sdk client.
func WithHostPort ¶
func WithHostPort(hostPort string) ClientOption
WithHostPort is overriding the client host port.
func WithTLSConfig ¶
func WithTLSConfig(cfg *tls.Config) ClientOption
WithTLSConfig is overriding the client tls config.
Click to show internal directories.
Click to hide internal directories.