cert.pb.go 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: cert.proto
  3. package cert
  4. import (
  5. fmt "fmt"
  6. proto "github.com/golang/protobuf/proto"
  7. math "math"
  8. )
  9. // Reference imports to suppress errors if they are not otherwise used.
  10. var _ = proto.Marshal
  11. var _ = fmt.Errorf
  12. var _ = math.Inf
  13. // This is a compile-time assertion to ensure that this generated file
  14. // is compatible with the proto package it is being compiled against.
  15. // A compilation error at this line likely means your copy of the
  16. // proto package needs to be updated.
  17. const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
  18. type RawNebulaCertificate struct {
  19. Details *RawNebulaCertificateDetails `protobuf:"bytes,1,opt,name=Details,json=details,proto3" json:"Details,omitempty"`
  20. Signature []byte `protobuf:"bytes,2,opt,name=Signature,json=signature,proto3" json:"Signature,omitempty"`
  21. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  22. XXX_unrecognized []byte `json:"-"`
  23. XXX_sizecache int32 `json:"-"`
  24. }
  25. func (m *RawNebulaCertificate) Reset() { *m = RawNebulaCertificate{} }
  26. func (m *RawNebulaCertificate) String() string { return proto.CompactTextString(m) }
  27. func (*RawNebulaCertificate) ProtoMessage() {}
  28. func (*RawNebulaCertificate) Descriptor() ([]byte, []int) {
  29. return fileDescriptor_a142e29cbef9b1cf, []int{0}
  30. }
  31. func (m *RawNebulaCertificate) XXX_Unmarshal(b []byte) error {
  32. return xxx_messageInfo_RawNebulaCertificate.Unmarshal(m, b)
  33. }
  34. func (m *RawNebulaCertificate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  35. return xxx_messageInfo_RawNebulaCertificate.Marshal(b, m, deterministic)
  36. }
  37. func (m *RawNebulaCertificate) XXX_Merge(src proto.Message) {
  38. xxx_messageInfo_RawNebulaCertificate.Merge(m, src)
  39. }
  40. func (m *RawNebulaCertificate) XXX_Size() int {
  41. return xxx_messageInfo_RawNebulaCertificate.Size(m)
  42. }
  43. func (m *RawNebulaCertificate) XXX_DiscardUnknown() {
  44. xxx_messageInfo_RawNebulaCertificate.DiscardUnknown(m)
  45. }
  46. var xxx_messageInfo_RawNebulaCertificate proto.InternalMessageInfo
  47. func (m *RawNebulaCertificate) GetDetails() *RawNebulaCertificateDetails {
  48. if m != nil {
  49. return m.Details
  50. }
  51. return nil
  52. }
  53. func (m *RawNebulaCertificate) GetSignature() []byte {
  54. if m != nil {
  55. return m.Signature
  56. }
  57. return nil
  58. }
  59. type RawNebulaCertificateDetails struct {
  60. Name string `protobuf:"bytes,1,opt,name=Name,json=name,proto3" json:"Name,omitempty"`
  61. // Ips and Subnets are in big endian 32 bit pairs, 1st the ip, 2nd the mask
  62. Ips []uint32 `protobuf:"varint,2,rep,packed,name=Ips,json=ips,proto3" json:"Ips,omitempty"`
  63. Subnets []uint32 `protobuf:"varint,3,rep,packed,name=Subnets,json=subnets,proto3" json:"Subnets,omitempty"`
  64. Groups []string `protobuf:"bytes,4,rep,name=Groups,json=groups,proto3" json:"Groups,omitempty"`
  65. NotBefore int64 `protobuf:"varint,5,opt,name=NotBefore,json=notBefore,proto3" json:"NotBefore,omitempty"`
  66. NotAfter int64 `protobuf:"varint,6,opt,name=NotAfter,json=notAfter,proto3" json:"NotAfter,omitempty"`
  67. PublicKey []byte `protobuf:"bytes,7,opt,name=PublicKey,json=publicKey,proto3" json:"PublicKey,omitempty"`
  68. IsCA bool `protobuf:"varint,8,opt,name=IsCA,json=isCA,proto3" json:"IsCA,omitempty"`
  69. // sha-256 of the issuer certificate, if this field is blank the cert is self-signed
  70. Issuer []byte `protobuf:"bytes,9,opt,name=Issuer,json=issuer,proto3" json:"Issuer,omitempty"`
  71. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  72. XXX_unrecognized []byte `json:"-"`
  73. XXX_sizecache int32 `json:"-"`
  74. }
  75. func (m *RawNebulaCertificateDetails) Reset() { *m = RawNebulaCertificateDetails{} }
  76. func (m *RawNebulaCertificateDetails) String() string { return proto.CompactTextString(m) }
  77. func (*RawNebulaCertificateDetails) ProtoMessage() {}
  78. func (*RawNebulaCertificateDetails) Descriptor() ([]byte, []int) {
  79. return fileDescriptor_a142e29cbef9b1cf, []int{1}
  80. }
  81. func (m *RawNebulaCertificateDetails) XXX_Unmarshal(b []byte) error {
  82. return xxx_messageInfo_RawNebulaCertificateDetails.Unmarshal(m, b)
  83. }
  84. func (m *RawNebulaCertificateDetails) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  85. return xxx_messageInfo_RawNebulaCertificateDetails.Marshal(b, m, deterministic)
  86. }
  87. func (m *RawNebulaCertificateDetails) XXX_Merge(src proto.Message) {
  88. xxx_messageInfo_RawNebulaCertificateDetails.Merge(m, src)
  89. }
  90. func (m *RawNebulaCertificateDetails) XXX_Size() int {
  91. return xxx_messageInfo_RawNebulaCertificateDetails.Size(m)
  92. }
  93. func (m *RawNebulaCertificateDetails) XXX_DiscardUnknown() {
  94. xxx_messageInfo_RawNebulaCertificateDetails.DiscardUnknown(m)
  95. }
  96. var xxx_messageInfo_RawNebulaCertificateDetails proto.InternalMessageInfo
  97. func (m *RawNebulaCertificateDetails) GetName() string {
  98. if m != nil {
  99. return m.Name
  100. }
  101. return ""
  102. }
  103. func (m *RawNebulaCertificateDetails) GetIps() []uint32 {
  104. if m != nil {
  105. return m.Ips
  106. }
  107. return nil
  108. }
  109. func (m *RawNebulaCertificateDetails) GetSubnets() []uint32 {
  110. if m != nil {
  111. return m.Subnets
  112. }
  113. return nil
  114. }
  115. func (m *RawNebulaCertificateDetails) GetGroups() []string {
  116. if m != nil {
  117. return m.Groups
  118. }
  119. return nil
  120. }
  121. func (m *RawNebulaCertificateDetails) GetNotBefore() int64 {
  122. if m != nil {
  123. return m.NotBefore
  124. }
  125. return 0
  126. }
  127. func (m *RawNebulaCertificateDetails) GetNotAfter() int64 {
  128. if m != nil {
  129. return m.NotAfter
  130. }
  131. return 0
  132. }
  133. func (m *RawNebulaCertificateDetails) GetPublicKey() []byte {
  134. if m != nil {
  135. return m.PublicKey
  136. }
  137. return nil
  138. }
  139. func (m *RawNebulaCertificateDetails) GetIsCA() bool {
  140. if m != nil {
  141. return m.IsCA
  142. }
  143. return false
  144. }
  145. func (m *RawNebulaCertificateDetails) GetIssuer() []byte {
  146. if m != nil {
  147. return m.Issuer
  148. }
  149. return nil
  150. }
  151. func init() {
  152. proto.RegisterType((*RawNebulaCertificate)(nil), "cert.RawNebulaCertificate")
  153. proto.RegisterType((*RawNebulaCertificateDetails)(nil), "cert.RawNebulaCertificateDetails")
  154. }
  155. func init() { proto.RegisterFile("cert.proto", fileDescriptor_a142e29cbef9b1cf) }
  156. var fileDescriptor_a142e29cbef9b1cf = []byte{
  157. // 279 bytes of a gzipped FileDescriptorProto
  158. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x90, 0xcf, 0x4a, 0xf4, 0x30,
  159. 0x14, 0xc5, 0xc9, 0xa4, 0x5f, 0xdb, 0xe4, 0x53, 0x90, 0x20, 0x12, 0xd4, 0x45, 0x9c, 0x55, 0x56,
  160. 0xb3, 0xd0, 0xa5, 0xab, 0x71, 0x04, 0x29, 0x42, 0x91, 0xcc, 0x13, 0xa4, 0xf5, 0x76, 0x08, 0x74,
  161. 0x9a, 0x9a, 0x3f, 0x88, 0x8f, 0xee, 0x4e, 0x9a, 0x4e, 0x77, 0xe2, 0xee, 0x9e, 0x5f, 0xce, 0x49,
  162. 0x4e, 0x2e, 0xa5, 0x2d, 0xb8, 0xb0, 0x19, 0x9d, 0x0d, 0x96, 0x65, 0xd3, 0xbc, 0xfe, 0xa0, 0x97,
  163. 0x4a, 0x7f, 0xd6, 0xd0, 0xc4, 0x5e, 0xef, 0xc0, 0x05, 0xd3, 0x99, 0x56, 0x07, 0x60, 0x8f, 0xb4,
  164. 0x78, 0x86, 0xa0, 0x4d, 0xef, 0x39, 0x12, 0x48, 0xfe, 0xbf, 0xbf, 0xdb, 0xa4, 0xec, 0x6f, 0xe6,
  165. 0x93, 0x51, 0x15, 0xef, 0xf3, 0xc0, 0x6e, 0x29, 0xd9, 0x9b, 0xc3, 0xa0, 0x43, 0x74, 0xc0, 0x57,
  166. 0x02, 0xc9, 0x33, 0x45, 0xfc, 0x02, 0xd6, 0xdf, 0x88, 0xde, 0xfc, 0x71, 0x0d, 0x63, 0x34, 0xab,
  167. 0xf5, 0x11, 0xd2, 0xbb, 0x44, 0x65, 0x83, 0x3e, 0x02, 0xbb, 0xa0, 0xb8, 0x1a, 0x3d, 0x5f, 0x09,
  168. 0x2c, 0xcf, 0x15, 0x36, 0xa3, 0x67, 0x9c, 0x16, 0xfb, 0xd8, 0x0c, 0x10, 0x3c, 0xc7, 0x89, 0x16,
  169. 0x7e, 0x96, 0xec, 0x8a, 0xe6, 0x2f, 0xce, 0xc6, 0xd1, 0xf3, 0x4c, 0x60, 0x49, 0x54, 0x7e, 0x48,
  170. 0x6a, 0x6a, 0x55, 0xdb, 0xf0, 0x04, 0x9d, 0x75, 0xc0, 0xff, 0x09, 0x24, 0xb1, 0x22, 0xc3, 0x02,
  171. 0xd8, 0x35, 0x2d, 0x6b, 0x1b, 0xb6, 0x5d, 0x00, 0xc7, 0xf3, 0x74, 0x58, 0x0e, 0x27, 0x3d, 0x25,
  172. 0xdf, 0x62, 0xd3, 0x9b, 0xf6, 0x15, 0xbe, 0x78, 0x31, 0xff, 0x67, 0x5c, 0xc0, 0xd4, 0xb7, 0xf2,
  173. 0xbb, 0x2d, 0x2f, 0x05, 0x92, 0xa5, 0xca, 0x8c, 0xdf, 0x6d, 0xa7, 0x0e, 0x95, 0xf7, 0x11, 0x1c,
  174. 0x27, 0xc9, 0x9e, 0x9b, 0xa4, 0x9a, 0x3c, 0xed, 0xfe, 0xe1, 0x27, 0x00, 0x00, 0xff, 0xff, 0x2c,
  175. 0xe3, 0x08, 0x37, 0x89, 0x01, 0x00, 0x00,
  176. }