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

Merge branch 'stmabauc/csbi-playground' into 'master'

Allow requesting Plugins via API

See merge request danet/api!21
parents 5c7e76d2 703155c9
Branches
No related tags found
No related merge requests found
......@@ -125,7 +125,7 @@ func (x DeleteResponse_Status) Number() protoreflect.EnumNumber {
// Deprecated: Use DeleteResponse_Status.Descriptor instead.
func (DeleteResponse_Status) EnumDescriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{10, 0}
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{9, 0}
}
type Syn struct {
......@@ -482,61 +482,6 @@ func (x *CreateRequest) GetTransportOption() []*transport.TransportOption {
return nil
}
type CreatePluginRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
TransportOption []*transport.TransportOption `protobuf:"bytes,2,rep,name=transport_option,json=transportOption,proto3" json:"transport_option,omitempty"`
}
func (x *CreatePluginRequest) Reset() {
*x = CreatePluginRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreatePluginRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreatePluginRequest) ProtoMessage() {}
func (x *CreatePluginRequest) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use CreatePluginRequest.ProtoReflect.Descriptor instead.
func (*CreatePluginRequest) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{6}
}
func (x *CreatePluginRequest) GetTimestamp() int64 {
if x != nil {
return x.Timestamp
}
return 0
}
func (x *CreatePluginRequest) GetTransportOption() []*transport.TransportOption {
if x != nil {
return x.TransportOption
}
return nil
}
type CreateResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
......@@ -549,7 +494,7 @@ type CreateResponse struct {
func (x *CreateResponse) Reset() {
*x = CreateResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[7]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -562,7 +507,7 @@ func (x *CreateResponse) String() string {
func (*CreateResponse) ProtoMessage() {}
func (x *CreateResponse) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[7]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -575,7 +520,7 @@ func (x *CreateResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{7}
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{6}
}
func (x *CreateResponse) GetTimestamp() int64 {
......@@ -603,7 +548,7 @@ type Payload struct {
func (x *Payload) Reset() {
*x = Payload{}
if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[8]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -616,7 +561,7 @@ func (x *Payload) String() string {
func (*Payload) ProtoMessage() {}
func (x *Payload) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[8]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -629,7 +574,7 @@ func (x *Payload) ProtoReflect() protoreflect.Message {
// Deprecated: Use Payload.ProtoReflect.Descriptor instead.
func (*Payload) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{8}
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{7}
}
func (x *Payload) GetChunk() []byte {
......@@ -651,7 +596,7 @@ type DeleteRequest struct {
func (x *DeleteRequest) Reset() {
*x = DeleteRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[9]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -664,7 +609,7 @@ func (x *DeleteRequest) String() string {
func (*DeleteRequest) ProtoMessage() {}
func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[9]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -677,7 +622,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{9}
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{8}
}
func (x *DeleteRequest) GetTimestamp() int64 {
......@@ -706,7 +651,7 @@ type DeleteResponse struct {
func (x *DeleteResponse) Reset() {
*x = DeleteResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[10]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
......@@ -719,7 +664,7 @@ func (x *DeleteResponse) String() string {
func (*DeleteResponse) ProtoMessage() {}
func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[10]
mi := &file_gosdn_csbi_csbi_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
......@@ -732,7 +677,7 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{10}
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{9}
}
func (x *DeleteResponse) GetTimestamp() int64 {
......@@ -793,70 +738,69 @@ var file_gosdn_csbi_csbi_proto_rawDesc = []byte{
0x32, 0x20, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
0x72, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x70, 0x74, 0x69,
0x6f, 0x6e, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x70, 0x74,
0x69, 0x6f, 0x6e, 0x22, 0x80, 0x01, 0x0a, 0x13, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c,
0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09,
0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4b, 0x0a, 0x10, 0x74, 0x72, 0x61,
0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x5f, 0x6f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20,
0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x74, 0x72, 0x61, 0x6e,
0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x68, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79,
0x6d, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f,
0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d,
0x65, 0x6e, 0x74, 0x52, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73,
0x22, 0x1f, 0x0a, 0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63,
0x68, 0x75, 0x6e, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e,
0x6b, 0x22, 0x3f, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65,
0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x64,
0x69, 0x64, 0x22, 0xac, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73,
0x69, 0x6f, 0x6e, 0x22, 0x68, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73,
0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61,
0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74,
0x61, 0x6d, 0x70, 0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20,
0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69,
0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e,
0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x41,
0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54,
0x55, 0x53, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00,
0x12, 0x0d, 0x0a, 0x09, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12,
0x10, 0x0a, 0x0c, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10,
0x02, 0x2a, 0x85, 0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53,
0x54, 0x41, 0x54, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44,
0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x4e, 0x4e, 0x4f,
0x55, 0x4e, 0x43, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x45,
0x5f, 0x42, 0x55, 0x49, 0x4c, 0x54, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54,
0x45, 0x5f, 0x44, 0x45, 0x50, 0x4c, 0x4f, 0x59, 0x45, 0x44, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d,
0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12,
0x18, 0x0a, 0x14, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x43, 0x4f, 0x4d, 0x4d, 0x49,
0x53, 0x53, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, 0x05, 0x32, 0xba, 0x02, 0x0a, 0x0b, 0x43, 0x73,
0x62, 0x69, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x03, 0x47, 0x65, 0x74,
0x12, 0x16, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e,
0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
0x65, 0x12, 0x3f, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x67, 0x6f,
0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52,
0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63,
0x73, 0x62, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x67,
0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e,
0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05, 0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x0f, 0x2e, 0x67,
0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x53, 0x79, 0x6e, 0x1a, 0x0f, 0x2e,
0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x41, 0x63, 0x6b, 0x12, 0x46,
0x0a, 0x0c, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x12, 0x1f,
0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x13, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x50, 0x61, 0x79,
0x6c, 0x6f, 0x61, 0x64, 0x30, 0x01, 0x42, 0x2a, 0x5a, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x66,
0x62, 0x69, 0x2e, 0x68, 0x2d, 0x64, 0x61, 0x2e, 0x64, 0x65, 0x2f, 0x64, 0x61, 0x6e, 0x65, 0x74,
0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x63, 0x73,
0x62, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
0x61, 0x6d, 0x70, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e,
0x74, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e,
0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74,
0x52, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73, 0x22, 0x1f, 0x0a,
0x07, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x63, 0x68, 0x75, 0x6e,
0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x05, 0x63, 0x68, 0x75, 0x6e, 0x6b, 0x22, 0x3f,
0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12,
0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01,
0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x10, 0x0a,
0x03, 0x64, 0x69, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x22,
0xac, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18,
0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x12, 0x39, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e,
0x32, 0x21, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x53, 0x74, 0x61,
0x74, 0x75, 0x73, 0x52, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x41, 0x0a, 0x06, 0x53,
0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x16, 0x0a, 0x12, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f,
0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0d, 0x0a,
0x09, 0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x4f, 0x4b, 0x10, 0x01, 0x12, 0x10, 0x0a, 0x0c,
0x53, 0x54, 0x41, 0x54, 0x55, 0x53, 0x5f, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x02, 0x2a, 0x85,
0x01, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x15, 0x0a, 0x11, 0x53, 0x54, 0x41, 0x54,
0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
0x13, 0x0a, 0x0f, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x41, 0x4e, 0x4e, 0x4f, 0x55, 0x4e, 0x43,
0x45, 0x44, 0x10, 0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x42, 0x55,
0x49, 0x4c, 0x54, 0x10, 0x02, 0x12, 0x12, 0x0a, 0x0e, 0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44,
0x45, 0x50, 0x4c, 0x4f, 0x59, 0x45, 0x44, 0x10, 0x03, 0x12, 0x11, 0x0a, 0x0d, 0x53, 0x54, 0x41,
0x54, 0x45, 0x5f, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e, 0x47, 0x10, 0x04, 0x12, 0x18, 0x0a, 0x14,
0x53, 0x54, 0x41, 0x54, 0x45, 0x5f, 0x44, 0x45, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x53, 0x53, 0x49,
0x4f, 0x4e, 0x45, 0x44, 0x10, 0x05, 0x32, 0xb2, 0x03, 0x0a, 0x0b, 0x43, 0x73, 0x62, 0x69, 0x53,
0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x36, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x16, 0x2e,
0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73,
0x62, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3c,
0x0a, 0x0b, 0x47, 0x65, 0x74, 0x47, 0x6f, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x16, 0x2e,
0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65,
0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73,
0x62, 0x69, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x30, 0x01, 0x12, 0x3c, 0x0a, 0x0b,
0x47, 0x65, 0x74, 0x4d, 0x61, 0x6e, 0x69, 0x66, 0x65, 0x73, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f,
0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75,
0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69,
0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x30, 0x01, 0x12, 0x3f, 0x0a, 0x06, 0x43, 0x72,
0x65, 0x61, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62,
0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x1a, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x43, 0x72, 0x65,
0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x44,
0x65, 0x6c, 0x65, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73,
0x62, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74,
0x1a, 0x1a, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65,
0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x29, 0x0a, 0x05,
0x48, 0x65, 0x6c, 0x6c, 0x6f, 0x12, 0x0f, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73,
0x62, 0x69, 0x2e, 0x53, 0x79, 0x6e, 0x1a, 0x0f, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63,
0x73, 0x62, 0x69, 0x2e, 0x41, 0x63, 0x6b, 0x12, 0x42, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x65, 0x47, 0x6f, 0x53, 0x74, 0x72, 0x75, 0x63, 0x74, 0x12, 0x19, 0x2e, 0x67, 0x6f, 0x73, 0x64,
0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71,
0x75, 0x65, 0x73, 0x74, 0x1a, 0x13, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62,
0x69, 0x2e, 0x50, 0x61, 0x79, 0x6c, 0x6f, 0x61, 0x64, 0x30, 0x01, 0x42, 0x2a, 0x5a, 0x28, 0x63,
0x6f, 0x64, 0x65, 0x2e, 0x66, 0x62, 0x69, 0x2e, 0x68, 0x2d, 0x64, 0x61, 0x2e, 0x64, 0x65, 0x2f,
0x64, 0x61, 0x6e, 0x65, 0x74, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x6f, 0x73,
0x64, 0x6e, 0x2f, 0x63, 0x73, 0x62, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
}
var (
......@@ -872,7 +816,7 @@ func file_gosdn_csbi_csbi_proto_rawDescGZIP() []byte {
}
var file_gosdn_csbi_csbi_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_gosdn_csbi_csbi_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
var file_gosdn_csbi_csbi_proto_msgTypes = make([]protoimpl.MessageInfo, 10)
var file_gosdn_csbi_csbi_proto_goTypes = []interface{}{
(State)(0), // 0: gosdn.csbi.State
(DeleteResponse_Status)(0), // 1: gosdn.csbi.DeleteResponse.Status
......@@ -882,36 +826,38 @@ var file_gosdn_csbi_csbi_proto_goTypes = []interface{}{
(*GetResponse)(nil), // 5: gosdn.csbi.GetResponse
(*Deployment)(nil), // 6: gosdn.csbi.Deployment
(*CreateRequest)(nil), // 7: gosdn.csbi.CreateRequest
(*CreatePluginRequest)(nil), // 8: gosdn.csbi.CreatePluginRequest
(*CreateResponse)(nil), // 9: gosdn.csbi.CreateResponse
(*Payload)(nil), // 10: gosdn.csbi.Payload
(*DeleteRequest)(nil), // 11: gosdn.csbi.DeleteRequest
(*DeleteResponse)(nil), // 12: gosdn.csbi.DeleteResponse
(*transport.TransportOption)(nil), // 13: gosdn.transport.TransportOption
(*CreateResponse)(nil), // 8: gosdn.csbi.CreateResponse
(*Payload)(nil), // 9: gosdn.csbi.Payload
(*DeleteRequest)(nil), // 10: gosdn.csbi.DeleteRequest
(*DeleteResponse)(nil), // 11: gosdn.csbi.DeleteResponse
(*transport.TransportOption)(nil), // 12: gosdn.transport.TransportOption
}
var file_gosdn_csbi_csbi_proto_depIdxs = []int32{
13, // 0: gosdn.csbi.Ack.transport_option:type_name -> gosdn.transport.TransportOption
12, // 0: gosdn.csbi.Ack.transport_option:type_name -> gosdn.transport.TransportOption
6, // 1: gosdn.csbi.GetResponse.deployments:type_name -> gosdn.csbi.Deployment
0, // 2: gosdn.csbi.Deployment.state:type_name -> gosdn.csbi.State
13, // 3: gosdn.csbi.CreateRequest.transport_option:type_name -> gosdn.transport.TransportOption
13, // 4: gosdn.csbi.CreatePluginRequest.transport_option:type_name -> gosdn.transport.TransportOption
6, // 5: gosdn.csbi.CreateResponse.deployments:type_name -> gosdn.csbi.Deployment
1, // 6: gosdn.csbi.DeleteResponse.status:type_name -> gosdn.csbi.DeleteResponse.Status
4, // 7: gosdn.csbi.CsbiService.Get:input_type -> gosdn.csbi.GetRequest
7, // 8: gosdn.csbi.CsbiService.Create:input_type -> gosdn.csbi.CreateRequest
11, // 9: gosdn.csbi.CsbiService.Delete:input_type -> gosdn.csbi.DeleteRequest
2, // 10: gosdn.csbi.CsbiService.Hello:input_type -> gosdn.csbi.Syn
8, // 11: gosdn.csbi.CsbiService.CreatePlugin:input_type -> gosdn.csbi.CreatePluginRequest
5, // 12: gosdn.csbi.CsbiService.Get:output_type -> gosdn.csbi.GetResponse
9, // 13: gosdn.csbi.CsbiService.Create:output_type -> gosdn.csbi.CreateResponse
12, // 14: gosdn.csbi.CsbiService.Delete:output_type -> gosdn.csbi.DeleteResponse
3, // 15: gosdn.csbi.CsbiService.Hello:output_type -> gosdn.csbi.Ack
10, // 16: gosdn.csbi.CsbiService.CreatePlugin:output_type -> gosdn.csbi.Payload
12, // [12:17] is the sub-list for method output_type
7, // [7:12] is the sub-list for method input_type
7, // [7:7] is the sub-list for extension type_name
7, // [7:7] is the sub-list for extension extendee
0, // [0:7] is the sub-list for field type_name
12, // 3: gosdn.csbi.CreateRequest.transport_option:type_name -> gosdn.transport.TransportOption
6, // 4: gosdn.csbi.CreateResponse.deployments:type_name -> gosdn.csbi.Deployment
1, // 5: gosdn.csbi.DeleteResponse.status:type_name -> gosdn.csbi.DeleteResponse.Status
4, // 6: gosdn.csbi.CsbiService.Get:input_type -> gosdn.csbi.GetRequest
4, // 7: gosdn.csbi.CsbiService.GetGoStruct:input_type -> gosdn.csbi.GetRequest
4, // 8: gosdn.csbi.CsbiService.GetManifest:input_type -> gosdn.csbi.GetRequest
7, // 9: gosdn.csbi.CsbiService.Create:input_type -> gosdn.csbi.CreateRequest
10, // 10: gosdn.csbi.CsbiService.Delete:input_type -> gosdn.csbi.DeleteRequest
2, // 11: gosdn.csbi.CsbiService.Hello:input_type -> gosdn.csbi.Syn
7, // 12: gosdn.csbi.CsbiService.CreateGoStruct:input_type -> gosdn.csbi.CreateRequest
5, // 13: gosdn.csbi.CsbiService.Get:output_type -> gosdn.csbi.GetResponse
9, // 14: gosdn.csbi.CsbiService.GetGoStruct:output_type -> gosdn.csbi.Payload
9, // 15: gosdn.csbi.CsbiService.GetManifest:output_type -> gosdn.csbi.Payload
8, // 16: gosdn.csbi.CsbiService.Create:output_type -> gosdn.csbi.CreateResponse
11, // 17: gosdn.csbi.CsbiService.Delete:output_type -> gosdn.csbi.DeleteResponse
3, // 18: gosdn.csbi.CsbiService.Hello:output_type -> gosdn.csbi.Ack
9, // 19: gosdn.csbi.CsbiService.CreateGoStruct:output_type -> gosdn.csbi.Payload
13, // [13:20] is the sub-list for method output_type
6, // [6:13] is the sub-list for method input_type
6, // [6:6] is the sub-list for extension type_name
6, // [6:6] is the sub-list for extension extendee
0, // [0:6] is the sub-list for field type_name
}
func init() { file_gosdn_csbi_csbi_proto_init() }
......@@ -993,18 +939,6 @@ func file_gosdn_csbi_csbi_proto_init() {
}
}
file_gosdn_csbi_csbi_proto_msgTypes[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreatePluginRequest); i {
case 0:
return &v.state
case 1:
return &v.sizeCache
case 2:
return &v.unknownFields
default:
return nil
}
}
file_gosdn_csbi_csbi_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateResponse); i {
case 0:
return &v.state
......@@ -1016,7 +950,7 @@ func file_gosdn_csbi_csbi_proto_init() {
return nil
}
}
file_gosdn_csbi_csbi_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
file_gosdn_csbi_csbi_proto_msgTypes[7].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*Payload); i {
case 0:
return &v.state
......@@ -1028,7 +962,7 @@ func file_gosdn_csbi_csbi_proto_init() {
return nil
}
}
file_gosdn_csbi_csbi_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
file_gosdn_csbi_csbi_proto_msgTypes[8].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequest); i {
case 0:
return &v.state
......@@ -1040,7 +974,7 @@ func file_gosdn_csbi_csbi_proto_init() {
return nil
}
}
file_gosdn_csbi_csbi_proto_msgTypes[10].Exporter = func(v interface{}, i int) interface{} {
file_gosdn_csbi_csbi_proto_msgTypes[9].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteResponse); i {
case 0:
return &v.state
......@@ -1059,7 +993,7 @@ func file_gosdn_csbi_csbi_proto_init() {
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_gosdn_csbi_csbi_proto_rawDesc,
NumEnums: 2,
NumMessages: 11,
NumMessages: 10,
NumExtensions: 0,
NumServices: 1,
},
......
......@@ -19,10 +19,12 @@ const _ = grpc.SupportPackageIsVersion7
// 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.
type CsbiServiceClient interface {
Get(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (*GetResponse, error)
GetGoStruct(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (CsbiService_GetGoStructClient, error)
GetManifest(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (CsbiService_GetManifestClient, error)
Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error)
Delete(ctx context.Context, in *DeleteRequest, opts ...grpc.CallOption) (*DeleteResponse, error)
Hello(ctx context.Context, in *Syn, opts ...grpc.CallOption) (*Ack, error)
CreatePlugin(ctx context.Context, in *CreatePluginRequest, opts ...grpc.CallOption) (CsbiService_CreatePluginClient, error)
CreateGoStruct(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (CsbiService_CreateGoStructClient, error)
}
type csbiServiceClient struct {
......@@ -42,6 +44,70 @@ func (c *csbiServiceClient) Get(ctx context.Context, in *GetRequest, opts ...grp
return out, nil
}
func (c *csbiServiceClient) GetGoStruct(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (CsbiService_GetGoStructClient, error) {
stream, err := c.cc.NewStream(ctx, &CsbiService_ServiceDesc.Streams[0], "/gosdn.csbi.CsbiService/GetGoStruct", opts...)
if err != nil {
return nil, err
}
x := &csbiServiceGetGoStructClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type CsbiService_GetGoStructClient interface {
Recv() (*Payload, error)
grpc.ClientStream
}
type csbiServiceGetGoStructClient struct {
grpc.ClientStream
}
func (x *csbiServiceGetGoStructClient) Recv() (*Payload, error) {
m := new(Payload)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *csbiServiceClient) GetManifest(ctx context.Context, in *GetRequest, opts ...grpc.CallOption) (CsbiService_GetManifestClient, error) {
stream, err := c.cc.NewStream(ctx, &CsbiService_ServiceDesc.Streams[1], "/gosdn.csbi.CsbiService/GetManifest", opts...)
if err != nil {
return nil, err
}
x := &csbiServiceGetManifestClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
if err := x.ClientStream.CloseSend(); err != nil {
return nil, err
}
return x, nil
}
type CsbiService_GetManifestClient interface {
Recv() (*Payload, error)
grpc.ClientStream
}
type csbiServiceGetManifestClient struct {
grpc.ClientStream
}
func (x *csbiServiceGetManifestClient) Recv() (*Payload, error) {
m := new(Payload)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
}
return m, nil
}
func (c *csbiServiceClient) Create(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (*CreateResponse, error) {
out := new(CreateResponse)
err := c.cc.Invoke(ctx, "/gosdn.csbi.CsbiService/Create", in, out, opts...)
......@@ -69,12 +135,12 @@ func (c *csbiServiceClient) Hello(ctx context.Context, in *Syn, opts ...grpc.Cal
return out, nil
}
func (c *csbiServiceClient) CreatePlugin(ctx context.Context, in *CreatePluginRequest, opts ...grpc.CallOption) (CsbiService_CreatePluginClient, error) {
stream, err := c.cc.NewStream(ctx, &CsbiService_ServiceDesc.Streams[0], "/gosdn.csbi.CsbiService/CreatePlugin", opts...)
func (c *csbiServiceClient) CreateGoStruct(ctx context.Context, in *CreateRequest, opts ...grpc.CallOption) (CsbiService_CreateGoStructClient, error) {
stream, err := c.cc.NewStream(ctx, &CsbiService_ServiceDesc.Streams[2], "/gosdn.csbi.CsbiService/CreateGoStruct", opts...)
if err != nil {
return nil, err
}
x := &csbiServiceCreatePluginClient{stream}
x := &csbiServiceCreateGoStructClient{stream}
if err := x.ClientStream.SendMsg(in); err != nil {
return nil, err
}
......@@ -84,16 +150,16 @@ func (c *csbiServiceClient) CreatePlugin(ctx context.Context, in *CreatePluginRe
return x, nil
}
type CsbiService_CreatePluginClient interface {
type CsbiService_CreateGoStructClient interface {
Recv() (*Payload, error)
grpc.ClientStream
}
type csbiServiceCreatePluginClient struct {
type csbiServiceCreateGoStructClient struct {
grpc.ClientStream
}
func (x *csbiServiceCreatePluginClient) Recv() (*Payload, error) {
func (x *csbiServiceCreateGoStructClient) Recv() (*Payload, error) {
m := new(Payload)
if err := x.ClientStream.RecvMsg(m); err != nil {
return nil, err
......@@ -106,10 +172,12 @@ func (x *csbiServiceCreatePluginClient) Recv() (*Payload, error) {
// for forward compatibility
type CsbiServiceServer interface {
Get(context.Context, *GetRequest) (*GetResponse, error)
GetGoStruct(*GetRequest, CsbiService_GetGoStructServer) error
GetManifest(*GetRequest, CsbiService_GetManifestServer) error
Create(context.Context, *CreateRequest) (*CreateResponse, error)
Delete(context.Context, *DeleteRequest) (*DeleteResponse, error)
Hello(context.Context, *Syn) (*Ack, error)
CreatePlugin(*CreatePluginRequest, CsbiService_CreatePluginServer) error
CreateGoStruct(*CreateRequest, CsbiService_CreateGoStructServer) error
mustEmbedUnimplementedCsbiServiceServer()
}
......@@ -120,6 +188,12 @@ type UnimplementedCsbiServiceServer struct {
func (UnimplementedCsbiServiceServer) Get(context.Context, *GetRequest) (*GetResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Get not implemented")
}
func (UnimplementedCsbiServiceServer) GetGoStruct(*GetRequest, CsbiService_GetGoStructServer) error {
return status.Errorf(codes.Unimplemented, "method GetGoStruct not implemented")
}
func (UnimplementedCsbiServiceServer) GetManifest(*GetRequest, CsbiService_GetManifestServer) error {
return status.Errorf(codes.Unimplemented, "method GetManifest not implemented")
}
func (UnimplementedCsbiServiceServer) Create(context.Context, *CreateRequest) (*CreateResponse, error) {
return nil, status.Errorf(codes.Unimplemented, "method Create not implemented")
}
......@@ -129,8 +203,8 @@ func (UnimplementedCsbiServiceServer) Delete(context.Context, *DeleteRequest) (*
func (UnimplementedCsbiServiceServer) Hello(context.Context, *Syn) (*Ack, error) {
return nil, status.Errorf(codes.Unimplemented, "method Hello not implemented")
}
func (UnimplementedCsbiServiceServer) CreatePlugin(*CreatePluginRequest, CsbiService_CreatePluginServer) error {
return status.Errorf(codes.Unimplemented, "method CreatePlugin not implemented")
func (UnimplementedCsbiServiceServer) CreateGoStruct(*CreateRequest, CsbiService_CreateGoStructServer) error {
return status.Errorf(codes.Unimplemented, "method CreateGoStruct not implemented")
}
func (UnimplementedCsbiServiceServer) mustEmbedUnimplementedCsbiServiceServer() {}
......@@ -163,6 +237,48 @@ func _CsbiService_Get_Handler(srv interface{}, ctx context.Context, dec func(int
return interceptor(ctx, in, info, handler)
}
func _CsbiService_GetGoStruct_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CsbiServiceServer).GetGoStruct(m, &csbiServiceGetGoStructServer{stream})
}
type CsbiService_GetGoStructServer interface {
Send(*Payload) error
grpc.ServerStream
}
type csbiServiceGetGoStructServer struct {
grpc.ServerStream
}
func (x *csbiServiceGetGoStructServer) Send(m *Payload) error {
return x.ServerStream.SendMsg(m)
}
func _CsbiService_GetManifest_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(GetRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CsbiServiceServer).GetManifest(m, &csbiServiceGetManifestServer{stream})
}
type CsbiService_GetManifestServer interface {
Send(*Payload) error
grpc.ServerStream
}
type csbiServiceGetManifestServer struct {
grpc.ServerStream
}
func (x *csbiServiceGetManifestServer) Send(m *Payload) error {
return x.ServerStream.SendMsg(m)
}
func _CsbiService_Create_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(CreateRequest)
if err := dec(in); err != nil {
......@@ -217,24 +333,24 @@ func _CsbiService_Hello_Handler(srv interface{}, ctx context.Context, dec func(i
return interceptor(ctx, in, info, handler)
}
func _CsbiService_CreatePlugin_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(CreatePluginRequest)
func _CsbiService_CreateGoStruct_Handler(srv interface{}, stream grpc.ServerStream) error {
m := new(CreateRequest)
if err := stream.RecvMsg(m); err != nil {
return err
}
return srv.(CsbiServiceServer).CreatePlugin(m, &csbiServiceCreatePluginServer{stream})
return srv.(CsbiServiceServer).CreateGoStruct(m, &csbiServiceCreateGoStructServer{stream})
}
type CsbiService_CreatePluginServer interface {
type CsbiService_CreateGoStructServer interface {
Send(*Payload) error
grpc.ServerStream
}
type csbiServiceCreatePluginServer struct {
type csbiServiceCreateGoStructServer struct {
grpc.ServerStream
}
func (x *csbiServiceCreatePluginServer) Send(m *Payload) error {
func (x *csbiServiceCreateGoStructServer) Send(m *Payload) error {
return x.ServerStream.SendMsg(m)
}
......@@ -264,8 +380,18 @@ var CsbiService_ServiceDesc = grpc.ServiceDesc{
},
Streams: []grpc.StreamDesc{
{
StreamName: "CreatePlugin",
Handler: _CsbiService_CreatePlugin_Handler,
StreamName: "GetGoStruct",
Handler: _CsbiService_GetGoStruct_Handler,
ServerStreams: true,
},
{
StreamName: "GetManifest",
Handler: _CsbiService_GetManifest_Handler,
ServerStreams: true,
},
{
StreamName: "CreateGoStruct",
Handler: _CsbiService_CreateGoStruct_Handler,
ServerStreams: true,
},
},
......
......@@ -18,16 +18,16 @@
"name": "PndService"
},
{
"name": "Collector"
"name": "gNMI"
},
{
"name": "gNMI"
"name": "CoreService"
},
{
"name": "AgentManager"
"name": "Collector"
},
{
"name": "CoreService"
"name": "AgentManager"
},
{
"name": "CsbiService"
......
......@@ -8,10 +8,12 @@ option go_package = "code.fbi.h-da.de/danet/api/go/gosdn/csbi";
service CsbiService {
rpc Get(GetRequest) returns (GetResponse);
rpc GetGoStruct(GetRequest) returns (stream Payload);
rpc GetManifest(GetRequest) returns (stream Payload);
rpc Create(CreateRequest) returns (CreateResponse);
rpc Delete(DeleteRequest) returns (DeleteResponse);
rpc Hello(Syn) returns (Ack);
rpc CreatePlugin(CreatePluginRequest) returns (stream Payload);
rpc CreateGoStruct(CreateRequest) returns (stream Payload);
}
message Syn {
......@@ -56,11 +58,6 @@ message CreateRequest {
repeated .gosdn.transport.TransportOption transport_option = 2;
}
message CreatePluginRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.transport.TransportOption transport_option = 2;
}
message CreateResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated Deployment deployments = 2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment