Add kubeconfig to account api

This commit is contained in:
2024-03-18 14:20:24 +01:00
parent 98dcb24a8b
commit bb0752f03e
4 changed files with 68 additions and 18 deletions

View File

@ -1,15 +1,14 @@
/// This file has messages for describing environments
syntax = "proto3";
package accounts;
import "google/protobuf/empty.proto";
option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/accounts";
/**
* Service for handling environments
*/
service Accounts {
rpc SignUp (AccountWithPassword) returns (AccountFull) {}
rpc SignIn (AccountWithPassword) returns (google.protobuf.Empty) {}
rpc SignUp (AccountWithPassword) returns (AccountFullWithToken) {}
rpc SignIn (AccountWithPassword) returns (AccountFullWithToken) {}
}
/**
@ -39,7 +38,9 @@ message AccountFull {
AccountData data = 2;
}
message AccountWithKubeConfig {
message AccountFullWithToken {
AccountId id = 1;
AccountData data = 2;
string Token = 3;
}