Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for validateAdminReq (0.26 sec)

  1. cmd/admin-handlers-pools.go

    )
    
    func (a adminAPIHandlers) StartDecommission(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.DecommissionAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	// Legacy args style such as non-ellipses style is not supported with this API.
    	if globalEndpoints.Legacy() {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  2. cmd/admin-handlers-config-kv.go

    )
    
    // DelConfigKVHandler - DELETE /minio/admin/v3/del-config-kv
    func (a adminAPIHandlers) DelConfigKVHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.ConfigUpdateAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if r.ContentLength > maxEConfigJSONSize || r.ContentLength == -1 {
    		// More than maxConfigSize bytes were available
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.7K bytes
    - Viewed (0)
  3. cmd/kms-handlers.go

    func (a kmsAPIHandlers) KMSStatusHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := newContext(r, w, "KMSStatus")
    	defer logger.AuditLog(ctx, w, r, mustGetClaimsFromToken(r))
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.KMSStatusAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if GlobalKMS == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrKMSNotConfigured), r.URL)
    		return
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. cmd/admin-bucket-handlers.go

    // to enforce total quota for the specified bucket.
    func (a adminAPIHandlers) PutBucketQuotaConfigHandler(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.SetBucketQuotaAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	vars := mux.Vars(r)
    	bucket := pathClean(vars["bucket"])
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 01:09:56 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  5. cmd/admin-handlers-site-replication.go

    )
    
    // SiteReplicationAdd - PUT /minio/admin/v3/site-replication/add
    func (a adminAPIHandlers) SiteReplicationAdd(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.SiteReplicationAddAction)
    	if objectAPI == nil {
    		return
    	}
    
    	var sites []madmin.PeerSite
    	if err := parseJSONBody(ctx, r.Body, &sites, cred.SecretKey); err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Apr 15 09:40:39 GMT 2024
    - 19.4K bytes
    - Viewed (0)
  6. cmd/admin-handlers-idp-config.go

    	"github.com/minio/mux"
    	"github.com/minio/pkg/v2/ldap"
    	"github.com/minio/pkg/v2/policy"
    )
    
    func addOrUpdateIDPHandler(ctx context.Context, w http.ResponseWriter, r *http.Request, isUpdate bool) {
    	objectAPI, cred := validateAdminReq(ctx, w, r, policy.ConfigUpdateAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	if r.ContentLength > maxEConfigJSONSize || r.ContentLength == -1 {
    		// More than maxConfigSize bytes were available
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 12.7K bytes
    - Viewed (0)
  7. cmd/admin-handlers-idp-ldap.go

    func (a adminAPIHandlers) ListLDAPPolicyMappingEntities(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	// Check authorization.
    
    	objectAPI, cred := validateAdminReq(ctx, w, r,
    		policy.ListGroupsAdminAction, policy.ListUsersAdminAction, policy.ListUserPoliciesAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	// Validate API arguments.
    
    	q := madmin.PolicyEntitiesQuery{
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 13.3K bytes
    - Viewed (0)
Back to top