-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dhctl] (feat/dhctl-server): add abort, destroy, import, converge rpc
- Loading branch information
1 parent
b6893ed
commit ab09b80
Showing
34 changed files
with
6,466 additions
and
858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// Copyright 2024 Flant JSC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
option go_package = "pb/dhctl"; | ||
|
||
package dhctl; | ||
|
||
import "google/protobuf/duration.proto"; | ||
import "common.proto"; | ||
|
||
message AbortRequest { | ||
oneof message { | ||
AbortStart start = 1; | ||
AbortContinue continue = 2; | ||
} | ||
} | ||
|
||
message AbortResponse { | ||
oneof message { | ||
AbortResult result = 1; | ||
AbortPhaseEnd phase_end = 2; | ||
Logs logs = 3; | ||
} | ||
} | ||
|
||
message AbortStart { | ||
string connection_config = 1; | ||
string init_config = 2; | ||
string cluster_config = 3; | ||
string provider_specific_cluster_config = 4; | ||
string init_resources = 5; | ||
string resources = 6; | ||
string state = 7; | ||
AbortStartOptions options = 8; | ||
} | ||
|
||
message AbortPhaseEnd { | ||
string completed_phase = 1; | ||
map<string, bytes> completed_phase_state = 2; | ||
string next_phase = 3; | ||
bool next_phase_critical = 4; | ||
} | ||
|
||
message AbortContinue { | ||
Continue continue = 1; | ||
string err = 2; | ||
} | ||
|
||
message AbortStartOptions { | ||
bool commander_mode = 1; | ||
int32 log_width = 2; | ||
google.protobuf.Duration resources_timeout = 3; | ||
google.protobuf.Duration deckhouse_timeout = 4; | ||
} | ||
|
||
message AbortResult { | ||
string state = 1; | ||
string err = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
// Copyright 2024 Flant JSC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
option go_package = "pb/dhctl"; | ||
|
||
package dhctl; | ||
|
||
import "google/protobuf/duration.proto"; | ||
import "common.proto"; | ||
|
||
message ConvergeRequest { | ||
oneof message { | ||
ConvergeStart start = 1; | ||
ConvergeContinue continue = 2; | ||
} | ||
} | ||
|
||
message ConvergeResponse { | ||
oneof message { | ||
ConvergeResult result = 1; | ||
ConvergePhaseEnd phase_end = 2; | ||
Logs logs = 3; | ||
} | ||
} | ||
|
||
message ConvergeStart { | ||
string connection_config = 1; | ||
string cluster_config = 2; | ||
string provider_specific_cluster_config = 3; | ||
string state = 4; | ||
string approve_destruction_change_id = 5; | ||
ConvergeStartOptions options = 6; | ||
} | ||
|
||
message ConvergePhaseEnd { | ||
string completed_phase = 1; | ||
map<string, bytes> completed_phase_state = 2; | ||
string next_phase = 3; | ||
bool next_phase_critical = 4; | ||
} | ||
|
||
message ConvergeContinue { | ||
Continue continue = 1; | ||
string err = 2; | ||
} | ||
|
||
message ConvergeStartOptions { | ||
bool commander_mode = 1; | ||
int32 log_width = 2; | ||
google.protobuf.Duration resources_timeout = 3; | ||
google.protobuf.Duration deckhouse_timeout = 4; | ||
} | ||
|
||
message ConvergeResult { | ||
string state = 1; | ||
string result = 2; | ||
string err = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// Copyright 2024 Flant JSC | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
syntax = "proto3"; | ||
|
||
option go_package = "pb/dhctl"; | ||
|
||
package dhctl; | ||
|
||
import "google/protobuf/duration.proto"; | ||
import "common.proto"; | ||
|
||
message DestroyRequest { | ||
oneof message { | ||
DestroyStart start = 1; | ||
DestroyContinue continue = 2; | ||
} | ||
} | ||
|
||
message DestroyResponse { | ||
oneof message { | ||
DestroyResult result = 1; | ||
DestroyPhaseEnd phase_end = 2; | ||
Logs logs = 3; | ||
} | ||
} | ||
|
||
message DestroyStart { | ||
string connection_config = 1; | ||
string init_config = 2; | ||
string cluster_config = 3; | ||
string provider_specific_cluster_config = 4; | ||
string state = 5; | ||
DestroyStartOptions options = 6; | ||
} | ||
|
||
message DestroyPhaseEnd { | ||
string completed_phase = 1; | ||
map<string, bytes> completed_phase_state = 2; | ||
string next_phase = 3; | ||
bool next_phase_critical = 4; | ||
} | ||
|
||
message DestroyContinue { | ||
Continue continue = 1; | ||
string err = 2; | ||
} | ||
|
||
message DestroyStartOptions { | ||
bool commander_mode = 1; | ||
int32 log_width = 2; | ||
google.protobuf.Duration resources_timeout = 3; | ||
google.protobuf.Duration deckhouse_timeout = 4; | ||
} | ||
|
||
message DestroyResult { | ||
string state = 1; | ||
string err = 2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.