temporal

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: Apache-2.0 Imports: 19 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 *v1beta1.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 *v1beta1.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 *v1beta1.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 NamespaceToDeleteNamespaceRequest added in v0.11.0

func NamespaceToDeleteNamespaceRequest(namespace *v1beta1.TemporalNamespace) *operatorservice.DeleteNamespaceRequest

func NamespaceToRegisterNamespaceRequest

func NamespaceToRegisterNamespaceRequest(cluster *v1beta1.TemporalCluster, namespace *v1beta1.TemporalNamespace) *workflowservice.RegisterNamespaceRequest

func NamespaceToUpdateNamespaceRequest added in v0.15.2

func NamespaceToUpdateNamespaceRequest(cluster *v1beta1.TemporalCluster, namespace *v1beta1.TemporalNamespace) *workflowservice.UpdateNamespaceRequest

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