Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for netnsRunner (0.07 sec)

  1. cni/pkg/nodeagent/net.go

    type NetServer struct {
    	ztunnelServer      ZtunnelServer
    	currentPodSnapshot *podNetnsCache
    	podIptables        *iptables.IptablesConfigurator
    	podNs              PodNetnsFinder
    	// allow overriding for tests
    	netnsRunner func(fdable NetnsFd, toRun func() error) error
    }
    
    var _ MeshDataplane = &NetServer{}
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 21 16:48:55 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  2. cni/pkg/nodeagent/net_test.go

    	ztunnelServer := &fakeZtunnel{}
    
    	netServer := newNetServer(ztunnelServer, podNsMap, iptablesConfigurator, NewPodNetnsProcFinder(fakeFs()))
    
    	netServer.netnsRunner = func(fdable NetnsFd, toRun func() error) error {
    		return toRun()
    	}
    	netServer.Start(ctx)
    	return netTestFixture{
    		netServer:            netServer,
    		podNsMap:             podNsMap,
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Jul 25 16:13:38 UTC 2024
    - 10.7K bytes
    - Viewed (0)
Back to top