mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-27 01:21:11 +02:00
321 lines
12 KiB
Go
321 lines
12 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// source: api.proto
|
|
|
|
package proto
|
|
|
|
import proto "github.com/golang/protobuf/proto"
|
|
import fmt "fmt"
|
|
import math "math"
|
|
|
|
import (
|
|
context "golang.org/x/net/context"
|
|
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.ProtoPackageIsVersion2 // 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_api_6d48f67e45b68bdd, []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 (dst *CertificateRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CertificateRequest.Merge(dst, 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 {
|
|
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 *CertificateResponse) Reset() { *m = CertificateResponse{} }
|
|
func (m *CertificateResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*CertificateResponse) ProtoMessage() {}
|
|
func (*CertificateResponse) Descriptor() ([]byte, []int) {
|
|
return fileDescriptor_api_6d48f67e45b68bdd, []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 (dst *CertificateResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_CertificateResponse.Merge(dst, 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) GetBytes() []byte {
|
|
if m != nil {
|
|
return m.Bytes
|
|
}
|
|
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_api_6d48f67e45b68bdd, []int{2}
|
|
}
|
|
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 (dst *WriteFileRequest) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WriteFileRequest.Merge(dst, 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_api_6d48f67e45b68bdd, []int{3}
|
|
}
|
|
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 (dst *WriteFileResponse) XXX_Merge(src proto.Message) {
|
|
xxx_messageInfo_WriteFileResponse.Merge(dst, 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), "proto.CertificateRequest")
|
|
proto.RegisterType((*CertificateResponse)(nil), "proto.CertificateResponse")
|
|
proto.RegisterType((*WriteFileRequest)(nil), "proto.WriteFileRequest")
|
|
proto.RegisterType((*WriteFileResponse)(nil), "proto.WriteFileResponse")
|
|
}
|
|
|
|
// 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
|
|
|
|
// TrustdClient is the client API for Trustd service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
|
type TrustdClient interface {
|
|
Certificate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error)
|
|
WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error)
|
|
}
|
|
|
|
type trustdClient struct {
|
|
cc *grpc.ClientConn
|
|
}
|
|
|
|
func NewTrustdClient(cc *grpc.ClientConn) TrustdClient {
|
|
return &trustdClient{cc}
|
|
}
|
|
|
|
func (c *trustdClient) Certificate(ctx context.Context, in *CertificateRequest, opts ...grpc.CallOption) (*CertificateResponse, error) {
|
|
out := new(CertificateResponse)
|
|
err := c.cc.Invoke(ctx, "/proto.Trustd/Certificate", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *trustdClient) WriteFile(ctx context.Context, in *WriteFileRequest, opts ...grpc.CallOption) (*WriteFileResponse, error) {
|
|
out := new(WriteFileResponse)
|
|
err := c.cc.Invoke(ctx, "/proto.Trustd/WriteFile", in, out, opts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// TrustdServer is the server API for Trustd service.
|
|
type TrustdServer interface {
|
|
Certificate(context.Context, *CertificateRequest) (*CertificateResponse, error)
|
|
WriteFile(context.Context, *WriteFileRequest) (*WriteFileResponse, error)
|
|
}
|
|
|
|
func RegisterTrustdServer(s *grpc.Server, srv TrustdServer) {
|
|
s.RegisterService(&_Trustd_serviceDesc, srv)
|
|
}
|
|
|
|
func _Trustd_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.(TrustdServer).Certificate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Trustd/Certificate",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TrustdServer).Certificate(ctx, req.(*CertificateRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _Trustd_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.(TrustdServer).WriteFile(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: "/proto.Trustd/WriteFile",
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(TrustdServer).WriteFile(ctx, req.(*WriteFileRequest))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
var _Trustd_serviceDesc = grpc.ServiceDesc{
|
|
ServiceName: "proto.Trustd",
|
|
HandlerType: (*TrustdServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Certificate",
|
|
Handler: _Trustd_Certificate_Handler,
|
|
},
|
|
{
|
|
MethodName: "WriteFile",
|
|
Handler: _Trustd_WriteFile_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "api.proto",
|
|
}
|
|
|
|
func init() { proto.RegisterFile("api.proto", fileDescriptor_api_6d48f67e45b68bdd) }
|
|
|
|
var fileDescriptor_api_6d48f67e45b68bdd = []byte{
|
|
// 219 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xe2, 0x4c, 0x2c, 0xc8, 0xd4,
|
|
0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x17, 0x62, 0x05, 0x53, 0x4a, 0x6a, 0x5c, 0x42, 0xce, 0xa9, 0x45,
|
|
0x25, 0x99, 0x69, 0x99, 0xc9, 0x89, 0x25, 0xa9, 0x41, 0xa9, 0x85, 0xa5, 0xa9, 0xc5, 0x25, 0x42,
|
|
0x02, 0x5c, 0xcc, 0xc9, 0xc5, 0x45, 0x12, 0x8c, 0x0a, 0x8c, 0x1a, 0x3c, 0x41, 0x20, 0xa6, 0x92,
|
|
0x36, 0x97, 0x30, 0x8a, 0xba, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x21, 0x11, 0x2e, 0xd6, 0xa4,
|
|
0xca, 0x92, 0xd4, 0x62, 0xa8, 0x52, 0x08, 0x47, 0xc9, 0x8f, 0x4b, 0x20, 0xbc, 0x28, 0xb3, 0x24,
|
|
0xd5, 0x2d, 0x33, 0x07, 0x6e, 0xa4, 0x10, 0x17, 0x4b, 0x41, 0x62, 0x49, 0x06, 0x58, 0x21, 0x67,
|
|
0x10, 0x98, 0x0d, 0x12, 0x4b, 0x49, 0x2c, 0x49, 0x94, 0x60, 0x02, 0x6b, 0x06, 0xb3, 0xc1, 0xea,
|
|
0x52, 0x8b, 0x72, 0x25, 0x98, 0x15, 0x18, 0x35, 0x58, 0x83, 0xc0, 0x6c, 0x25, 0x61, 0x2e, 0x41,
|
|
0x24, 0xf3, 0x20, 0x56, 0x1b, 0x4d, 0x62, 0xe4, 0x62, 0x0b, 0x29, 0x2a, 0x2d, 0x2e, 0x49, 0x11,
|
|
0x72, 0xe3, 0xe2, 0x46, 0x72, 0x9c, 0x90, 0x24, 0xc4, 0x8b, 0x7a, 0x98, 0x1e, 0x93, 0x92, 0xc2,
|
|
0x26, 0x05, 0x31, 0x50, 0x89, 0x41, 0xc8, 0x81, 0x8b, 0x13, 0x6e, 0x8f, 0x90, 0x38, 0x54, 0x29,
|
|
0xba, 0x4f, 0xa4, 0x24, 0x30, 0x25, 0x60, 0x26, 0x24, 0xb1, 0x81, 0xa5, 0x8c, 0x01, 0x01, 0x00,
|
|
0x00, 0xff, 0xff, 0x80, 0xe5, 0x5e, 0xbe, 0x69, 0x01, 0x00, 0x00,
|
|
}
|