Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toServiceKey (0.2 sec)

  1. pkg/proxy/ipvs/util/testing/fake.go

    func NewFake() *FakeIPVS {
    	return &FakeIPVS{
    		Services:     make(map[ServiceKey]*utilipvs.VirtualServer),
    		Destinations: make(map[ServiceKey][]*utilipvs.RealServer),
    	}
    }
    
    func toServiceKey(serv *utilipvs.VirtualServer) ServiceKey {
    	return ServiceKey{
    		IP:       serv.Address.String(),
    		Port:     serv.Port,
    		Protocol: serv.Protocol,
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Dec 19 01:20:51 UTC 2023
    - 7K bytes
    - Viewed (0)
Back to top