Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for APIErrorCode (0.12 sec)

  1. cmd/auth-handler.go

    //     for authenticated requests validates IAM policies.
    //
    // returns APIErrorCode if any to be replied to the client.
    func checkRequestAuthType(ctx context.Context, r *http.Request, action policy.Action, bucketName, objectName string) (s3Err APIErrorCode) {
    	logger.GetReqInfo(ctx).BucketName = bucketName
    	logger.GetReqInfo(ctx).ObjectName = objectName
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 17 16:45:46 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  2. cmd/api-errors.go

    }
    
    // APIErrorCode type of error status.
    type APIErrorCode int
    
    //go:generate stringer -type=APIErrorCode -trimprefix=Err $GOFILE
    
    // Error codes, non exhaustive list - http://docs.aws.amazon.com/AmazonS3/latest/API/ErrorResponses.html
    const (
    	ErrNone APIErrorCode = iota
    	ErrAccessDenied
    	ErrBadDigest
    	ErrEntityTooSmall
    	ErrEntityTooLarge
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 01 22:13:18 UTC 2024
    - 92.1K bytes
    - Viewed (0)
  3. cmd/api-response.go

    	owner := &Owner{
    		ID:          globalMinioDefaultOwnerID,
    		DisplayName: "minio",
    	}
    	data := ListVersionsResponse{}
    	var lastObjMetaName string
    	var tagErr, metaErr APIErrorCode = -1, -1
    
    	for _, object := range resp.Objects {
    		if object.Name == "" {
    			continue
    		}
    		// Cache checks for the same object
    		if metadata != nil && lastObjMetaName != object.Name {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 31 19:27:06 UTC 2024
    - 33.4K bytes
    - Viewed (0)
  4. cmd/admin-heal-ops.go

    // representation. The clientToken helps ensure there aren't
    // conflicting clients fetching status.
    func (ahs *allHealState) PopHealStatusJSON(hpath string,
    	clientToken string) ([]byte, APIErrorCode,
    ) {
    	// fetch heal state for given path
    	h, exists := ahs.getHealSequence(hpath)
    	if !exists {
    		// heal sequence doesn't exist, must have finished.
    		jbytes, err := json.Marshal(healSequenceStatus{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. cmd/object-handlers.go

    	opts, valid := getAndValidateAttributesOpts(ctx, w, r, bucket, object)
    	if !valid {
    		return
    	}
    
    	var s3Error APIErrorCode
    	if opts.VersionID != "" {
    		s3Error = checkRequestAuthType(ctx, r, policy.GetObjectVersionAttributesAction, bucket, object)
    		if s3Error == ErrNone {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 05 05:16:15 UTC 2024
    - 117.4K bytes
    - Viewed (0)
  6. cmd/object-multipart-handlers.go

    		return
    	}
    
    	var (
    		md5hex              = clientETag.String()
    		sha256hex           = ""
    		reader    io.Reader = r.Body
    		s3Error   APIErrorCode
    	)
    	if s3Error = isPutActionAllowed(ctx, rAuthType, bucket, object, r, policy.PutObjectAction); s3Error != ErrNone {
    		writeErrorResponse(ctx, w, errorCodes.ToAPIErr(s3Error), r.URL)
    		return
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Aug 31 18:25:48 UTC 2024
    - 39.2K bytes
    - Viewed (0)
  7. cmd/admin-handlers.go

    	forceStart, forceStop bool
    }
    
    // extractHealInitParams - Validates params for heal init API.
    func extractHealInitParams(vars map[string]string, qParams url.Values, r io.Reader) (hip healInitParams, err APIErrorCode) {
    	hip.bucket = vars[mgmtBucket]
    	hip.objPrefix = vars[mgmtPrefix]
    
    	if hip.bucket == "" {
    		if hip.objPrefix != "" {
    			// Bucket is required if object-prefix is given
    			err = ErrHealMissingBucket
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Oct 04 11:32:32 UTC 2024
    - 99.7K bytes
    - Viewed (0)
  8. cmd/object-handlers_test.go

    	testCases := []struct {
    		objectName string
    		content    string
    		partNumber string
    		fault      Fault
    		accessKey  string
    		secretKey  string
    
    		expectedAPIError APIErrorCode
    	}{
    		// Success case.
    		0: {
    			objectName: testObject,
    			content:    "hello",
    			partNumber: "1",
    			fault:      None,
    			accessKey:  credentials.AccessKey,
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Sep 12 20:10:44 UTC 2024
    - 163.2K bytes
    - Viewed (0)
Back to top