Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Proto Kms
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
danet
Proto Kms
Commits
0cf4ff80
Commit
0cf4ff80
authored
1 year ago
by
Martin Stiemerling
Browse files
Options
Downloads
Patches
Plain Diff
Added FindPeerUuid function
parent
830616d0
No related branches found
No related tags found
1 merge request
!9
First working draft version
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
kms/kms.go
+13
-0
13 additions, 0 deletions
kms/kms.go
with
13 additions
and
0 deletions
kms/kms.go
+
13
−
0
View file @
0cf4ff80
...
@@ -25,6 +25,7 @@ type Qkdnkms interface {
...
@@ -25,6 +25,7 @@ type Qkdnkms interface {
GlobalKeyHandler
(
time
.
Duration
)
error
GlobalKeyHandler
(
time
.
Duration
)
error
AddPeer
(
kmsPeerSocket
string
,
servingQLE
*
QuantumElement
)
AddPeer
(
kmsPeerSocket
string
,
servingQLE
*
QuantumElement
)
RemovePeer
(
kmsPeerSocket
string
)
RemovePeer
(
kmsPeerSocket
string
)
FindPeerUuid
(
uuid
.
UUID
)
*
kmsPeer
}
}
type
qlElementLinkID
int
type
qlElementLinkID
int
...
@@ -190,3 +191,15 @@ func (kms *EKMS) AddExternalNotifierQLE(in chan uint32) {
...
@@ -190,3 +191,15 @@ func (kms *EKMS) AddExternalNotifierQLE(in chan uint32) {
func
(
kms
*
EKMS
)
AddExternalNotifierKMSPeer
(
in
chan
string
)
{
func
(
kms
*
EKMS
)
AddExternalNotifierKMSPeer
(
in
chan
string
)
{
kms
.
externalNotifierKMSPeer
=
in
kms
.
externalNotifierKMSPeer
=
in
}
}
func
(
kms
*
EKMS
)
FindPeerUuid
(
lookup
uuid
.
UUID
)
(
peer
*
kmsPeer
)
{
if
kms
.
KmsPeers
!=
nil
{
for
_
,
peer
=
range
kms
.
KmsPeers
{
if
peer
.
id
==
lookup
{
return
peer
}
}
}
return
nil
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment