Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for listGroups (0.08 sec)

  1. cmd/iam-store.go

    	return groupSet.ToSlice(), nil
    }
    
    // ListGroups - lists groups. Since this is not going to be a frequent
    // operation, we fetch this info from storage, and refresh the cache as well.
    func (store *IAMStoreSys) ListGroups(ctx context.Context) (res []string, err error) {
    	cache := store.lock()
    	defer store.unlock()
    
    	return store.updateGroups(ctx, cache)
    }
    
    // listGroups - lists groups - fetch groups from cache
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Oct 14 16:35:37 UTC 2024
    - 83.2K bytes
    - Viewed (0)
  2. cmd/admin-handlers-users_test.go

    	err = uClient.RemoveBucket(ctx, bucket)
    	if err == nil {
    		c.Fatalf("bucket was deleted!")
    	}
    
    	// 4. List groups and members and verify
    	groups, err := s.adm.ListGroups(ctx)
    	if err != nil {
    		c.Fatalf("group list err: %v", err)
    	}
    	expected := []string{group}
    	if !slices.Equal(groups, expected) {
    		c.Fatalf("expected group listing: %v, got: %v", expected, groups)
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sun Sep 22 00:33:43 UTC 2024
    - 47.3K bytes
    - Viewed (0)
  3. cmd/iam.go

    	}
    
    	return sys.store.GetGroupDescription(group)
    }
    
    // ListGroups - lists groups.
    func (sys *IAMSys) ListGroups(ctx context.Context) (r []string, err error) {
    	if !sys.Initialized() {
    		return r, errServerNotInitialized
    	}
    
    	select {
    	case <-sys.configLoaded:
    		return sys.store.ListGroups(ctx)
    	case <-ctx.Done():
    		return nil, ctx.Err()
    	}
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Oct 29 16:01:48 UTC 2024
    - 74.6K bytes
    - Viewed (0)
  4. cmd/admin-handlers-users.go

    	}
    
    	writeSuccessResponseJSON(w, body)
    }
    
    // ListGroups - GET /minio/admin/v3/groups
    func (a adminAPIHandlers) ListGroups(w http.ResponseWriter, r *http.Request) {
    	ctx := r.Context()
    
    	objectAPI, _ := validateAdminReq(ctx, w, r, policy.ListGroupsAdminAction)
    	if objectAPI == nil {
    		return
    	}
    
    	groups, err := globalIAMSys.ListGroups(ctx)
    	if err != nil {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Oct 03 23:11:02 UTC 2024
    - 85.1K bytes
    - Viewed (0)
  5. cmd/admin-router.go

    		// List Groups
    		adminRouter.Methods(http.MethodGet).Path(adminVersion + "/groups").HandlerFunc(adminMiddleware(adminAPI.ListGroups))
    
    		// Set Group Status
    		adminRouter.Methods(http.MethodPut).Path(adminVersion+"/set-group-status").HandlerFunc(adminMiddleware(adminAPI.SetGroupStatus)).Queries("group", "{group:.*}").Queries("status", "{status:.*}")
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Sep 21 11:35:40 UTC 2024
    - 26.2K bytes
    - Viewed (0)
  6. cmd/site-replication.go

    				info.GroupDescMap[opts.EntityValue] = gd
    			}
    		} else {
    			//  get users/group info on local.
    			groups, errG := globalIAMSys.store.listGroups(ctx)
    			if errG != nil {
    				return info, errSRBackendIssue(errG)
    			}
    			groupDescMap := make(map[string]madmin.GroupDesc, len(groups))
    			for _, g := range groups {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Thu Aug 15 12:04:40 UTC 2024
    - 185.1K bytes
    - Viewed (0)
Back to top