MCPcopy
hub / github.com/marmotedu/iam / Get

Method Get

internal/apiserver/service/v1/user.go:172–179  ·  view source on GitHub ↗
(ctx context.Context, username string, opts metav1.GetOptions)

Source from the content-addressed store, hash-verified

170}
171
172func (u *userService) Get(ctx context.Context, username string, opts metav1.GetOptions) (*v1.User, error) {
173 user, err := u.store.Users().Get(ctx, username, opts)
174 if err != nil {
175 return nil, err
176 }
177
178 return user, nil
179}
180
181func (u *userService) Update(ctx context.Context, user *v1.User, opts metav1.UpdateOptions) error {
182 if err := u.store.Users().Update(ctx, user, opts); err != nil {

Callers 1

Test_userService_GetMethod · 0.95

Calls 2

GetMethod · 0.65
UsersMethod · 0.65

Tested by 1

Test_userService_GetMethod · 0.76