Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 116 for exists (0.18 sec)

  1. helm/minio/templates/_helper_create_user.txt

        echo \"Failed attempts: $ATTEMPTS\" ;
        if [ $ATTEMPTS -gt $LIMIT ]; then
          exit 1 ;
        fi ;
        sleep 2 ; # 1 second intervals between attempts
        $MC_COMMAND ;
        STATUS=$? ;
      done ;
      set -e ; # reset `e` as active
      return 0
    }
    
    # checkUserExists ()
    # Check if the user exists, by using the exit code of `mc admin user info`
    checkUserExists() {
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Dec 12 23:43:32 GMT 2023
    - 3.2K bytes
    - Viewed (0)
  2. cmd/xl-storage_test.go

    		// Validate volume does not exist.
    		{
    			volume: "i-dont-exist",
    			path:   "",
    			err:    errVolumeNotFound,
    		},
    		// TestXLStorage case - 2.
    		// Validate bad condition file does not exist.
    		{
    			volume: "exists",
    			path:   "as-file-not-found",
    			err:    errFileNotFound,
    		},
    		// TestXLStorage case - 3.
    		// Validate bad condition file exists as prefix/directory and
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 11 17:45:28 GMT 2024
    - 66.7K bytes
    - Viewed (0)
  3. internal/config/identity/ldap/ldap.go

    	}
    
    	groups, err := l.LDAP.SearchForUserGroups(conn, username, bindDN)
    	if err != nil {
    		return "", nil, err
    	}
    
    	return bindDN, groups, nil
    }
    
    // GetValidatedDNForUsername checks if the given username exists in the LDAP directory.
    // The given username could be just the short "login" username or the full DN.
    //
    // When the username/DN is found, the full DN returned by the **server** is
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 9.2K bytes
    - Viewed (0)
  4. cmd/bucket-replication-handlers.go

    	}
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutReplicationConfigurationAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    	// Check if bucket exists.
    	if _, err := objectAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Sat Oct 28 04:08:53 GMT 2023
    - 23.2K bytes
    - Viewed (0)
  5. cmd/bucket-lifecycle-handlers.go

    	}
    
    	if s3Error := checkRequestAuthType(ctx, r, policy.PutBucketLifecycleAction, bucket, ""); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    	// Check if bucket exists.
    	if _, err := objAPI.GetBucketInfo(ctx, bucket, BucketOptions{}); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Nov 21 17:48:06 GMT 2023
    - 7K bytes
    - Viewed (0)
  6. cmd/bucket-handlers.go

    				// such an intersection means that bucket exists on etcd.
    				// but if we do see a difference with local domain IPs with
    				// hostSlice from etcd then we should update with newer
    				// domainIPs, we proceed to do that here.
    				bucketsToBeUpdated.Add(bucket.Name)
    				continue
    			}
    
    			// No IPs seem to intersect, this means that bucket exists but has
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 61.6K bytes
    - Viewed (0)
  7. internal/event/targetlist_test.go

    		{targetListCase2, TargetID{"1", "webhook"}, false},
    		{targetListCase3, TargetID{"3", "testcase"}, true},
    	}
    
    	for i, testCase := range testCases {
    		result := testCase.targetList.Exists(testCase.targetID)
    
    		if result != testCase.expectedResult {
    			t.Fatalf("test %v: data: expected: %v, got: %v", i+1, testCase.expectedResult, result)
    		}
    	}
    }
    
    func TestTargetListList(t *testing.T) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Dec 05 10:16:33 GMT 2023
    - 6.1K bytes
    - Viewed (0)
  8. cmd/erasure-multipart.go

    }
    
    func (er erasureObjects) getMultipartSHADir(bucket, object string) string {
    	return getSHA256Hash([]byte(pathJoin(bucket, object)))
    }
    
    // checkUploadIDExists - verify if a given uploadID exists and is valid.
    func (er erasureObjects) checkUploadIDExists(ctx context.Context, bucket, object, uploadID string, write bool) (fi FileInfo, metArr []FileInfo, err error) {
    	defer func() {
    		if errors.Is(err, errFileNotFound) {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 19 16:44:59 GMT 2024
    - 42.4K bytes
    - Viewed (0)
  9. cmd/metacache-bucket.go

    	if serverDebugLog {
    		console.Debugf(format+"\n", data...)
    	}
    }
    
    // findCache will attempt to find a matching cache for the provided options.
    // If a cache with the same ID exists already it will be returned.
    // If none can be found a new is created with the provided ID.
    func (b *bucketMetacache) findCache(o listPathOptions) metacache {
    	if b == nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  10. cmd/metacache-walk.go

    	legacyFS := !(s.fsType == xfs || s.fsType == ext4)
    
    	s.RLock()
    	legacy := s.formatLegacy
    	s.RUnlock()
    
    	// Verify if volume is valid and it exists.
    	volumeDir, err := s.getVolDir(opts.Bucket)
    	if err != nil {
    		return err
    	}
    
    	if !skipAccessChecks(opts.Bucket) {
    		// Stat a volume entry.
    		if err = Access(volumeDir); err != nil {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Mon Apr 15 08:25:46 GMT 2024
    - 12.4K bytes
    - Viewed (0)
Back to top