temporal

package
v0.6.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2022 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

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

func GetTlSConfigFromSecret(secret *corev1.Secret) (*tls.Config, error)

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL