github.com/ilhicas/nomad@v0.11.8/drivers/docker/docklog/proto/docker_logger.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: drivers/docker/docklog/proto/docker_logger.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  	Endpoint             string   `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
    29  	ContainerId          string   `protobuf:"bytes,2,opt,name=container_id,json=containerId,proto3" json:"container_id,omitempty"`
    30  	StdoutFifo           string   `protobuf:"bytes,3,opt,name=stdout_fifo,json=stdoutFifo,proto3" json:"stdout_fifo,omitempty"`
    31  	StderrFifo           string   `protobuf:"bytes,4,opt,name=stderr_fifo,json=stderrFifo,proto3" json:"stderr_fifo,omitempty"`
    32  	TlsCert              string   `protobuf:"bytes,5,opt,name=tls_cert,json=tlsCert,proto3" json:"tls_cert,omitempty"`
    33  	TlsKey               string   `protobuf:"bytes,6,opt,name=tls_key,json=tlsKey,proto3" json:"tls_key,omitempty"`
    34  	TlsCa                string   `protobuf:"bytes,7,opt,name=tls_ca,json=tlsCa,proto3" json:"tls_ca,omitempty"`
    35  	Tty                  bool     `protobuf:"varint,8,opt,name=tty,proto3" json:"tty,omitempty"`
    36  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    37  	XXX_unrecognized     []byte   `json:"-"`
    38  	XXX_sizecache        int32    `json:"-"`
    39  }
    40  
    41  func (m *StartRequest) Reset()         { *m = StartRequest{} }
    42  func (m *StartRequest) String() string { return proto.CompactTextString(m) }
    43  func (*StartRequest) ProtoMessage()    {}
    44  func (*StartRequest) Descriptor() ([]byte, []int) {
    45  	return fileDescriptor_52d9a4d77fa14396, []int{0}
    46  }
    47  
    48  func (m *StartRequest) XXX_Unmarshal(b []byte) error {
    49  	return xxx_messageInfo_StartRequest.Unmarshal(m, b)
    50  }
    51  func (m *StartRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    52  	return xxx_messageInfo_StartRequest.Marshal(b, m, deterministic)
    53  }
    54  func (m *StartRequest) XXX_Merge(src proto.Message) {
    55  	xxx_messageInfo_StartRequest.Merge(m, src)
    56  }
    57  func (m *StartRequest) XXX_Size() int {
    58  	return xxx_messageInfo_StartRequest.Size(m)
    59  }
    60  func (m *StartRequest) XXX_DiscardUnknown() {
    61  	xxx_messageInfo_StartRequest.DiscardUnknown(m)
    62  }
    63  
    64  var xxx_messageInfo_StartRequest proto.InternalMessageInfo
    65  
    66  func (m *StartRequest) GetEndpoint() string {
    67  	if m != nil {
    68  		return m.Endpoint
    69  	}
    70  	return ""
    71  }
    72  
    73  func (m *StartRequest) GetContainerId() string {
    74  	if m != nil {
    75  		return m.ContainerId
    76  	}
    77  	return ""
    78  }
    79  
    80  func (m *StartRequest) GetStdoutFifo() string {
    81  	if m != nil {
    82  		return m.StdoutFifo
    83  	}
    84  	return ""
    85  }
    86  
    87  func (m *StartRequest) GetStderrFifo() string {
    88  	if m != nil {
    89  		return m.StderrFifo
    90  	}
    91  	return ""
    92  }
    93  
    94  func (m *StartRequest) GetTlsCert() string {
    95  	if m != nil {
    96  		return m.TlsCert
    97  	}
    98  	return ""
    99  }
   100  
   101  func (m *StartRequest) GetTlsKey() string {
   102  	if m != nil {
   103  		return m.TlsKey
   104  	}
   105  	return ""
   106  }
   107  
   108  func (m *StartRequest) GetTlsCa() string {
   109  	if m != nil {
   110  		return m.TlsCa
   111  	}
   112  	return ""
   113  }
   114  
   115  func (m *StartRequest) GetTty() bool {
   116  	if m != nil {
   117  		return m.Tty
   118  	}
   119  	return false
   120  }
   121  
   122  type StartResponse struct {
   123  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   124  	XXX_unrecognized     []byte   `json:"-"`
   125  	XXX_sizecache        int32    `json:"-"`
   126  }
   127  
   128  func (m *StartResponse) Reset()         { *m = StartResponse{} }
   129  func (m *StartResponse) String() string { return proto.CompactTextString(m) }
   130  func (*StartResponse) ProtoMessage()    {}
   131  func (*StartResponse) Descriptor() ([]byte, []int) {
   132  	return fileDescriptor_52d9a4d77fa14396, []int{1}
   133  }
   134  
   135  func (m *StartResponse) XXX_Unmarshal(b []byte) error {
   136  	return xxx_messageInfo_StartResponse.Unmarshal(m, b)
   137  }
   138  func (m *StartResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   139  	return xxx_messageInfo_StartResponse.Marshal(b, m, deterministic)
   140  }
   141  func (m *StartResponse) XXX_Merge(src proto.Message) {
   142  	xxx_messageInfo_StartResponse.Merge(m, src)
   143  }
   144  func (m *StartResponse) XXX_Size() int {
   145  	return xxx_messageInfo_StartResponse.Size(m)
   146  }
   147  func (m *StartResponse) XXX_DiscardUnknown() {
   148  	xxx_messageInfo_StartResponse.DiscardUnknown(m)
   149  }
   150  
   151  var xxx_messageInfo_StartResponse proto.InternalMessageInfo
   152  
   153  type StopRequest struct {
   154  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   155  	XXX_unrecognized     []byte   `json:"-"`
   156  	XXX_sizecache        int32    `json:"-"`
   157  }
   158  
   159  func (m *StopRequest) Reset()         { *m = StopRequest{} }
   160  func (m *StopRequest) String() string { return proto.CompactTextString(m) }
   161  func (*StopRequest) ProtoMessage()    {}
   162  func (*StopRequest) Descriptor() ([]byte, []int) {
   163  	return fileDescriptor_52d9a4d77fa14396, []int{2}
   164  }
   165  
   166  func (m *StopRequest) XXX_Unmarshal(b []byte) error {
   167  	return xxx_messageInfo_StopRequest.Unmarshal(m, b)
   168  }
   169  func (m *StopRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   170  	return xxx_messageInfo_StopRequest.Marshal(b, m, deterministic)
   171  }
   172  func (m *StopRequest) XXX_Merge(src proto.Message) {
   173  	xxx_messageInfo_StopRequest.Merge(m, src)
   174  }
   175  func (m *StopRequest) XXX_Size() int {
   176  	return xxx_messageInfo_StopRequest.Size(m)
   177  }
   178  func (m *StopRequest) XXX_DiscardUnknown() {
   179  	xxx_messageInfo_StopRequest.DiscardUnknown(m)
   180  }
   181  
   182  var xxx_messageInfo_StopRequest proto.InternalMessageInfo
   183  
   184  type StopResponse struct {
   185  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   186  	XXX_unrecognized     []byte   `json:"-"`
   187  	XXX_sizecache        int32    `json:"-"`
   188  }
   189  
   190  func (m *StopResponse) Reset()         { *m = StopResponse{} }
   191  func (m *StopResponse) String() string { return proto.CompactTextString(m) }
   192  func (*StopResponse) ProtoMessage()    {}
   193  func (*StopResponse) Descriptor() ([]byte, []int) {
   194  	return fileDescriptor_52d9a4d77fa14396, []int{3}
   195  }
   196  
   197  func (m *StopResponse) XXX_Unmarshal(b []byte) error {
   198  	return xxx_messageInfo_StopResponse.Unmarshal(m, b)
   199  }
   200  func (m *StopResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   201  	return xxx_messageInfo_StopResponse.Marshal(b, m, deterministic)
   202  }
   203  func (m *StopResponse) XXX_Merge(src proto.Message) {
   204  	xxx_messageInfo_StopResponse.Merge(m, src)
   205  }
   206  func (m *StopResponse) XXX_Size() int {
   207  	return xxx_messageInfo_StopResponse.Size(m)
   208  }
   209  func (m *StopResponse) XXX_DiscardUnknown() {
   210  	xxx_messageInfo_StopResponse.DiscardUnknown(m)
   211  }
   212  
   213  var xxx_messageInfo_StopResponse proto.InternalMessageInfo
   214  
   215  func init() {
   216  	proto.RegisterType((*StartRequest)(nil), "hashicorp.nomad.drivers.docker.docklog.proto.StartRequest")
   217  	proto.RegisterType((*StartResponse)(nil), "hashicorp.nomad.drivers.docker.docklog.proto.StartResponse")
   218  	proto.RegisterType((*StopRequest)(nil), "hashicorp.nomad.drivers.docker.docklog.proto.StopRequest")
   219  	proto.RegisterType((*StopResponse)(nil), "hashicorp.nomad.drivers.docker.docklog.proto.StopResponse")
   220  }
   221  
   222  func init() {
   223  	proto.RegisterFile("drivers/docker/docklog/proto/docker_logger.proto", fileDescriptor_52d9a4d77fa14396)
   224  }
   225  
   226  var fileDescriptor_52d9a4d77fa14396 = []byte{
   227  	// 341 bytes of a gzipped FileDescriptorProto
   228  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x50, 0x4f, 0x4f, 0xe2, 0x50,
   229  	0x10, 0xdf, 0x02, 0x2d, 0xdd, 0x01, 0x76, 0x37, 0x2f, 0xd9, 0x58, 0xb9, 0x88, 0x3d, 0x71, 0x30,
   230  	0xc5, 0xe8, 0x49, 0xbc, 0xa9, 0x31, 0x31, 0x7a, 0x82, 0x9b, 0x97, 0xa6, 0xb6, 0x0f, 0x68, 0xa8,
   231  	0x9d, 0x3a, 0x6f, 0x30, 0xe1, 0x64, 0xe2, 0x67, 0xf0, 0x63, 0xfa, 0x21, 0x4c, 0xa7, 0xb5, 0xf1,
   232  	0x0a, 0xa7, 0xf7, 0xe6, 0xf7, 0x2f, 0x33, 0x3f, 0x38, 0x4d, 0x28, 0x7d, 0xd5, 0x64, 0x26, 0x09,
   233  	0xc6, 0x6b, 0x4d, 0xf2, 0x64, 0xb8, 0x9c, 0x14, 0x84, 0x8c, 0x35, 0x18, 0x66, 0xb8, 0x5c, 0x6a,
   234  	0x0a, 0x04, 0x53, 0x27, 0xab, 0xc8, 0xac, 0xd2, 0x18, 0xa9, 0x08, 0x72, 0x7c, 0x8e, 0x92, 0xa0,
   235  	0x4e, 0x08, 0x2a, 0x71, 0x50, 0x27, 0x54, 0x6a, 0xff, 0xd3, 0x82, 0xfe, 0x9c, 0x23, 0xe2, 0x99,
   236  	0x7e, 0xd9, 0x68, 0xc3, 0x6a, 0x08, 0xae, 0xce, 0x93, 0x02, 0xd3, 0x9c, 0x3d, 0x6b, 0x64, 0x8d,
   237  	0x7f, 0xcf, 0x9a, 0x59, 0x1d, 0x43, 0x3f, 0xc6, 0x9c, 0xa3, 0x34, 0xd7, 0x14, 0xa6, 0x89, 0xd7,
   238  	0x12, 0xbe, 0xd7, 0x60, 0x77, 0x89, 0x3a, 0x82, 0x9e, 0xe1, 0x04, 0x37, 0x1c, 0x2e, 0xd2, 0x05,
   239  	0x7a, 0x6d, 0x51, 0x40, 0x05, 0xdd, 0xa6, 0x0b, 0xac, 0x05, 0x9a, 0xa8, 0x12, 0x74, 0x1a, 0x81,
   240  	0x26, 0x12, 0xc1, 0x21, 0xb8, 0x9c, 0x99, 0x30, 0xd6, 0xc4, 0x9e, 0x2d, 0x6c, 0x97, 0x33, 0x73,
   241  	0xad, 0x89, 0xd5, 0x01, 0x94, 0xdf, 0x70, 0xad, 0xb7, 0x9e, 0x23, 0x8c, 0xc3, 0x99, 0xb9, 0xd7,
   242  	0x5b, 0xf5, 0x1f, 0x1c, 0xf1, 0x44, 0x5e, 0x57, 0x70, 0xbb, 0x74, 0x44, 0xea, 0x1f, 0xb4, 0x99,
   243  	0xb7, 0x9e, 0x3b, 0xb2, 0xc6, 0xee, 0xac, 0xfc, 0xfa, 0x7f, 0x61, 0x50, 0x5f, 0x6b, 0x0a, 0xcc,
   244  	0x8d, 0xf6, 0x07, 0xd0, 0x9b, 0x33, 0x16, 0xf5, 0xf5, 0xfe, 0x9f, 0xb2, 0x8d, 0x72, 0xac, 0xe8,
   245  	0xb3, 0x8f, 0x16, 0xf4, 0x6f, 0xa4, 0xb7, 0x07, 0xe9, 0x58, 0xbd, 0x5b, 0x60, 0x4b, 0x82, 0x9a,
   246  	0x06, 0xbb, 0x14, 0x1d, 0xfc, 0x2c, 0x79, 0x78, 0xb9, 0x97, 0xb7, 0x5e, 0xf9, 0x97, 0x7a, 0x83,
   247  	0x4e, 0xb9, 0xa5, 0xba, 0xd8, 0x35, 0xa6, 0x39, 0x74, 0x38, 0xdd, 0xc7, 0xfa, 0xbd, 0xc0, 0x55,
   248  	0xf7, 0xd1, 0x16, 0xfc, 0xc9, 0x91, 0xe7, 0xfc, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xe9, 0x09, 0x25,
   249  	0x99, 0xa7, 0x02, 0x00, 0x00,
   250  }
   251  
   252  // Reference imports to suppress errors if they are not otherwise used.
   253  var _ context.Context
   254  var _ grpc.ClientConnInterface
   255  
   256  // This is a compile-time assertion to ensure that this generated file
   257  // is compatible with the grpc package it is being compiled against.
   258  const _ = grpc.SupportPackageIsVersion6
   259  
   260  // DockerLoggerClient is the client API for DockerLogger service.
   261  //
   262  // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
   263  type DockerLoggerClient interface {
   264  	Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error)
   265  	Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error)
   266  }
   267  
   268  type dockerLoggerClient struct {
   269  	cc grpc.ClientConnInterface
   270  }
   271  
   272  func NewDockerLoggerClient(cc grpc.ClientConnInterface) DockerLoggerClient {
   273  	return &dockerLoggerClient{cc}
   274  }
   275  
   276  func (c *dockerLoggerClient) Start(ctx context.Context, in *StartRequest, opts ...grpc.CallOption) (*StartResponse, error) {
   277  	out := new(StartResponse)
   278  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.drivers.docker.docklog.proto.DockerLogger/Start", in, out, opts...)
   279  	if err != nil {
   280  		return nil, err
   281  	}
   282  	return out, nil
   283  }
   284  
   285  func (c *dockerLoggerClient) Stop(ctx context.Context, in *StopRequest, opts ...grpc.CallOption) (*StopResponse, error) {
   286  	out := new(StopResponse)
   287  	err := c.cc.Invoke(ctx, "/hashicorp.nomad.drivers.docker.docklog.proto.DockerLogger/Stop", in, out, opts...)
   288  	if err != nil {
   289  		return nil, err
   290  	}
   291  	return out, nil
   292  }
   293  
   294  // DockerLoggerServer is the server API for DockerLogger service.
   295  type DockerLoggerServer interface {
   296  	Start(context.Context, *StartRequest) (*StartResponse, error)
   297  	Stop(context.Context, *StopRequest) (*StopResponse, error)
   298  }
   299  
   300  // UnimplementedDockerLoggerServer can be embedded to have forward compatible implementations.
   301  type UnimplementedDockerLoggerServer struct {
   302  }
   303  
   304  func (*UnimplementedDockerLoggerServer) Start(ctx context.Context, req *StartRequest) (*StartResponse, error) {
   305  	return nil, status.Errorf(codes.Unimplemented, "method Start not implemented")
   306  }
   307  func (*UnimplementedDockerLoggerServer) Stop(ctx context.Context, req *StopRequest) (*StopResponse, error) {
   308  	return nil, status.Errorf(codes.Unimplemented, "method Stop not implemented")
   309  }
   310  
   311  func RegisterDockerLoggerServer(s *grpc.Server, srv DockerLoggerServer) {
   312  	s.RegisterService(&_DockerLogger_serviceDesc, srv)
   313  }
   314  
   315  func _DockerLogger_Start_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   316  	in := new(StartRequest)
   317  	if err := dec(in); err != nil {
   318  		return nil, err
   319  	}
   320  	if interceptor == nil {
   321  		return srv.(DockerLoggerServer).Start(ctx, in)
   322  	}
   323  	info := &grpc.UnaryServerInfo{
   324  		Server:     srv,
   325  		FullMethod: "/hashicorp.nomad.drivers.docker.docklog.proto.DockerLogger/Start",
   326  	}
   327  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   328  		return srv.(DockerLoggerServer).Start(ctx, req.(*StartRequest))
   329  	}
   330  	return interceptor(ctx, in, info, handler)
   331  }
   332  
   333  func _DockerLogger_Stop_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   334  	in := new(StopRequest)
   335  	if err := dec(in); err != nil {
   336  		return nil, err
   337  	}
   338  	if interceptor == nil {
   339  		return srv.(DockerLoggerServer).Stop(ctx, in)
   340  	}
   341  	info := &grpc.UnaryServerInfo{
   342  		Server:     srv,
   343  		FullMethod: "/hashicorp.nomad.drivers.docker.docklog.proto.DockerLogger/Stop",
   344  	}
   345  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   346  		return srv.(DockerLoggerServer).Stop(ctx, req.(*StopRequest))
   347  	}
   348  	return interceptor(ctx, in, info, handler)
   349  }
   350  
   351  var _DockerLogger_serviceDesc = grpc.ServiceDesc{
   352  	ServiceName: "hashicorp.nomad.drivers.docker.docklog.proto.DockerLogger",
   353  	HandlerType: (*DockerLoggerServer)(nil),
   354  	Methods: []grpc.MethodDesc{
   355  		{
   356  			MethodName: "Start",
   357  			Handler:    _DockerLogger_Start_Handler,
   358  		},
   359  		{
   360  			MethodName: "Stop",
   361  			Handler:    _DockerLogger_Stop_Handler,
   362  		},
   363  	},
   364  	Streams:  []grpc.StreamDesc{},
   365  	Metadata: "drivers/docker/docklog/proto/docker_logger.proto",
   366  }