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
b283d3c3
Commit
b283d3c3
authored
1 year ago
by
Martin Stiemerling
Browse files
Options
Downloads
Patches
Plain Diff
Interface and function for QLE
parent
c15cc8c3
Branches
Branches containing commit
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
+9
-0
9 additions, 0 deletions
kms/kms.go
with
9 additions
and
0 deletions
kms/kms.go
+
9
−
0
View file @
b283d3c3
...
@@ -41,6 +41,11 @@ type EKMS struct {
...
@@ -41,6 +41,11 @@ type EKMS struct {
// Will keep information about the quantum elements that this EKMS is talking to
// Will keep information about the quantum elements that this EKMS is talking to
// This actually constitutes a quantum element with only a single link
// This actually constitutes a quantum element with only a single link
type
QuantumElementInterface
interface
{
GetQlID
()
qlElementId
}
type
QuantumElement
struct
{
type
QuantumElement
struct
{
qlID
qlElementId
qlID
qlElementId
QuantumElementLink
*
quantumlayer
.
QuantumlayerEmuPRNG
// contains information about the quantum links
QuantumElementLink
*
quantumlayer
.
QuantumlayerEmuPRNG
// contains information about the quantum links
...
@@ -164,3 +169,7 @@ func (kms *EKMS) AddPeer(kmsPeerSocket string, servingQLE *QuantumElement) {
...
@@ -164,3 +169,7 @@ func (kms *EKMS) AddPeer(kmsPeerSocket string, servingQLE *QuantumElement) {
func
(
kms
*
EKMS
)
RemovePeer
(
kmsPeerSocket
string
)
{
func
(
kms
*
EKMS
)
RemovePeer
(
kmsPeerSocket
string
)
{
}
}
func
(
qle
*
QuantumElement
)
GetQlID
()
(
myId
qlElementId
)
{
return
qle
.
qlID
}
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