mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-20 22:21:13 +02:00
In order for other projects to make use of our APIs, they must not reside underneath the internal directory. This moves the protobuf definitions to a top-level "api" directory and scopes them according to their domain. This change also removes generated code from the gitignore file so that users don't have to generate the code themseleves. Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
1137 lines
35 KiB
Go
1137 lines
35 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: api.proto
|
|
|
|
package proto
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
math "math"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
empty "github.com/golang/protobuf/ptypes/empty"
|
|
grpc "google.golang.org/grpc"
|
|
)
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ = proto.Marshal
|
|
var _ = fmt.Errorf
|
|
var _ = math.Inf
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the proto package it is being compiled against.
|
|
// A compilation error at this line likely means your copy of the
|
|
// proto package needs to be updated.
|
|
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
|
|
|
|
type ContainerDriver int32
|
|
|
|
const (
|
|
ContainerDriver_CONTAINERD ContainerDriver = 0
|
|
ContainerDriver_CRI ContainerDriver = 1
|
|
)
|
|
|
|
var ContainerDriver_name = map[int32]string{
|
|
0: "CONTAINERD",
|
|
1: "CRI",
|
|
}
|
|
|
|
var ContainerDriver_value = map[string]int32{
|
|
"CONTAINERD": 0,
|
|
"CRI": 1,
|
|
}
|
|
|
|
func (x ContainerDriver) String() string {
|
|
return proto.EnumName(ContainerDriver_name, int32(x))
|
|
}
|
|
|
|
func (ContainerDriver) EnumDescriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{0}
|
|
}
|
|
|
|
// The request message containing the containerd namespace.
|
|
type ProcessesRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
// driver might be default "containerd" or "cri"
|
|
Driver ContainerDriver `protobuf:"varint,2,opt,name=driver,proto3,enum=proto.ContainerDriver" json:"driver,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProcessesRequest) Reset() { *m = ProcessesRequest{} }
|
|
func (m *ProcessesRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ProcessesRequest) ProtoMessage() {}
|
|
func (*ProcessesRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{0}
|
|
}
|
|
|
|
func (m *ProcessesRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ProcessesRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *ProcessesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ProcessesRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *ProcessesRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProcessesRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *ProcessesRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ProcessesRequest.Size(m)
|
|
}
|
|
|
|
func (m *ProcessesRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProcessesRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProcessesRequest proto.InternalMessageInfo
|
|
|
|
func (m *ProcessesRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *ProcessesRequest) GetDriver() ContainerDriver {
|
|
if m != nil {
|
|
return m.Driver
|
|
}
|
|
return ContainerDriver_CONTAINERD
|
|
}
|
|
|
|
// The response message containing the requested processes.
|
|
type ProcessesReply struct {
|
|
Processes []*Process `protobuf:"bytes,1,rep,name=processes,proto3" json:"processes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProcessesReply) Reset() { *m = ProcessesReply{} }
|
|
func (m *ProcessesReply) String() string { return proto.CompactTextString(m) }
|
|
func (*ProcessesReply) ProtoMessage() {}
|
|
func (*ProcessesReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{1}
|
|
}
|
|
|
|
func (m *ProcessesReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ProcessesReply.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *ProcessesReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ProcessesReply.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *ProcessesReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProcessesReply.Merge(m, src)
|
|
}
|
|
|
|
func (m *ProcessesReply) XXX_Size() int {
|
|
return xxx_messageInfo_ProcessesReply.Size(m)
|
|
}
|
|
|
|
func (m *ProcessesReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProcessesReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProcessesReply proto.InternalMessageInfo
|
|
|
|
func (m *ProcessesReply) GetProcesses() []*Process {
|
|
if m != nil {
|
|
return m.Processes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The response message containing the requested processes.
|
|
type Process struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
Image string `protobuf:"bytes,3,opt,name=image,proto3" json:"image,omitempty"`
|
|
Pid uint32 `protobuf:"varint,4,opt,name=pid,proto3" json:"pid,omitempty"`
|
|
Status string `protobuf:"bytes,5,opt,name=status,proto3" json:"status,omitempty"`
|
|
PodId string `protobuf:"bytes,6,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
|
|
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Process) Reset() { *m = Process{} }
|
|
func (m *Process) String() string { return proto.CompactTextString(m) }
|
|
func (*Process) ProtoMessage() {}
|
|
func (*Process) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{2}
|
|
}
|
|
|
|
func (m *Process) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Process.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *Process) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Process.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *Process) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Process.Merge(m, src)
|
|
}
|
|
|
|
func (m *Process) XXX_Size() int {
|
|
return xxx_messageInfo_Process.Size(m)
|
|
}
|
|
|
|
func (m *Process) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Process.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Process proto.InternalMessageInfo
|
|
|
|
func (m *Process) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Process) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Process) GetImage() string {
|
|
if m != nil {
|
|
return m.Image
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Process) GetPid() uint32 {
|
|
if m != nil {
|
|
return m.Pid
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Process) GetStatus() string {
|
|
if m != nil {
|
|
return m.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Process) GetPodId() string {
|
|
if m != nil {
|
|
return m.PodId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Process) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// The request message containing the containerd namespace.
|
|
type StatsRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
// driver might be default "containerd" or "cri"
|
|
Driver ContainerDriver `protobuf:"varint,2,opt,name=driver,proto3,enum=proto.ContainerDriver" json:"driver,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StatsRequest) Reset() { *m = StatsRequest{} }
|
|
func (m *StatsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*StatsRequest) ProtoMessage() {}
|
|
func (*StatsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{3}
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StatsRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StatsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StatsRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_StatsRequest.Size(m)
|
|
}
|
|
|
|
func (m *StatsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StatsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StatsRequest proto.InternalMessageInfo
|
|
|
|
func (m *StatsRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *StatsRequest) GetDriver() ContainerDriver {
|
|
if m != nil {
|
|
return m.Driver
|
|
}
|
|
return ContainerDriver_CONTAINERD
|
|
}
|
|
|
|
// The response message containing the requested stats.
|
|
type StatsReply struct {
|
|
Stats []*Stat `protobuf:"bytes,1,rep,name=stats,proto3" json:"stats,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *StatsReply) Reset() { *m = StatsReply{} }
|
|
func (m *StatsReply) String() string { return proto.CompactTextString(m) }
|
|
func (*StatsReply) ProtoMessage() {}
|
|
func (*StatsReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{4}
|
|
}
|
|
|
|
func (m *StatsReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_StatsReply.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *StatsReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_StatsReply.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *StatsReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_StatsReply.Merge(m, src)
|
|
}
|
|
|
|
func (m *StatsReply) XXX_Size() int {
|
|
return xxx_messageInfo_StatsReply.Size(m)
|
|
}
|
|
|
|
func (m *StatsReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_StatsReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_StatsReply proto.InternalMessageInfo
|
|
|
|
func (m *StatsReply) GetStats() []*Stat {
|
|
if m != nil {
|
|
return m.Stats
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The response message containing the requested stat.
|
|
type Stat struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
MemoryUsage uint64 `protobuf:"varint,4,opt,name=memory_usage,json=memoryUsage,proto3" json:"memory_usage,omitempty"`
|
|
CpuUsage uint64 `protobuf:"varint,5,opt,name=cpu_usage,json=cpuUsage,proto3" json:"cpu_usage,omitempty"`
|
|
PodId string `protobuf:"bytes,6,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
|
|
Name string `protobuf:"bytes,7,opt,name=name,proto3" json:"name,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Stat) Reset() { *m = Stat{} }
|
|
func (m *Stat) String() string { return proto.CompactTextString(m) }
|
|
func (*Stat) ProtoMessage() {}
|
|
func (*Stat) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{5}
|
|
}
|
|
|
|
func (m *Stat) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Stat.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *Stat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Stat.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *Stat) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Stat.Merge(m, src)
|
|
}
|
|
|
|
func (m *Stat) XXX_Size() int {
|
|
return xxx_messageInfo_Stat.Size(m)
|
|
}
|
|
|
|
func (m *Stat) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Stat.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Stat proto.InternalMessageInfo
|
|
|
|
func (m *Stat) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Stat) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Stat) GetMemoryUsage() uint64 {
|
|
if m != nil {
|
|
return m.MemoryUsage
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Stat) GetCpuUsage() uint64 {
|
|
if m != nil {
|
|
return m.CpuUsage
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (m *Stat) GetPodId() string {
|
|
if m != nil {
|
|
return m.PodId
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *Stat) GetName() string {
|
|
if m != nil {
|
|
return m.Name
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// The request message containing the process to restart.
|
|
type RestartRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
// driver might be default "containerd" or "cri"
|
|
Driver ContainerDriver `protobuf:"varint,3,opt,name=driver,proto3,enum=proto.ContainerDriver" json:"driver,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RestartRequest) Reset() { *m = RestartRequest{} }
|
|
func (m *RestartRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*RestartRequest) ProtoMessage() {}
|
|
func (*RestartRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{6}
|
|
}
|
|
|
|
func (m *RestartRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RestartRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *RestartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RestartRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *RestartRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RestartRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *RestartRequest) XXX_Size() int {
|
|
return xxx_messageInfo_RestartRequest.Size(m)
|
|
}
|
|
|
|
func (m *RestartRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RestartRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RestartRequest proto.InternalMessageInfo
|
|
|
|
func (m *RestartRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RestartRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *RestartRequest) GetDriver() ContainerDriver {
|
|
if m != nil {
|
|
return m.Driver
|
|
}
|
|
return ContainerDriver_CONTAINERD
|
|
}
|
|
|
|
// The response message containing the restart status.
|
|
type RestartReply struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *RestartReply) Reset() { *m = RestartReply{} }
|
|
func (m *RestartReply) String() string { return proto.CompactTextString(m) }
|
|
func (*RestartReply) ProtoMessage() {}
|
|
func (*RestartReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{7}
|
|
}
|
|
|
|
func (m *RestartReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_RestartReply.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *RestartReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_RestartReply.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *RestartReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_RestartReply.Merge(m, src)
|
|
}
|
|
|
|
func (m *RestartReply) XXX_Size() int {
|
|
return xxx_messageInfo_RestartReply.Size(m)
|
|
}
|
|
|
|
func (m *RestartReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_RestartReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_RestartReply proto.InternalMessageInfo
|
|
|
|
// The request message containing the process name.
|
|
type LogsRequest struct {
|
|
Namespace string `protobuf:"bytes,1,opt,name=namespace,proto3" json:"namespace,omitempty"`
|
|
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
|
|
// driver might be default "containerd" or "cri"
|
|
Driver ContainerDriver `protobuf:"varint,3,opt,name=driver,proto3,enum=proto.ContainerDriver" json:"driver,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *LogsRequest) Reset() { *m = LogsRequest{} }
|
|
func (m *LogsRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*LogsRequest) ProtoMessage() {}
|
|
func (*LogsRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{8}
|
|
}
|
|
|
|
func (m *LogsRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_LogsRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *LogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_LogsRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *LogsRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_LogsRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *LogsRequest) XXX_Size() int {
|
|
return xxx_messageInfo_LogsRequest.Size(m)
|
|
}
|
|
|
|
func (m *LogsRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_LogsRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_LogsRequest proto.InternalMessageInfo
|
|
|
|
func (m *LogsRequest) GetNamespace() string {
|
|
if m != nil {
|
|
return m.Namespace
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LogsRequest) GetId() string {
|
|
if m != nil {
|
|
return m.Id
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *LogsRequest) GetDriver() ContainerDriver {
|
|
if m != nil {
|
|
return m.Driver
|
|
}
|
|
return ContainerDriver_CONTAINERD
|
|
}
|
|
|
|
// The response message containing the requested logs.
|
|
type Data struct {
|
|
Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *Data) Reset() { *m = Data{} }
|
|
func (m *Data) String() string { return proto.CompactTextString(m) }
|
|
func (*Data) ProtoMessage() {}
|
|
func (*Data) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{9}
|
|
}
|
|
|
|
func (m *Data) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_Data.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *Data) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_Data.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *Data) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_Data.Merge(m, src)
|
|
}
|
|
|
|
func (m *Data) XXX_Size() int {
|
|
return xxx_messageInfo_Data.Size(m)
|
|
}
|
|
|
|
func (m *Data) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_Data.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_Data proto.InternalMessageInfo
|
|
|
|
func (m *Data) GetBytes() []byte {
|
|
if m != nil {
|
|
return m.Bytes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type TopRequest struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TopRequest) Reset() { *m = TopRequest{} }
|
|
func (m *TopRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*TopRequest) ProtoMessage() {}
|
|
func (*TopRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{10}
|
|
}
|
|
|
|
func (m *TopRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TopRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *TopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TopRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *TopRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TopRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *TopRequest) XXX_Size() int {
|
|
return xxx_messageInfo_TopRequest.Size(m)
|
|
}
|
|
|
|
func (m *TopRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TopRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TopRequest proto.InternalMessageInfo
|
|
|
|
type TopReply struct {
|
|
ProcessList *ProcessList `protobuf:"bytes,1,opt,name=process_list,json=processList,proto3" json:"process_list,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *TopReply) Reset() { *m = TopReply{} }
|
|
func (m *TopReply) String() string { return proto.CompactTextString(m) }
|
|
func (*TopReply) ProtoMessage() {}
|
|
func (*TopReply) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{11}
|
|
}
|
|
|
|
func (m *TopReply) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_TopReply.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *TopReply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_TopReply.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *TopReply) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_TopReply.Merge(m, src)
|
|
}
|
|
|
|
func (m *TopReply) XXX_Size() int {
|
|
return xxx_messageInfo_TopReply.Size(m)
|
|
}
|
|
|
|
func (m *TopReply) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_TopReply.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_TopReply proto.InternalMessageInfo
|
|
|
|
func (m *TopReply) GetProcessList() *ProcessList {
|
|
if m != nil {
|
|
return m.ProcessList
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ProcessList struct {
|
|
Bytes []byte `protobuf:"bytes,1,opt,name=bytes,proto3" json:"bytes,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ProcessList) Reset() { *m = ProcessList{} }
|
|
func (m *ProcessList) String() string { return proto.CompactTextString(m) }
|
|
func (*ProcessList) ProtoMessage() {}
|
|
func (*ProcessList) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_00212fb1f9d3bf1c, []int{12}
|
|
}
|
|
|
|
func (m *ProcessList) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ProcessList.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *ProcessList) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ProcessList.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *ProcessList) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ProcessList.Merge(m, src)
|
|
}
|
|
|
|
func (m *ProcessList) XXX_Size() int {
|
|
return xxx_messageInfo_ProcessList.Size(m)
|
|
}
|
|
|
|
func (m *ProcessList) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ProcessList.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ProcessList proto.InternalMessageInfo
|
|
|
|
func (m *ProcessList) GetBytes() []byte {
|
|
if m != nil {
|
|
return m.Bytes
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func init() {
|
|
proto.RegisterEnum("proto.ContainerDriver", ContainerDriver_name, ContainerDriver_value)
|
|
proto.RegisterType((*ProcessesRequest)(nil), "proto.ProcessesRequest")
|
|
proto.RegisterType((*ProcessesReply)(nil), "proto.ProcessesReply")
|
|
proto.RegisterType((*Process)(nil), "proto.Process")
|
|
proto.RegisterType((*StatsRequest)(nil), "proto.StatsRequest")
|
|
proto.RegisterType((*StatsReply)(nil), "proto.StatsReply")
|
|
proto.RegisterType((*Stat)(nil), "proto.Stat")
|
|
proto.RegisterType((*RestartRequest)(nil), "proto.RestartRequest")
|
|
proto.RegisterType((*RestartReply)(nil), "proto.RestartReply")
|
|
proto.RegisterType((*LogsRequest)(nil), "proto.LogsRequest")
|
|
proto.RegisterType((*Data)(nil), "proto.Data")
|
|
proto.RegisterType((*TopRequest)(nil), "proto.TopRequest")
|
|
proto.RegisterType((*TopReply)(nil), "proto.TopReply")
|
|
proto.RegisterType((*ProcessList)(nil), "proto.ProcessList")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
|
|
|
|
var fileDescriptor_00212fb1f9d3bf1c = []byte{
|
|
// 619 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x54, 0x4d, 0x6f, 0x13, 0x3d,
|
|
0x10, 0x7e, 0xb7, 0x9b, 0x4d, 0xba, 0xb3, 0x79, 0xb7, 0xc1, 0xa5, 0x65, 0x95, 0x56, 0x28, 0x5d,
|
|
0x2e, 0xa1, 0xaa, 0x36, 0x10, 0xc4, 0x09, 0x09, 0xa9, 0x6d, 0x7a, 0xa8, 0xa8, 0xda, 0xca, 0x2d,
|
|
0x1c, 0x10, 0x52, 0xd9, 0x64, 0xdd, 0xc8, 0x22, 0x1b, 0x9b, 0xb5, 0x17, 0x29, 0x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87,
|
|
0x9c, 0x5e, 0xaa, 0xdd, 0xa5, 0xf3, 0xde, 0x8c, 0xfe, 0x7e, 0x55, 0x2f, 0x2f, 0x7e, 0x04, 0x00,
|
|
0x00, 0xff, 0xff, 0x1e, 0xa4, 0xd5, 0x5d, 0x15, 0x06, 0x00, 0x00,
|
|
}
|
|
|
|
// Reference imports to suppress errors if they are not otherwise used.
|
|
var _ context.Context
|
|
var _ grpc.ClientConn
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
const _ = grpc.SupportPackageIsVersion4
|
|
|
|
// OSDClient is the client API for OSD service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type OSDClient interface {
|
|
Dmesg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Data, error)
|
|
Kubeconfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Data, error)
|
|
Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (OSD_LogsClient, error)
|
|
Processes(ctx context.Context, in *ProcessesRequest, opts ...grpc.CallOption) (*ProcessesReply, error)
|
|
Restart(ctx context.Context, in *RestartRequest, opts ...grpc.CallOption) (*RestartReply, error)
|
|
Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error)
|
|
Top(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*TopReply, error)
|
|
Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Data, error)
|
|
}
|
|
|
|
type oSDClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewOSDClient(cc *grpc.ClientConn) OSDClient {
|
|
return &oSDClient{cc}
|
|
}
|
|
|
|
func (c *oSDClient) Dmesg(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Data, error) {
|
|
out := new(Data)
|
|
err := c.cc.Invoke(ctx, "/proto.OSD/Dmesg", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *oSDClient) Kubeconfig(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Data, error) {
|
|
out := new(Data)
|
|
err := c.cc.Invoke(ctx, "/proto.OSD/Kubeconfig", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *oSDClient) Logs(ctx context.Context, in *LogsRequest, opts ...grpc.CallOption) (OSD_LogsClient, error) {
|
|
stream, err := c.cc.NewStream(ctx, &_OSD_serviceDesc.Streams[0], "/proto.OSD/Logs", opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
x := &oSDLogsClient{stream}
|
|
if err := x.ClientStream.SendMsg(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if err := x.ClientStream.CloseSend(); err != nil {
|
|
return nil, err
|
|
}
|
|
return x, nil
|
|
}
|
|
|
|
type OSD_LogsClient interface {
|
|
Recv() (*Data, error)
|
|
grpc.ClientStream
|
|
}
|
|
|
|
type oSDLogsClient struct {
|
|
grpc.ClientStream
|
|
}
|
|
|
|
func (x *oSDLogsClient) Recv() (*Data, error) {
|
|
m := new(Data)
|
|
if err := x.ClientStream.RecvMsg(m); err != nil {
|
|
return nil, err
|
|
}
|
|
return m, nil
|
|
}
|
|
|
|
func (c *oSDClient) Processes(ctx context.Context, in *ProcessesRequest, opts ...grpc.CallOption) (*ProcessesReply, error) {
|
|
out := new(ProcessesReply)
|
|
err := c.cc.Invoke(ctx, "/proto.OSD/Processes", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *oSDClient) Restart(ctx context.Context, in *RestartRequest, opts ...grpc.CallOption) (*RestartReply, error) {
|
|
out := new(RestartReply)
|
|
err := c.cc.Invoke(ctx, "/proto.OSD/Restart", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *oSDClient) Stats(ctx context.Context, in *StatsRequest, opts ...grpc.CallOption) (*StatsReply, error) {
|
|
out := new(StatsReply)
|
|
err := c.cc.Invoke(ctx, "/proto.OSD/Stats", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *oSDClient) Top(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*TopReply, error) {
|
|
out := new(TopReply)
|
|
err := c.cc.Invoke(ctx, "/proto.OSD/Top", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *oSDClient) Version(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*Data, error) {
|
|
out := new(Data)
|
|
err := c.cc.Invoke(ctx, "/proto.OSD/Version", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// OSDServer is the server API for OSD service.
|
|
type OSDServer interface {
|
|
Dmesg(context.Context, *empty.Empty) (*Data, error)
|
|
Kubeconfig(context.Context, *empty.Empty) (*Data, error)
|
|
Logs(*LogsRequest, OSD_LogsServer) error
|
|
Processes(context.Context, *ProcessesRequest) (*ProcessesReply, error)
|
|
Restart(context.Context, *RestartRequest) (*RestartReply, error)
|
|
Stats(context.Context, *StatsRequest) (*StatsReply, error)
|
|
Top(context.Context, *empty.Empty) (*TopReply, error)
|
|
Version(context.Context, *empty.Empty) (*Data, error)
|
|
}
|
|
|
|
func RegisterOSDServer(s *grpc.Server, srv OSDServer) {
|
|
s.RegisterService(&_OSD_serviceDesc, srv)
|
|
}
|
|
|
|
func _OSD_Dmesg_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OSDServer).Dmesg(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.OSD/Dmesg",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OSDServer).Dmesg(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _OSD_Kubeconfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OSDServer).Kubeconfig(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.OSD/Kubeconfig",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OSDServer).Kubeconfig(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _OSD_Logs_Handler(srv interface{}, stream grpc.ServerStream) error {
|
|
m := new(LogsRequest)
|
|
if err := stream.RecvMsg(m); err != nil {
|
|
return err
|
|
}
|
|
return srv.(OSDServer).Logs(m, &oSDLogsServer{stream})
|
|
}
|
|
|
|
type OSD_LogsServer interface {
|
|
Send(*Data) error
|
|
grpc.ServerStream
|
|
}
|
|
|
|
type oSDLogsServer struct {
|
|
grpc.ServerStream
|
|
}
|
|
|
|
func (x *oSDLogsServer) Send(m *Data) error {
|
|
return x.ServerStream.SendMsg(m)
|
|
}
|
|
|
|
func _OSD_Processes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ProcessesRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OSDServer).Processes(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.OSD/Processes",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OSDServer).Processes(ctx, req.(*ProcessesRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _OSD_Restart_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(RestartRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OSDServer).Restart(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.OSD/Restart",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OSDServer).Restart(ctx, req.(*RestartRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _OSD_Stats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(StatsRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OSDServer).Stats(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.OSD/Stats",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OSDServer).Stats(ctx, req.(*StatsRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _OSD_Top_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OSDServer).Top(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.OSD/Top",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OSDServer).Top(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _OSD_Version_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(empty.Empty)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(OSDServer).Version(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.OSD/Version",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(OSDServer).Version(ctx, req.(*empty.Empty))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _OSD_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "proto.OSD",
|
|
HandlerType: (*OSDServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Dmesg",
|
|
Handler: _OSD_Dmesg_Handler,
|
|
},
|
|
{
|
|
MethodName: "Kubeconfig",
|
|
Handler: _OSD_Kubeconfig_Handler,
|
|
},
|
|
{
|
|
MethodName: "Processes",
|
|
Handler: _OSD_Processes_Handler,
|
|
},
|
|
{
|
|
MethodName: "Restart",
|
|
Handler: _OSD_Restart_Handler,
|
|
},
|
|
{
|
|
MethodName: "Stats",
|
|
Handler: _OSD_Stats_Handler,
|
|
},
|
|
{
|
|
MethodName: "Top",
|
|
Handler: _OSD_Top_Handler,
|
|
},
|
|
{
|
|
MethodName: "Version",
|
|
Handler: _OSD_Version_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{
|
|
{
|
|
StreamName: "Logs",
|
|
Handler: _OSD_Logs_Handler,
|
|
ServerStreams: true,
|
|
},
|
|
},
|
|
Metadata: "api.proto",
|
|
}
|