- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for AddUsersAndGroups (0.12 sec)
-
cmd/kubeadm/app/util/users/users_other.go
// ID is a NO-OP on non-Linux. func (*EntryMap) ID(string) *int64 { return nil } // String is NO-OP on non-Linux. func (*EntryMap) String() string { return "" } // AddUsersAndGroups is a NO-OP on non-Linux. func AddUsersAndGroups() (*UsersAndGroups, error) { return nil, nil } // RemoveUsersAndGroups is a NO-OP on non-Linux. func RemoveUsersAndGroups() error { return nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 24 19:47:49 UTC 2021 - 1.4K bytes - Viewed (0) -
cmd/kubeadm/app/util/users/users_linux.go
lines = append(lines, fmt.Sprintf("%s{%d,%d};", k, e.id, e.gid)) } sort.Strings(lines) return strings.Join(lines, "") } // AddUsersAndGroups is a public wrapper around addUsersAndGroupsImpl with default system file paths. func AddUsersAndGroups() (*UsersAndGroups, error) { return addUsersAndGroupsImpl(fileEtcLoginDefs, fileEtcPasswd, fileEtcGroup) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Oct 25 16:35:10 UTC 2023 - 20.7K bytes - Viewed (0) -
cmd/kubeadm/app/util/users/users_linux_test.go
defer close() fileGroup, close := writeTempFile(t, group) defer close() got, err := addUsersAndGroupsImpl(fileLoginDef, filePasswd, fileGroup) if err != nil { t.Fatalf("AddUsersAndGroups failed: %v", err) } if expectedUsers != got.Users.String() { t.Fatalf("expected users: %q, got: %q", expectedUsers, got.Users.String()) } if expectedGroups != got.Groups.String() {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 01 05:59:41 UTC 2022 - 16.3K bytes - Viewed (0) -
cmd/kubeadm/app/util/staticpod/utils.go
// in a thread safe way once. func GetUsersAndGroups() (*users.UsersAndGroups, error) { var err error usersAndGroupsOnce.Do(func() { usersAndGroups, err = users.AddUsersAndGroups() }) return usersAndGroups, err } // DeepHashObject writes specified object to hash using the spew library // which follows pointers and prints actual values of the nested objects
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jan 14 13:07:56 UTC 2024 - 14.1K bytes - Viewed (0)