9e2dcbd5995c0fcf99e5fbed2643e4b4e8f1c5d7
Some checks failed
Signed-off-by: Nikolai Rodionov <allanger@badhouseplants.net>
Protocol Documentation
Table of Contents
accounts/v1/accounts_v1.proto
Protobuf definitions for the accounts service.
AccountData
| Field | Type | Label | Description |
|---|---|---|---|
| name | string | Account name | |
| string | Account email |
AccountPassword
| Field | Type | Label | Description |
|---|---|---|---|
| password | string |
IsEmailVerifiedRequest
| Field | Type | Label | Description |
|---|---|---|---|
| data | AccountData |
IsEmailVerifiedResponse
| Field | Type | Label | Description |
|---|---|---|---|
| verified | bool |
NewPasswordRequest
| Field | Type | Label | Description |
|---|---|---|---|
| data | AccountData | ||
| password | AccountPassword | ||
| code | string |
ResetPasswordRequest
| Field | Type | Label | Description |
|---|---|---|---|
| data | AccountData |
SignInRequest
| Field | Type | Label | Description |
|---|---|---|---|
| data | AccountData | ||
| password | AccountPassword |
SignUpRequest
| Field | Type | Label | Description |
|---|---|---|---|
| data | AccountData | ||
| password | AccountPassword |
AccountAuthService
Service for handling accounts that do require authentication Tokens should be sent via metadata, so the service is able to authenticate a user for a request
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| IsEmailVerified | IsEmailVerifiedRequest | IsEmailVerifiedResponse | Is email for the current account verified |
AccountsNoAuthService
Service for handling accounts that do not require authentication
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| SignUp | SignUpRequest | .google.protobuf.Empty | Create a new user |
| SignIn | SignInRequest | .google.protobuf.Empty | Sing in into an existing account |
| ResetPassword | ResetPasswordRequest | .google.protobuf.Empty | Reset the password, if it was lost |
| NewPassword | NewPasswordRequest | .google.protobuf.Empty | Set the new password after reset |
| RefreshToken | .google.protobuf.Empty | .google.protobuf.Empty | Send the refresh token request, token should be passed in the metadata. This rpc does requier auth, but it should be handled not on the middleware level, that's why it set in the NoAuth service |
applications/v1/applications_v1.proto
This file has messages for describing applications
ApplicationFull
| Field | Type | Label | Description |
|---|---|---|---|
| metadata | ApplicationMetadata | ||
| spec | ApplicationSpec | ||
| id | ApplicationId |
ApplicationId
| Field | Type | Label | Description |
|---|---|---|---|
| uuid | string |
ApplicationMetadata
| Field | Type | Label | Description |
|---|---|---|---|
| name | string | ||
| description | string |
ApplicationSpec
| Field | Type | Label | Description |
|---|---|---|---|
| application | string | ||
| version | string | ||
| environemnt_id | string | ||
| config | ApplicationSpec.ConfigEntry | repeated | |
| raw_config | string |
ApplicationSpec.ConfigEntry
| Field | Type | Label | Description |
|---|---|---|---|
| key | string | ||
| value | string |
CreateOptions
| Field | Type | Label | Description |
|---|---|---|---|
| metadata | ApplicationMetadata | ||
| spec | ApplicationSpec | ||
| owner_id | OwnerId | ||
| token | Token |
DeleteOptions
| Field | Type | Label | Description |
|---|---|---|---|
| id | ApplicationId | ||
| metadata | ApplicationMetadata | ||
| owner_id | OwnerId | ||
| token | Token |
GetOptions
| Field | Type | Label | Description |
|---|---|---|---|
| id | ApplicationId | ||
| metadata | ApplicationMetadata | ||
| owner_id | OwnerId | ||
| token | Token |
ListOptions
| Field | Type | Label | Description |
|---|---|---|---|
| metadata | ApplicationMetadata | ||
| owner_id | OwnerId | ||
| token | Token |
OwnerId
| Field | Type | Label | Description |
|---|---|---|---|
| uuid | string | UUID of a user that is creating an environemnt |
Token
| Field | Type | Label | Description |
|---|---|---|---|
| token | string | Token that should be used to create an environment |
UpdateOptions
| Field | Type | Label | Description |
|---|---|---|---|
| id | ApplicationId | ||
| metadata | ApplicationMetadata | ||
| spec | ApplicationSpec | ||
| owner_id | OwnerId | ||
| token | Token |
Applications
Service for handling applications
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Create | CreateOptions | ApplicationFull | |
| Update | UpdateOptions | ApplicationFull | |
| Delete | DeleteOptions | .google.protobuf.Empty | |
| Get | GetOptions | ApplicationFull | |
| List | ListOptions | ApplicationFull stream |
email/v1/email_v1.proto
ConfirmValidation
| Field | Type | Label | Description |
|---|---|---|---|
| user_id | string | ||
| code | int32 |
RequestValidation
| Field | Type | Label | Description |
|---|---|---|---|
| user_id | string |
EmailValidation
A service that should handle email validation
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| SendRequest | RequestValidation | .google.protobuf.Empty | |
| ValidateEmail | ConfirmValidation | .google.protobuf.Empty |
environments/v1/environments_v1.proto
This file has messages for describing environments
CreateOptions
| Field | Type | Label | Description |
|---|---|---|---|
| metadata | EnvironmentMetadata | ||
| spec | EnvironmentSpec | ||
| owner_id | OwnerId | ||
| token | Token |
DeleteOptions
| Field | Type | Label | Description |
|---|---|---|---|
| id | EnvironmentId | ||
| metadata | EnvironmentMetadata | ||
| owner_id | OwnerId | ||
| token | Token |
EnvironmentFull
| Field | Type | Label | Description |
|---|---|---|---|
| metadata | EnvironmentMetadata | ||
| spec | EnvironmentSpec | ||
| id | EnvironmentId |
EnvironmentId
| Field | Type | Label | Description |
|---|---|---|---|
| uuid | string |
EnvironmentMetadata
| Field | Type | Label | Description |
|---|---|---|---|
| name | string | A name of the environment | |
| description | string |
EnvironmentSpec
| Field | Type | Label | Description |
|---|---|---|---|
| provider | Provider | Provide | |
| kubernetes | Kubernetes | ||
| server_type | ServerType | ||
| server_location | Location | ||
| disk_size | int32 |
GetOptions
| Field | Type | Label | Description |
|---|---|---|---|
| id | EnvironmentId | ||
| metadata | EnvironmentMetadata | ||
| owner_id | OwnerId | ||
| token | Token |
ListOptions
| Field | Type | Label | Description |
|---|---|---|---|
| metadata | EnvironmentMetadata | ||
| search_string | string | ||
| owner_id | OwnerId | ||
| token | Token |
OwnerId
| Field | Type | Label | Description |
|---|---|---|---|
| uuid | string | UUID of a user that is creating an environemnt |
Token
| Field | Type | Label | Description |
|---|---|---|---|
| token | string | Token that should be used to create an environment |
UpdateOptions
| Field | Type | Label | Description |
|---|---|---|---|
| id | EnvironmentId | ||
| metadata | EnvironmentMetadata | ||
| spec | EnvironmentSpec | ||
| owner_id | OwnerId | ||
| token | Token |
Kubernetes
| Name | Number | Description |
|---|---|---|
| KUBERNETES_UNSPECIFIED | 0 | |
| KUBERNETES_K3S | 1 |
Location
| Name | Number | Description |
|---|---|---|
| LOCATION_UNSPECIFIED | 0 | |
| LOCATION_HETZNER_NUREMBERG | 1 | |
| LOCATION_HETZNER_FALKENSTEIN | 2 | |
| LOCATION_HETZNER_HELSINKI | 3 | |
| LOCATION_HETZNER_HILLSBORO | 4 | |
| LOCATION_HETZNER_ASHBURN | 5 |
Provider
Helpers and other messages
| Name | Number | Description |
|---|---|---|
| PROVIDER_UNSPECIFIED | 0 | |
| PROVIDER_HETZNER | 1 |
ServerType
| Name | Number | Description |
|---|---|---|
| SERVER_TYPE_UNSPECIFIED | 0 | |
| SERVER_TYPE_STARTER | 1 | |
| SERVER_TYPE_REGULAR | 2 | |
| SERVER_TYPE_PLUS | 3 | |
| SERVER_TYPE_PRO | 4 | |
| SERVER_TYPE_CUSTOM | 5 |
Environments
Service for handling environments
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Create | CreateOptions | EnvironmentFull | |
| Update | UpdateOptions | EnvironmentFull | |
| Delete | DeleteOptions | .google.protobuf.Empty | |
| Get | GetOptions | EnvironmentFull | |
| List | ListOptions | EnvironmentFull stream |
test/v1/test_v1.proto
PingRequest
PingResponse
PongRequest
PongResponse
TestAuthService
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Pong | PongRequest | PongResponse |
TestNoAuthService
Service for handling environments
| Method Name | Request Type | Response Type | Description |
|---|---|---|---|
| Ping | PingRequest | PingResponse |
Scalar Value Types
| .proto Type | Notes | C++ | Java | Python | Go | C# | PHP | Ruby |
|---|---|---|---|---|---|---|---|---|
| double | double | double | float | float64 | double | float | Float | |
| float | float | float | float | float32 | float | float | Float | |
| int32 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint32 instead. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| int64 | Uses variable-length encoding. Inefficient for encoding negative numbers – if your field is likely to have negative values, use sint64 instead. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| uint32 | Uses variable-length encoding. | uint32 | int | int/long | uint32 | uint | integer | Bignum or Fixnum (as required) |
| uint64 | Uses variable-length encoding. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum or Fixnum (as required) |
| sint32 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int32s. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sint64 | Uses variable-length encoding. Signed int value. These more efficiently encode negative numbers than regular int64s. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| fixed32 | Always four bytes. More efficient than uint32 if values are often greater than 2^28. | uint32 | int | int | uint32 | uint | integer | Bignum or Fixnum (as required) |
| fixed64 | Always eight bytes. More efficient than uint64 if values are often greater than 2^56. | uint64 | long | int/long | uint64 | ulong | integer/string | Bignum |
| sfixed32 | Always four bytes. | int32 | int | int | int32 | int | integer | Bignum or Fixnum (as required) |
| sfixed64 | Always eight bytes. | int64 | long | int/long | int64 | long | integer/string | Bignum |
| bool | bool | boolean | boolean | bool | bool | boolean | TrueClass/FalseClass | |
| string | A string must always contain UTF-8 encoded or 7-bit ASCII text. | string | String | str/unicode | string | string | string | String (UTF-8) |
| bytes | May contain any arbitrary sequence of bytes. | string | ByteString | str | []byte | ByteString | string | String (ASCII-8BIT) |
Description
Languages
Protocol Buffer
100%