softplayer-proto/proto/accounts/accounts_v1.proto

46 lines
876 B
Protocol Buffer
Raw Normal View History

2024-03-18 10:14:42 +00:00
/// 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
*/
2024-03-18 11:16:30 +00:00
service Accounts {
rpc SignUp (AccountWithPassword) returns (AccountFull) {}
rpc SignIn (AccountWithPassword) returns (google.protobuf.Empty) {}
2024-03-18 10:14:42 +00:00
}
/**
* Represents a environment UUID only
*/
message AccountId {
string id = 1; // Contour ID: UUID
}
message AccountPassword {
string Password = 1;
}
message AccountData {
string name = 1; // Account name
2024-03-18 11:49:55 +00:00
string email = 2; // Account email
2024-03-18 10:14:42 +00:00
}
message AccountWithPassword {
AccountData data = 1;
AccountPassword AccountPassword = 2;
}
message AccountFull {
AccountId id = 1;
AccountData data = 2;
}
2024-03-18 11:16:30 +00:00
message AccountWithKubeConfig {
}