- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for nameMatches (0.24 sec)
-
operator/cmd/mesh/test-util_test.go
o.objMap[h] = obj o.keySlice = append(o.keySlice, h) } // size reports the length of o. func (o *ObjectSet) size() int { return len(o.keySlice) } // nameMatches returns a subset of o where objects names match the given regex. func (o *ObjectSet) nameMatches(nameRegex string) *ObjectSet { ret := &ObjectSet{} for k, v := range o.objMap { _, _, objName := object.FromHash(k) m, err := regexp.MatchString(nameRegex, objName)
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Tue Oct 31 14:48:28 GMT 2023 - 15.3K bytes - Viewed (0) -
operator/cmd/mesh/manifest-generate_test.go
g.Expect(objs.kind(name.ServiceStr).labels("istio=ingressgateway").size()).Should(Equal(3)) g.Expect(objs.kind(name.RoleStr).nameMatches(".*gateway.*").size()).Should(Equal(3)) g.Expect(objs.kind(name.RoleBindingStr).nameMatches(".*gateway.*").size()).Should(Equal(3)) g.Expect(objs.kind(name.SAStr).nameMatches(".*gateway.*").size()).Should(Equal(3)) dobj := mustGetDeployment(g, objs, "istio-ingressgateway") d := dobj.Unstructured()
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Thu Apr 18 18:16:49 GMT 2024 - 43.5K bytes - Viewed (0) -
statement.go
} } } } return false } var matchName = func() func(tableColumn string) (table, column string) { nameMatcher := regexp.MustCompile(`^(?:\W?(\w+?)\W?\.)?(?:(\*)|\W?(\w+?)\W?)$`) return func(tableColumn string) (table, column string) { if matches := nameMatcher.FindStringSubmatch(tableColumn); len(matches) == 4 { table = matches[1] star := matches[2] columnName := matches[3]
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Fri Jan 12 08:42:21 GMT 2024 - 19.8K bytes - Viewed (0)