Documentation
¶
Overview ¶
Package lbenv derives the `gcpemu env` variables of load balancing endpoints (ADR 0013): forwarding rules' GCPEMU_LB_* and GKE LoadBalancer Service ports' GCPEMU_GKE_*, from their Service endpoint names. A front Instance derives them over its own endpoints and its Linked Instances' together (ADR 0027, #715), so that uniqueness and withholding span Instances.
A forwarding rule's endpoint is "lb:<project>/<region|global>/<name>", printed as GCPEMU_LB_<PROJECT>_<REGION|GLOBAL>_<NAME>, and as GCPEMU_LB_<NAME> while the name is unique. A Service port's is "gke:<cluster>/<namespace>/<service>/<port>", printed as GCPEMU_GKE_<CLUSTER>_<NAMESPACE>_<SERVICE>_<PORT>. A variable more than one endpoint would print (a shared name, a cluster name used on two Instances, or two names that flatten alike) is withheld, never pointed at either.
Index ¶
Constants ¶
const ( RulePrefix = "lb:" ServicePrefix = "gke:" )
Prefixes of the endpoint names that print variables.
Variables ¶
This section is empty.
Functions ¶
func Linked ¶
Linked is the name under which a front Instance lists the endpoint name of the Linked Instance link, beside its own.
func Qualified ¶
Qualified is GCPEMU_LB_<PROJECT>_<REGION|GLOBAL>_<NAME> for a forwarding rule's endpoint name.