cloud

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package cloud holds the rules that are specific to Temporal Cloud rather than to any Temporal Service.

Today that means namespace validation. Cloud identifies a namespace as "<name>.<account-id>", a shape self-hosted deployments do not impose, so ValidateNamespace checks a string against it before the proxy uses that string to address a Cloud upstream.

Index

Constants

View Source
const APIHostPort = "saas-api" + endpointSuffix + ":443"

APIHostPort is Temporal Cloud's control plane, which serves CloudService. It answers the methods Cloud does not serve on a namespace frontend, and is the same address the Cloud SDK dials by default.

Variables

This section is empty.

Functions

func IsEndpoint

func IsEndpoint(hostPort string) bool

IsEndpoint reports whether hostPort addresses Temporal Cloud. The port is optional, and a template action in place of the host is tolerated, since a templated address is rendered per request but keeps its domain.

This recognizes per-namespace and regional endpoints. Private-link endpoints use per-VPC hostnames that carry no Cloud domain, so those have to be declared rather than detected.

func ValidateAccountID

func ValidateAccountID(id string) error

ValidateAccountID checks that id is shaped like the account-id label of a Temporal Cloud namespace.

See: https://docs.temporal.io/cloud/namespaces for details

func ValidateNamespace

func ValidateNamespace(ns string) error

ValidateNamespace checks that ns is a well-formed Temporal Cloud namespace identifier, meaning "<name>.<account-id>". Every broken rule is reported, not just the first, so a caller can show the whole story at once.

See: https://docs.temporal.io/cloud/namespaces for details

Types

This section is empty.

Directories

Path Synopsis
Package translation rewrites one gRPC method call into another on the hop to the upstream.
Package translation rewrites one gRPC method call into another on the hop to the upstream.

Jump to

Keyboard shortcuts

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