From 21bcac2583ace5b99035ca0a5ce9e22bf42e2f08 Mon Sep 17 00:00:00 2001 From: Nikolai Rodionov Date: Mon, 18 Mar 2024 12:16:30 +0100 Subject: [PATCH] Add accounts RPCs --- README.md | 18 +++++++++++++----- proto/accounts/accounts_v1.proto | 14 ++++++++------ 2 files changed, 21 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index d5b7ee3..5df53b8 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ - [AccountFull](#accounts-AccountFull) - [AccountId](#accounts-AccountId) - [AccountPassword](#accounts-AccountPassword) + - [AccountWithKubeConfig](#accounts-AccountWithKubeConfig) - [AccountWithPassword](#accounts-AccountWithPassword) - [Accounts](#accounts-Accounts) @@ -181,6 +182,16 @@ Represents a environment UUID only + + +### AccountWithKubeConfig + + + + + + + ### AccountWithPassword @@ -210,11 +221,8 @@ Service for handling environments | Method Name | Request Type | Response Type | Description | | ----------- | ------------ | ------------- | ------------| -| Create | [AccountData](#accounts-AccountData) | [AccountFull](#accounts-AccountFull) | | -| Update | [AccountFull](#accounts-AccountFull) | [AccountFull](#accounts-AccountFull) | | -| Delete | [AccountFull](#accounts-AccountFull) | [.google.protobuf.Empty](#google-protobuf-Empty) | | -| Get | [AccountId](#accounts-AccountId) | [AccountFull](#accounts-AccountFull) | | -| List | [.google.protobuf.Empty](#google-protobuf-Empty) | [AccountFull](#accounts-AccountFull) stream | | +| SignUp | [AccountWithPassword](#accounts-AccountWithPassword) | [AccountFull](#accounts-AccountFull) | | +| SignIn | [AccountWithPassword](#accounts-AccountWithPassword) | [.google.protobuf.Empty](#google-protobuf-Empty) | | diff --git a/proto/accounts/accounts_v1.proto b/proto/accounts/accounts_v1.proto index 8430274..9fe1770 100644 --- a/proto/accounts/accounts_v1.proto +++ b/proto/accounts/accounts_v1.proto @@ -7,12 +7,9 @@ option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/a /** * Service for handling environments */ -service Accounts { - rpc Create(AccountData) returns (AccountFull) {} - rpc Update(AccountFull) returns (AccountFull) {} - rpc Delete(AccountFull) returns (google.protobuf.Empty) {} - rpc Get(AccountId) returns (AccountFull) {} - rpc List(google.protobuf.Empty) returns (stream AccountFull) {} +service Accounts { + rpc SignUp (AccountWithPassword) returns (AccountFull) {} + rpc SignIn (AccountWithPassword) returns (google.protobuf.Empty) {} } /** @@ -40,3 +37,8 @@ message AccountFull { AccountId id = 1; AccountData data = 2; } + +message AccountWithKubeConfig { + +} +