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