Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for FindEllipsesPatterns (0.16 sec)

  1. cmd/endpoint-ellipses.go

    func parseEndpointSet(setDriveCount uint64, args ...string) (ep endpointSet, err error) {
    	argPatterns := make([]ellipses.ArgPattern, len(args))
    	for i, arg := range args {
    		patterns, perr := ellipses.FindEllipsesPatterns(arg)
    		if perr != nil {
    			return endpointSet{}, config.ErrInvalidErasureEndpoints(nil).Msg(perr.Error())
    		}
    		argPatterns[i] = patterns
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Wed Aug 14 17:11:51 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. cmd/endpoint-ellipses_test.go

    		testCase := testCase
    		t.Run("", func(t *testing.T) {
    			argPatterns := make([]ellipses.ArgPattern, len(testCase.args))
    			for i, arg := range testCase.args {
    				patterns, err := ellipses.FindEllipsesPatterns(arg)
    				if err != nil {
    					t.Fatalf("Unexpected failure %s", err)
    				}
    				argPatterns[i] = patterns
    			}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  3. internal/kms/config.go

    		if endpoint == "" {
    			continue
    		}
    		if !ellipses.HasEllipses(endpoint) {
    			endpoints = append(endpoints, endpoint)
    			continue
    		}
    
    		pattern, err := ellipses.FindEllipsesPatterns(endpoint)
    		if err != nil {
    			return nil, fmt.Errorf("kms: invalid endpoint '%s': %v", endpoint, err)
    		}
    		for _, p := range pattern.Expand() {
    			endpoints = append(endpoints, strings.Join(p, ""))
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 11:46:39 UTC 2024
    - 14.2K bytes
    - Viewed (0)
Back to top