mirror of
https://github.com/siderolabs/talos.git
synced 2025-10-17 02:21:13 +02:00
- Added common.proto to host NodeMetadata - go_package names were fixed up so imports are generated with the proper package names - fixed up build work (dockerfile) to prevent copying the previously generated go proto files. This fixes a bug where we could incorrectly copy the previously generated protobuf instead of a new one generated at an incorrect location/name/etc. Signed-off-by: Brad Beam <brad.beam@talos-systems.com>
478 lines
16 KiB
Go
478 lines
16 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: security/security.proto
|
|
|
|
package security
|
|
|
|
import (
|
|
context "context"
|
|
fmt "fmt"
|
|
math "math"
|
|
|
|
proto "github.com/golang/protobuf/proto"
|
|
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
|
|
|
|
// The request message containing the process name.
|
|
type CertificateRequest struct {
|
|
Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CertificateRequest) Reset() { *m = CertificateRequest{} }
|
|
func (m *CertificateRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*CertificateRequest) ProtoMessage() {}
|
|
func (*CertificateRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_45fd4b7e16002c2e, []int{0}
|
|
}
|
|
|
|
func (m *CertificateRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CertificateRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *CertificateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CertificateRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *CertificateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CertificateRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *CertificateRequest) XXX_Size() int {
|
|
return xxx_messageInfo_CertificateRequest.Size(m)
|
|
}
|
|
|
|
func (m *CertificateRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CertificateRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CertificateRequest proto.InternalMessageInfo
|
|
|
|
func (m *CertificateRequest) GetCsr() []byte {
|
|
if m != nil {
|
|
return m.Csr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The response message containing the requested logs.
|
|
type CertificateResponse struct {
|
|
Ca []byte `protobuf:"bytes,1,opt,name=ca,proto3" json:"ca,omitempty"`
|
|
Crt []byte `protobuf:"bytes,2,opt,name=crt,proto3" json:"crt,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *CertificateResponse) Reset() { *m = CertificateResponse{} }
|
|
func (m *CertificateResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CertificateResponse) ProtoMessage() {}
|
|
func (*CertificateResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_45fd4b7e16002c2e, []int{1}
|
|
}
|
|
|
|
func (m *CertificateResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_CertificateResponse.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *CertificateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_CertificateResponse.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *CertificateResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CertificateResponse.Merge(m, src)
|
|
}
|
|
|
|
func (m *CertificateResponse) XXX_Size() int {
|
|
return xxx_messageInfo_CertificateResponse.Size(m)
|
|
}
|
|
|
|
func (m *CertificateResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_CertificateResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_CertificateResponse proto.InternalMessageInfo
|
|
|
|
func (m *CertificateResponse) GetCa() []byte {
|
|
if m != nil {
|
|
return m.Ca
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *CertificateResponse) GetCrt() []byte {
|
|
if m != nil {
|
|
return m.Crt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The request message for reading a file on disk.
|
|
type ReadFileRequest struct {
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReadFileRequest) Reset() { *m = ReadFileRequest{} }
|
|
func (m *ReadFileRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadFileRequest) ProtoMessage() {}
|
|
func (*ReadFileRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_45fd4b7e16002c2e, []int{2}
|
|
}
|
|
|
|
func (m *ReadFileRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadFileRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *ReadFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadFileRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *ReadFileRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadFileRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *ReadFileRequest) XXX_Size() int {
|
|
return xxx_messageInfo_ReadFileRequest.Size(m)
|
|
}
|
|
|
|
func (m *ReadFileRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadFileRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadFileRequest proto.InternalMessageInfo
|
|
|
|
func (m *ReadFileRequest) GetPath() string {
|
|
if m != nil {
|
|
return m.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
// The response message for reading a file on disk.
|
|
type ReadFileResponse struct {
|
|
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *ReadFileResponse) Reset() { *m = ReadFileResponse{} }
|
|
func (m *ReadFileResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadFileResponse) ProtoMessage() {}
|
|
func (*ReadFileResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_45fd4b7e16002c2e, []int{3}
|
|
}
|
|
|
|
func (m *ReadFileResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_ReadFileResponse.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *ReadFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_ReadFileResponse.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *ReadFileResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_ReadFileResponse.Merge(m, src)
|
|
}
|
|
|
|
func (m *ReadFileResponse) XXX_Size() int {
|
|
return xxx_messageInfo_ReadFileResponse.Size(m)
|
|
}
|
|
|
|
func (m *ReadFileResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_ReadFileResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_ReadFileResponse proto.InternalMessageInfo
|
|
|
|
func (m *ReadFileResponse) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The request message containing the process name.
|
|
type WriteFileRequest struct {
|
|
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
|
|
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
|
|
Perm int32 `protobuf:"varint,3,opt,name=perm,proto3" json:"perm,omitempty"`
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *WriteFileRequest) Reset() { *m = WriteFileRequest{} }
|
|
func (m *WriteFileRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*WriteFileRequest) ProtoMessage() {}
|
|
func (*WriteFileRequest) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_45fd4b7e16002c2e, []int{4}
|
|
}
|
|
|
|
func (m *WriteFileRequest) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WriteFileRequest.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *WriteFileRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WriteFileRequest.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *WriteFileRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WriteFileRequest.Merge(m, src)
|
|
}
|
|
|
|
func (m *WriteFileRequest) XXX_Size() int {
|
|
return xxx_messageInfo_WriteFileRequest.Size(m)
|
|
}
|
|
|
|
func (m *WriteFileRequest) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WriteFileRequest.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WriteFileRequest proto.InternalMessageInfo
|
|
|
|
func (m *WriteFileRequest) GetPath() string {
|
|
if m != nil {
|
|
return m.Path
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (m *WriteFileRequest) GetData() []byte {
|
|
if m != nil {
|
|
return m.Data
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *WriteFileRequest) GetPerm() int32 {
|
|
if m != nil {
|
|
return m.Perm
|
|
}
|
|
return 0
|
|
}
|
|
|
|
// The response message containing the requested logs.
|
|
type WriteFileResponse struct {
|
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
|
XXX_unrecognized []byte `json:"-"`
|
|
XXX_sizecache int32 `json:"-"`
|
|
}
|
|
|
|
func (m *WriteFileResponse) Reset() { *m = WriteFileResponse{} }
|
|
func (m *WriteFileResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*WriteFileResponse) ProtoMessage() {}
|
|
func (*WriteFileResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_45fd4b7e16002c2e, []int{5}
|
|
}
|
|
|
|
func (m *WriteFileResponse) XXX_Unmarshal(b []byte) error {
|
|
return xxx_messageInfo_WriteFileResponse.Unmarshal(m, b)
|
|
}
|
|
|
|
func (m *WriteFileResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
|
return xxx_messageInfo_WriteFileResponse.Marshal(b, m, deterministic)
|
|
}
|
|
|
|
func (m *WriteFileResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WriteFileResponse.Merge(m, src)
|
|
}
|
|
|
|
func (m *WriteFileResponse) XXX_Size() int {
|
|
return xxx_messageInfo_WriteFileResponse.Size(m)
|
|
}
|
|
|
|
func (m *WriteFileResponse) XXX_DiscardUnknown() {
|
|
xxx_messageInfo_WriteFileResponse.DiscardUnknown(m)
|
|
}
|
|
|
|
var xxx_messageInfo_WriteFileResponse proto.InternalMessageInfo
|
|
|
|
func init() {
|
|
proto.RegisterType((*CertificateRequest)(nil), "securityapi.CertificateRequest")
|
|
proto.RegisterType((*CertificateResponse)(nil), "securityapi.CertificateResponse")
|
|
proto.RegisterType((*ReadFileRequest)(nil), "securityapi.ReadFileRequest")
|
|
proto.RegisterType((*ReadFileResponse)(nil), "securityapi.ReadFileResponse")
|
|
proto.RegisterType((*WriteFileRequest)(nil), "securityapi.WriteFileRequest")
|
|
proto.RegisterType((*WriteFileResponse)(nil), "securityapi.WriteFileResponse")
|
|
}
|
|
|
|
func init() { proto.RegisterFile("security/security.proto", fileDescriptor_45fd4b7e16002c2e) }
|
|
|
|
var fileDescriptor_45fd4b7e16002c2e = []byte{
|
|
// 318 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0x5f, 0x4b, 0xc3, 0x30,
|
|
0x14, 0xc5, 0x69, 0x37, 0x65, 0xbb, 0x13, 0xad, 0xd9, 0x83, 0x63, 0xf8, 0x67, 0x04, 0x1c, 0x03,
|
|
0xb1, 0x03, 0x7d, 0xf0, 0xd9, 0x09, 0x0a, 0x3e, 0x8c, 0x51, 0x1f, 0x04, 0xdf, 0xb2, 0x2c, 0xba,
|
|
0xc0, 0x6a, 0x62, 0x72, 0xf7, 0xb0, 0x8f, 0xed, 0x37, 0x10, 0xd3, 0xb4, 0x6b, 0x27, 0xc5, 0xb7,
|
|
0x13, 0xee, 0xef, 0x9c, 0xf6, 0x1e, 0x2e, 0x9c, 0x58, 0xc1, 0xd7, 0x46, 0xe2, 0x66, 0x9c, 0x8b,
|
|
0x58, 0x1b, 0x85, 0x8a, 0x74, 0xf2, 0x37, 0xd3, 0x92, 0x0e, 0x81, 0x3c, 0x08, 0x83, 0xf2, 0x5d,
|
|
0x72, 0x86, 0x22, 0x11, 0x5f, 0x6b, 0x61, 0x91, 0x44, 0xd0, 0xe0, 0xd6, 0xf4, 0x82, 0x41, 0x30,
|
|
0x3a, 0x48, 0x7e, 0x25, 0xbd, 0x83, 0x6e, 0x85, 0xb3, 0x5a, 0x7d, 0x5a, 0x41, 0x0e, 0x21, 0xe4,
|
|
0xcc, 0x73, 0x21, 0x67, 0xce, 0x68, 0xb0, 0x17, 0x7a, 0xa3, 0x41, 0x7a, 0x09, 0x47, 0x89, 0x60,
|
|
0x8b, 0x47, 0xb9, 0x2a, 0xd2, 0x09, 0x34, 0x35, 0xc3, 0xa5, 0xb3, 0xb5, 0x13, 0xa7, 0xe9, 0x10,
|
|
0xa2, 0x2d, 0xe6, 0xc3, 0x09, 0x34, 0x17, 0x0c, 0xf3, 0x78, 0xa7, 0xe9, 0x14, 0xa2, 0x57, 0x23,
|
|
0x51, 0xfc, 0x93, 0x57, 0x78, 0xc3, 0xad, 0xd7, 0x71, 0xc2, 0xa4, 0xbd, 0xc6, 0x20, 0x18, 0xed,
|
|
0x25, 0x4e, 0xd3, 0x2e, 0x1c, 0x97, 0xf2, 0xb2, 0x0f, 0xdf, 0x7c, 0x07, 0xd0, 0x7a, 0xf1, 0x25,
|
|
0x91, 0x19, 0x74, 0x4a, 0x9b, 0x93, 0x8b, 0xb8, 0x54, 0x5f, 0xfc, 0xb7, 0xbb, 0xfe, 0xa0, 0x1e,
|
|
0xf0, 0x7b, 0x3d, 0x41, 0x2b, 0xdf, 0x95, 0x9c, 0x56, 0xe8, 0x9d, 0xa6, 0xfa, 0x67, 0x35, 0x53,
|
|
0x1f, 0xf4, 0x0c, 0xed, 0xe2, 0xe7, 0x49, 0x95, 0xdd, 0x2d, 0xa9, 0x7f, 0x5e, 0x37, 0xce, 0xb2,
|
|
0x26, 0x53, 0x88, 0xb8, 0x4a, 0x0b, 0x28, 0x66, 0x5a, 0x4e, 0x3a, 0x79, 0x09, 0xf7, 0x5a, 0xce,
|
|
0x82, 0xb7, 0xab, 0x0f, 0x89, 0xcb, 0xf5, 0x3c, 0xe6, 0x2a, 0x1d, 0x23, 0x5b, 0x29, 0x7b, 0x6d,
|
|
0x37, 0x16, 0x45, 0x6a, 0xb3, 0xd7, 0x98, 0x69, 0x59, 0xdc, 0xda, 0x7c, 0xdf, 0x1d, 0xdb, 0xed,
|
|
0x4f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xa5, 0x79, 0xf5, 0x05, 0x87, 0x02, 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
|
|
|
|
// SecurityClient is the client API for Security service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type SecurityClient interface {
|
|
Certificate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
|
|
ReadFile(ctx context.Context, in *ReadFileRequest, opts ...grpc.CallOption) (*ReadFileResponse, error)
|
|
WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error)
|
|
}
|
|
|
|
type securityClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewSecurityClient(cc *grpc.ClientConn) SecurityClient {
|
|
return &securityClient{cc}
|
|
}
|
|
|
|
func (c *securityClient) Certificate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) {
|
|
out := new(CertificateResponse)
|
|
err := c.cc.Invoke(ctx, "/securityapi.Security/Certificate", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *securityClient) ReadFile(ctx context.Context, in *ReadFileRequest, opts ...grpc.CallOption) (*ReadFileResponse, error) {
|
|
out := new(ReadFileResponse)
|
|
err := c.cc.Invoke(ctx, "/securityapi.Security/ReadFile", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *securityClient) WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error) {
|
|
out := new(WriteFileResponse)
|
|
err := c.cc.Invoke(ctx, "/securityapi.Security/WriteFile", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// SecurityServer is the server API for Security service.
|
|
type SecurityServer interface {
|
|
Certificate(context.Context, *CertificateRequest) (*CertificateResponse, error)
|
|
ReadFile(context.Context, *ReadFileRequest) (*ReadFileResponse, error)
|
|
WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
|
|
}
|
|
|
|
func RegisterSecurityServer(s *grpc.Server, srv SecurityServer) {
|
|
s.RegisterService(&_Security_serviceDesc, srv)
|
|
}
|
|
|
|
func _Security_Certificate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(CertificateRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(SecurityServer).Certificate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/securityapi.Security/Certificate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(SecurityServer).Certificate(ctx, req.(*CertificateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Security_ReadFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(ReadFileRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(SecurityServer).ReadFile(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/securityapi.Security/ReadFile",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(SecurityServer).ReadFile(ctx, req.(*ReadFileRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Security_WriteFile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(WriteFileRequest)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(SecurityServer).WriteFile(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/securityapi.Security/WriteFile",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(SecurityServer).WriteFile(ctx, req.(*WriteFileRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Security_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "securityapi.Security",
|
|
HandlerType: (*SecurityServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Certificate",
|
|
Handler: _Security_Certificate_Handler,
|
|
},
|
|
{
|
|
MethodName: "ReadFile",
|
|
Handler: _Security_ReadFile_Handler,
|
|
},
|
|
{
|
|
MethodName: "WriteFile",
|
|
Handler: _Security_WriteFile_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "security/security.proto",
|
|
}
|