Add a provider field

This commit is contained in:
Nikolai Rodionov 2024-03-18 10:41:09 +01:00
parent 38a9fd3908
commit 5a816b2084
Signed by: allanger
GPG Key ID: 0AA46A90E25592AD
2 changed files with 24 additions and 1 deletions

View File

@ -8,6 +8,8 @@
- [EnvironmentFull](#environments-EnvironmentFull)
- [EnvironmentId](#environments-EnvironmentId)
- [Provider](#environments-Provider)
- [Environments](#environments-Environments)
- [Scalar Value Types](#scalar-value-types)
@ -30,6 +32,7 @@ This file has messages for describing environments
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| name | [string](#string) | | Environment name |
| provider | [Provider](#environments-Provider) | | Provide |
@ -69,6 +72,17 @@ Represents a environment UUID only
<a name="environments-Provider"></a>
### Provider
| Name | Number | Description |
| ---- | ------ | ----------- |
| Hetzner | 0 | |
@ -80,7 +94,11 @@ Service for handling environments
| Method Name | Request Type | Response Type | Description |
| ----------- | ------------ | ------------- | ------------|
| Create | [EnvironmentData](#environments-EnvironmentData) | [EnvironmentData](#environments-EnvironmentData) | Should be used to create a new environment / Depending on the implementations, it should / create a working k8s cluster / Hetzner: |
| Create | [EnvironmentData](#environments-EnvironmentData) | [EnvironmentFull](#environments-EnvironmentFull) | |
| Update | [EnvironmentFull](#environments-EnvironmentFull) | [EnvironmentFull](#environments-EnvironmentFull) | |
| Delete | [EnvironmentFull](#environments-EnvironmentFull) | [.google.protobuf.Empty](#google-protobuf-Empty) | |
| Get | [EnvironmentId](#environments-EnvironmentId) | [EnvironmentFull](#environments-EnvironmentFull) | |
| List | [.google.protobuf.Empty](#google-protobuf-Empty) | [EnvironmentFull](#environments-EnvironmentFull) stream | |

View File

@ -24,6 +24,11 @@ message EnvironmentId {
message EnvironmentData {
string name = 1; // Environment name
Provider provider = 2; // Provide
}
enum Provider {
Hetzner = 0;
}
message EnvironmentFull {