Skip to content
Snippets Groups Projects

supported key suspend

Merged Alexander Holodov requested to merge 235-device_management into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
62 func (s *KeyStorageServerImpl) Rename(ctx context.Context, in *api.RenameRequest) (*api.RenameResponse, error) {
63 renameResponse := &api.RenameResponse{}
64
65 renameResponse.StatusList = s.updateAll(ctx, in.Uuid, func(k *api.Key) { k.Name = in.Name })
66 if renameResponse.StatusList != nil {
67 return renameResponse, nil
68 }
69 renameResponse.StatusList = utils.AddStatus(renameResponse.StatusList, "200", api.StatusType_INFO, "Keys renamed")
70 return renameResponse, nil
54 71 }
55 72
56 func revokeKey(client *client.DataStorageClientImpl, uuid string, keyType api.KeyType) []*api.Status {
73 func (s *KeyStorageServerImpl) updateAll(ctx context.Context, uuid string, update func(*api.Key)) []*api.Status {
74 auth := s.CreateAuthentication(ctx)
75
76 client := keyutils.CreateDataStorageClient(auth)
  • added 1 commit

    Compare with previous version

  • mentioned in commit 41159d80

  • Please register or sign in to reply
    Loading