- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 13 for listGroups (0.33 sec)
-
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) -
src/os/user/lookup_plan9.go
return nil, syscall.EPLAN9 } func lookupGroup(groupname string) (*Group, error) { return nil, syscall.EPLAN9 } func lookupGroupId(string) (*Group, error) { return nil, syscall.EPLAN9 } func listGroups(*User) ([]string, error) { return nil, syscall.EPLAN9
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Dec 07 16:09:09 UTC 2022 - 1.3K bytes - Viewed (0) -
src/os/user/listgroups_stub.go
// license that can be found in the LICENSE file. //go:build android package user import ( "errors" ) func init() { groupListImplemented = false } func listGroups(*User) ([]string, error) { return nil, errors.New("user: list groups not implemented")
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 369 bytes - Viewed (0) -
src/os/user/cgo_listgroups_unix.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 11 04:31:34 UTC 2022 - 1.7K bytes - Viewed (0) -
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) -
src/os/user/listgroups_unix.go
numGid, err := strconv.Atoi(gid) if err != nil || numGid == primaryGid { continue } groups = append(groups, gid) } return groups, nil } func listGroups(u *User) ([]string, error) { f, err := os.Open(groupFile) if err != nil { return nil, err } defer f.Close() return listGroupsFromReader(u, f)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Apr 07 23:34:21 UTC 2023 - 2.9K bytes - Viewed (0) -
src/os/user/lookup_windows.go
return nil, fmt.Errorf("lookupGroupId: should be group account type, not %d", t) } return &Group{Name: groupname, Gid: gid}, nil } func listGroups(user *User) ([]string, error) { sid, err := syscall.StringToSid(user.Uid) if err != nil { return nil, err } username, domain, err := lookupUsernameAndDomain(sid) if err != nil { return nil, err
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 12 16:42:41 UTC 2023 - 11.8K bytes - Viewed (0) -
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) -
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) -
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)