Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for listGroups (0.11 sec)

  1. src/os/user/listgroups_unix_test.go

    		u := &User{Username: tc.user, Gid: tc.gid}
    		got, err := listGroupsFromReader(u, strings.NewReader(tc.in))
    		if tc.err {
    			if err == nil {
    				t.Errorf("listGroups(%q): got nil; want error", tc.user)
    			}
    			continue // no more checks
    		}
    		if err != nil {
    			t.Errorf("listGroups(%q): got %v error, want nil", tc.user, err)
    			continue // no more checks
    		}
    		checkSameIDs(t, got, tc.gids)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/os/user/lookup.go

    func LookupGroupId(gid string) (*Group, error) {
    	return lookupGroupId(gid)
    }
    
    // GroupIds returns the list of group IDs that the user is a member of.
    func (u *User) GroupIds() ([]string, error) {
    	return listGroups(u)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:12 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  3. cmd/iam-store.go

    		Status:    gi.Status,
    		Members:   gi.Members,
    		Policy:    policy,
    		UpdatedAt: gi.UpdatedAt,
    	}, 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()
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 75.8K 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue May 28 17:19:04 UTC 2024
    - 78.6K 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Sun Mar 10 21:09:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  6. 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)
    	}
    	if !set.CreateStringSet(groups...).Contains(group) {
    		c.Fatalf("created group not present!")
    	}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 45.7K bytes
    - Viewed (0)
  7. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  8. 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 Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 184.3K bytes
    - Viewed (0)
Back to top