Add accounts RPCs

This commit is contained in:
2024-03-18 11:14:42 +01:00
parent 5a816b2084
commit 9060b308bd
3 changed files with 161 additions and 3 deletions

View File

@ -0,0 +1,37 @@
/// This file has messages for describing environments
syntax = "proto3";
package environments;
import "google/protobuf/empty.proto";
option go_package = "git.badhouseplants.net/softplayer/softplayer-go-proto/pkg/environments";
/**
* Service for handling environments
*/
service Environments {
rpc Create(EnvironmentData) returns (EnvironmentFull) {}
rpc Update(EnvironmentFull) returns (EnvironmentFull) {}
rpc Delete(EnvironmentFull) returns (google.protobuf.Empty) {}
rpc Get(EnvironmentId) returns (EnvironmentFull) {}
rpc List(google.protobuf.Empty) returns (stream EnvironmentFull) {}
}
/**
* Represents a environment UUID only
*/
message EnvironmentId {
string id = 1; // Contour ID: UUID
}
message EnvironmentData {
string name = 1; // Environment name
Provider provider = 2; // Provide
}
enum Provider {
Hetzner = 0;
}
message EnvironmentFull {
EnvironmentId id = 1;
EnvironmentData data = 2;
}