supported key suspend
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
Filter activity
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 reviewed label
mentioned in commit 41159d80