Skip to main content

Module predefined

Module predefined 

Source
Expand description

Port of internal/variables/predefined_variable.go.

Structs§

Options
Carries the parsed config inputs that predefined variables are computed from, so resolving a variable never triggers a config load.

Enums§

PredefinedError

Constants§

CAPRONI_CLUSTER_DOMAIN
CAPRONI_CLUSTER_NAME
Pre-rename names for the same three variables above, kept fully functional in config ${...} expansion so existing Go-caproni projects don’t need to update their config to use the new names.
CAPRONI_PRIMARY_HOSTNAME
XIANYUN_CLUSTER_DOMAIN
XIANYUN_CLUSTER_NAME
XIANYUN_PRIMARY_HOSTNAME

Functions§

cluster_domain
cluster.network.cluster_domain; undefined when the key is not set.
is_predefined
Reports whether name is a built-in predefined variable: either the primary XIANYUN_* name or the CAPRONI_* compatibility alias (see new_resolver, which resolves both names to the same values).
primary_hostname
The cluster’s primary hostname, or “” when no network configuration is present.