Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 19 for Case (1.18 sec)

  1. cmd/api-errors.go

    	case BucketAlreadyExists:
    		apiErr = ErrBucketAlreadyExists
    	case BucketExists:
    		apiErr = ErrBucketAlreadyOwnedByYou
    	case ObjectNotFound:
    		apiErr = ErrNoSuchKey
    	case MethodNotAllowed:
    		apiErr = ErrMethodNotAllowed
    	case ObjectLocked:
    		apiErr = ErrObjectLocked
    	case InvalidVersionID:
    		apiErr = ErrInvalidVersionID
    	case VersionNotFound:
    		apiErr = ErrNoSuchVersion
    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/xl-storage.go

    		case isSysErrNotDir(err) || isSysErrIsDir(err):
    			return nil, dmTime, errFileNotFound
    		case isSysErrHandleInvalid(err):
    			// This case is special and needs to be handled for windows.
    			return nil, dmTime, errFileNotFound
    		case isSysErrIO(err):
    			return nil, dmTime, errFaultyDisk
    		case isSysErrTooManyFiles(err):
    			return nil, dmTime, errTooManyOpenFiles
    		case isSysErrInvalidArg(err):
    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)
  3. cmd/batch-handlers.go

    	batchReplJobDefaultRetryDelay = 250 * time.Millisecond
    )
    
    func getJobReportPath(job BatchJobRequest) string {
    	var fileName string
    	switch {
    	case job.Replicate != nil:
    		fileName = batchReplName
    	case job.KeyRotate != nil:
    		fileName = batchKeyRotationName
    	case job.Expire != nil:
    		fileName = batchExpireName
    	}
    	return pathJoin(batchJobReportsPrefix, job.ID, fileName)
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 55.2K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    		switch apiFunction {
    		case "PostPolicy":
    			// Register PostPolicy handler.
    			bucket.Methods(http.MethodPost).HeadersRegexp("Content-Type", "multipart/form-data*").HandlerFunc(api.PostPolicyBucketHandler)
    		case "HeadObject":
    			// Register HeadObject handler.
    			bucket.Methods("Head").Path("/{object:.+}").HandlerFunc(api.HeadObjectHandler)
    		case "GetObject":
    			// Register GetObject handler.
    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)
  5. cmd/admin-handlers-users.go

    	}
    
    	vars := mux.Vars(r)
    	group := vars["group"]
    	status := vars["status"]
    
    	var (
    		err       error
    		updatedAt time.Time
    	)
    	switch status {
    	case statusEnabled:
    		updatedAt, err = globalIAMSys.SetGroupStatus(ctx, group, true)
    	case statusDisabled:
    		updatedAt, err = globalIAMSys.SetGroupStatus(ctx, group, false)
    	default:
    		err = errInvalidArgument
    	}
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  6. cmd/erasure-object.go

    			if written == partLength {
    				var scan madmin.HealScanMode
    				switch {
    				case errors.Is(err, errFileNotFound):
    					scan = madmin.HealNormalScan
    				case errors.Is(err, errFileCorrupt):
    					scan = madmin.HealDeepScan
    				}
    				switch scan {
    				case madmin.HealNormalScan, madmin.HealDeepScan:
    					healOnce.Do(func() {
    						globalMRFState.addPartialOp(partialOperation{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 77.2K bytes
    - Viewed (2)
  7. cmd/object-api-listobjects_test.go

    			},
    		},
    		// ListObjectsResult-4.
    		// Again used for truncated case.
    		// (TestCase 26).
    		4: {
    			IsTruncated: true,
    			Objects: []ObjectInfo{
    				{Name: "Asia-maps.png"},
    			},
    		},
    		// ListObjectsResult-5.
    		// Used for Asserting prefixes.
    		// Used for test case with prefix "new", (testCase 27-29).
    		5: {
    			IsTruncated: false,
    			Objects: []ObjectInfo{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 11:07:40 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool.go

    			}
    		}
    		for {
    			select {
    			case <-ctx.Done():
    				return
    			case v := <-updateCloser:
    				update()
    				xioutil.SafeClose(v)
    				return
    			case <-updateTicker.C:
    				update()
    			}
    		}
    	}()
    
    	wg.Wait()
    	ch := make(chan struct{})
    	select {
    	case updateCloser <- ch:
    		<-ch
    	case <-ctx.Done():
    		mu.Lock()
    		if firstErr == nil {
    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)
  9. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultModelValidator.java

        private boolean isValidProfileId(String id) {
            switch (id.charAt(0)) { // avoid first character that has special CLI meaning in "mvn -P xxx"
                case '+': // activate
                case '-': // deactivate
                case '!': // deactivate
                case '?': // optional
                    return false;
                default:
            }
            return true;
        }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 13:13:07 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  10. internal/bucket/lifecycle/lifecycle_test.go

    			}
    			w := httptest.NewRecorder()
    			tc.lc.SetPredictionHeaders(w, tc.opts)
    			expHdr, ok := w.Header()[xhttp.AmzExpiration]
    			switch {
    			case ok && tc.want == 0:
    				t.Fatalf("Expected no rule to match but found x-amz-expiration header set: %v", expHdr)
    			case !ok && tc.want > 0:
    				t.Fatal("Expected x-amz-expiration header to be set but not found")
    			}
    		})
    	}
    }
    
    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