mirror of
https://github.com/siderolabs/talos.git
synced 2026-04-17 03:32:10 +02:00
Via tools/pkgs, also pulling in Clang-built Linux Update go.mod dependencies Fix linter errors with new golangci-lint, modernize, use new() Signed-off-by: Dmitrii Sharshakov <dmitry.sharshakov@siderolabs.com> Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
190 lines
5.9 KiB
Go
190 lines
5.9 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.11-devel
|
|
// protoc (unknown)
|
|
// source: security/security.proto
|
|
|
|
package security
|
|
|
|
import (
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
// The request message containing the certificate signing request.
|
|
type CertificateRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Certificate Signing Request in PEM format.
|
|
Csr []byte `protobuf:"bytes,1,opt,name=csr,proto3" json:"csr,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CertificateRequest) Reset() {
|
|
*x = CertificateRequest{}
|
|
mi := &file_security_security_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CertificateRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CertificateRequest) ProtoMessage() {}
|
|
|
|
func (x *CertificateRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_security_security_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CertificateRequest.ProtoReflect.Descriptor instead.
|
|
func (*CertificateRequest) Descriptor() ([]byte, []int) {
|
|
return file_security_security_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *CertificateRequest) GetCsr() []byte {
|
|
if x != nil {
|
|
return x.Csr
|
|
}
|
|
return nil
|
|
}
|
|
|
|
// The response message containing signed certificate.
|
|
type CertificateResponse struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
// Certificate of the CA that signed the requested certificate in PEM format.
|
|
Ca []byte `protobuf:"bytes,1,opt,name=ca,proto3" json:"ca,omitempty"`
|
|
// Signed X.509 requested certificate in PEM format.
|
|
Crt []byte `protobuf:"bytes,2,opt,name=crt,proto3" json:"crt,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *CertificateResponse) Reset() {
|
|
*x = CertificateResponse{}
|
|
mi := &file_security_security_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *CertificateResponse) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*CertificateResponse) ProtoMessage() {}
|
|
|
|
func (x *CertificateResponse) ProtoReflect() protoreflect.Message {
|
|
mi := &file_security_security_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use CertificateResponse.ProtoReflect.Descriptor instead.
|
|
func (*CertificateResponse) Descriptor() ([]byte, []int) {
|
|
return file_security_security_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *CertificateResponse) GetCa() []byte {
|
|
if x != nil {
|
|
return x.Ca
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *CertificateResponse) GetCrt() []byte {
|
|
if x != nil {
|
|
return x.Crt
|
|
}
|
|
return nil
|
|
}
|
|
|
|
var File_security_security_proto protoreflect.FileDescriptor
|
|
|
|
const file_security_security_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\x17security/security.proto\x12\vsecurityapi\"&\n" +
|
|
"\x12CertificateRequest\x12\x10\n" +
|
|
"\x03csr\x18\x01 \x01(\fR\x03csr\"7\n" +
|
|
"\x13CertificateResponse\x12\x0e\n" +
|
|
"\x02ca\x18\x01 \x01(\fR\x02ca\x12\x10\n" +
|
|
"\x03crt\x18\x02 \x01(\fR\x03crt2c\n" +
|
|
"\x0fSecurityService\x12P\n" +
|
|
"\vCertificate\x12\x1f.securityapi.CertificateRequest\x1a .securityapi.CertificateResponseBP\n" +
|
|
"\x16dev.talos.api.securityZ6github.com/siderolabs/talos/pkg/machinery/api/securityb\x06proto3"
|
|
|
|
var (
|
|
file_security_security_proto_rawDescOnce sync.Once
|
|
file_security_security_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_security_security_proto_rawDescGZIP() []byte {
|
|
file_security_security_proto_rawDescOnce.Do(func() {
|
|
file_security_security_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_security_security_proto_rawDesc), len(file_security_security_proto_rawDesc)))
|
|
})
|
|
return file_security_security_proto_rawDescData
|
|
}
|
|
|
|
var file_security_security_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
|
|
var file_security_security_proto_goTypes = []any{
|
|
(*CertificateRequest)(nil), // 0: securityapi.CertificateRequest
|
|
(*CertificateResponse)(nil), // 1: securityapi.CertificateResponse
|
|
}
|
|
var file_security_security_proto_depIdxs = []int32{
|
|
0, // 0: securityapi.SecurityService.Certificate:input_type -> securityapi.CertificateRequest
|
|
1, // 1: securityapi.SecurityService.Certificate:output_type -> securityapi.CertificateResponse
|
|
1, // [1:2] is the sub-list for method output_type
|
|
0, // [0:1] is the sub-list for method input_type
|
|
0, // [0:0] is the sub-list for extension type_name
|
|
0, // [0:0] is the sub-list for extension extendee
|
|
0, // [0:0] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_security_security_proto_init() }
|
|
func file_security_security_proto_init() {
|
|
if File_security_security_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_security_security_proto_rawDesc), len(file_security_security_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 2,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_security_security_proto_goTypes,
|
|
DependencyIndexes: file_security_security_proto_depIdxs,
|
|
MessageInfos: file_security_security_proto_msgTypes,
|
|
}.Build()
|
|
File_security_security_proto = out.File
|
|
file_security_security_proto_goTypes = nil
|
|
file_security_security_proto_depIdxs = nil
|
|
}
|