Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ErrBucketConflict (0.14 sec)

  1. internal/config/dns/store.go

    	return e.Bucket + " invalid bucket name error: " + e.Err.Error()
    }
    
    func (e Error) Error() string {
    	return "dns related error: " + e.Err.Error()
    }
    
    // ErrBucketConflict for buckets that already exist
    type ErrBucketConflict Error
    
    func (e ErrBucketConflict) Error() string {
    	return e.Bucket + " bucket conflict error: " + e.Err.Error()
    }
    
    // Store dns record store
    type Store interface {
    	Put(bucket string) error
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.6K bytes
    - Viewed (0)
  2. internal/config/dns/operator_dns.go

    		var errorStringBuilder strings.Builder
    		io.Copy(&errorStringBuilder, io.LimitReader(resp.Body, resp.ContentLength))
    		errorString := errorStringBuilder.String()
    		if resp.StatusCode == http.StatusConflict {
    			return ErrBucketConflict(Error{bucket, errors.New(errorString)})
    		}
    		return newError(bucket, fmt.Errorf("service create for bucket %s, failed with status %s, error %s", bucket, resp.Status, errorString))
    	}
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Mar 06 16:56:10 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  3. cmd/api-errors.go

    	case BackendDown:
    		apiErr = ErrBackendDown
    	case ObjectNameTooLong:
    		apiErr = ErrKeyTooLongError
    	case dns.ErrInvalidBucketName:
    		apiErr = ErrInvalidBucketName
    	case dns.ErrBucketConflict:
    		apiErr = ErrBucketAlreadyExists
    	default:
    		if strings.Contains(err.Error(), "request declared a Content-Length") {
    			apiErr = ErrIncompleteBody
    		} else {
    			apiErr = ErrInternalError
    		}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
Back to top