talos/api/security/api.pb.go
Andrew Rynhard 3a92537a30 refactor: rename RPCs
The following RPCs have been renamed:

- ps to containers
- top to processes
- df to mounts

Signed-off-by: Andrew Rynhard <andrew@andrewrynhard.com>
2019-09-20 14:33:51 -07:00

476 lines
16 KiB
Go

// Code generated by protoc-gen-go. DO NOT EDIT.
// source: api.proto
package securityapi
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_00212fb1f9d3bf1c, []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_00212fb1f9d3bf1c, []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_00212fb1f9d3bf1c, []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_00212fb1f9d3bf1c, []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_00212fb1f9d3bf1c, []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_00212fb1f9d3bf1c, []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), "proto.CertificateRequest")
proto.RegisterType((*CertificateResponse)(nil), "proto.CertificateResponse")
proto.RegisterType((*ReadFileRequest)(nil), "proto.ReadFileRequest")
proto.RegisterType((*ReadFileResponse)(nil), "proto.ReadFileResponse")
proto.RegisterType((*WriteFileRequest)(nil), "proto.WriteFileRequest")
proto.RegisterType((*WriteFileResponse)(nil), "proto.WriteFileResponse")
}
func init() { proto.RegisterFile("api.proto", fileDescriptor_00212fb1f9d3bf1c) }
var fileDescriptor_00212fb1f9d3bf1c = []byte{
// 287 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x90, 0xc1, 0x4b, 0xc3, 0x30,
0x18, 0xc5, 0x69, 0xb7, 0xc9, 0xf6, 0x55, 0xb4, 0x7e, 0x03, 0xad, 0x3d, 0x8d, 0x80, 0x63, 0xa7,
0x1e, 0xf4, 0xe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xfb, 0xe1, 0x61, 0xf0,
0x6d, 0xed, 0x52, 0x1e, 0x75, 0xde, 0x07, 0xf8, 0x12, 0x46, 0xed, 0x4f, 0x62, 0x74, 0x6d, 0xcf,
0x50, 0x16, 0xdd, 0x43, 0xc3, 0xcf, 0x2b, 0xc8, 0x65, 0xbd, 0xac, 0x5c, 0xa8, 0x54, 0x09, 0xa3,
0xe7, 0x59, 0x2c, 0x78, 0x65, 0xf4, 0x7d, 0xf2, 0x94, 0xc5, 0xa3, 0x30, 0xfa, 0x79, 0xc7, 0x07,
0x9d, 0x7d, 0x07, 0x00, 0x00, 0xff, 0xff, 0x13, 0x85, 0x76, 0xb9, 0x2f, 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, "/proto.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, "/proto.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, "/proto.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: "/proto.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: "/proto.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: "/proto.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: "proto.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: "api.proto",
}