Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 31 for error (0.19 sec)

  1. cmd/api-errors.go

    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case replication.Error:
    			apiErr = APIError{
    				Code:           "MalformedXML",
    				Description:    e.Error(),
    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case tags.Error:
    			apiErr = APIError{
    				Code:           e.Code(),
    				Description:    e.Error(),
    				HTTPStatusCode: http.StatusBadRequest,
    			}
    		case policy.Error:
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Apr 22 17:49:30 GMT 2024
    - 90.6K bytes
    - Viewed (6)
  2. cmd/xl-storage.go

    	atomic.AddInt32(&s.scanning, 1)
    	defer atomic.AddInt32(&s.scanning, -1)
    
    	var err error
    	stopFn := globalScannerMetrics.log(scannerMetricScanBucketDrive, s.drivePath, cache.Info.Name)
    	defer func() {
    		res := make(map[string]string)
    		if err != nil {
    			res["err"] = err.Error()
    		}
    		stopFn(res)
    	}()
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/object-api-multipart_test.go

    			if testCase.expectedError.Error() != actualErr.Error() {
    				t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead.", i+1, instanceType, testCase.expectedError.Error(), actualErr.Error())
    			}
    		}
    		// Test passes as expected, but the output values are verified for correctness here.
    		if actualErr == nil && testCase.shouldPass {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 77.1K bytes
    - Viewed (0)
  4. cmd/iam-store.go

    	saveIAMConfig(ctx context.Context, item interface{}, path string, opts ...options) error
    	loadIAMConfig(ctx context.Context, item interface{}, path string) error
    	deleteIAMConfig(ctx context.Context, path string) error
    	savePolicyDoc(ctx context.Context, policyName string, p PolicyDoc) error
    	saveMappedPolicy(ctx context.Context, name string, userType IAMUserType, isGroup bool, mp MappedPolicy, opts ...options) error
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  5. cmd/iam.go

    		if err != nil {
    			iamLogIf(GlobalContext, fmt.Errorf("error parsing role ARN %s: %v", roleArn, err))
    			return false
    		}
    		policies = newMappedPolicy(sys.rolesMap[arn]).toSlice()
    
    	default:
    		// Otherwise, inherit parent user's policy
    		var err error
    		policies, err = sys.PolicyDBGet(parentUser, args.Groups...)
    		if err != nil {
    			iamLogIf(GlobalContext, fmt.Errorf("error fetching policies on %s: %v", parentUser, err))
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  6. cmd/erasure-server-pool.go

    	derrs := make([]error, len(poolIndices))
    	dobjects := make([]ObjectInfo, len(poolIndices))
    
    	// Delete concurrently in all server pools that reported no error or read quorum error
    	// where the read quorum issue is from metadata inconsistency.
    	var wg sync.WaitGroup
    	for idx, pe := range poolIndices {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 06:32:14 GMT 2024
    - 80.1K bytes
    - Viewed (0)
  7. cmd/object-api-listobjects_test.go

    				if !strings.Contains(err.Error(), testCase.err.Error()) {
    					t.Errorf("Test %d: %s: Expected to fail with error \"%s\", but instead failed with error \"%s\" instead", i+1, instanceType, testCase.err.Error(), err.Error())
    				}
    			}
    			// Since there are cases for which ListObjects fails, this is
    			// necessary. Test passes as expected, but the output values
    			// are verified for correctness here.
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jan 30 20:43:25 GMT 2024
    - 73.1K bytes
    - Viewed (0)
  8. cmd/erasure-object.go

    	auditLogInternal(ctx, opts)
    }
    
    func joinErrs(errs []error) []string {
    	s := make([]string, len(errs))
    	for i := range s {
    		if errs[i] == nil {
    			s[i] = "<nil>"
    		} else {
    			s[i] = errs[i].Error()
    		}
    	}
    	return s
    }
    
    func (er erasureObjects) deleteIfDangling(ctx context.Context, bucket, object string, metaArr []FileInfo, errs []error, dataErrs []error, opts ObjectOptions) (FileInfo, error) {
    	var err error
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 76.9K bytes
    - Viewed (2)
  9. cmd/bucket-stats_gen.go

    func (z *RMetricName) DecodeMsg(dc *msgp.Reader) (err error) {
    	{
    		var zb0001 string
    		zb0001, err = dc.ReadString()
    		if err != nil {
    			err = msgp.WrapError(err)
    			return
    		}
    		(*z) = RMetricName(zb0001)
    	}
    	return
    }
    
    // EncodeMsg implements msgp.Encodable
    func (z RMetricName) EncodeMsg(en *msgp.Writer) (err error) {
    	err = en.WriteString(string(z))
    	if err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Feb 06 06:00:45 GMT 2024
    - 57.5K bytes
    - Viewed (0)
  10. cmd/sts-handlers_test.go

    		// even if LDAP is enabled.
    		userPolicyMappingsFile: `{
      "foo": {
        "version": 0,
        "policy": "readwrite",
        "updatedAt": "2024-04-23T21:34:43.815519816Z"
      }
    }
    `,
    		// Contains:
    		//
    		// 1. duplicate mapping with same policy, we should not error out;
    		//
    		// 2. non-LDAP group mapping, we should not error out;
    		groupPolicyMappingsFile: `{
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
Back to top