Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 
 

384 righe
16 KiB

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
  3. package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1"
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. // Reference imports to suppress errors if they are not otherwise used.
  9. var _ = proto.Marshal
  10. var _ = fmt.Errorf
  11. var _ = math.Inf
  12. // This is a compile-time assertion to ensure that this generated file
  13. // is compatible with the proto package it is being compiled against.
  14. // A compilation error at this line likely means your copy of the
  15. // proto package needs to be updated.
  16. const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
  17. // Instruction set architectures supported by various package managers.
  18. type PackageManager_Architecture int32
  19. const (
  20. // Unknown architecture
  21. PackageManager_ARCHITECTURE_UNSPECIFIED PackageManager_Architecture = 0
  22. // X86 architecture
  23. PackageManager_X86 PackageManager_Architecture = 1
  24. // X64 architecture
  25. PackageManager_X64 PackageManager_Architecture = 2
  26. )
  27. var PackageManager_Architecture_name = map[int32]string{
  28. 0: "ARCHITECTURE_UNSPECIFIED",
  29. 1: "X86",
  30. 2: "X64",
  31. }
  32. var PackageManager_Architecture_value = map[string]int32{
  33. "ARCHITECTURE_UNSPECIFIED": 0,
  34. "X86": 1,
  35. "X64": 2,
  36. }
  37. func (x PackageManager_Architecture) String() string {
  38. return proto.EnumName(PackageManager_Architecture_name, int32(x))
  39. }
  40. func (PackageManager_Architecture) EnumDescriptor() ([]byte, []int) {
  41. return fileDescriptor_bill_of_materials_10c894bf33ab3baa, []int{0, 0}
  42. }
  43. // PackageManager provides metadata about available / installed packages.
  44. type PackageManager struct {
  45. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  46. XXX_unrecognized []byte `json:"-"`
  47. XXX_sizecache int32 `json:"-"`
  48. }
  49. func (m *PackageManager) Reset() { *m = PackageManager{} }
  50. func (m *PackageManager) String() string { return proto.CompactTextString(m) }
  51. func (*PackageManager) ProtoMessage() {}
  52. func (*PackageManager) Descriptor() ([]byte, []int) {
  53. return fileDescriptor_bill_of_materials_10c894bf33ab3baa, []int{0}
  54. }
  55. func (m *PackageManager) XXX_Unmarshal(b []byte) error {
  56. return xxx_messageInfo_PackageManager.Unmarshal(m, b)
  57. }
  58. func (m *PackageManager) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  59. return xxx_messageInfo_PackageManager.Marshal(b, m, deterministic)
  60. }
  61. func (dst *PackageManager) XXX_Merge(src proto.Message) {
  62. xxx_messageInfo_PackageManager.Merge(dst, src)
  63. }
  64. func (m *PackageManager) XXX_Size() int {
  65. return xxx_messageInfo_PackageManager.Size(m)
  66. }
  67. func (m *PackageManager) XXX_DiscardUnknown() {
  68. xxx_messageInfo_PackageManager.DiscardUnknown(m)
  69. }
  70. var xxx_messageInfo_PackageManager proto.InternalMessageInfo
  71. // This represents a particular channel of distribution for a given package.
  72. // e.g. Debian's jessie-backports dpkg mirror
  73. type PackageManager_Distribution struct {
  74. // The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
  75. // denoting the package manager version distributing a package.
  76. CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
  77. // The CPU architecture for which packages in this distribution
  78. // channel were built
  79. Architecture PackageManager_Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture" json:"architecture,omitempty"`
  80. // The latest available version of this package in
  81. // this distribution channel.
  82. LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
  83. // A freeform string denoting the maintainer of this package.
  84. Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
  85. // The distribution channel-specific homepage for this package.
  86. Url string `protobuf:"bytes,6,opt,name=url,proto3" json:"url,omitempty"`
  87. // The distribution channel-specific description of this package.
  88. Description string `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
  89. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  90. XXX_unrecognized []byte `json:"-"`
  91. XXX_sizecache int32 `json:"-"`
  92. }
  93. func (m *PackageManager_Distribution) Reset() { *m = PackageManager_Distribution{} }
  94. func (m *PackageManager_Distribution) String() string { return proto.CompactTextString(m) }
  95. func (*PackageManager_Distribution) ProtoMessage() {}
  96. func (*PackageManager_Distribution) Descriptor() ([]byte, []int) {
  97. return fileDescriptor_bill_of_materials_10c894bf33ab3baa, []int{0, 0}
  98. }
  99. func (m *PackageManager_Distribution) XXX_Unmarshal(b []byte) error {
  100. return xxx_messageInfo_PackageManager_Distribution.Unmarshal(m, b)
  101. }
  102. func (m *PackageManager_Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  103. return xxx_messageInfo_PackageManager_Distribution.Marshal(b, m, deterministic)
  104. }
  105. func (dst *PackageManager_Distribution) XXX_Merge(src proto.Message) {
  106. xxx_messageInfo_PackageManager_Distribution.Merge(dst, src)
  107. }
  108. func (m *PackageManager_Distribution) XXX_Size() int {
  109. return xxx_messageInfo_PackageManager_Distribution.Size(m)
  110. }
  111. func (m *PackageManager_Distribution) XXX_DiscardUnknown() {
  112. xxx_messageInfo_PackageManager_Distribution.DiscardUnknown(m)
  113. }
  114. var xxx_messageInfo_PackageManager_Distribution proto.InternalMessageInfo
  115. func (m *PackageManager_Distribution) GetCpeUri() string {
  116. if m != nil {
  117. return m.CpeUri
  118. }
  119. return ""
  120. }
  121. func (m *PackageManager_Distribution) GetArchitecture() PackageManager_Architecture {
  122. if m != nil {
  123. return m.Architecture
  124. }
  125. return PackageManager_ARCHITECTURE_UNSPECIFIED
  126. }
  127. func (m *PackageManager_Distribution) GetLatestVersion() *VulnerabilityType_Version {
  128. if m != nil {
  129. return m.LatestVersion
  130. }
  131. return nil
  132. }
  133. func (m *PackageManager_Distribution) GetMaintainer() string {
  134. if m != nil {
  135. return m.Maintainer
  136. }
  137. return ""
  138. }
  139. func (m *PackageManager_Distribution) GetUrl() string {
  140. if m != nil {
  141. return m.Url
  142. }
  143. return ""
  144. }
  145. func (m *PackageManager_Distribution) GetDescription() string {
  146. if m != nil {
  147. return m.Description
  148. }
  149. return ""
  150. }
  151. // An occurrence of a particular package installation found within a
  152. // system's filesystem.
  153. // e.g. glibc was found in /var/lib/dpkg/status
  154. type PackageManager_Location struct {
  155. // The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
  156. // denoting the package manager version distributing a package.
  157. CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
  158. // The version installed at this location.
  159. Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
  160. // The path from which we gathered that this package/version is installed.
  161. Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
  162. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  163. XXX_unrecognized []byte `json:"-"`
  164. XXX_sizecache int32 `json:"-"`
  165. }
  166. func (m *PackageManager_Location) Reset() { *m = PackageManager_Location{} }
  167. func (m *PackageManager_Location) String() string { return proto.CompactTextString(m) }
  168. func (*PackageManager_Location) ProtoMessage() {}
  169. func (*PackageManager_Location) Descriptor() ([]byte, []int) {
  170. return fileDescriptor_bill_of_materials_10c894bf33ab3baa, []int{0, 1}
  171. }
  172. func (m *PackageManager_Location) XXX_Unmarshal(b []byte) error {
  173. return xxx_messageInfo_PackageManager_Location.Unmarshal(m, b)
  174. }
  175. func (m *PackageManager_Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  176. return xxx_messageInfo_PackageManager_Location.Marshal(b, m, deterministic)
  177. }
  178. func (dst *PackageManager_Location) XXX_Merge(src proto.Message) {
  179. xxx_messageInfo_PackageManager_Location.Merge(dst, src)
  180. }
  181. func (m *PackageManager_Location) XXX_Size() int {
  182. return xxx_messageInfo_PackageManager_Location.Size(m)
  183. }
  184. func (m *PackageManager_Location) XXX_DiscardUnknown() {
  185. xxx_messageInfo_PackageManager_Location.DiscardUnknown(m)
  186. }
  187. var xxx_messageInfo_PackageManager_Location proto.InternalMessageInfo
  188. func (m *PackageManager_Location) GetCpeUri() string {
  189. if m != nil {
  190. return m.CpeUri
  191. }
  192. return ""
  193. }
  194. func (m *PackageManager_Location) GetVersion() *VulnerabilityType_Version {
  195. if m != nil {
  196. return m.Version
  197. }
  198. return nil
  199. }
  200. func (m *PackageManager_Location) GetPath() string {
  201. if m != nil {
  202. return m.Path
  203. }
  204. return ""
  205. }
  206. // This represents a particular package that is distributed over
  207. // various channels.
  208. // e.g. glibc (aka libc6) is distributed by many, at various versions.
  209. type PackageManager_Package struct {
  210. // The name of the package.
  211. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  212. // The various channels by which a package is distributed.
  213. Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
  214. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  215. XXX_unrecognized []byte `json:"-"`
  216. XXX_sizecache int32 `json:"-"`
  217. }
  218. func (m *PackageManager_Package) Reset() { *m = PackageManager_Package{} }
  219. func (m *PackageManager_Package) String() string { return proto.CompactTextString(m) }
  220. func (*PackageManager_Package) ProtoMessage() {}
  221. func (*PackageManager_Package) Descriptor() ([]byte, []int) {
  222. return fileDescriptor_bill_of_materials_10c894bf33ab3baa, []int{0, 2}
  223. }
  224. func (m *PackageManager_Package) XXX_Unmarshal(b []byte) error {
  225. return xxx_messageInfo_PackageManager_Package.Unmarshal(m, b)
  226. }
  227. func (m *PackageManager_Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  228. return xxx_messageInfo_PackageManager_Package.Marshal(b, m, deterministic)
  229. }
  230. func (dst *PackageManager_Package) XXX_Merge(src proto.Message) {
  231. xxx_messageInfo_PackageManager_Package.Merge(dst, src)
  232. }
  233. func (m *PackageManager_Package) XXX_Size() int {
  234. return xxx_messageInfo_PackageManager_Package.Size(m)
  235. }
  236. func (m *PackageManager_Package) XXX_DiscardUnknown() {
  237. xxx_messageInfo_PackageManager_Package.DiscardUnknown(m)
  238. }
  239. var xxx_messageInfo_PackageManager_Package proto.InternalMessageInfo
  240. func (m *PackageManager_Package) GetName() string {
  241. if m != nil {
  242. return m.Name
  243. }
  244. return ""
  245. }
  246. func (m *PackageManager_Package) GetDistribution() []*PackageManager_Distribution {
  247. if m != nil {
  248. return m.Distribution
  249. }
  250. return nil
  251. }
  252. // This represents how a particular software package may be installed on
  253. // a system.
  254. type PackageManager_Installation struct {
  255. // Output only. The name of the installed package.
  256. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
  257. // All of the places within the filesystem versions of this package
  258. // have been found.
  259. Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
  260. XXX_NoUnkeyedLiteral struct{} `json:"-"`
  261. XXX_unrecognized []byte `json:"-"`
  262. XXX_sizecache int32 `json:"-"`
  263. }
  264. func (m *PackageManager_Installation) Reset() { *m = PackageManager_Installation{} }
  265. func (m *PackageManager_Installation) String() string { return proto.CompactTextString(m) }
  266. func (*PackageManager_Installation) ProtoMessage() {}
  267. func (*PackageManager_Installation) Descriptor() ([]byte, []int) {
  268. return fileDescriptor_bill_of_materials_10c894bf33ab3baa, []int{0, 3}
  269. }
  270. func (m *PackageManager_Installation) XXX_Unmarshal(b []byte) error {
  271. return xxx_messageInfo_PackageManager_Installation.Unmarshal(m, b)
  272. }
  273. func (m *PackageManager_Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
  274. return xxx_messageInfo_PackageManager_Installation.Marshal(b, m, deterministic)
  275. }
  276. func (dst *PackageManager_Installation) XXX_Merge(src proto.Message) {
  277. xxx_messageInfo_PackageManager_Installation.Merge(dst, src)
  278. }
  279. func (m *PackageManager_Installation) XXX_Size() int {
  280. return xxx_messageInfo_PackageManager_Installation.Size(m)
  281. }
  282. func (m *PackageManager_Installation) XXX_DiscardUnknown() {
  283. xxx_messageInfo_PackageManager_Installation.DiscardUnknown(m)
  284. }
  285. var xxx_messageInfo_PackageManager_Installation proto.InternalMessageInfo
  286. func (m *PackageManager_Installation) GetName() string {
  287. if m != nil {
  288. return m.Name
  289. }
  290. return ""
  291. }
  292. func (m *PackageManager_Installation) GetLocation() []*PackageManager_Location {
  293. if m != nil {
  294. return m.Location
  295. }
  296. return nil
  297. }
  298. func init() {
  299. proto.RegisterType((*PackageManager)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager")
  300. proto.RegisterType((*PackageManager_Distribution)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Distribution")
  301. proto.RegisterType((*PackageManager_Location)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Location")
  302. proto.RegisterType((*PackageManager_Package)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Package")
  303. proto.RegisterType((*PackageManager_Installation)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Installation")
  304. proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture", PackageManager_Architecture_name, PackageManager_Architecture_value)
  305. }
  306. func init() {
  307. proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor_bill_of_materials_10c894bf33ab3baa)
  308. }
  309. var fileDescriptor_bill_of_materials_10c894bf33ab3baa = []byte{
  310. // 522 bytes of a gzipped FileDescriptorProto
  311. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xd1, 0x8a, 0xd3, 0x4e,
  312. 0x14, 0xc6, 0xff, 0x49, 0x97, 0x76, 0xf7, 0xb4, 0xff, 0x52, 0xe6, 0xc6, 0x10, 0x16, 0x29, 0x0b,
  313. 0x42, 0xf1, 0x22, 0x61, 0x57, 0x59, 0x04, 0x41, 0xe8, 0x76, 0xbb, 0x6b, 0x41, 0xa5, 0xc4, 0x76,
  314. 0x11, 0xbd, 0x08, 0xa7, 0xe9, 0x98, 0x0e, 0x3b, 0x9d, 0x09, 0x93, 0x49, 0xa1, 0xd7, 0xde, 0x89,
  315. 0x0f, 0xe0, 0xb5, 0x0f, 0xa5, 0xaf, 0x23, 0x99, 0x24, 0x92, 0xb2, 0x2a, 0xbb, 0xac, 0x77, 0x27,
  316. 0xf3, 0x85, 0xdf, 0xf9, 0xce, 0x77, 0x66, 0xe0, 0x2c, 0x96, 0x32, 0xe6, 0xd4, 0x5f, 0xd2, 0x8d,
  317. 0x96, 0x92, 0xa7, 0x7e, 0x24, 0x85, 0x46, 0x26, 0xa8, 0x42, 0x81, 0x7c, 0x9b, 0xb2, 0xd4, 0xdf,
  318. 0x1c, 0x23, 0x4f, 0x56, 0x78, 0xec, 0x2f, 0x18, 0xe7, 0xa1, 0xfc, 0x18, 0xae, 0x51, 0x53, 0xc5,
  319. 0x90, 0xa7, 0x5e, 0xa2, 0xa4, 0x96, 0xe4, 0x71, 0xc1, 0xf0, 0x2a, 0x86, 0x77, 0x83, 0xe1, 0x55,
  320. 0x0c, 0xf7, 0xb0, 0xec, 0x87, 0x09, 0xf3, 0x51, 0x08, 0xa9, 0x51, 0x33, 0x29, 0x4a, 0x92, 0x7b,
  321. 0x71, 0x07, 0x37, 0x09, 0x46, 0xd7, 0x18, 0xd3, 0x70, 0x93, 0xf1, 0x5c, 0x5f, 0x30, 0xce, 0xf4,
  322. 0xb6, 0xe0, 0x1c, 0xfd, 0x68, 0x42, 0x77, 0x5a, 0xe8, 0xaf, 0x51, 0x60, 0x4c, 0x95, 0xfb, 0xdd,
  323. 0x86, 0xce, 0x39, 0x4b, 0xb5, 0x62, 0x8b, 0x2c, 0x6f, 0x49, 0x1e, 0x40, 0x2b, 0x4a, 0x68, 0x98,
  324. 0x29, 0xe6, 0x58, 0x7d, 0x6b, 0x70, 0x10, 0x34, 0xa3, 0x84, 0xce, 0x15, 0x23, 0xd7, 0xd0, 0x41,
  325. 0x15, 0xad, 0x98, 0xa6, 0x91, 0xce, 0x14, 0x75, 0xec, 0xbe, 0x35, 0xe8, 0x9e, 0x5c, 0x7a, 0xb7,
  326. 0x9f, 0xd2, 0xdb, 0xed, 0xed, 0x0d, 0x6b, 0xb8, 0x60, 0x07, 0x4e, 0x38, 0x74, 0x39, 0x6a, 0x9a,
  327. 0xea, 0x70, 0x43, 0x55, 0xca, 0xa4, 0x70, 0x1a, 0x7d, 0x6b, 0xd0, 0x3e, 0x19, 0xdf, 0xa5, 0xdd,
  328. 0x55, 0x3d, 0x82, 0xd9, 0x36, 0xa1, 0xde, 0x55, 0x01, 0x0b, 0xfe, 0x2f, 0xe0, 0xe5, 0x27, 0x79,
  329. 0x08, 0xb0, 0x46, 0x56, 0x72, 0x9c, 0x3d, 0x33, 0x76, 0xed, 0x84, 0xf4, 0xa0, 0x91, 0x29, 0xee,
  330. 0x34, 0x8d, 0x90, 0x97, 0xa4, 0x0f, 0xed, 0x25, 0x4d, 0x23, 0xc5, 0x92, 0x3c, 0x34, 0xa7, 0x65,
  331. 0x94, 0xfa, 0x91, 0xfb, 0xd5, 0x82, 0xfd, 0x57, 0x32, 0xc2, 0xbf, 0x87, 0x1a, 0x42, 0xab, 0x1a,
  332. 0xd0, 0xfe, 0x97, 0x03, 0x56, 0x54, 0x42, 0x60, 0x2f, 0x41, 0xbd, 0x32, 0xf1, 0x1d, 0x04, 0xa6,
  333. 0x76, 0x3f, 0x5b, 0xd0, 0x2a, 0x57, 0x91, 0xeb, 0x02, 0xd7, 0xb4, 0xb4, 0x65, 0xea, 0x7c, 0xd3,
  334. 0xcb, 0xda, 0x95, 0x70, 0xa0, 0xdf, 0x18, 0xb4, 0xef, 0xb5, 0xe9, 0xfa, 0x0d, 0x0b, 0x76, 0xe0,
  335. 0xee, 0x27, 0x0b, 0x3a, 0x13, 0x91, 0x6a, 0xe4, 0xbc, 0xc8, 0xea, 0x77, 0x8e, 0x42, 0xd8, 0xe7,
  336. 0x65, 0x96, 0x8e, 0x6d, 0xdc, 0x8c, 0xee, 0xe1, 0xa6, 0x5a, 0x4b, 0xf0, 0x0b, 0x7a, 0xf4, 0x02,
  337. 0x3a, 0xf5, 0xdb, 0x48, 0x0e, 0xc1, 0x19, 0x06, 0xa3, 0x97, 0x93, 0xd9, 0x78, 0x34, 0x9b, 0x07,
  338. 0xe3, 0x70, 0xfe, 0xe6, 0xed, 0x74, 0x3c, 0x9a, 0x5c, 0x4c, 0xc6, 0xe7, 0xbd, 0xff, 0x48, 0x0b,
  339. 0x1a, 0xef, 0x9e, 0x9d, 0xf6, 0x2c, 0x53, 0x9c, 0x3e, 0xed, 0xd9, 0x67, 0x5f, 0x2c, 0x78, 0x14,
  340. 0xc9, 0x75, 0x65, 0xea, 0xcf, 0x5e, 0xa6, 0xd6, 0xfb, 0x0f, 0xe5, 0x4f, 0xb1, 0xe4, 0x28, 0x62,
  341. 0x4f, 0xaa, 0xd8, 0x8f, 0xa9, 0x30, 0x2f, 0xd4, 0x2f, 0x24, 0x4c, 0x58, 0x7a, 0x9b, 0xc7, 0xfe,
  342. 0xfc, 0x86, 0xf4, 0xcd, 0x6e, 0x5c, 0x8e, 0x86, 0x8b, 0xa6, 0xa1, 0x3d, 0xf9, 0x19, 0x00, 0x00,
  343. 0xff, 0xff, 0xfa, 0x4f, 0xa4, 0x56, 0xc7, 0x04, 0x00, 0x00,
  344. }