Develop
Compare changes
- Malte Bauch authored
- This commit is a interim solution that allows to create new devices with the `--type plugin` flag. The orchestrator will only request capabilities of the provided device and build/return all the necessary files. Therefore the api has been adjusted to allow to 'only' create gostructs and do not fire up a whole csbi. - Additionaly the issue #176 has been addressed and the bug while creating multiple cSBIs has been fixed. Appending to the `.Methods` string of the global `SouthboundStruct` was the root cause for this bug. Creating a copy of `SouthboundStruct` and using the copy in the process fixes this issue. ## Related Issue <!--- This project only accepts merge requests related to open issues --> <!--- If suggesting a new feature or change, please discuss it in an issue first --> <!--- If fixing a bug, there should be an issue describing it with steps to reproduce --> <!--- Please link to the issue here: --> #175 , #176 Closes #175
+ 211
− 138
@@ -125,7 +125,7 @@ func (x DeleteResponse_Status) Number() protoreflect.EnumNumber {
@@ -125,7 +125,7 @@ func (x DeleteResponse_Status) Number() protoreflect.EnumNumber {
@@ -309,6 +309,61 @@ func (x *GetRequest) GetDid() []string {
@@ -309,6 +309,61 @@ func (x *GetRequest) GetDid() []string {
@@ -321,7 +376,7 @@ type GetResponse struct {
@@ -321,7 +376,7 @@ type GetResponse struct {
@@ -334,7 +389,7 @@ func (x *GetResponse) String() string {
@@ -334,7 +389,7 @@ func (x *GetResponse) String() string {
@@ -347,7 +402,7 @@ func (x *GetResponse) ProtoReflect() protoreflect.Message {
@@ -347,7 +402,7 @@ func (x *GetResponse) ProtoReflect() protoreflect.Message {
@@ -377,7 +432,7 @@ type Deployment struct {
@@ -377,7 +432,7 @@ type Deployment struct {
@@ -390,7 +445,7 @@ func (x *Deployment) String() string {
@@ -390,7 +445,7 @@ func (x *Deployment) String() string {
@@ -403,7 +458,7 @@ func (x *Deployment) ProtoReflect() protoreflect.Message {
@@ -403,7 +458,7 @@ func (x *Deployment) ProtoReflect() protoreflect.Message {
@@ -439,7 +494,7 @@ type CreateRequest struct {
@@ -439,7 +494,7 @@ type CreateRequest struct {
@@ -452,7 +507,7 @@ func (x *CreateRequest) String() string {
@@ -452,7 +507,7 @@ func (x *CreateRequest) String() string {
@@ -465,7 +520,7 @@ func (x *CreateRequest) ProtoReflect() protoreflect.Message {
@@ -465,7 +520,7 @@ func (x *CreateRequest) ProtoReflect() protoreflect.Message {
@@ -494,7 +549,7 @@ type CreateResponse struct {
@@ -494,7 +549,7 @@ type CreateResponse struct {
@@ -507,7 +562,7 @@ func (x *CreateResponse) String() string {
@@ -507,7 +562,7 @@ func (x *CreateResponse) String() string {
@@ -520,7 +575,7 @@ func (x *CreateResponse) ProtoReflect() protoreflect.Message {
@@ -520,7 +575,7 @@ func (x *CreateResponse) ProtoReflect() protoreflect.Message {
@@ -548,7 +603,7 @@ type Payload struct {
@@ -548,7 +603,7 @@ type Payload struct {
@@ -561,7 +616,7 @@ func (x *Payload) String() string {
@@ -561,7 +616,7 @@ func (x *Payload) String() string {
@@ -574,7 +629,7 @@ func (x *Payload) ProtoReflect() protoreflect.Message {
@@ -574,7 +629,7 @@ func (x *Payload) ProtoReflect() protoreflect.Message {
@@ -596,7 +651,7 @@ type DeleteRequest struct {
@@ -596,7 +651,7 @@ type DeleteRequest struct {
@@ -609,7 +664,7 @@ func (x *DeleteRequest) String() string {
@@ -609,7 +664,7 @@ func (x *DeleteRequest) String() string {
@@ -622,7 +677,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
@@ -622,7 +677,7 @@ func (x *DeleteRequest) ProtoReflect() protoreflect.Message {
@@ -651,7 +706,7 @@ type DeleteResponse struct {
@@ -651,7 +706,7 @@ type DeleteResponse struct {
@@ -664,7 +719,7 @@ func (x *DeleteResponse) String() string {
@@ -664,7 +719,7 @@ func (x *DeleteResponse) String() string {
@@ -677,7 +732,7 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
@@ -677,7 +732,7 @@ func (x *DeleteResponse) ProtoReflect() protoreflect.Message {
@@ -718,90 +773,95 @@ var file_gosdn_csbi_csbi_proto_rawDesc = []byte{
@@ -718,90 +773,95 @@ var file_gosdn_csbi_csbi_proto_rawDesc = []byte{
@@ -817,43 +877,44 @@ func file_gosdn_csbi_csbi_proto_rawDescGZIP() []byte {
@@ -817,43 +877,44 @@ func file_gosdn_csbi_csbi_proto_rawDescGZIP() []byte {
@@ -904,7 +965,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -904,7 +965,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -916,7 +977,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -916,7 +977,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -928,7 +989,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -928,7 +989,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -940,7 +1001,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -940,7 +1001,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -952,7 +1013,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -952,7 +1013,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -964,7 +1025,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -964,7 +1025,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -976,6 +1037,18 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -976,6 +1037,18 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -994,7 +1067,7 @@ func file_gosdn_csbi_csbi_proto_init() {
@@ -994,7 +1067,7 @@ func file_gosdn_csbi_csbi_proto_init() {