Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for Group (0.32 sec)

  1. cmd/iam-store.go

    			return true
    		}
    
    		if !groupsSet.IsEmpty() && !groupsSet.Contains(group) {
    			return true
    		}
    
    		ps := mappedPolicy.toSlice()
    		sort.Strings(ps)
    		r = append(r, madmin.GroupPolicyEntities{
    			Group:    group,
    			Policies: ps,
    		})
    		return true
    	})
    
    	sort.Slice(r, func(i, j int) bool {
    		return r[i].Group < r[j].Group
    	})
    
    	return r
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sat Apr 27 10:04:10 GMT 2024
    - 75.2K bytes
    - Viewed (2)
  2. cmd/iam.go

    	}
    }
    
    // AddUsersToGroup - adds users to a group, creating the group if
    // needed. No error if user(s) already are in the group.
    func (sys *IAMSys) AddUsersToGroup(ctx context.Context, group string, members []string) (updatedAt time.Time, err error) {
    	if !sys.Initialized() {
    		return updatedAt, errServerNotInitialized
    	}
    
    	updatedAt, err = sys.store.AddUsersToGroup(ctx, group, members)
    	if err != nil {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  3. cmd/peer-rest-server.go

    	return
    }
    
    // LoadGroupHandler - reloads group along with members list.
    func (s *peerRESTServer) LoadGroupHandler(mss *grid.MSS) (np grid.NoPayload, nerr *grid.RemoteErr) {
    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		return np, grid.NewRemoteErr(errServerNotInitialized)
    	}
    
    	group := mss.Get(peerRESTGroup)
    	if group == "" {
    		return np, grid.NewRemoteErr(errors.New("group is missing"))
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 51.8K bytes
    - Viewed (0)
  4. cmd/sts-handlers_test.go

    	c.mustNotListObjects(ctx, uClient, bucket)
    
    	err = s.adm.UpdateGroupMembers(ctx, madmin.GroupAddRemove{
    		Group:   "test-group",
    		Members: []string{accessKey},
    	})
    	if err != nil {
    		c.Fatalf("unable to add user to group: %v", err)
    	}
    
    	err = s.adm.SetPolicy(ctx, policy, "test-group", true)
    	if err != nil {
    		c.Fatalf("Unable to set policy: %v", err)
    	}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 15:50:16 GMT 2024
    - 85.7K bytes
    - Viewed (0)
  5. cmd/api-errors.go

    		Description:    "The specified group does not exist.",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrAdminNoSuchJob: {
    		Code:           "XMinioAdminNoSuchJob",
    		Description:    "The specified job does not exist.",
    		HTTPStatusCode: http.StatusNotFound,
    	},
    	ErrAdminGroupNotEmpty: {
    		Code:           "XMinioAdminGroupNotEmpty",
    		Description:    "The specified group is not empty - cannot remove it.",
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun May 05 16:56:21 GMT 2024
    - 91.4K bytes
    - Viewed (7)
  6. cmd/admin-handlers-users.go

    	} else {
    		// Check if group already exists
    		if _, gerr := globalIAMSys.GetGroupDescription(updReq.Group); gerr != nil {
    			// If group does not exist, then check if the group has beginning and end space characters
    			// we will reject such group names.
    			if errors.Is(gerr, errNoSuchGroup) && hasSpaceBE(updReq.Group) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 77.5K bytes
    - Viewed (0)
  7. tests/query_test.go

    	}
    	DB.Create(&users)
    
    	var results []User
    	DB.Select("AVG(age) as avgage").Where("name LIKE ?", "subquery_having%").Group("name").Having("AVG(age) > (?)", DB.
    		Select("AVG(age)").Where("name LIKE ?", "subquery_having%").Table("users")).Find(&results)
    
    	if len(results) != 2 {
    		t.Errorf("Two user group should be found, instead found %d", len(results))
    	}
    }
    
    func TestScanNullValue(t *testing.T) {
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Thu Apr 25 12:22:53 GMT 2024
    - 49.8K bytes
    - Viewed (0)
Back to top