Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for DeletePolicy (0.2 sec)

  1. docs/multi-user/admin/README.md

    - admin:AddUserToGroup
    - admin:RemoveUserFromGroup
    - admin:GetGroup
    - admin:ListGroups
    - admin:EnableGroup
    - admin:DisableGroup
    
    #### Policy management permissions
    
    - admin:CreatePolicy
    - admin:DeletePolicy
    - admin:GetPolicy
    - admin:AttachUserOrGroupPolicy
    - admin:ListUserPolicies
    
    #### Heal management permissions
    
    - admin:Heal
    
    #### Service account management permissions
    
    Plain Text
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Mar 21 06:38:06 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  2. cmd/notification.go

    					time.Sleep(100*time.Millisecond + time.Duration(r.Float64()*float64(time.Second)))
    				}
    				continue
    			}
    			break
    		}
    	}()
    }
    
    // DeletePolicy - deletes policy across all peers.
    func (sys *NotificationSys) DeletePolicy(policyName string) []NotificationPeerErr {
    	ng := WithNPeers(len(sys.peerClients)).WithRetries(1)
    	for idx, client := range sys.peerClients {
    		client := client
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Fri Apr 12 18:13:36 GMT 2024
    - 44.5K bytes
    - Viewed (0)
  3. cmd/peer-rest-client.go

    	_, err := deleteBucketMetadataRPC.Call(context.Background(), client.gridConn(), grid.NewMSSWith(map[string]string{
    		peerRESTBucket: bucket,
    	}))
    	return err
    }
    
    // DeletePolicy - delete a specific canned policy.
    func (client *peerRESTClient) DeletePolicy(policyName string) (err error) {
    	_, err = deletePolicyRPC.Call(context.Background(), client.gridConn(), grid.NewMSSWith(map[string]string{
    		peerRESTPolicy: policyName,
    	}))
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 25.8K bytes
    - Viewed (0)
  4. cmd/iam.go

    	}
    	return roleArn, rolePolicy, nil
    }
    
    // DeletePolicy - deletes a canned policy from backend. `notifyPeers` is true
    // whenever this is called via the API. It is false when called via a
    // notification from another peer. This is to avoid infinite loops.
    func (sys *IAMSys) DeletePolicy(ctx context.Context, policyName string, notifyPeers bool) error {
    	if !sys.Initialized() {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 19:09:19 GMT 2024
    - 69.9K bytes
    - Viewed (1)
  5. cmd/iam-store.go

    		return nil
    	}
    	return err
    }
    
    // DeletePolicy - deletes policy from storage and cache. When this called in
    // response to a notification (i.e. isFromNotification = true), it skips the
    // validation of policy usage and the attempt to delete in the backend as well
    // (as this is already done by the notifying node).
    func (store *IAMStoreSys) DeletePolicy(ctx context.Context, policy string, isFromNotification bool) error {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 74.4K bytes
    - Viewed (2)
  6. cmd/admin-handlers-users.go

    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.DeletePolicyAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	vars := mux.Vars(r)
    	policyName := vars["name"]
    
    	if err := globalIAMSys.DeletePolicy(ctx, policyName, true); err != nil {
    		writeErrorResponseJSON(ctx, w, toAdminAPIErr(ctx, err), r.URL)
    		return
    	}
    
    	// Call cluster-replication policy creation hook to replicate policy deletion to
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 18 15:15:02 GMT 2024
    - 76K bytes
    - Viewed (0)
  7. cmd/peer-rest-server.go

    	}
    
    	policyName := mss.Get(peerRESTPolicy)
    	if policyName == "" {
    		return np, grid.NewRemoteErr(errors.New("policyName is missing"))
    	}
    
    	if err := globalIAMSys.DeletePolicy(context.Background(), policyName, false); err != nil {
    		return np, grid.NewRemoteErr(err)
    	}
    
    	return
    }
    
    // LoadPolicyHandler - reloads a policy on the server.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  8. cmd/site-replication.go

    	if !updatedAt.IsZero() {
    		if p, err := globalIAMSys.store.GetPolicyDoc(policyName); err == nil && p.UpdateDate.After(updatedAt) {
    			return nil
    		}
    	}
    	if p == nil {
    		err = globalIAMSys.DeletePolicy(ctx, policyName, true)
    	} else {
    		_, err = globalIAMSys.SetPolicy(ctx, policyName, *p)
    	}
    	if err != nil {
    		return wrapSRErr(err)
    	}
    	return nil
    }
    
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 182.7K bytes
    - Viewed (1)
Back to top