- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 74 for GetGroups (0.12 sec)
-
staging/src/k8s.io/apiserver/pkg/authentication/group/authenticated_group_adder.go
} if r.User.GetName() == user.Anonymous { return r, true, nil } for _, group := range r.User.GetGroups() { if group == user.AllAuthenticated || group == user.AllUnauthenticated { return r, true, nil } } newGroups := make([]string, 0, len(r.User.GetGroups())+1) newGroups = append(newGroups, r.User.GetGroups()...) newGroups = append(newGroups, user.AllAuthenticated) ret := *r // shallow copy
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 20:04:50 UTC 2022 - 2.1K bytes - Viewed (0) -
src/os/proc.go
func Getegid() int { return syscall.Getegid() } // Getgroups returns a list of the numeric ids of groups that the caller belongs to. // // On Windows, it returns [syscall.EWINDOWS]. See the [os/user] package // for a possible alternative. func Getgroups() ([]int, error) { gids, e := syscall.Getgroups() return gids, NewSyscallError("getgroups", e) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 26 21:33:12 UTC 2024 - 2.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/user/user.go
// GetUID returns a unique value for a particular user that will change // if the user is removed from the system and another user is added with // the same name. GetUID() string // GetGroups returns the names of the groups the user is a member of GetGroups() []string // GetExtra can contain any additional information that the authenticator // thought was interesting. One example would be scopes on a token.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 24 16:21:55 UTC 2020 - 2.6K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/AggregateMultiProjectTaskReportModel.java
public void build() { groups = TreeMultimap.create(String::compareToIgnoreCase, Comparator.comparing(TaskDetails::getPath)); for (TaskReportModel project : projects) { for (String group : project.getGroups()) { if (isVisible(group)) { for (final TaskDetails task : project.getTasksForGroup(group)) { groups.put(group, mergeTasksWithSameName ? mergedTaskDetails(task) : task);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Apr 26 09:45:59 UTC 2024 - 3.1K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/request/anonymous/anonymous_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Oct 26 22:33:54 UTC 2018 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/group/token_group_adder_test.go
return response, true, nil }), []string{"added"}, ), ) r, _, _ := adder.AuthenticateToken(context.Background(), "") if !reflect.DeepEqual(r.User.GetGroups(), []string{"original", "added"}) { t.Errorf("Expected original,added groups, got %#v", r.User.GetGroups()) } if got := toJson(response); got != orig { t.Errorf("Expected response from delegate to be unmodified: orig=%v got=%v", orig, got) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 20:04:50 UTC 2022 - 1.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/group/token_group_adder.go
r, ok, err := g.Authenticator.AuthenticateToken(ctx, token) if err != nil || !ok { return nil, ok, err } newGroups := make([]string, 0, len(r.User.GetGroups())+len(g.Groups)) newGroups = append(newGroups, r.User.GetGroups()...) newGroups = append(newGroups, g.Groups...) ret := *r // shallow copy ret.User = &user.DefaultInfo{ Name: r.User.GetName(), UID: r.User.GetUID(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 20:04:50 UTC 2022 - 1.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/group/group_adder.go
r, ok, err := g.Authenticator.AuthenticateRequest(req) if err != nil || !ok { return nil, ok, err } newGroups := make([]string, 0, len(r.User.GetGroups())+len(g.Groups)) newGroups = append(newGroups, r.User.GetGroups()...) newGroups = append(newGroups, g.Groups...) ret := *r // shallow copy ret.User = &user.DefaultInfo{ Name: r.User.GetName(), UID: r.User.GetUID(),
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 20:04:50 UTC 2022 - 1.8K bytes - Viewed (0) -
subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/DefaultGroupTaskReportModel.java
return parent1.compareTo(parent2); } }; final SetMultimap<String, TaskDetails> groups = TreeMultimap.create(keyComparator, taskComparator); for (String group : model.getGroups()) { groups.putAll(group, model.getTasksForGroup(group)); } String otherGroupName = findOtherGroup(groups.keySet()); if (otherGroupName != null && groups.keySet().contains(DEFAULT_GROUP)) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Jun 08 21:50:18 UTC 2021 - 3.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/authentication/group/group_adder_test.go
}), []string{"added"}, ), ) r, _, _ := adder.AuthenticateRequest(nil) if want := []string{"original", "added"}; !reflect.DeepEqual(r.User.GetGroups(), want) { t.Errorf("Unexpected groups\ngot:\t%#v\nwant:\t%#v", r.User.GetGroups(), want) } if got := toJson(response); got != orig { t.Errorf("Expected response from delegate to be unmodified: orig=%v got=%v", orig, got) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 11 20:04:50 UTC 2022 - 3.5K bytes - Viewed (0)