- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EncodeIngressRuleName (0.17 sec)
-
pilot/pkg/config/kube/ingress/conversion.go
) var errNotFound = errors.New("item not found") // EncodeIngressRuleName encodes an ingress rule name for a given ingress resource name, // as well as the position of the rule and path specified within it, counting from 1. // ruleNum == pathNum == 0 indicates the default backend specified for an ingress. func EncodeIngressRuleName(ingressName string, ruleNum, pathNum int) string {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Oct 25 07:19:43 UTC 2023 - 12.5K bytes - Viewed (0) -
pilot/pkg/config/kube/ingress/conversion_test.go
ruleNum int pathNum int }{ {"myingress", 0, 0}, {"myingress", 1, 2}, {"my-ingress", 1, 2}, {"my-cool-ingress", 1, 2}, } for _, c := range cases { encoded := EncodeIngressRuleName(c.ingressName, c.ruleNum, c.pathNum) ingressName, ruleNum, pathNum, err := decodeIngressRuleName(encoded) if err != nil { t.Errorf("decodeIngressRuleName(%q) => error %v", encoded, err) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 19 18:20:34 UTC 2023 - 14.9K bytes - Viewed (0)