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 ¶
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 ¶
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 ¶
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 ¶
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. |