mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-10-05 13:46:51 +08:00
23 lines
459 B
Protocol Buffer
23 lines
459 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package api;
|
|
|
|
import "google/api/annotations.proto";
|
|
import "google/protobuf/empty.proto";
|
|
|
|
service NamespaceService {
|
|
rpc ListNamespaces(google.protobuf.Empty) returns (ListNamespacesResponse) {
|
|
option (google.api.http) = {
|
|
get: "/apis/v1beta1/namespaces"
|
|
};
|
|
}
|
|
}
|
|
|
|
message ListNamespacesResponse {
|
|
int32 count = 1;
|
|
repeated Namespace namespaces = 2;
|
|
}
|
|
|
|
message Namespace {
|
|
string name = 1;
|
|
} |