Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for toVirtualServer (0.25 sec)

  1. pkg/proxy/ipvs/util/ipvs_linux.go

    		TimeoutTCP:    tcpTimeout,
    		TimeoutTCPFin: tcpFinTimeout,
    		TimeoutUDP:    udpTimeout,
    	}
    
    	return runner.ipvsHandle.SetConfig(ipvsConfig)
    }
    
    // toVirtualServer converts an IPVS Service to the equivalent VirtualServer structure.
    func toVirtualServer(svc *libipvs.Service) (*VirtualServer, error) {
    	if svc == nil {
    		return nil, errors.New("ipvs svc should not be empty")
    	}
    	vs := &VirtualServer{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. pkg/proxy/ipvs/util/ipvs_linux_test.go

    				Port:      80,
    				Scheduler: "",
    				Flags:     ServiceFlags(FlagPersistent),
    				Timeout:   0,
    			},
    			false,
    			"",
    		},
    	}
    
    	for i := range Tests {
    		got, err := toVirtualServer(&Tests[i].ipvsService)
    		if Tests[i].expectError && err == nil {
    			t.Errorf("case: %d, expected error: %s, got nil", i, Tests[i].reason)
    		}
    		if !Tests[i].expectError && err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 27 16:37:50 UTC 2023
    - 9.9K bytes
    - Viewed (0)
Back to top