- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for MustForName (0.68 sec)
-
pkg/test/framework/components/echo/port.go
func (ps Ports) ForName(name string) (Port, bool) { for _, port := range ps { if name == port.Name { return port, true } } return Port{}, false } // MustForName calls ForName and panics if not found. func (ps Ports) MustForName(name string) Port { p, found := ps.ForName(name) if !found { panic("port does not exist for name " + name) } return p }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 13 18:10:05 UTC 2022 - 4.4K bytes - Viewed (0) -
pkg/test/framework/components/echo/match/matchers_test.go
} func (f fakeInstance) NamespacedName() echo.NamespacedName { return f.Config().NamespacedName() } func (f fakeInstance) PortForName(name string) echo.Port { return f.Config().Ports.MustForName(name) } func (f fakeInstance) Config() echo.Config { cfg := echo.Config(f) _ = cfg.FillDefaults(nil) return cfg } func (f fakeInstance) ServiceName() string { return f.Config().Service
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 06 22:12:34 UTC 2024 - 5.2K bytes - Viewed (0) -
pkg/test/framework/components/echo/instances.go
return i.Config().ClusterSetLocalFQDN() } func (i Instances) NamespacedName() NamespacedName { return i.Config().NamespacedName() } func (i Instances) PortForName(name string) Port { return i.Config().Ports.MustForName(name) } func (i Instances) Config() Config { return i.mustGetFirst().Config() } func (i Instances) Instances() Instances { return i } func (i Instances) mustGetFirst() Instance {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Mon Mar 25 18:26:17 UTC 2024 - 4.7K bytes - Viewed (0) -
pkg/test/framework/components/echo/kube/instance.go
return c.workloadMgr.Close() } func (c *instance) NamespacedName() echo.NamespacedName { return c.cfg.NamespacedName() } func (c *instance) PortForName(name string) echo.Port { return c.cfg.Ports.MustForName(name) } func (c *instance) ServiceName() string { return c.cfg.Service } func (c *instance) NamespaceName() string { return c.cfg.NamespaceName() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 16 18:55:23 UTC 2023 - 9K bytes - Viewed (0)