Update some env related apis

This commit is contained in:
2024-04-19 16:45:26 +02:00
parent c6df6964e8
commit f4ea64a224
3 changed files with 36 additions and 6 deletions

View File

@ -11,20 +11,19 @@ service Environments {
rpc Create(EnvironmentData) returns (EnvironmentFull) {}
rpc Update(EnvironmentFull) returns (EnvironmentFull) {}
rpc Delete(EnvironmentFull) returns (google.protobuf.Empty) {}
rpc Get(EnvironmentId) returns (EnvironmentFull) {}
rpc List(google.protobuf.Empty) returns (stream EnvironmentFull) {}
rpc Get(EnvironmentName) returns (EnvironmentFull) {}
rpc List(google.protobuf.Empty) returns (stream EnvironmentName) {}
}
/**
* Represents a environment UUID only
* I don't think we need it
*/
message EnvironmentId {
string id = 1; // Contour ID: UUID
message EnvironmentName {
string name = 1; // Contour ID: UUID
}
message EnvironmentData {
string name = 1; // Environment name
Provider provider = 2; // Provide
Kubernetes kubernetes = 3;
HetznerOptions hetzner_options = 4;