Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for MustForName (0.12 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. pkg/test/framework/components/echo/echotest/filters_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
    - 13.1K bytes
    - Viewed (0)
  6. pkg/test/framework/components/echo/config.go

    	// ClusterSetLocalFQDN returns the fully qualified domain name for the Kubernetes
    	// Multi-Cluster Services (MCS) Cluster Set host.
    	ClusterSetLocalFQDN() string
    
    	// PortForName is a short form for Config().Ports.MustForName().
    	PortForName(name string) Port
    }
    
    type VMDistro = string
    
    const (
    	UbuntuBionic VMDistro = "UbuntuBionic"
    	UbuntuNoble  VMDistro = "UbuntuNoble"
    	Debian12     VMDistro = "Debian12"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 09 12:26:52 UTC 2024
    - 18.2K bytes
    - Viewed (0)
  7. tests/integration/ambient/baseline_test.go

    									}
    
    									opt.Address = dstWl.Address()
    									opt.Check = check.And(opt.Check, check.Hostname(dstWl.PodName()))
    
    									opt.Port = echo.Port{ServicePort: ports.All().MustForName(opt.Port.Name).WorkloadPort}
    									opt.ToWorkload = dst.WithWorkloads(dstWl)
    
    									// Uncaptured means we won't traverse the waypoint
    									// We cannot bypass the waypoint, so this fails.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
Back to top