Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for writeSuccessNoContent (0.27 sec)

  1. cmd/tier-handlers.go

    	err = globalTierConfigMgr.Save(ctx, objAPI)
    	if err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    	globalNotificationSys.LoadTransitionTierConfig(ctx)
    
    	writeSuccessNoContent(w)
    }
    
    func (api adminAPIHandlers) ListTierHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objAPI, _ := validateAdminReq(ctx, w, r, policy.ListTierAction)
    	if objAPI == nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Thu Sep 12 20:44:05 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. cmd/bucket-policy-handlers.go

    		Type:      madmin.SRBucketMetaTypePolicy,
    		Bucket:    bucket,
    		Policy:    bucketPolicyBytes,
    		UpdatedAt: updatedAt,
    	}))
    
    	// Success.
    	writeSuccessNoContent(w)
    }
    
    // DeleteBucketPolicyHandler - This HTTP handler removes bucket policy configuration.
    func (api objectAPIHandlers) DeleteBucketPolicyHandler(w http.ResponseWriter, r *http.Request) {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  3. cmd/bucket-lifecycle-handlers.go

    		return
    	}
    
    	if _, err := globalBucketMetadataSys.Delete(ctx, bucket, bucketLifecycleConfig); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Success.
    	writeSuccessNoContent(w)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Mon Jan 20 14:49:07 UTC 2025
    - 7K bytes
    - Viewed (0)
  4. cmd/bucket-encryption-handlers.go

    	replLogIf(ctx, globalSiteReplicationSys.BucketMetaHook(ctx, madmin.SRBucketMeta{
    		Type:      madmin.SRBucketMetaTypeSSEConfig,
    		Bucket:    bucket,
    		SSEConfig: nil,
    		UpdatedAt: updatedAt,
    	}))
    
    	writeSuccessNoContent(w)
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. cmd/bucket-handlers.go

    			Location: w.Header().Get(xhttp.Location),
    		})
    		writeResponse(w, http.StatusCreated, resp, mimeXML)
    	case "200":
    		writeSuccessResponseHeadersOnly(w)
    	default:
    		writeSuccessNoContent(w)
    	}
    }
    
    // GetBucketPolicyStatusHandler -  Retrieves the policy status
    // for an MinIO bucket, indicating whether the bucket is public.
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.9K bytes
    - Viewed (0)
  6. cmd/api-response.go

    // with content-type set to `application/xml`.
    func writeSuccessResponseXML(w http.ResponseWriter, response []byte) {
    	writeResponse(w, http.StatusOK, response, mimeXML)
    }
    
    // writeSuccessNoContent writes success headers with http status 204
    func writeSuccessNoContent(w http.ResponseWriter) {
    	writeResponse(w, http.StatusNoContent, nil, mimeNone)
    }
    
    // writeRedirectSeeOther writes Location header with http status 303
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 33.7K bytes
    - Viewed (0)
  7. cmd/object-handlers.go

    				Host:         handlers.GetSourceIP(r),
    			})
    			writeSuccessNoContent(w)
    			return
    		}
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	if objInfo.Name == "" {
    		writeSuccessNoContent(w)
    		return
    	}
    
    	setPutObjHeaders(w, objInfo, true, r.Header)
    	writeSuccessNoContent(w)
    
    	eventName := event.ObjectRemovedDelete
    	if objInfo.DeleteMarker {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Sun Sep 07 16:13:09 UTC 2025
    - 120.6K bytes
    - Viewed (0)
  8. cmd/admin-handlers-users.go

    					SessionPolicy: madmin.SRSessionPolicy(updateReq.NewPolicy),
    					Expiration:    updateReq.NewExpiration,
    				},
    			},
    			UpdatedAt: updatedAt,
    		}))
    	}
    
    	writeSuccessNoContent(w)
    }
    
    // InfoServiceAccount - GET /minio/admin/v3/info-service-account
    func (a adminAPIHandlers) InfoServiceAccount(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 90.6K bytes
    - Viewed (0)
  9. cmd/admin-bucket-handlers.go

    	}
    	if _, err = globalBucketMetadataSys.Update(ctx, bucket, bucketTargetsFile, tgtBytes); err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    
    	// Write success response.
    	writeSuccessNoContent(w)
    }
    
    // ExportBucketMetadataHandler - exports all bucket metadata as a zipped file
    func (a adminAPIHandlers) ExportBucketMetadataHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Feb 18 16:25:55 UTC 2025
    - 33.3K bytes
    - Viewed (0)
  10. cmd/batch-handlers.go

    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErrWithErr(ErrInvalidRequest, err), r.URL)
    		return
    	}
    
    	j := BatchJobRequest{
    		ID: jobID,
    	}
    
    	j.delete(ctx, objectAPI)
    
    	writeSuccessNoContent(w)
    }
    
    //msgp:ignore BatchJobPool
    
    // BatchJobPool batch job pool
    type BatchJobPool struct {
    	ctx          context.Context
    	objLayer     ObjectLayer
    	once         sync.Once
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 63.5K bytes
    - Viewed (0)
Back to top