(ctx context.Context, username string, opts metav1.GetOptions)
| 170 | } |
| 171 | |
| 172 | func (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 | |
| 181 | func (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 { |