Skip to content
Snippets Groups Projects
Commit ed172559 authored by Malte Bauch's avatar Malte Bauch
Browse files

Use buf for proto api

parent 0cf4ff80
No related branches found
No related tags found
1 merge request!9First working draft version
Showing
with 660 additions and 241 deletions
version: v1
managed:
enabled: true
go_package_prefix:
default: code.fbi.h-da.de/demoquandt/proto-kms/gen/proto/go
plugins:
- plugin: buf.build/grpc/go
out: gen/proto/go
opt:
- paths=source_relative
- plugin: buf.build/protocolbuffers/go
out: gen/proto/go
opt:
- paths=source_relative
version: v1
directories:
- kmsetsi
- kmsintercom
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:
// - protoc-gen-go-grpc v1.2.0 // - protoc-gen-go-grpc v1.3.0
// - protoc v3.21.12 // - protoc (unknown)
// source: kmsetsiproto.proto // source: kmsetsi/kmsetsiproto.proto
package kmsetsiproto package kmsetsi
import ( import (
context "context" context "context"
...@@ -18,6 +18,15 @@ import ( ...@@ -18,6 +18,15 @@ import (
// Requires gRPC-Go v1.32.0 or later. // Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7 const _ = grpc.SupportPackageIsVersion7
const (
KmsETSI_ETSICapabilities_FullMethodName = "/kmsetsi.KmsETSI/ETSICapabilities"
KmsETSI_ETSIGetQuantumInterfaces_FullMethodName = "/kmsetsi.KmsETSI/ETSIGetQuantumInterfaces"
KmsETSI_ETSIAddKMSPeer_FullMethodName = "/kmsetsi.KmsETSI/ETSIAddKMSPeer"
KmsETSI_ETSIRemoveKMSPeer_FullMethodName = "/kmsetsi.KmsETSI/ETSIRemoveKMSPeer"
KmsETSI_ETSIGetPeerList_FullMethodName = "/kmsetsi.KmsETSI/ETSIGetPeerList"
KmsETSI_ETSIGetEncryptKeys256Bit_FullMethodName = "/kmsetsi.KmsETSI/ETSIGetEncryptKeys256Bit"
)
// KmsETSIClient is the client API for KmsETSI service. // KmsETSIClient is the client API for KmsETSI service.
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
...@@ -41,7 +50,7 @@ func NewKmsETSIClient(cc grpc.ClientConnInterface) KmsETSIClient { ...@@ -41,7 +50,7 @@ func NewKmsETSIClient(cc grpc.ClientConnInterface) KmsETSIClient {
func (c *kmsETSIClient) ETSICapabilities(ctx context.Context, in *ETSICapabilitiesRequest, opts ...grpc.CallOption) (*ETSICapabilitiesReply, error) { func (c *kmsETSIClient) ETSICapabilities(ctx context.Context, in *ETSICapabilitiesRequest, opts ...grpc.CallOption) (*ETSICapabilitiesReply, error) {
out := new(ETSICapabilitiesReply) out := new(ETSICapabilitiesReply)
err := c.cc.Invoke(ctx, "/kmsetsiproto.KmsETSI/ETSICapabilities", in, out, opts...) err := c.cc.Invoke(ctx, KmsETSI_ETSICapabilities_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -50,7 +59,7 @@ func (c *kmsETSIClient) ETSICapabilities(ctx context.Context, in *ETSICapabiliti ...@@ -50,7 +59,7 @@ func (c *kmsETSIClient) ETSICapabilities(ctx context.Context, in *ETSICapabiliti
func (c *kmsETSIClient) ETSIGetQuantumInterfaces(ctx context.Context, in *ETSIKMSQuantumInterfaceListRequest, opts ...grpc.CallOption) (*ETSIKMSQuantumInterfaceListReply, error) { func (c *kmsETSIClient) ETSIGetQuantumInterfaces(ctx context.Context, in *ETSIKMSQuantumInterfaceListRequest, opts ...grpc.CallOption) (*ETSIKMSQuantumInterfaceListReply, error) {
out := new(ETSIKMSQuantumInterfaceListReply) out := new(ETSIKMSQuantumInterfaceListReply)
err := c.cc.Invoke(ctx, "/kmsetsiproto.KmsETSI/ETSIGetQuantumInterfaces", in, out, opts...) err := c.cc.Invoke(ctx, KmsETSI_ETSIGetQuantumInterfaces_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -59,7 +68,7 @@ func (c *kmsETSIClient) ETSIGetQuantumInterfaces(ctx context.Context, in *ETSIKM ...@@ -59,7 +68,7 @@ func (c *kmsETSIClient) ETSIGetQuantumInterfaces(ctx context.Context, in *ETSIKM
func (c *kmsETSIClient) ETSIAddKMSPeer(ctx context.Context, in *ETSIKMSPeerRequest, opts ...grpc.CallOption) (*ETSIKMSPeerReply, error) { func (c *kmsETSIClient) ETSIAddKMSPeer(ctx context.Context, in *ETSIKMSPeerRequest, opts ...grpc.CallOption) (*ETSIKMSPeerReply, error) {
out := new(ETSIKMSPeerReply) out := new(ETSIKMSPeerReply)
err := c.cc.Invoke(ctx, "/kmsetsiproto.KmsETSI/ETSIAddKMSPeer", in, out, opts...) err := c.cc.Invoke(ctx, KmsETSI_ETSIAddKMSPeer_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -68,7 +77,7 @@ func (c *kmsETSIClient) ETSIAddKMSPeer(ctx context.Context, in *ETSIKMSPeerReque ...@@ -68,7 +77,7 @@ func (c *kmsETSIClient) ETSIAddKMSPeer(ctx context.Context, in *ETSIKMSPeerReque
func (c *kmsETSIClient) ETSIRemoveKMSPeer(ctx context.Context, in *ETSIKMSPeerRequest, opts ...grpc.CallOption) (*ETSIKMSPeerReply, error) { func (c *kmsETSIClient) ETSIRemoveKMSPeer(ctx context.Context, in *ETSIKMSPeerRequest, opts ...grpc.CallOption) (*ETSIKMSPeerReply, error) {
out := new(ETSIKMSPeerReply) out := new(ETSIKMSPeerReply)
err := c.cc.Invoke(ctx, "/kmsetsiproto.KmsETSI/ETSIRemoveKMSPeer", in, out, opts...) err := c.cc.Invoke(ctx, KmsETSI_ETSIRemoveKMSPeer_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -77,7 +86,7 @@ func (c *kmsETSIClient) ETSIRemoveKMSPeer(ctx context.Context, in *ETSIKMSPeerRe ...@@ -77,7 +86,7 @@ func (c *kmsETSIClient) ETSIRemoveKMSPeer(ctx context.Context, in *ETSIKMSPeerRe
func (c *kmsETSIClient) ETSIGetPeerList(ctx context.Context, in *ETSIKMSPeerListRequest, opts ...grpc.CallOption) (*ETSIKMSPeerListReply, error) { func (c *kmsETSIClient) ETSIGetPeerList(ctx context.Context, in *ETSIKMSPeerListRequest, opts ...grpc.CallOption) (*ETSIKMSPeerListReply, error) {
out := new(ETSIKMSPeerListReply) out := new(ETSIKMSPeerListReply)
err := c.cc.Invoke(ctx, "/kmsetsiproto.KmsETSI/ETSIGetPeerList", in, out, opts...) err := c.cc.Invoke(ctx, KmsETSI_ETSIGetPeerList_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -86,7 +95,7 @@ func (c *kmsETSIClient) ETSIGetPeerList(ctx context.Context, in *ETSIKMSPeerList ...@@ -86,7 +95,7 @@ func (c *kmsETSIClient) ETSIGetPeerList(ctx context.Context, in *ETSIKMSPeerList
func (c *kmsETSIClient) ETSIGetEncryptKeys256Bit(ctx context.Context, in *ETSIGetEncryptKeys256BitRequest, opts ...grpc.CallOption) (*ETSIGetEncryptKeys256BitReply, error) { func (c *kmsETSIClient) ETSIGetEncryptKeys256Bit(ctx context.Context, in *ETSIGetEncryptKeys256BitRequest, opts ...grpc.CallOption) (*ETSIGetEncryptKeys256BitReply, error) {
out := new(ETSIGetEncryptKeys256BitReply) out := new(ETSIGetEncryptKeys256BitReply)
err := c.cc.Invoke(ctx, "/kmsetsiproto.KmsETSI/ETSIGetEncryptKeys256Bit", in, out, opts...) err := c.cc.Invoke(ctx, KmsETSI_ETSIGetEncryptKeys256Bit_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -152,7 +161,7 @@ func _KmsETSI_ETSICapabilities_Handler(srv interface{}, ctx context.Context, dec ...@@ -152,7 +161,7 @@ func _KmsETSI_ETSICapabilities_Handler(srv interface{}, ctx context.Context, dec
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsetsiproto.KmsETSI/ETSICapabilities", FullMethod: KmsETSI_ETSICapabilities_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsETSIServer).ETSICapabilities(ctx, req.(*ETSICapabilitiesRequest)) return srv.(KmsETSIServer).ETSICapabilities(ctx, req.(*ETSICapabilitiesRequest))
...@@ -170,7 +179,7 @@ func _KmsETSI_ETSIGetQuantumInterfaces_Handler(srv interface{}, ctx context.Cont ...@@ -170,7 +179,7 @@ func _KmsETSI_ETSIGetQuantumInterfaces_Handler(srv interface{}, ctx context.Cont
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsetsiproto.KmsETSI/ETSIGetQuantumInterfaces", FullMethod: KmsETSI_ETSIGetQuantumInterfaces_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsETSIServer).ETSIGetQuantumInterfaces(ctx, req.(*ETSIKMSQuantumInterfaceListRequest)) return srv.(KmsETSIServer).ETSIGetQuantumInterfaces(ctx, req.(*ETSIKMSQuantumInterfaceListRequest))
...@@ -188,7 +197,7 @@ func _KmsETSI_ETSIAddKMSPeer_Handler(srv interface{}, ctx context.Context, dec f ...@@ -188,7 +197,7 @@ func _KmsETSI_ETSIAddKMSPeer_Handler(srv interface{}, ctx context.Context, dec f
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsetsiproto.KmsETSI/ETSIAddKMSPeer", FullMethod: KmsETSI_ETSIAddKMSPeer_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsETSIServer).ETSIAddKMSPeer(ctx, req.(*ETSIKMSPeerRequest)) return srv.(KmsETSIServer).ETSIAddKMSPeer(ctx, req.(*ETSIKMSPeerRequest))
...@@ -206,7 +215,7 @@ func _KmsETSI_ETSIRemoveKMSPeer_Handler(srv interface{}, ctx context.Context, de ...@@ -206,7 +215,7 @@ func _KmsETSI_ETSIRemoveKMSPeer_Handler(srv interface{}, ctx context.Context, de
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsetsiproto.KmsETSI/ETSIRemoveKMSPeer", FullMethod: KmsETSI_ETSIRemoveKMSPeer_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsETSIServer).ETSIRemoveKMSPeer(ctx, req.(*ETSIKMSPeerRequest)) return srv.(KmsETSIServer).ETSIRemoveKMSPeer(ctx, req.(*ETSIKMSPeerRequest))
...@@ -224,7 +233,7 @@ func _KmsETSI_ETSIGetPeerList_Handler(srv interface{}, ctx context.Context, dec ...@@ -224,7 +233,7 @@ func _KmsETSI_ETSIGetPeerList_Handler(srv interface{}, ctx context.Context, dec
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsetsiproto.KmsETSI/ETSIGetPeerList", FullMethod: KmsETSI_ETSIGetPeerList_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsETSIServer).ETSIGetPeerList(ctx, req.(*ETSIKMSPeerListRequest)) return srv.(KmsETSIServer).ETSIGetPeerList(ctx, req.(*ETSIKMSPeerListRequest))
...@@ -242,7 +251,7 @@ func _KmsETSI_ETSIGetEncryptKeys256Bit_Handler(srv interface{}, ctx context.Cont ...@@ -242,7 +251,7 @@ func _KmsETSI_ETSIGetEncryptKeys256Bit_Handler(srv interface{}, ctx context.Cont
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsetsiproto.KmsETSI/ETSIGetEncryptKeys256Bit", FullMethod: KmsETSI_ETSIGetEncryptKeys256Bit_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsETSIServer).ETSIGetEncryptKeys256Bit(ctx, req.(*ETSIGetEncryptKeys256BitRequest)) return srv.(KmsETSIServer).ETSIGetEncryptKeys256Bit(ctx, req.(*ETSIGetEncryptKeys256BitRequest))
...@@ -254,7 +263,7 @@ func _KmsETSI_ETSIGetEncryptKeys256Bit_Handler(srv interface{}, ctx context.Cont ...@@ -254,7 +263,7 @@ func _KmsETSI_ETSIGetEncryptKeys256Bit_Handler(srv interface{}, ctx context.Cont
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
var KmsETSI_ServiceDesc = grpc.ServiceDesc{ var KmsETSI_ServiceDesc = grpc.ServiceDesc{
ServiceName: "kmsetsiproto.KmsETSI", ServiceName: "kmsetsi.KmsETSI",
HandlerType: (*KmsETSIServer)(nil), HandlerType: (*KmsETSIServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc.MethodDesc{
{ {
...@@ -283,5 +292,5 @@ var KmsETSI_ServiceDesc = grpc.ServiceDesc{ ...@@ -283,5 +292,5 @@ var KmsETSI_ServiceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "kmsetsiproto.proto", Metadata: "kmsetsi/kmsetsiproto.proto",
} }
// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions: // versions:
// - protoc-gen-go-grpc v1.2.0 // - protoc-gen-go-grpc v1.3.0
// - protoc v3.19.4 // - protoc (unknown)
// source: kmsintercom.proto // source: kmsintercom/kmsintercom.proto
package kmsintercomproto package kmsintercom
import ( import (
context "context" context "context"
...@@ -18,6 +18,11 @@ import ( ...@@ -18,6 +18,11 @@ import (
// Requires gRPC-Go v1.32.0 or later. // Requires gRPC-Go v1.32.0 or later.
const _ = grpc.SupportPackageIsVersion7 const _ = grpc.SupportPackageIsVersion7
const (
KmsTalker_InterComCapabilities_FullMethodName = "/kmsintercom.KmsTalker/InterComCapabilities"
KmsTalker_InterComKeyTransportSessionHandling_FullMethodName = "/kmsintercom.KmsTalker/InterComKeyTransportSessionHandling"
)
// KmsTalkerClient is the client API for KmsTalker service. // KmsTalkerClient is the client API for KmsTalker service.
// //
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
...@@ -36,7 +41,7 @@ func NewKmsTalkerClient(cc grpc.ClientConnInterface) KmsTalkerClient { ...@@ -36,7 +41,7 @@ func NewKmsTalkerClient(cc grpc.ClientConnInterface) KmsTalkerClient {
func (c *kmsTalkerClient) InterComCapabilities(ctx context.Context, in *InterComCapabilitiesRequest, opts ...grpc.CallOption) (*InterComCapabilitiesReply, error) { func (c *kmsTalkerClient) InterComCapabilities(ctx context.Context, in *InterComCapabilitiesRequest, opts ...grpc.CallOption) (*InterComCapabilitiesReply, error) {
out := new(InterComCapabilitiesReply) out := new(InterComCapabilitiesReply)
err := c.cc.Invoke(ctx, "/kmsintercomproto.KmsTalker/InterComCapabilities", in, out, opts...) err := c.cc.Invoke(ctx, KmsTalker_InterComCapabilities_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -45,7 +50,7 @@ func (c *kmsTalkerClient) InterComCapabilities(ctx context.Context, in *InterCom ...@@ -45,7 +50,7 @@ func (c *kmsTalkerClient) InterComCapabilities(ctx context.Context, in *InterCom
func (c *kmsTalkerClient) InterComKeyTransportSessionHandling(ctx context.Context, in *InterComKeyTransportSessionHandlingRequest, opts ...grpc.CallOption) (*InterComKeyTransportSessionHandlingReply, error) { func (c *kmsTalkerClient) InterComKeyTransportSessionHandling(ctx context.Context, in *InterComKeyTransportSessionHandlingRequest, opts ...grpc.CallOption) (*InterComKeyTransportSessionHandlingReply, error) {
out := new(InterComKeyTransportSessionHandlingReply) out := new(InterComKeyTransportSessionHandlingReply)
err := c.cc.Invoke(ctx, "/kmsintercomproto.KmsTalker/InterComKeyTransportSessionHandling", in, out, opts...) err := c.cc.Invoke(ctx, KmsTalker_InterComKeyTransportSessionHandling_FullMethodName, in, out, opts...)
if err != nil { if err != nil {
return nil, err return nil, err
} }
...@@ -94,7 +99,7 @@ func _KmsTalker_InterComCapabilities_Handler(srv interface{}, ctx context.Contex ...@@ -94,7 +99,7 @@ func _KmsTalker_InterComCapabilities_Handler(srv interface{}, ctx context.Contex
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsintercomproto.KmsTalker/InterComCapabilities", FullMethod: KmsTalker_InterComCapabilities_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsTalkerServer).InterComCapabilities(ctx, req.(*InterComCapabilitiesRequest)) return srv.(KmsTalkerServer).InterComCapabilities(ctx, req.(*InterComCapabilitiesRequest))
...@@ -112,7 +117,7 @@ func _KmsTalker_InterComKeyTransportSessionHandling_Handler(srv interface{}, ctx ...@@ -112,7 +117,7 @@ func _KmsTalker_InterComKeyTransportSessionHandling_Handler(srv interface{}, ctx
} }
info := &grpc.UnaryServerInfo{ info := &grpc.UnaryServerInfo{
Server: srv, Server: srv,
FullMethod: "/kmsintercomproto.KmsTalker/InterComKeyTransportSessionHandling", FullMethod: KmsTalker_InterComKeyTransportSessionHandling_FullMethodName,
} }
handler := func(ctx context.Context, req interface{}) (interface{}, error) { handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(KmsTalkerServer).InterComKeyTransportSessionHandling(ctx, req.(*InterComKeyTransportSessionHandlingRequest)) return srv.(KmsTalkerServer).InterComKeyTransportSessionHandling(ctx, req.(*InterComKeyTransportSessionHandlingRequest))
...@@ -124,7 +129,7 @@ func _KmsTalker_InterComKeyTransportSessionHandling_Handler(srv interface{}, ctx ...@@ -124,7 +129,7 @@ func _KmsTalker_InterComKeyTransportSessionHandling_Handler(srv interface{}, ctx
// It's only intended for direct use with grpc.RegisterService, // It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy) // and not to be introspected or modified (even as a copy)
var KmsTalker_ServiceDesc = grpc.ServiceDesc{ var KmsTalker_ServiceDesc = grpc.ServiceDesc{
ServiceName: "kmsintercomproto.KmsTalker", ServiceName: "kmsintercom.KmsTalker",
HandlerType: (*KmsTalkerServer)(nil), HandlerType: (*KmsTalkerServer)(nil),
Methods: []grpc.MethodDesc{ Methods: []grpc.MethodDesc{
{ {
...@@ -137,5 +142,5 @@ var KmsTalker_ServiceDesc = grpc.ServiceDesc{ ...@@ -137,5 +142,5 @@ var KmsTalker_ServiceDesc = grpc.ServiceDesc{
}, },
}, },
Streams: []grpc.StreamDesc{}, Streams: []grpc.StreamDesc{},
Metadata: "kmsintercom.proto", Metadata: "kmsintercom/kmsintercom.proto",
} }
# Generated by buf. DO NOT EDIT.
version: v1
version: v1
lint:
use:
- DEFAULT
breaking:
use:
- FILE
syntax = "proto3"; syntax = "proto3";
option go_package = "code.fbi.h-da.de/demoquandt/proto-kms/kmsetsiproto"; package kmsetsi;
package kmsetsiproto;
service KmsETSI { service KmsETSI {
// Sends a greeting // Sends a greeting
......
# Generated by buf. DO NOT EDIT.
version: v1
version: v1
lint:
use:
- DEFAULT
breaking:
use:
- FILE
syntax = "proto3"; syntax = "proto3";
option go_package = "code.fbi.h-da.de/demoquandt/proto-kms/kmsintercomproto"; package kmsintercom;
package kmsintercomproto;
service KmsTalker { service KmsTalker {
rpc InterComCapabilities (InterComCapabilitiesRequest) returns (InterComCapabilitiesReply) {} rpc InterComCapabilities (InterComCapabilitiesRequest) returns (InterComCapabilitiesReply) {}
...@@ -14,7 +12,7 @@ service KmsTalker { ...@@ -14,7 +12,7 @@ service KmsTalker {
message InterComCapabilitiesRequest { message InterComCapabilitiesRequest {
string myKmsName = 1; string myKmsName = 1;
} }
// The response message containing the replying kms' name. // The response message containing the replying kms' name.
message InterComCapabilitiesReply { message InterComCapabilitiesReply {
string peerKmsName= 1; string peerKmsName= 1;
...@@ -25,9 +23,8 @@ message InterComCapabilitiesReply { ...@@ -25,9 +23,8 @@ message InterComCapabilitiesReply {
message InterComKeyTransportSessionHandlingRequest { message InterComKeyTransportSessionHandlingRequest {
string requestedKey = 1; string requestedKey = 1;
} }
// The response message containing the replying kms' name. // The response message containing the replying kms' name.
message InterComKeyTransportSessionHandlingReply { message InterComKeyTransportSessionHandlingReply {
string usedKey = 1; string usedKey = 1;
} }
...@@ -11,8 +11,8 @@ import ( ...@@ -11,8 +11,8 @@ import (
"sync" "sync"
"time" "time"
pbETSI "code.fbi.h-da.de/demoquandt/proto-kms/kmsetsiproto" pbETSI "code.fbi.h-da.de/demoquandt/proto-kms/api/gen/proto/go/kmsetsi"
pbIC "code.fbi.h-da.de/demoquandt/proto-kms/kmsintercomproto" pbIC "code.fbi.h-da.de/demoquandt/proto-kms/api/gen/proto/go/kmsintercom"
"code.fbi.h-da.de/demoquandt/proto-kms/quantumlayer" "code.fbi.h-da.de/demoquandt/proto-kms/quantumlayer"
"github.com/google/uuid" "github.com/google/uuid"
) )
......
...@@ -8,7 +8,7 @@ import ( ...@@ -8,7 +8,7 @@ import (
"log" "log"
"net" "net"
pb "code.fbi.h-da.de/demoquandt/proto-kms/kmsetsiproto" pb "code.fbi.h-da.de/demoquandt/proto-kms/api/gen/proto/go/kmsetsi"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
......
...@@ -7,7 +7,7 @@ import ( ...@@ -7,7 +7,7 @@ import (
"log" "log"
"net" "net"
pb "code.fbi.h-da.de/demoquandt/proto-kms/kmsintercomproto" pb "code.fbi.h-da.de/demoquandt/proto-kms/api/gen/proto/go/kmsintercom"
"google.golang.org/grpc" "google.golang.org/grpc"
) )
......
...@@ -6,7 +6,7 @@ import ( ...@@ -6,7 +6,7 @@ import (
"net" "net"
"time" "time"
pb "code.fbi.h-da.de/demoquandt/proto-kms/kmsetsiproto" pb "code.fbi.h-da.de/demoquandt/proto-kms/api/gen/proto/go/kmsetsi"
"github.com/google/uuid" "github.com/google/uuid"
"google.golang.org/grpc" "google.golang.org/grpc"
"google.golang.org/grpc/credentials/insecure" "google.golang.org/grpc/credentials/insecure"
...@@ -102,7 +102,6 @@ func (ph *kmsPeer) PeerHandler(kmsName string) { ...@@ -102,7 +102,6 @@ func (ph *kmsPeer) PeerHandler(kmsName string) {
} }
} }
} }
func (ph *kmsPeer) GetKmsPeerStatus() KmsPeerStatus { func (ph *kmsPeer) GetKmsPeerStatus() KmsPeerStatus {
......
package kmsetsiproto
package kmsintercomproto
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment