Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for HANDLE (0.15 sec)

  1. cmd/api-errors.go

    		Description:    "Expected LDAP short username but was given full DN.",
    		HTTPStatusCode: http.StatusBadRequest,
    	},
    }
    
    // toAPIErrorCode - Converts embedded errors. Convenience
    // function written to handle all cases where we have known types of
    // errors returned by underlying layers.
    func toAPIErrorCode(ctx context.Context, err error) (apiErr APIErrorCode) {
    	if err == nil {
    		return ErrNone
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  2. cmd/erasure-server-pool.go

    			poolObjInfos[i] = pinfo
    		}(i, pool, poolOpts[i])
    	}
    	wg.Wait()
    
    	// Sort the objInfos such that we always serve latest
    	// this is a defensive change to handle any duplicate
    	// content that may have been created, we always serve
    	// the latest object.
    	sort.Slice(poolObjInfos, func(i, j int) bool {
    		mtime1 := poolObjInfos[i].ObjInfo.ModTime
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  3. cmd/sts-handlers_test.go

    				suite.TestLDAPSTSServiceAccountsWithUsername(c)
    				suite.TestLDAPSTSServiceAccountsWithGroups(c)
    				suite.TearDownSuite(c)
    			},
    		)
    	}
    }
    
    // This test is for a fix added to handle non-normalized base DN values in the
    // LDAP configuration. It runs the existing LDAP sub-tests with a non-normalized
    // LDAP configuration.
    func TestIAMWithLDAPNonNormalizedBaseDNConfigServerSuite(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    	if name == "" {
    		return updatedAt, errInvalidArgument
    	}
    
    	cache := store.lock()
    	defer store.unlock()
    
    	// Handle policy mapping removal.
    	if policy == "" {
    		if store.getUsersSysType() == LDAPUsersSysType {
    			// Add a fallback removal towards previous content that may come back
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  5. cmd/test-utils_test.go

    	hm := hmac.New(sha1.New, []byte(secretAccessKey))
    	hm.Write([]byte(stringToSign))
    
    	// Calculate signature.
    	signature := base64.StdEncoding.EncodeToString(hm.Sum(nil))
    
    	query := req.URL.Query()
    	// Handle specially for Google Cloud Storage.
    	query.Set("AWSAccessKeyId", accessKeyID)
    	// Fill in Expires for presigned query.
    	query.Set("Expires", strconv.FormatInt(epochExpires, 10))
    
    	// Encode query and save.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 17:26:51 GMT 2024
    - 76.2K bytes
    - Viewed (0)
  6. cmd/peer-rest-server.go

    	logger.FatalIf(updateMetacacheListingRPC.Register(gm, server.UpdateMetacacheListingHandler), "unable to register handler")
    
    	logger.FatalIf(gm.RegisterStreamingHandler(grid.HandlerTrace, grid.StreamHandler{
    		Handle:      server.TraceHandler,
    		Subroute:    "",
    		OutCapacity: 100000,
    		InCapacity:  0,
    	}), "unable to register handler")
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  7. cmd/xl-storage.go

    		return res, err
    	}
    
    	s.RLock()
    	formatLegacy := s.formatLegacy
    	s.RUnlock()
    
    	dstBuf, err := xioutil.ReadFile(dstFilePath)
    	if err != nil {
    		// handle situations when dstFilePath is 'file'
    		// for example such as someone is trying to
    		// upload an object such as `prefix/object/xl.meta`
    		// where `prefix/object` is already an object
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  8. docs/bucket/notifications/README.md

     log.Println("Connected")
    
     // Subscribe to subject
     log.Printf("Subscribing to subject 'bucketevents'\n")
     natsConnection.Subscribe("bucketevents", func(msg *nats.Msg) {
    
      // Handle the message
      log.Printf("Received message '%s\n", string(msg.Data)+"'")
     })
    
     // Keep the connection alive
     runtime.Goexit()
    }
    ```
    
    ```
    go run nats.go
    2016/10/12 06:39:18 Connected
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 84K bytes
    - Viewed (2)
  9. cmd/bucket-handlers.go

    	if checksum != nil && checksum.Valid() {
    		if err = hashReader.AddChecksumNoTrailer(formValues, false); err != nil {
    			writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    			return
    		}
    	}
    
    	// Handle policy if it is set.
    	if len(policyBytes) > 0 {
    		postPolicyForm, err := parsePostPolicyForm(bytes.NewReader(policyBytes))
    		if err != nil {
    			errAPI := errorCodes.ToAPIErr(ErrPostPolicyConditionInvalidFormat)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 16:27:27 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle_test.go

    				t.Fatalf("%d: Expected %v during validation but got %v", i+1, tc.expectedValidationErr, err)
    			}
    		})
    	}
    }
    
    // TestMarshalLifecycleConfig checks if lifecycleconfig xml
    // marshaling/unmarshaling can handle output from each other
    func TestMarshalLifecycleConfig(t *testing.T) {
    	// Time at midnight UTC
    	midnightTS := ExpirationDate{time.Date(2019, time.April, 20, 0, 0, 0, 0, time.UTC)}
    	lc := Lifecycle{
    		Rules: []Rule{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:11:10 GMT 2024
    - 53.2K bytes
    - Viewed (0)
Back to top