Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewEndpoints (0.08 sec)

  1. cmd/endpoint.go

    			endpointLocalMap[ep.Host] = ep.IsLocal
    		}
    	}
    	for i := range endpoints {
    		endpoints[i].IsLocal = endpointLocalMap[endpoints[i].Host]
    	}
    	return nil
    }
    
    // NewEndpoints - returns new endpoint list based on input args.
    func NewEndpoints(args ...string) (endpoints Endpoints, err error) {
    	var endpointType EndpointType
    	var scheme string
    
    	uniqueArgs := set.NewStringSet()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 21 22:22:24 UTC 2024
    - 34.2K bytes
    - Viewed (0)
  2. cmd/endpoint_test.go

    	}
    
    	for _, testCase := range testCases {
    		_, err := NewEndpoints(testCase.args...)
    		switch {
    		case testCase.expectedErr == nil:
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		case err == nil:
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jan 13 07:53:03 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  3. cmd/test-utils_test.go

    		Endpoints:    endpoints,
    		CmdLine:      strings.Join(args, " "),
    	}}
    }
    
    func mustGetNewEndpoints(poolIdx int, drivesPerSet int, args ...string) (endpoints Endpoints) {
    	endpoints, err := NewEndpoints(args...)
    	if err != nil {
    		panic(err)
    	}
    	for i := range endpoints {
    		endpoints[i].SetPoolIndex(poolIdx)
    		endpoints[i].SetSetIndex(i / drivesPerSet)
    		endpoints[i].SetDiskIndex(i % drivesPerSet)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 77K bytes
    - Viewed (0)
Back to top