From 5a816b20847900194ab853e9c613a8f8ee844fc9 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Mon, 18 Mar 2024 10:41:09 +0100 Subject: [PATCH] Add a provider field --- README.md | 20 +++++++++++++++++++- proto/proto/environments_v1.proto | 5 +++++ 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e1efba1..bdf8166 100644 --- a/README.md +++ b/README.md @@ -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 | @@ -68,6 +71,17 @@ Represents a environment UUID only + + + +### 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 | | diff --git a/proto/proto/environments_v1.proto b/proto/proto/environments_v1.proto index 7be0c46..07049e7 100644 --- a/proto/proto/environments_v1.proto +++ b/proto/proto/environments_v1.proto @@ -24,6 +24,11 @@ message EnvironmentId { message EnvironmentData { string name = 1; // Environment name + Provider provider = 2; // Provide +} + +enum Provider { + Hetzner = 0; } message EnvironmentFull {