github.com/iqoqo/nomad@v0.11.3-0.20200911112621-d7021c74d101/client/logmon/proto/logmon.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: client/logmon/proto/logmon.proto 3 4 package proto 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 codes "google.golang.org/grpc/codes" 12 status "google.golang.org/grpc/status" 13 math "math" 14 ) 15 16 // Reference imports to suppress errors if they are not otherwise used. 17 var _ = proto.Marshal 18 var _ = fmt.Errorf 19 var _ = math.Inf 20 21 // This is a compile-time assertion to ensure that this generated file 22 // is compatible with the proto package it is being compiled against. 23 // A compilation error at this line likely means your copy of the 24 // proto package needs to be updated. 25 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 26 27 type StartRequest struct { 28 LogDir string `protobuf:"bytes,1,opt,name=log_dir,json=logDir,proto3" json:"log_dir,omitempty"` 29 StdoutFileName string `protobuf:"bytes,2,opt,name=stdout_file_name,json=stdoutFileName,proto3" json:"stdout_file_name,omitempty"` 30 StderrFileName string `protobuf:"bytes,3,opt,name=stderr_file_name,json=stderrFileName,proto3" json:"stderr_file_name,omitempty"` 31 MaxFiles uint32 `protobuf:"varint,4,opt,name=max_files,json=maxFiles,proto3" json:"max_files,omitempty"` 32 MaxFileSizeMb uint32 `protobuf:"varint,5,opt,name=max_file_size_mb,json=maxFileSizeMb,proto3" json:"max_file_size_mb,omitempty"` 33 StdoutFifo string `protobuf:"bytes,6,opt,name=stdout_fifo,json=stdoutFifo,proto3" json:"stdout_fifo,omitempty"` 34 StderrFifo string `protobuf:"bytes,7,opt,name=stderr_fifo,json=stderrFifo,proto3" json:"stderr_fifo,omitempty"` 35 XXX_NoUnkeyedLiteral struct{} `json:"-"` 36 XXX_unrecognized []byte `json:"-"` 37 XXX_sizecache int32 `json:"-"` 38 } 39 40 func (m *StartRequest) Reset() { *m = StartRequest{} } 41 func (m *StartRequest) String() string { return proto.CompactTextString(m) } 42 func (*StartRequest) ProtoMessage() {} 43 func (*StartRequest) Descriptor() ([]byte, []int) { 44 return fileDescriptor_be72d5e24d2ecba6, []int{0} 45 } 46 47 func (m *StartRequest) XXX_Unmarshal(b []byte) error { 48 return xxx_messageInfo_StartRequest.Unmarshal(m, b) 49 } 50 func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 51 return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic) 52 } 53 func (m *StartRequest) XXX_Merge(src proto.Message) { 54 xxx_messageInfo_StartRequest.Merge(m, src) 55 } 56 func (m *StartRequest) XXX_Size() int { 57 return xxx_messageInfo_StartRequest.Size(m) 58 } 59 func (m *StartRequest) XXX_DiscardUnknown() { 60 xxx_messageInfo_StartRequest.DiscardUnknown(m) 61 } 62 63 var xxx_messageInfo_StartRequest proto.InternalMessageInfo 64 65 func (m *StartRequest) GetLogDir() string { 66 if m != nil { 67 return m.LogDir 68 } 69 return "" 70 } 71 72 func (m *StartRequest) GetStdoutFileName() string { 73 if m != nil { 74 return m.StdoutFileName 75 } 76 return "" 77 } 78 79 func (m *StartRequest) GetStderrFileName() string { 80 if m != nil { 81 return m.StderrFileName 82 } 83 return "" 84 } 85 86 func (m *StartRequest) GetMaxFiles() uint32 { 87 if m != nil { 88 return m.MaxFiles 89 } 90 return 0 91 } 92 93 func (m *StartRequest) GetMaxFileSizeMb() uint32 { 94 if m != nil { 95 return m.MaxFileSizeMb 96 } 97 return 0 98 } 99 100 func (m *StartRequest) GetStdoutFifo() string { 101 if m != nil { 102 return m.StdoutFifo 103 } 104 return "" 105 } 106 107 func (m *StartRequest) GetStderrFifo() string { 108 if m != nil { 109 return m.StderrFifo 110 } 111 return "" 112 } 113 114 type StartResponse struct { 115 XXX_NoUnkeyedLiteral struct{} `json:"-"` 116 XXX_unrecognized []byte `json:"-"` 117 XXX_sizecache int32 `json:"-"` 118 } 119 120 func (m *StartResponse) Reset() { *m = StartResponse{} } 121 func (m *StartResponse) String() string { return proto.CompactTextString(m) } 122 func (*StartResponse) ProtoMessage() {} 123 func (*StartResponse) Descriptor() ([]byte, []int) { 124 return fileDescriptor_be72d5e24d2ecba6, []int{1} 125 } 126 127 func (m *StartResponse) XXX_Unmarshal(b []byte) error { 128 return xxx_messageInfo_StartResponse.Unmarshal(m, b) 129 } 130 func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 131 return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic) 132 } 133 func (m *StartResponse) XXX_Merge(src proto.Message) { 134 xxx_messageInfo_StartResponse.Merge(m, src) 135 } 136 func (m *StartResponse) XXX_Size() int { 137 return xxx_messageInfo_StartResponse.Size(m) 138 } 139 func (m *StartResponse) XXX_DiscardUnknown() { 140 xxx_messageInfo_StartResponse.DiscardUnknown(m) 141 } 142 143 var xxx_messageInfo_StartResponse proto.InternalMessageInfo 144 145 type StopRequest struct { 146 XXX_NoUnkeyedLiteral struct{} `json:"-"` 147 XXX_unrecognized []byte `json:"-"` 148 XXX_sizecache int32 `json:"-"` 149 } 150 151 func (m *StopRequest) Reset() { *m = StopRequest{} } 152 func (m *StopRequest) String() string { return proto.CompactTextString(m) } 153 func (*StopRequest) ProtoMessage() {} 154 func (*StopRequest) Descriptor() ([]byte, []int) { 155 return fileDescriptor_be72d5e24d2ecba6, []int{2} 156 } 157 158 func (m *StopRequest) XXX_Unmarshal(b []byte) error { 159 return xxx_messageInfo_StopRequest.Unmarshal(m, b) 160 } 161 func (m *StopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 162 return xxx_messageInfo_StopRequest.Marshal(b, m, deterministic) 163 } 164 func (m *StopRequest) XXX_Merge(src proto.Message) { 165 xxx_messageInfo_StopRequest.Merge(m, src) 166 } 167 func (m *StopRequest) XXX_Size() int { 168 return xxx_messageInfo_StopRequest.Size(m) 169 } 170 func (m *StopRequest) XXX_DiscardUnknown() { 171 xxx_messageInfo_StopRequest.DiscardUnknown(m) 172 } 173 174 var xxx_messageInfo_StopRequest proto.InternalMessageInfo 175 176 type StopResponse struct { 177 XXX_NoUnkeyedLiteral struct{} `json:"-"` 178 XXX_unrecognized []byte `json:"-"` 179 XXX_sizecache int32 `json:"-"` 180 } 181 182 func (m *StopResponse) Reset() { *m = StopResponse{} } 183 func (m *StopResponse) String() string { return proto.CompactTextString(m) } 184 func (*StopResponse) ProtoMessage() {} 185 func (*StopResponse) Descriptor() ([]byte, []int) { 186 return fileDescriptor_be72d5e24d2ecba6, []int{3} 187 } 188 189 func (m *StopResponse) XXX_Unmarshal(b []byte) error { 190 return xxx_messageInfo_StopResponse.Unmarshal(m, b) 191 } 192 func (m *StopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 193 return xxx_messageInfo_StopResponse.Marshal(b, m, deterministic) 194 } 195 func (m *StopResponse) XXX_Merge(src proto.Message) { 196 xxx_messageInfo_StopResponse.Merge(m, src) 197 } 198 func (m *StopResponse) XXX_Size() int { 199 return xxx_messageInfo_StopResponse.Size(m) 200 } 201 func (m *StopResponse) XXX_DiscardUnknown() { 202 xxx_messageInfo_StopResponse.DiscardUnknown(m) 203 } 204 205 var xxx_messageInfo_StopResponse proto.InternalMessageInfo 206 207 func init() { 208 proto.RegisterType((*StartRequest)(nil), "hashicorp.nomad.client.logmon.proto.StartRequest") 209 proto.RegisterType((*StartResponse)(nil), "hashicorp.nomad.client.logmon.proto.StartResponse") 210 proto.RegisterType((*StopRequest)(nil), "hashicorp.nomad.client.logmon.proto.StopRequest") 211 proto.RegisterType((*StopResponse)(nil), "hashicorp.nomad.client.logmon.proto.StopResponse") 212 } 213 214 func init() { 215 proto.RegisterFile("client/logmon/proto/logmon.proto", fileDescriptor_be72d5e24d2ecba6) 216 } 217 218 var fileDescriptor_be72d5e24d2ecba6 = []byte{ 219 // 320 bytes of a gzipped FileDescriptorProto 220 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x90, 0x31, 0x6f, 0xc2, 0x30, 221 0x10, 0x85, 0x1b, 0x0a, 0xa1, 0x1c, 0x0d, 0x45, 0x5e, 0x1a, 0xd1, 0xa1, 0x28, 0x1d, 0xca, 0x14, 222 0x0a, 0xfd, 0x07, 0x55, 0xd5, 0xa9, 0x74, 0x80, 0xad, 0x4b, 0x64, 0xc0, 0x09, 0x96, 0x62, 0x5f, 223 0x6a, 0x1b, 0x09, 0xb1, 0xf6, 0xd7, 0xf6, 0x5f, 0x54, 0x71, 0x4c, 0x94, 0x11, 0x26, 0xeb, 0xee, 224 0x7d, 0x4f, 0xf7, 0xfc, 0x60, 0xbc, 0xc9, 0x39, 0x93, 0x66, 0x9a, 0x63, 0x26, 0x50, 0x4e, 0x0b, 225 0x85, 0x06, 0xdd, 0x10, 0xdb, 0x81, 0x3c, 0xed, 0xa8, 0xde, 0xf1, 0x0d, 0xaa, 0x22, 0x96, 0x28, 226 0xe8, 0x36, 0xae, 0x1c, 0x71, 0x13, 0x8a, 0x7e, 0x5b, 0x70, 0xbb, 0x32, 0x54, 0x99, 0x25, 0xfb, 227 0xd9, 0x33, 0x6d, 0xc8, 0x3d, 0x74, 0x73, 0xcc, 0x92, 0x2d, 0x57, 0xa1, 0x37, 0xf6, 0x26, 0xbd, 228 0xa5, 0x9f, 0x63, 0xf6, 0xce, 0x15, 0x99, 0xc0, 0x50, 0x9b, 0x2d, 0xee, 0x4d, 0x92, 0xf2, 0x9c, 229 0x25, 0x92, 0x0a, 0x16, 0xb6, 0x2c, 0x31, 0xa8, 0xf6, 0x1f, 0x3c, 0x67, 0x5f, 0x54, 0x30, 0x47, 230 0x32, 0xa5, 0x1a, 0xe4, 0x75, 0x4d, 0x32, 0xa5, 0x6a, 0xf2, 0x01, 0x7a, 0x82, 0x1e, 0x2c, 0xa6, 231 0xc3, 0xf6, 0xd8, 0x9b, 0x04, 0xcb, 0x1b, 0x41, 0x0f, 0xa5, 0xae, 0xc9, 0x33, 0x0c, 0x4f, 0x62, 232 0xa2, 0xf9, 0x91, 0x25, 0x62, 0x1d, 0x76, 0x2c, 0x13, 0x38, 0x66, 0xc5, 0x8f, 0x6c, 0xb1, 0x26, 233 0x8f, 0xd0, 0xaf, 0x93, 0xa5, 0x18, 0xfa, 0xf6, 0x14, 0x9c, 0x42, 0xa5, 0xe8, 0x80, 0x2a, 0x50, 234 0x8a, 0x61, 0xb7, 0x06, 0x6c, 0x96, 0x14, 0xa3, 0x3b, 0x08, 0x5c, 0x09, 0xba, 0x40, 0xa9, 0x59, 235 0x14, 0x40, 0x7f, 0x65, 0xb0, 0x70, 0xa5, 0x44, 0x83, 0xb2, 0xa4, 0x72, 0xac, 0xe4, 0xf9, 0x9f, 236 0x07, 0xfe, 0x27, 0x66, 0x0b, 0x94, 0xa4, 0x80, 0x8e, 0xb5, 0x92, 0x59, 0x7c, 0x46, 0xdf, 0x71, 237 0xb3, 0xeb, 0xd1, 0xfc, 0x12, 0x8b, 0x4b, 0x76, 0x45, 0x04, 0xb4, 0xcb, 0x30, 0xe4, 0xe5, 0x4c, 238 0x77, 0xfd, 0x8d, 0xd1, 0xec, 0x02, 0xc7, 0xe9, 0xdc, 0x5b, 0xf7, 0xbb, 0x63, 0xf7, 0x6b, 0xdf, 239 0x3e, 0xaf, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0xd8, 0xb4, 0x87, 0xfc, 0x7a, 0x02, 0x00, 0x00, 240 } 241 242 // Reference imports to suppress errors if they are not otherwise used. 243 var _ context.Context 244 var _ grpc.ClientConnInterface 245 246 // This is a compile-time assertion to ensure that this generated file 247 // is compatible with the grpc package it is being compiled against. 248 const _ = grpc.SupportPackageIsVersion6 249 250 // LogMonClient is the client API for LogMon service. 251 // 252 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 253 type LogMonClient interface { 254 Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) 255 Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) 256 } 257 258 type logMonClient struct { 259 cc grpc.ClientConnInterface 260 } 261 262 func NewLogMonClient(cc grpc.ClientConnInterface) LogMonClient { 263 return &logMonClient{cc} 264 } 265 266 func (c *logMonClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) { 267 out := new(StartResponse) 268 err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Start", in, out, opts...) 269 if err != nil { 270 return nil, err 271 } 272 return out, nil 273 } 274 275 func (c *logMonClient) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) { 276 out := new(StopResponse) 277 err := c.cc.Invoke(ctx, "/hashicorp.nomad.client.logmon.proto.LogMon/Stop", in, out, opts...) 278 if err != nil { 279 return nil, err 280 } 281 return out, nil 282 } 283 284 // LogMonServer is the server API for LogMon service. 285 type LogMonServer interface { 286 Start(context.Context, *StartRequest) (*StartResponse, error) 287 Stop(context.Context, *StopRequest) (*StopResponse, error) 288 } 289 290 // UnimplementedLogMonServer can be embedded to have forward compatible implementations. 291 type UnimplementedLogMonServer struct { 292 } 293 294 func (*UnimplementedLogMonServer) Start(ctx context.Context, req *StartRequest) (*StartResponse, error) { 295 return nil, status.Errorf(codes.Unimplemented, "method Start not implemented") 296 } 297 func (*UnimplementedLogMonServer) Stop(ctx context.Context, req *StopRequest) (*StopResponse, error) { 298 return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented") 299 } 300 301 func RegisterLogMonServer(s *grpc.Server, srv LogMonServer) { 302 s.RegisterService(&_LogMon_serviceDesc, srv) 303 } 304 305 func _LogMon_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 306 in := new(StartRequest) 307 if err := dec(in); err != nil { 308 return nil, err 309 } 310 if interceptor == nil { 311 return srv.(LogMonServer).Start(ctx, in) 312 } 313 info := &grpc.UnaryServerInfo{ 314 Server: srv, 315 FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Start", 316 } 317 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 318 return srv.(LogMonServer).Start(ctx, req.(*StartRequest)) 319 } 320 return interceptor(ctx, in, info, handler) 321 } 322 323 func _LogMon_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 324 in := new(StopRequest) 325 if err := dec(in); err != nil { 326 return nil, err 327 } 328 if interceptor == nil { 329 return srv.(LogMonServer).Stop(ctx, in) 330 } 331 info := &grpc.UnaryServerInfo{ 332 Server: srv, 333 FullMethod: "/hashicorp.nomad.client.logmon.proto.LogMon/Stop", 334 } 335 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 336 return srv.(LogMonServer).Stop(ctx, req.(*StopRequest)) 337 } 338 return interceptor(ctx, in, info, handler) 339 } 340 341 var _LogMon_serviceDesc = grpc.ServiceDesc{ 342 ServiceName: "hashicorp.nomad.client.logmon.proto.LogMon", 343 HandlerType: (*LogMonServer)(nil), 344 Methods: []grpc.MethodDesc{ 345 { 346 MethodName: "Start", 347 Handler: _LogMon_Start_Handler, 348 }, 349 { 350 MethodName: "Stop", 351 Handler: _LogMon_Stop_Handler, 352 }, 353 }, 354 Streams: []grpc.StreamDesc{}, 355 Metadata: "client/logmon/proto/logmon.proto", 356 }