temporal

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2024 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ScheduleClientIdentity = "temporal-operator.temporal.io"
)

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

func ScheduleToCreateScheduleRequest added in v0.19.0

func ScheduleToCreateScheduleRequest(schedule *v1beta1.TemporalSchedule) (*workflowservice.CreateScheduleRequest, error)

func ScheduleToDeleteScheduleRequest added in v0.19.0

func ScheduleToDeleteScheduleRequest(schedule *v1beta1.TemporalSchedule) *workflowservice.DeleteScheduleRequest

func ScheduleToUpdateScheduleRequest added in v0.19.0

func ScheduleToUpdateScheduleRequest(schedule *v1beta1.TemporalSchedule) (*workflowservice.UpdateScheduleRequest, error)

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.

type ScheduleRange added in v0.19.0

type ScheduleRange interface {
	GetStart() int32
	GetEnd() int32
	GetStep() int32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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