203 lines
7.6 KiB
Go
203 lines
7.6 KiB
Go
|
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||
|
// source: cert.proto
|
||
|
|
||
|
package cert
|
||
|
|
||
|
import (
|
||
|
fmt "fmt"
|
||
|
proto "github.com/golang/protobuf/proto"
|
||
|
math "math"
|
||
|
)
|
||
|
|
||
|
// 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
|
||
|
|
||
|
type RawNebulaCertificate struct {
|
||
|
Details *RawNebulaCertificateDetails `protobuf:"bytes,1,opt,name=Details,json=details,proto3" json:"Details,omitempty"`
|
||
|
Signature []byte `protobuf:"bytes,2,opt,name=Signature,json=signature,proto3" json:"Signature,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificate) Reset() { *m = RawNebulaCertificate{} }
|
||
|
func (m *RawNebulaCertificate) String() string { return proto.CompactTextString(m) }
|
||
|
func (*RawNebulaCertificate) ProtoMessage() {}
|
||
|
func (*RawNebulaCertificate) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_a142e29cbef9b1cf, []int{0}
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificate) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_RawNebulaCertificate.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *RawNebulaCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_RawNebulaCertificate.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *RawNebulaCertificate) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_RawNebulaCertificate.Merge(m, src)
|
||
|
}
|
||
|
func (m *RawNebulaCertificate) XXX_Size() int {
|
||
|
return xxx_messageInfo_RawNebulaCertificate.Size(m)
|
||
|
}
|
||
|
func (m *RawNebulaCertificate) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_RawNebulaCertificate.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_RawNebulaCertificate proto.InternalMessageInfo
|
||
|
|
||
|
func (m *RawNebulaCertificate) GetDetails() *RawNebulaCertificateDetails {
|
||
|
if m != nil {
|
||
|
return m.Details
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificate) GetSignature() []byte {
|
||
|
if m != nil {
|
||
|
return m.Signature
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
type RawNebulaCertificateDetails struct {
|
||
|
Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
|
||
|
// Ips and Subnets are in big endian 32 bit pairs, 1st the ip, 2nd the mask
|
||
|
Ips []uint32 `protobuf:"varint,2,rep,packed,name=Ips,json=ips,proto3" json:"Ips,omitempty"`
|
||
|
Subnets []uint32 `protobuf:"varint,3,rep,packed,name=Subnets,json=subnets,proto3" json:"Subnets,omitempty"`
|
||
|
Groups []string `protobuf:"bytes,4,rep,name=Groups,json=groups,proto3" json:"Groups,omitempty"`
|
||
|
NotBefore int64 `protobuf:"varint,5,opt,name=NotBefore,json=notBefore,proto3" json:"NotBefore,omitempty"`
|
||
|
NotAfter int64 `protobuf:"varint,6,opt,name=NotAfter,json=notAfter,proto3" json:"NotAfter,omitempty"`
|
||
|
PublicKey []byte `protobuf:"bytes,7,opt,name=PublicKey,json=publicKey,proto3" json:"PublicKey,omitempty"`
|
||
|
IsCA bool `protobuf:"varint,8,opt,name=IsCA,json=isCA,proto3" json:"IsCA,omitempty"`
|
||
|
// sha-256 of the issuer certificate, if this field is blank the cert is self-signed
|
||
|
Issuer []byte `protobuf:"bytes,9,opt,name=Issuer,json=issuer,proto3" json:"Issuer,omitempty"`
|
||
|
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||
|
XXX_unrecognized []byte `json:"-"`
|
||
|
XXX_sizecache int32 `json:"-"`
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) Reset() { *m = RawNebulaCertificateDetails{} }
|
||
|
func (m *RawNebulaCertificateDetails) String() string { return proto.CompactTextString(m) }
|
||
|
func (*RawNebulaCertificateDetails) ProtoMessage() {}
|
||
|
func (*RawNebulaCertificateDetails) Descriptor() ([]byte, []int) {
|
||
|
return fileDescriptor_a142e29cbef9b1cf, []int{1}
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) XXX_Unmarshal(b []byte) error {
|
||
|
return xxx_messageInfo_RawNebulaCertificateDetails.Unmarshal(m, b)
|
||
|
}
|
||
|
func (m *RawNebulaCertificateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||
|
return xxx_messageInfo_RawNebulaCertificateDetails.Marshal(b, m, deterministic)
|
||
|
}
|
||
|
func (m *RawNebulaCertificateDetails) XXX_Merge(src proto.Message) {
|
||
|
xxx_messageInfo_RawNebulaCertificateDetails.Merge(m, src)
|
||
|
}
|
||
|
func (m *RawNebulaCertificateDetails) XXX_Size() int {
|
||
|
return xxx_messageInfo_RawNebulaCertificateDetails.Size(m)
|
||
|
}
|
||
|
func (m *RawNebulaCertificateDetails) XXX_DiscardUnknown() {
|
||
|
xxx_messageInfo_RawNebulaCertificateDetails.DiscardUnknown(m)
|
||
|
}
|
||
|
|
||
|
var xxx_messageInfo_RawNebulaCertificateDetails proto.InternalMessageInfo
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetName() string {
|
||
|
if m != nil {
|
||
|
return m.Name
|
||
|
}
|
||
|
return ""
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetIps() []uint32 {
|
||
|
if m != nil {
|
||
|
return m.Ips
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetSubnets() []uint32 {
|
||
|
if m != nil {
|
||
|
return m.Subnets
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetGroups() []string {
|
||
|
if m != nil {
|
||
|
return m.Groups
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetNotBefore() int64 {
|
||
|
if m != nil {
|
||
|
return m.NotBefore
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetNotAfter() int64 {
|
||
|
if m != nil {
|
||
|
return m.NotAfter
|
||
|
}
|
||
|
return 0
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetPublicKey() []byte {
|
||
|
if m != nil {
|
||
|
return m.PublicKey
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetIsCA() bool {
|
||
|
if m != nil {
|
||
|
return m.IsCA
|
||
|
}
|
||
|
return false
|
||
|
}
|
||
|
|
||
|
func (m *RawNebulaCertificateDetails) GetIssuer() []byte {
|
||
|
if m != nil {
|
||
|
return m.Issuer
|
||
|
}
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func init() {
|
||
|
proto.RegisterType((*RawNebulaCertificate)(nil), "cert.RawNebulaCertificate")
|
||
|
proto.RegisterType((*RawNebulaCertificateDetails)(nil), "cert.RawNebulaCertificateDetails")
|
||
|
}
|
||
|
|
||
|
func init() { proto.RegisterFile("cert.proto", fileDescriptor_a142e29cbef9b1cf) }
|
||
|
|
||
|
var fileDescriptor_a142e29cbef9b1cf = []byte{
|
||
|
// 279 bytes of a gzipped FileDescriptorProto
|
||
|
0x1f, 0x8b, 0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