Init commit

This commit is contained in:
2024-03-17 19:23:28 +01:00
commit d106158785
5 changed files with 193 additions and 0 deletions

View File

@ -0,0 +1,32 @@
/// This file has messages for describing environments
syntax = "proto3";
package environments;
import "google/protobuf/empty.proto";
option go_package = "git.badhouseplants.net/badhouseplants/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
}
message EnvironmentFull {
EnvironmentId id = 1;
EnvironmentData data = 2;
}