Skip to content
Snippets Groups Projects
Commit dde53dd7 authored by Manuel Kieweg's avatar Manuel Kieweg
Browse files

grpc api

parent ce84f0f3
No related branches found
No related tags found
No related merge requests found
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
package csbi package csbi
import ( import (
pnd "code.fbi.h-da.de/cocsn/api/go/gosdn/pnd"
transport "code.fbi.h-da.de/cocsn/api/go/gosdn/transport" transport "code.fbi.h-da.de/cocsn/api/go/gosdn/transport"
protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl" protoimpl "google.golang.org/protobuf/runtime/protoimpl"
...@@ -22,6 +21,61 @@ const ( ...@@ -22,6 +21,61 @@ const (
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
) )
type State int32
const (
State_ANNOUNCED State = 0
State_BUILD State = 1
State_DEPLOYED State = 2
State_RUNNING State = 3
State_DECOMMISSIONED State = 4
)
// Enum value maps for State.
var (
State_name = map[int32]string{
0: "ANNOUNCED",
1: "BUILD",
2: "DEPLOYED",
3: "RUNNING",
4: "DECOMMISSIONED",
}
State_value = map[string]int32{
"ANNOUNCED": 0,
"BUILD": 1,
"DEPLOYED": 2,
"RUNNING": 3,
"DECOMMISSIONED": 4,
}
)
func (x State) Enum() *State {
p := new(State)
*p = x
return p
}
func (x State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (State) Descriptor() protoreflect.EnumDescriptor {
return file_gosdn_csbi_csbi_proto_enumTypes[0].Descriptor()
}
func (State) Type() protoreflect.EnumType {
return &file_gosdn_csbi_csbi_proto_enumTypes[0]
}
func (x State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use State.Descriptor instead.
func (State) EnumDescriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{0}
}
type DeleteResponseStatus int32 type DeleteResponseStatus int32
const ( const (
...@@ -52,11 +106,11 @@ func (x DeleteResponseStatus) String() string { ...@@ -52,11 +106,11 @@ func (x DeleteResponseStatus) String() string {
} }
func (DeleteResponseStatus) Descriptor() protoreflect.EnumDescriptor { func (DeleteResponseStatus) Descriptor() protoreflect.EnumDescriptor {
return file_gosdn_csbi_csbi_proto_enumTypes[0].Descriptor() return file_gosdn_csbi_csbi_proto_enumTypes[1].Descriptor()
} }
func (DeleteResponseStatus) Type() protoreflect.EnumType { func (DeleteResponseStatus) Type() protoreflect.EnumType {
return &file_gosdn_csbi_csbi_proto_enumTypes[0] return &file_gosdn_csbi_csbi_proto_enumTypes[1]
} }
func (x DeleteResponseStatus) Number() protoreflect.EnumNumber { func (x DeleteResponseStatus) Number() protoreflect.EnumNumber {
...@@ -65,7 +119,7 @@ func (x DeleteResponseStatus) Number() protoreflect.EnumNumber { ...@@ -65,7 +119,7 @@ func (x DeleteResponseStatus) Number() protoreflect.EnumNumber {
// Deprecated: Use DeleteResponseStatus.Descriptor instead. // Deprecated: Use DeleteResponseStatus.Descriptor instead.
func (DeleteResponseStatus) EnumDescriptor() ([]byte, []int) { func (DeleteResponseStatus) EnumDescriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{5, 0} return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{6, 0}
} }
type GetRequest struct { type GetRequest struct {
...@@ -75,7 +129,7 @@ type GetRequest struct { ...@@ -75,7 +129,7 @@ type GetRequest struct {
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
All bool `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"` All bool `protobuf:"varint,2,opt,name=all,proto3" json:"all,omitempty"`
Pid []string `protobuf:"bytes,3,rep,name=pid,proto3" json:"pid,omitempty"` Did []string `protobuf:"bytes,3,rep,name=did,proto3" json:"did,omitempty"`
} }
func (x *GetRequest) Reset() { func (x *GetRequest) Reset() {
...@@ -124,9 +178,9 @@ func (x *GetRequest) GetAll() bool { ...@@ -124,9 +178,9 @@ func (x *GetRequest) GetAll() bool {
return false return false
} }
func (x *GetRequest) GetPid() []string { func (x *GetRequest) GetDid() []string {
if x != nil { if x != nil {
return x.Pid return x.Did
} }
return nil return nil
} }
...@@ -136,8 +190,8 @@ type GetResponse struct { ...@@ -136,8 +190,8 @@ type GetResponse struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
Pnd []*pnd.PrincipalNetworkDomain `protobuf:"bytes,2,rep,name=pnd,proto3" json:"pnd,omitempty"` Deployments []*Deployment `protobuf:"bytes,2,rep,name=deployments,proto3" json:"deployments,omitempty"`
} }
func (x *GetResponse) Reset() { func (x *GetResponse) Reset() {
...@@ -179,13 +233,76 @@ func (x *GetResponse) GetTimestamp() int64 { ...@@ -179,13 +233,76 @@ func (x *GetResponse) GetTimestamp() int64 {
return 0 return 0
} }
func (x *GetResponse) GetPnd() []*pnd.PrincipalNetworkDomain { func (x *GetResponse) GetDeployments() []*Deployment {
if x != nil { if x != nil {
return x.Pnd return x.Deployments
} }
return nil return nil
} }
type Deployment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
State State `protobuf:"varint,3,opt,name=state,proto3,enum=gosdn.csbi.State" json:"state,omitempty"`
}
func (x *Deployment) Reset() {
*x = Deployment{}
if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Deployment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Deployment) ProtoMessage() {}
func (x *Deployment) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[2]
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 Deployment.ProtoReflect.Descriptor instead.
func (*Deployment) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{2}
}
func (x *Deployment) GetId() string {
if x != nil {
return x.Id
}
return ""
}
func (x *Deployment) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Deployment) GetState() State {
if x != nil {
return x.State
}
return State_ANNOUNCED
}
type CreateRequest struct { type CreateRequest struct {
state protoimpl.MessageState state protoimpl.MessageState
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
...@@ -198,7 +315,7 @@ type CreateRequest struct { ...@@ -198,7 +315,7 @@ type CreateRequest struct {
func (x *CreateRequest) Reset() { func (x *CreateRequest) Reset() {
*x = CreateRequest{} *x = CreateRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[2] mi := &file_gosdn_csbi_csbi_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
...@@ -211,7 +328,7 @@ func (x *CreateRequest) String() string { ...@@ -211,7 +328,7 @@ func (x *CreateRequest) String() string {
func (*CreateRequest) ProtoMessage() {} func (*CreateRequest) ProtoMessage() {}
func (x *CreateRequest) ProtoReflect() protoreflect.Message { func (x *CreateRequest) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[2] mi := &file_gosdn_csbi_csbi_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
...@@ -224,7 +341,7 @@ func (x *CreateRequest) ProtoReflect() protoreflect.Message { ...@@ -224,7 +341,7 @@ func (x *CreateRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead. // Deprecated: Use CreateRequest.ProtoReflect.Descriptor instead.
func (*CreateRequest) Descriptor() ([]byte, []int) { func (*CreateRequest) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{2} return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{3}
} }
func (x *CreateRequest) GetTimestamp() int64 { func (x *CreateRequest) GetTimestamp() int64 {
...@@ -246,14 +363,14 @@ type CreateResponse struct { ...@@ -246,14 +363,14 @@ type CreateResponse struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
Device []*pnd.OrchestratedNetworkingDevice `protobuf:"bytes,2,rep,name=device,proto3" json:"device,omitempty"` Deployments []*Deployment `protobuf:"bytes,2,rep,name=deployments,proto3" json:"deployments,omitempty"`
} }
func (x *CreateResponse) Reset() { func (x *CreateResponse) Reset() {
*x = CreateResponse{} *x = CreateResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[3] mi := &file_gosdn_csbi_csbi_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
...@@ -266,7 +383,7 @@ func (x *CreateResponse) String() string { ...@@ -266,7 +383,7 @@ func (x *CreateResponse) String() string {
func (*CreateResponse) ProtoMessage() {} func (*CreateResponse) ProtoMessage() {}
func (x *CreateResponse) ProtoReflect() protoreflect.Message { func (x *CreateResponse) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[3] mi := &file_gosdn_csbi_csbi_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
...@@ -279,7 +396,7 @@ func (x *CreateResponse) ProtoReflect() protoreflect.Message { ...@@ -279,7 +396,7 @@ func (x *CreateResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead. // Deprecated: Use CreateResponse.ProtoReflect.Descriptor instead.
func (*CreateResponse) Descriptor() ([]byte, []int) { func (*CreateResponse) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{3} return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{4}
} }
func (x *CreateResponse) GetTimestamp() int64 { func (x *CreateResponse) GetTimestamp() int64 {
...@@ -289,9 +406,9 @@ func (x *CreateResponse) GetTimestamp() int64 { ...@@ -289,9 +406,9 @@ func (x *CreateResponse) GetTimestamp() int64 {
return 0 return 0
} }
func (x *CreateResponse) GetDevice() []*pnd.OrchestratedNetworkingDevice { func (x *CreateResponse) GetDeployments() []*Deployment {
if x != nil { if x != nil {
return x.Device return x.Deployments
} }
return nil return nil
} }
...@@ -301,14 +418,14 @@ type DeleteRequest struct { ...@@ -301,14 +418,14 @@ type DeleteRequest struct {
sizeCache protoimpl.SizeCache sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields unknownFields protoimpl.UnknownFields
Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch. Timestamp int64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` // Timestamp in nanoseconds since Epoch.
Device []*pnd.OrchestratedNetworkingDevice `protobuf:"bytes,2,rep,name=device,proto3" json:"device,omitempty"` Did []string `protobuf:"bytes,2,rep,name=did,proto3" json:"did,omitempty"`
} }
func (x *DeleteRequest) Reset() { func (x *DeleteRequest) Reset() {
*x = DeleteRequest{} *x = DeleteRequest{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[4] mi := &file_gosdn_csbi_csbi_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
...@@ -321,7 +438,7 @@ func (x *DeleteRequest) String() string { ...@@ -321,7 +438,7 @@ func (x *DeleteRequest) String() string {
func (*DeleteRequest) ProtoMessage() {} func (*DeleteRequest) ProtoMessage() {}
func (x *DeleteRequest) ProtoReflect() protoreflect.Message { func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[4] mi := &file_gosdn_csbi_csbi_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
...@@ -334,7 +451,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message { ...@@ -334,7 +451,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead. // Deprecated: Use DeleteRequest.ProtoReflect.Descriptor instead.
func (*DeleteRequest) Descriptor() ([]byte, []int) { func (*DeleteRequest) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{4} return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{5}
} }
func (x *DeleteRequest) GetTimestamp() int64 { func (x *DeleteRequest) GetTimestamp() int64 {
...@@ -344,9 +461,9 @@ func (x *DeleteRequest) GetTimestamp() int64 { ...@@ -344,9 +461,9 @@ func (x *DeleteRequest) GetTimestamp() int64 {
return 0 return 0
} }
func (x *DeleteRequest) GetDevice() []*pnd.OrchestratedNetworkingDevice { func (x *DeleteRequest) GetDid() []string {
if x != nil { if x != nil {
return x.Device return x.Did
} }
return nil return nil
} }
...@@ -363,7 +480,7 @@ type DeleteResponse struct { ...@@ -363,7 +480,7 @@ type DeleteResponse struct {
func (x *DeleteResponse) Reset() { func (x *DeleteResponse) Reset() {
*x = DeleteResponse{} *x = DeleteResponse{}
if protoimpl.UnsafeEnabled { if protoimpl.UnsafeEnabled {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[5] mi := &file_gosdn_csbi_csbi_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi) ms.StoreMessageInfo(mi)
} }
...@@ -376,7 +493,7 @@ func (x *DeleteResponse) String() string { ...@@ -376,7 +493,7 @@ func (x *DeleteResponse) String() string {
func (*DeleteResponse) ProtoMessage() {} func (*DeleteResponse) ProtoMessage() {}
func (x *DeleteResponse) ProtoReflect() protoreflect.Message { func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
mi := &file_gosdn_csbi_csbi_proto_msgTypes[5] mi := &file_gosdn_csbi_csbi_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil { if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil { if ms.LoadMessageInfo() == nil {
...@@ -389,7 +506,7 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message { ...@@ -389,7 +506,7 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
// Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead. // Deprecated: Use DeleteResponse.ProtoReflect.Descriptor instead.
func (*DeleteResponse) Descriptor() ([]byte, []int) { func (*DeleteResponse) Descriptor() ([]byte, []int) {
return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{5} return file_gosdn_csbi_csbi_proto_rawDescGZIP(), []int{6}
} }
func (x *DeleteResponse) GetTimestamp() int64 { func (x *DeleteResponse) GetTimestamp() int64 {
...@@ -411,67 +528,73 @@ var File_gosdn_csbi_csbi_proto protoreflect.FileDescriptor ...@@ -411,67 +528,73 @@ var File_gosdn_csbi_csbi_proto protoreflect.FileDescriptor
var file_gosdn_csbi_csbi_proto_rawDesc = []byte{ var file_gosdn_csbi_csbi_proto_rawDesc = []byte{
0x0a, 0x15, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x63, 0x73, 0x62, 0x69, 0x2f, 0x63, 0x73, 0x62, 0x0a, 0x15, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x63, 0x73, 0x62, 0x69, 0x2f, 0x63, 0x73, 0x62,
0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x69, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0a, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63,
0x73, 0x62, 0x69, 0x1a, 0x13, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x70, 0x6e, 0x64, 0x2f, 0x70, 0x73, 0x62, 0x69, 0x1a, 0x1f, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73,
0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2f, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x70,
0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x2f, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65,
0x6f, 0x72, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4e, 0x0a, 0x0a, 0x47, 0x65, 0x74, 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, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x08, 0x52, 0x03, 0x61,
0x6c, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69, 0x64, 0x18, 0x03, 0x20, 0x03, 0x28, 0x09, 0x52,
0x03, 0x64, 0x69, 0x64, 0x22, 0x65, 0x0a, 0x0b, 0x47, 0x65, 0x74, 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, 0x59, 0x0a, 0x0a, 0x44,
0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18,
0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d,
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x27, 0x0a,
0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x11, 0x2e, 0x67,
0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x65, 0x52,
0x05, 0x73, 0x74, 0x61, 0x74, 0x65, 0x22, 0x79, 0x0a, 0x0d, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 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, 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, 0x61, 0x6c, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x4a, 0x0a, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f,
0x28, 0x08, 0x52, 0x03, 0x61, 0x6c, 0x6c, 0x12, 0x10, 0x0a, 0x03, 0x70, 0x69, 0x64, 0x18, 0x03, 0x72, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x20,
0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x70, 0x69, 0x64, 0x22, 0x60, 0x0a, 0x0b, 0x47, 0x65, 0x74, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x52, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x33, 0x0a, 0x03, 0x70, 0x6e, 0x64, 0x18, 0x02, 0x20, 0x6e, 0x22, 0x68, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f,
0x03, 0x28, 0x0b, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x6e, 0x64, 0x2e, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
0x50, 0x72, 0x69, 0x6e, 0x63, 0x69, 0x70, 0x61, 0x6c, 0x4e, 0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d,
0x44, 0x6f, 0x6d, 0x61, 0x69, 0x6e, 0x52, 0x03, 0x70, 0x6e, 0x64, 0x22, 0x79, 0x0a, 0x0d, 0x43, 0x70, 0x12, 0x38, 0x0a, 0x0b, 0x64, 0x65, 0x70, 0x6c, 0x6f, 0x79, 0x6d, 0x65, 0x6e, 0x74, 0x73,
0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 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, 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, 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, 0x4a, 0x0a, 0x0f, 0x54, 0x72, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x10, 0x0a, 0x03, 0x64, 0x69,
0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x02, 0x20, 0x64, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x52, 0x03, 0x64, 0x69, 0x64, 0x22, 0x86, 0x01, 0x0a,
0x03, 0x28, 0x0b, 0x32, 0x20, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x74, 0x72, 0x61, 0x6e, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12,
0x73, 0x70, 0x6f, 0x72, 0x74, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x4f, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01,
0x70, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x0f, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x6f, 0x72, 0x74, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x39, 0x0a,
0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x22, 0x6f, 0x0a, 0x0e, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e,
0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3f, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x06, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x22, 0x1b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74,
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x75, 0x73, 0x12, 0x06, 0x0a, 0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52,
0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x2a, 0x50, 0x0a, 0x05, 0x53, 0x74, 0x61, 0x74, 0x65, 0x12, 0x0d,
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x0a, 0x09, 0x41, 0x4e, 0x4e, 0x4f, 0x55, 0x4e, 0x43, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a,
0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0x6e, 0x0a, 0x0d, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x05, 0x42, 0x55, 0x49, 0x4c, 0x44, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x44, 0x45, 0x50, 0x4c,
0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x6d, 0x65, 0x4f, 0x59, 0x45, 0x44, 0x10, 0x02, 0x12, 0x0b, 0x0a, 0x07, 0x52, 0x55, 0x4e, 0x4e, 0x49, 0x4e,
0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x69, 0x6d, 0x47, 0x10, 0x03, 0x12, 0x12, 0x0a, 0x0e, 0x44, 0x45, 0x43, 0x4f, 0x4d, 0x4d, 0x49, 0x53, 0x53,
0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x3f, 0x0a, 0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x49, 0x4f, 0x4e, 0x45, 0x44, 0x10, 0x04, 0x32, 0xc0, 0x01, 0x0a, 0x04, 0x63, 0x73, 0x62, 0x69,
0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x70, 0x12, 0x36, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e,
0x6e, 0x64, 0x2e, 0x4f, 0x72, 0x63, 0x68, 0x65, 0x73, 0x74, 0x72, 0x61, 0x74, 0x65, 0x64, 0x4e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a,
0x65, 0x74, 0x77, 0x6f, 0x72, 0x6b, 0x69, 0x6e, 0x67, 0x44, 0x65, 0x76, 0x69, 0x63, 0x65, 0x52, 0x17, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65, 0x74,
0x06, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x22, 0x86, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x43, 0x72, 0x65, 0x61,
0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x1c, 0x0a, 0x09, 0x74, 0x69, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e,
0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x09, 0x74, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a, 0x2e,
0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x12, 0x39, 0x0a, 0x06, 0x53, 0x74, 0x61, 0x74, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x43, 0x72, 0x65, 0x61, 0x74,
0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x21, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x3f, 0x0a, 0x06, 0x44, 0x65, 0x6c,
0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x65, 0x74, 0x65, 0x12, 0x19, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69,
0x6f, 0x6e, 0x73, 0x65, 0x2e, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52, 0x06, 0x53, 0x74, 0x61, 0x2e, 0x44, 0x65, 0x6c, 0x65, 0x74, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x1a,
0x74, 0x75, 0x73, 0x22, 0x1b, 0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x06, 0x0a, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x44, 0x65, 0x6c, 0x65,
0x02, 0x4f, 0x4b, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x52, 0x52, 0x4f, 0x52, 0x10, 0x01, 0x74, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x2a, 0x5a, 0x28, 0x63, 0x6f,
0x32, 0xc0, 0x01, 0x0a, 0x04, 0x63, 0x73, 0x62, 0x69, 0x12, 0x36, 0x0a, 0x03, 0x47, 0x65, 0x74, 0x64, 0x65, 0x2e, 0x66, 0x62, 0x69, 0x2e, 0x68, 0x2d, 0x64, 0x61, 0x2e, 0x64, 0x65, 0x2f, 0x63,
0x12, 0x16, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x2e, 0x63, 0x73, 0x62, 0x69, 0x2e, 0x47, 0x65, 0x6f, 0x63, 0x73, 0x6e, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x67, 0x6f, 0x2f, 0x67, 0x6f, 0x73, 0x64,
0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x67, 0x6f, 0x73, 0x64, 0x6e, 0x6e, 0x2f, 0x63, 0x73, 0x62, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
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, 0x42, 0x2a, 0x5a, 0x28, 0x63, 0x6f, 0x64, 0x65, 0x2e, 0x66, 0x62, 0x69, 0x2e,
0x68, 0x2d, 0x64, 0x61, 0x2e, 0x64, 0x65, 0x2f, 0x63, 0x6f, 0x63, 0x73, 0x6e, 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 ( var (
...@@ -486,32 +609,32 @@ func file_gosdn_csbi_csbi_proto_rawDescGZIP() []byte { ...@@ -486,32 +609,32 @@ func file_gosdn_csbi_csbi_proto_rawDescGZIP() []byte {
return file_gosdn_csbi_csbi_proto_rawDescData return file_gosdn_csbi_csbi_proto_rawDescData
} }
var file_gosdn_csbi_csbi_proto_enumTypes = make([]protoimpl.EnumInfo, 1) var file_gosdn_csbi_csbi_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
var file_gosdn_csbi_csbi_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_gosdn_csbi_csbi_proto_msgTypes = make([]protoimpl.MessageInfo, 7)
var file_gosdn_csbi_csbi_proto_goTypes = []interface{}{ var file_gosdn_csbi_csbi_proto_goTypes = []interface{}{
(DeleteResponseStatus)(0), // 0: gosdn.csbi.DeleteResponse.status (State)(0), // 0: gosdn.csbi.State
(*GetRequest)(nil), // 1: gosdn.csbi.GetRequest (DeleteResponseStatus)(0), // 1: gosdn.csbi.DeleteResponse.status
(*GetResponse)(nil), // 2: gosdn.csbi.GetResponse (*GetRequest)(nil), // 2: gosdn.csbi.GetRequest
(*CreateRequest)(nil), // 3: gosdn.csbi.CreateRequest (*GetResponse)(nil), // 3: gosdn.csbi.GetResponse
(*CreateResponse)(nil), // 4: gosdn.csbi.CreateResponse (*Deployment)(nil), // 4: gosdn.csbi.Deployment
(*DeleteRequest)(nil), // 5: gosdn.csbi.DeleteRequest (*CreateRequest)(nil), // 5: gosdn.csbi.CreateRequest
(*DeleteResponse)(nil), // 6: gosdn.csbi.DeleteResponse (*CreateResponse)(nil), // 6: gosdn.csbi.CreateResponse
(*pnd.PrincipalNetworkDomain)(nil), // 7: gosdn.pnd.PrincipalNetworkDomain (*DeleteRequest)(nil), // 7: gosdn.csbi.DeleteRequest
(*transport.TransportOption)(nil), // 8: gosdn.transport.TransportOption (*DeleteResponse)(nil), // 8: gosdn.csbi.DeleteResponse
(*pnd.OrchestratedNetworkingDevice)(nil), // 9: gosdn.pnd.OrchestratedNetworkingDevice (*transport.TransportOption)(nil), // 9: gosdn.transport.TransportOption
} }
var file_gosdn_csbi_csbi_proto_depIdxs = []int32{ var file_gosdn_csbi_csbi_proto_depIdxs = []int32{
7, // 0: gosdn.csbi.GetResponse.pnd:type_name -> gosdn.pnd.PrincipalNetworkDomain 4, // 0: gosdn.csbi.GetResponse.deployments:type_name -> gosdn.csbi.Deployment
8, // 1: gosdn.csbi.CreateRequest.TransportOption:type_name -> gosdn.transport.TransportOption 0, // 1: gosdn.csbi.Deployment.state:type_name -> gosdn.csbi.State
9, // 2: gosdn.csbi.CreateResponse.device:type_name -> gosdn.pnd.OrchestratedNetworkingDevice 9, // 2: gosdn.csbi.CreateRequest.TransportOption:type_name -> gosdn.transport.TransportOption
9, // 3: gosdn.csbi.DeleteRequest.device:type_name -> gosdn.pnd.OrchestratedNetworkingDevice 4, // 3: gosdn.csbi.CreateResponse.deployments:type_name -> gosdn.csbi.Deployment
0, // 4: gosdn.csbi.DeleteResponse.Status:type_name -> gosdn.csbi.DeleteResponse.status 1, // 4: gosdn.csbi.DeleteResponse.Status:type_name -> gosdn.csbi.DeleteResponse.status
1, // 5: gosdn.csbi.csbi.Get:input_type -> gosdn.csbi.GetRequest 2, // 5: gosdn.csbi.csbi.Get:input_type -> gosdn.csbi.GetRequest
3, // 6: gosdn.csbi.csbi.Create:input_type -> gosdn.csbi.CreateRequest 5, // 6: gosdn.csbi.csbi.Create:input_type -> gosdn.csbi.CreateRequest
5, // 7: gosdn.csbi.csbi.Delete:input_type -> gosdn.csbi.DeleteRequest 7, // 7: gosdn.csbi.csbi.Delete:input_type -> gosdn.csbi.DeleteRequest
2, // 8: gosdn.csbi.csbi.Get:output_type -> gosdn.csbi.GetResponse 3, // 8: gosdn.csbi.csbi.Get:output_type -> gosdn.csbi.GetResponse
4, // 9: gosdn.csbi.csbi.Create:output_type -> gosdn.csbi.CreateResponse 6, // 9: gosdn.csbi.csbi.Create:output_type -> gosdn.csbi.CreateResponse
6, // 10: gosdn.csbi.csbi.Delete:output_type -> gosdn.csbi.DeleteResponse 8, // 10: gosdn.csbi.csbi.Delete:output_type -> gosdn.csbi.DeleteResponse
8, // [8:11] is the sub-list for method output_type 8, // [8:11] is the sub-list for method output_type
5, // [5:8] is the sub-list for method input_type 5, // [5:8] is the sub-list for method input_type
5, // [5:5] is the sub-list for extension type_name 5, // [5:5] is the sub-list for extension type_name
...@@ -550,7 +673,7 @@ func file_gosdn_csbi_csbi_proto_init() { ...@@ -550,7 +673,7 @@ func file_gosdn_csbi_csbi_proto_init() {
} }
} }
file_gosdn_csbi_csbi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { file_gosdn_csbi_csbi_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateRequest); i { switch v := v.(*Deployment); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
...@@ -562,7 +685,7 @@ func file_gosdn_csbi_csbi_proto_init() { ...@@ -562,7 +685,7 @@ func file_gosdn_csbi_csbi_proto_init() {
} }
} }
file_gosdn_csbi_csbi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { file_gosdn_csbi_csbi_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*CreateResponse); i { switch v := v.(*CreateRequest); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
...@@ -574,7 +697,7 @@ func file_gosdn_csbi_csbi_proto_init() { ...@@ -574,7 +697,7 @@ func file_gosdn_csbi_csbi_proto_init() {
} }
} }
file_gosdn_csbi_csbi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { file_gosdn_csbi_csbi_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequest); i { switch v := v.(*CreateResponse); i {
case 0: case 0:
return &v.state return &v.state
case 1: case 1:
...@@ -586,6 +709,18 @@ func file_gosdn_csbi_csbi_proto_init() { ...@@ -586,6 +709,18 @@ func file_gosdn_csbi_csbi_proto_init() {
} }
} }
file_gosdn_csbi_csbi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { file_gosdn_csbi_csbi_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteRequest); 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[6].Exporter = func(v interface{}, i int) interface{} {
switch v := v.(*DeleteResponse); i { switch v := v.(*DeleteResponse); i {
case 0: case 0:
return &v.state return &v.state
...@@ -603,8 +738,8 @@ func file_gosdn_csbi_csbi_proto_init() { ...@@ -603,8 +738,8 @@ func file_gosdn_csbi_csbi_proto_init() {
File: protoimpl.DescBuilder{ File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(), GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: file_gosdn_csbi_csbi_proto_rawDesc, RawDescriptor: file_gosdn_csbi_csbi_proto_rawDesc,
NumEnums: 1, NumEnums: 2,
NumMessages: 6, NumMessages: 7,
NumExtensions: 0, NumExtensions: 0,
NumServices: 1, NumServices: 1,
}, },
......
...@@ -2,7 +2,6 @@ syntax = "proto3"; ...@@ -2,7 +2,6 @@ syntax = "proto3";
package gosdn.csbi; package gosdn.csbi;
import "gosdn/pnd/pnd.proto";
import "gosdn/transport/transport.proto"; import "gosdn/transport/transport.proto";
option go_package = "code.fbi.h-da.de/cocsn/api/go/gosdn/csbi"; option go_package = "code.fbi.h-da.de/cocsn/api/go/gosdn/csbi";
...@@ -16,12 +15,28 @@ service csbi { ...@@ -16,12 +15,28 @@ service csbi {
message GetRequest { message GetRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
bool all = 2; bool all = 2;
repeated string pid = 3; repeated string did = 3;
} }
message GetResponse { message GetResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.pnd.PrincipalNetworkDomain pnd = 2; repeated Deployment deployments = 2;
}
message Deployment {
string id = 1;
string name = 2;
State state = 3;
} }
enum State {
ANNOUNCED = 0;
BUILD = 1;
DEPLOYED = 2;
RUNNING = 3;
DECOMMISSIONED = 4;
}
message CreateRequest { message CreateRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.transport.TransportOption TransportOption = 2; repeated .gosdn.transport.TransportOption TransportOption = 2;
...@@ -29,12 +44,12 @@ message CreateRequest { ...@@ -29,12 +44,12 @@ message CreateRequest {
message CreateResponse { message CreateResponse {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.pnd.OrchestratedNetworkingDevice device = 2; repeated Deployment deployments = 2;
} }
message DeleteRequest { message DeleteRequest {
int64 timestamp = 1; // Timestamp in nanoseconds since Epoch. int64 timestamp = 1; // Timestamp in nanoseconds since Epoch.
repeated .gosdn.pnd.OrchestratedNetworkingDevice device = 2; repeated string did = 2;
} }
message DeleteResponse { message DeleteResponse {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment