mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
vendor files
This commit is contained in:
329
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go
generated
vendored
Normal file
329
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/bill_of_materials.pb.go
generated
vendored
Normal file
@ -0,0 +1,329 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
|
||||
|
||||
/*
|
||||
Package containeranalysis is a generated protocol buffer package.
|
||||
|
||||
It is generated from these files:
|
||||
google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto
|
||||
google/devtools/containeranalysis/v1alpha1/containeranalysis.proto
|
||||
google/devtools/containeranalysis/v1alpha1/image_basis.proto
|
||||
google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
|
||||
google/devtools/containeranalysis/v1alpha1/provenance.proto
|
||||
google/devtools/containeranalysis/v1alpha1/source_context.proto
|
||||
|
||||
It has these top-level messages:
|
||||
PackageManager
|
||||
Occurrence
|
||||
Note
|
||||
Deployable
|
||||
Discovery
|
||||
BuildType
|
||||
BuildSignature
|
||||
BuildDetails
|
||||
GetOccurrenceRequest
|
||||
ListOccurrencesRequest
|
||||
ListOccurrencesResponse
|
||||
DeleteOccurrenceRequest
|
||||
CreateOccurrenceRequest
|
||||
UpdateOccurrenceRequest
|
||||
GetNoteRequest
|
||||
GetOccurrenceNoteRequest
|
||||
ListNotesRequest
|
||||
ListNotesResponse
|
||||
DeleteNoteRequest
|
||||
CreateNoteRequest
|
||||
UpdateNoteRequest
|
||||
ListNoteOccurrencesRequest
|
||||
ListNoteOccurrencesResponse
|
||||
OperationMetadata
|
||||
GetVulnzOccurrencesSummaryRequest
|
||||
GetVulnzOccurrencesSummaryResponse
|
||||
DockerImage
|
||||
VulnerabilityType
|
||||
BuildProvenance
|
||||
Source
|
||||
FileHashes
|
||||
Hash
|
||||
StorageSource
|
||||
RepoSource
|
||||
Command
|
||||
Artifact
|
||||
SourceContext
|
||||
AliasContext
|
||||
CloudRepoSourceContext
|
||||
GerritSourceContext
|
||||
GitSourceContext
|
||||
RepoId
|
||||
ProjectRepoId
|
||||
*/
|
||||
package containeranalysis
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// 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.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Instruction set architectures supported by various package managers.
|
||||
type PackageManager_Architecture int32
|
||||
|
||||
const (
|
||||
// Unknown architecture
|
||||
PackageManager_ARCHITECTURE_UNSPECIFIED PackageManager_Architecture = 0
|
||||
// X86 architecture
|
||||
PackageManager_X86 PackageManager_Architecture = 1
|
||||
// X64 architecture
|
||||
PackageManager_X64 PackageManager_Architecture = 2
|
||||
)
|
||||
|
||||
var PackageManager_Architecture_name = map[int32]string{
|
||||
0: "ARCHITECTURE_UNSPECIFIED",
|
||||
1: "X86",
|
||||
2: "X64",
|
||||
}
|
||||
var PackageManager_Architecture_value = map[string]int32{
|
||||
"ARCHITECTURE_UNSPECIFIED": 0,
|
||||
"X86": 1,
|
||||
"X64": 2,
|
||||
}
|
||||
|
||||
func (x PackageManager_Architecture) String() string {
|
||||
return proto.EnumName(PackageManager_Architecture_name, int32(x))
|
||||
}
|
||||
func (PackageManager_Architecture) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor0, []int{0, 0}
|
||||
}
|
||||
|
||||
// PackageManager provides metadata about available / installed packages.
|
||||
type PackageManager struct {
|
||||
}
|
||||
|
||||
func (m *PackageManager) Reset() { *m = PackageManager{} }
|
||||
func (m *PackageManager) String() string { return proto.CompactTextString(m) }
|
||||
func (*PackageManager) ProtoMessage() {}
|
||||
func (*PackageManager) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
||||
|
||||
// This represents a particular channel of distribution for a given package.
|
||||
// e.g. Debian's jessie-backports dpkg mirror
|
||||
type PackageManager_Distribution struct {
|
||||
// The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
|
||||
// denoting the package manager version distributing a package.
|
||||
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
|
||||
// The CPU architecture for which packages in this distribution
|
||||
// channel were built
|
||||
Architecture PackageManager_Architecture `protobuf:"varint,2,opt,name=architecture,enum=google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture" json:"architecture,omitempty"`
|
||||
// The latest available version of this package in
|
||||
// this distribution channel.
|
||||
LatestVersion *VulnerabilityType_Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion" json:"latest_version,omitempty"`
|
||||
// A freeform string denoting the maintainer of this package.
|
||||
Maintainer string `protobuf:"bytes,4,opt,name=maintainer" json:"maintainer,omitempty"`
|
||||
// The distribution channel-specific homepage for this package.
|
||||
Url string `protobuf:"bytes,6,opt,name=url" json:"url,omitempty"`
|
||||
// The distribution channel-specific description of this package.
|
||||
Description string `protobuf:"bytes,7,opt,name=description" json:"description,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PackageManager_Distribution) Reset() { *m = PackageManager_Distribution{} }
|
||||
func (m *PackageManager_Distribution) String() string { return proto.CompactTextString(m) }
|
||||
func (*PackageManager_Distribution) ProtoMessage() {}
|
||||
func (*PackageManager_Distribution) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 0} }
|
||||
|
||||
func (m *PackageManager_Distribution) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PackageManager_Distribution) GetArchitecture() PackageManager_Architecture {
|
||||
if m != nil {
|
||||
return m.Architecture
|
||||
}
|
||||
return PackageManager_ARCHITECTURE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *PackageManager_Distribution) GetLatestVersion() *VulnerabilityType_Version {
|
||||
if m != nil {
|
||||
return m.LatestVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PackageManager_Distribution) GetMaintainer() string {
|
||||
if m != nil {
|
||||
return m.Maintainer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PackageManager_Distribution) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PackageManager_Distribution) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// An occurrence of a particular package installation found within a
|
||||
// system's filesystem.
|
||||
// e.g. glibc was found in /var/lib/dpkg/status
|
||||
type PackageManager_Location struct {
|
||||
// The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
|
||||
// denoting the package manager version distributing a package.
|
||||
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
|
||||
// The version installed at this location.
|
||||
Version *VulnerabilityType_Version `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"`
|
||||
// The path from which we gathered that this package/version is installed.
|
||||
Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PackageManager_Location) Reset() { *m = PackageManager_Location{} }
|
||||
func (m *PackageManager_Location) String() string { return proto.CompactTextString(m) }
|
||||
func (*PackageManager_Location) ProtoMessage() {}
|
||||
func (*PackageManager_Location) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 1} }
|
||||
|
||||
func (m *PackageManager_Location) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PackageManager_Location) GetVersion() *VulnerabilityType_Version {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PackageManager_Location) GetPath() string {
|
||||
if m != nil {
|
||||
return m.Path
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// This represents a particular package that is distributed over
|
||||
// various channels.
|
||||
// e.g. glibc (aka libc6) is distributed by many, at various versions.
|
||||
type PackageManager_Package struct {
|
||||
// The name of the package.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// The various channels by which a package is distributed.
|
||||
Distribution []*PackageManager_Distribution `protobuf:"bytes,10,rep,name=distribution" json:"distribution,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PackageManager_Package) Reset() { *m = PackageManager_Package{} }
|
||||
func (m *PackageManager_Package) String() string { return proto.CompactTextString(m) }
|
||||
func (*PackageManager_Package) ProtoMessage() {}
|
||||
func (*PackageManager_Package) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 2} }
|
||||
|
||||
func (m *PackageManager_Package) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PackageManager_Package) GetDistribution() []*PackageManager_Distribution {
|
||||
if m != nil {
|
||||
return m.Distribution
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// This represents how a particular software package may be installed on
|
||||
// a system.
|
||||
type PackageManager_Installation struct {
|
||||
// Output only. The name of the installed package.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// All of the places within the filesystem versions of this package
|
||||
// have been found.
|
||||
Location []*PackageManager_Location `protobuf:"bytes,2,rep,name=location" json:"location,omitempty"`
|
||||
}
|
||||
|
||||
func (m *PackageManager_Installation) Reset() { *m = PackageManager_Installation{} }
|
||||
func (m *PackageManager_Installation) String() string { return proto.CompactTextString(m) }
|
||||
func (*PackageManager_Installation) ProtoMessage() {}
|
||||
func (*PackageManager_Installation) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3} }
|
||||
|
||||
func (m *PackageManager_Installation) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PackageManager_Installation) GetLocation() []*PackageManager_Location {
|
||||
if m != nil {
|
||||
return m.Location
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PackageManager)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager")
|
||||
proto.RegisterType((*PackageManager_Distribution)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Distribution")
|
||||
proto.RegisterType((*PackageManager_Location)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Location")
|
||||
proto.RegisterType((*PackageManager_Package)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Package")
|
||||
proto.RegisterType((*PackageManager_Installation)(nil), "google.devtools.containeranalysis.v1alpha1.PackageManager.Installation")
|
||||
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.PackageManager_Architecture", PackageManager_Architecture_name, PackageManager_Architecture_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/bill_of_materials.proto", fileDescriptor0)
|
||||
}
|
||||
|
||||
var fileDescriptor0 = []byte{
|
||||
// 522 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x93, 0xd1, 0x8a, 0xd3, 0x4e,
|
||||
0x14, 0xc6, 0xff, 0x49, 0x97, 0x76, 0xf7, 0xb4, 0xff, 0x52, 0xe6, 0xc6, 0x10, 0x16, 0x29, 0x0b,
|
||||
0x42, 0xf1, 0x22, 0x61, 0x57, 0x59, 0x04, 0x41, 0xe8, 0x76, 0xbb, 0x6b, 0x41, 0xa5, 0xc4, 0x76,
|
||||
0x11, 0xbd, 0x08, 0xa7, 0xe9, 0x98, 0x0e, 0x3b, 0x9d, 0x09, 0x93, 0x49, 0xa1, 0xd7, 0xde, 0x89,
|
||||
0x0f, 0xe0, 0xb5, 0x0f, 0xa5, 0xaf, 0x23, 0x99, 0x24, 0x92, 0xb2, 0x2a, 0xbb, 0xac, 0x77, 0x27,
|
||||
0xf3, 0x85, 0xdf, 0xf9, 0xce, 0x77, 0x66, 0xe0, 0x2c, 0x96, 0x32, 0xe6, 0xd4, 0x5f, 0xd2, 0x8d,
|
||||
0x96, 0x92, 0xa7, 0x7e, 0x24, 0x85, 0x46, 0x26, 0xa8, 0x42, 0x81, 0x7c, 0x9b, 0xb2, 0xd4, 0xdf,
|
||||
0x1c, 0x23, 0x4f, 0x56, 0x78, 0xec, 0x2f, 0x18, 0xe7, 0xa1, 0xfc, 0x18, 0xae, 0x51, 0x53, 0xc5,
|
||||
0x90, 0xa7, 0x5e, 0xa2, 0xa4, 0x96, 0xe4, 0x71, 0xc1, 0xf0, 0x2a, 0x86, 0x77, 0x83, 0xe1, 0x55,
|
||||
0x0c, 0xf7, 0xb0, 0xec, 0x87, 0x09, 0xf3, 0x51, 0x08, 0xa9, 0x51, 0x33, 0x29, 0x4a, 0x92, 0x7b,
|
||||
0x71, 0x07, 0x37, 0x09, 0x46, 0xd7, 0x18, 0xd3, 0x70, 0x93, 0xf1, 0x5c, 0x5f, 0x30, 0xce, 0xf4,
|
||||
0xb6, 0xe0, 0x1c, 0xfd, 0x68, 0x42, 0x77, 0x5a, 0xe8, 0xaf, 0x51, 0x60, 0x4c, 0x95, 0xfb, 0xdd,
|
||||
0x86, 0xce, 0x39, 0x4b, 0xb5, 0x62, 0x8b, 0x2c, 0x6f, 0x49, 0x1e, 0x40, 0x2b, 0x4a, 0x68, 0x98,
|
||||
0x29, 0xe6, 0x58, 0x7d, 0x6b, 0x70, 0x10, 0x34, 0xa3, 0x84, 0xce, 0x15, 0x23, 0xd7, 0xd0, 0x41,
|
||||
0x15, 0xad, 0x98, 0xa6, 0x91, 0xce, 0x14, 0x75, 0xec, 0xbe, 0x35, 0xe8, 0x9e, 0x5c, 0x7a, 0xb7,
|
||||
0x9f, 0xd2, 0xdb, 0xed, 0xed, 0x0d, 0x6b, 0xb8, 0x60, 0x07, 0x4e, 0x38, 0x74, 0x39, 0x6a, 0x9a,
|
||||
0xea, 0x70, 0x43, 0x55, 0xca, 0xa4, 0x70, 0x1a, 0x7d, 0x6b, 0xd0, 0x3e, 0x19, 0xdf, 0xa5, 0xdd,
|
||||
0x55, 0x3d, 0x82, 0xd9, 0x36, 0xa1, 0xde, 0x55, 0x01, 0x0b, 0xfe, 0x2f, 0xe0, 0xe5, 0x27, 0x79,
|
||||
0x08, 0xb0, 0x46, 0x56, 0x72, 0x9c, 0x3d, 0x33, 0x76, 0xed, 0x84, 0xf4, 0xa0, 0x91, 0x29, 0xee,
|
||||
0x34, 0x8d, 0x90, 0x97, 0xa4, 0x0f, 0xed, 0x25, 0x4d, 0x23, 0xc5, 0x92, 0x3c, 0x34, 0xa7, 0x65,
|
||||
0x94, 0xfa, 0x91, 0xfb, 0xd5, 0x82, 0xfd, 0x57, 0x32, 0xc2, 0xbf, 0x87, 0x1a, 0x42, 0xab, 0x1a,
|
||||
0xd0, 0xfe, 0x97, 0x03, 0x56, 0x54, 0x42, 0x60, 0x2f, 0x41, 0xbd, 0x32, 0xf1, 0x1d, 0x04, 0xa6,
|
||||
0x76, 0x3f, 0x5b, 0xd0, 0x2a, 0x57, 0x91, 0xeb, 0x02, 0xd7, 0xb4, 0xb4, 0x65, 0xea, 0x7c, 0xd3,
|
||||
0xcb, 0xda, 0x95, 0x70, 0xa0, 0xdf, 0x18, 0xb4, 0xef, 0xb5, 0xe9, 0xfa, 0x0d, 0x0b, 0x76, 0xe0,
|
||||
0xee, 0x27, 0x0b, 0x3a, 0x13, 0x91, 0x6a, 0xe4, 0xbc, 0xc8, 0xea, 0x77, 0x8e, 0x42, 0xd8, 0xe7,
|
||||
0x65, 0x96, 0x8e, 0x6d, 0xdc, 0x8c, 0xee, 0xe1, 0xa6, 0x5a, 0x4b, 0xf0, 0x0b, 0x7a, 0xf4, 0x02,
|
||||
0x3a, 0xf5, 0xdb, 0x48, 0x0e, 0xc1, 0x19, 0x06, 0xa3, 0x97, 0x93, 0xd9, 0x78, 0x34, 0x9b, 0x07,
|
||||
0xe3, 0x70, 0xfe, 0xe6, 0xed, 0x74, 0x3c, 0x9a, 0x5c, 0x4c, 0xc6, 0xe7, 0xbd, 0xff, 0x48, 0x0b,
|
||||
0x1a, 0xef, 0x9e, 0x9d, 0xf6, 0x2c, 0x53, 0x9c, 0x3e, 0xed, 0xd9, 0x67, 0x5f, 0x2c, 0x78, 0x14,
|
||||
0xc9, 0x75, 0x65, 0xea, 0xcf, 0x5e, 0xa6, 0xd6, 0xfb, 0x0f, 0xe5, 0x4f, 0xb1, 0xe4, 0x28, 0x62,
|
||||
0x4f, 0xaa, 0xd8, 0x8f, 0xa9, 0x30, 0x2f, 0xd4, 0x2f, 0x24, 0x4c, 0x58, 0x7a, 0x9b, 0xc7, 0xfe,
|
||||
0xfc, 0x86, 0xf4, 0xcd, 0x6e, 0x5c, 0x8e, 0x86, 0x8b, 0xa6, 0xa1, 0x3d, 0xf9, 0x19, 0x00, 0x00,
|
||||
0xff, 0xff, 0xfa, 0x4f, 0xa4, 0x56, 0xc7, 0x04, 0x00, 0x00,
|
||||
}
|
2526
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go
generated
vendored
Normal file
2526
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/containeranalysis.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
324
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/image_basis.pb.go
generated
vendored
Normal file
324
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/image_basis.pb.go
generated
vendored
Normal file
@ -0,0 +1,324 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1alpha1/image_basis.proto
|
||||
|
||||
package containeranalysis
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// Instructions from dockerfile
|
||||
type DockerImage_Layer_Directive int32
|
||||
|
||||
const (
|
||||
// Default value for unsupported/missing directive
|
||||
DockerImage_Layer_DIRECTIVE_UNSPECIFIED DockerImage_Layer_Directive = 0
|
||||
// https://docs.docker.com/reference/builder/#maintainer
|
||||
DockerImage_Layer_MAINTAINER DockerImage_Layer_Directive = 1
|
||||
// https://docs.docker.com/reference/builder/#run
|
||||
DockerImage_Layer_RUN DockerImage_Layer_Directive = 2
|
||||
// https://docs.docker.com/reference/builder/#cmd
|
||||
DockerImage_Layer_CMD DockerImage_Layer_Directive = 3
|
||||
// https://docs.docker.com/reference/builder/#label
|
||||
DockerImage_Layer_LABEL DockerImage_Layer_Directive = 4
|
||||
// https://docs.docker.com/reference/builder/#expose
|
||||
DockerImage_Layer_EXPOSE DockerImage_Layer_Directive = 5
|
||||
// https://docs.docker.com/reference/builder/#env
|
||||
DockerImage_Layer_ENV DockerImage_Layer_Directive = 6
|
||||
// https://docs.docker.com/reference/builder/#add
|
||||
DockerImage_Layer_ADD DockerImage_Layer_Directive = 7
|
||||
// https://docs.docker.com/reference/builder/#copy
|
||||
DockerImage_Layer_COPY DockerImage_Layer_Directive = 8
|
||||
// https://docs.docker.com/reference/builder/#entrypoint
|
||||
DockerImage_Layer_ENTRYPOINT DockerImage_Layer_Directive = 9
|
||||
// https://docs.docker.com/reference/builder/#volume
|
||||
DockerImage_Layer_VOLUME DockerImage_Layer_Directive = 10
|
||||
// https://docs.docker.com/reference/builder/#user
|
||||
DockerImage_Layer_USER DockerImage_Layer_Directive = 11
|
||||
// https://docs.docker.com/reference/builder/#workdir
|
||||
DockerImage_Layer_WORKDIR DockerImage_Layer_Directive = 12
|
||||
// https://docs.docker.com/reference/builder/#arg
|
||||
DockerImage_Layer_ARG DockerImage_Layer_Directive = 13
|
||||
// https://docs.docker.com/reference/builder/#onbuild
|
||||
DockerImage_Layer_ONBUILD DockerImage_Layer_Directive = 14
|
||||
// https://docs.docker.com/reference/builder/#stopsignal
|
||||
DockerImage_Layer_STOPSIGNAL DockerImage_Layer_Directive = 15
|
||||
// https://docs.docker.com/reference/builder/#healthcheck
|
||||
DockerImage_Layer_HEALTHCHECK DockerImage_Layer_Directive = 16
|
||||
// https://docs.docker.com/reference/builder/#shell
|
||||
DockerImage_Layer_SHELL DockerImage_Layer_Directive = 17
|
||||
)
|
||||
|
||||
var DockerImage_Layer_Directive_name = map[int32]string{
|
||||
0: "DIRECTIVE_UNSPECIFIED",
|
||||
1: "MAINTAINER",
|
||||
2: "RUN",
|
||||
3: "CMD",
|
||||
4: "LABEL",
|
||||
5: "EXPOSE",
|
||||
6: "ENV",
|
||||
7: "ADD",
|
||||
8: "COPY",
|
||||
9: "ENTRYPOINT",
|
||||
10: "VOLUME",
|
||||
11: "USER",
|
||||
12: "WORKDIR",
|
||||
13: "ARG",
|
||||
14: "ONBUILD",
|
||||
15: "STOPSIGNAL",
|
||||
16: "HEALTHCHECK",
|
||||
17: "SHELL",
|
||||
}
|
||||
var DockerImage_Layer_Directive_value = map[string]int32{
|
||||
"DIRECTIVE_UNSPECIFIED": 0,
|
||||
"MAINTAINER": 1,
|
||||
"RUN": 2,
|
||||
"CMD": 3,
|
||||
"LABEL": 4,
|
||||
"EXPOSE": 5,
|
||||
"ENV": 6,
|
||||
"ADD": 7,
|
||||
"COPY": 8,
|
||||
"ENTRYPOINT": 9,
|
||||
"VOLUME": 10,
|
||||
"USER": 11,
|
||||
"WORKDIR": 12,
|
||||
"ARG": 13,
|
||||
"ONBUILD": 14,
|
||||
"STOPSIGNAL": 15,
|
||||
"HEALTHCHECK": 16,
|
||||
"SHELL": 17,
|
||||
}
|
||||
|
||||
func (x DockerImage_Layer_Directive) String() string {
|
||||
return proto.EnumName(DockerImage_Layer_Directive_name, int32(x))
|
||||
}
|
||||
func (DockerImage_Layer_Directive) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor2, []int{0, 0, 0}
|
||||
}
|
||||
|
||||
// DockerImage holds types defining base image notes
|
||||
// and derived image occurrences.
|
||||
type DockerImage struct {
|
||||
}
|
||||
|
||||
func (m *DockerImage) Reset() { *m = DockerImage{} }
|
||||
func (m *DockerImage) String() string { return proto.CompactTextString(m) }
|
||||
func (*DockerImage) ProtoMessage() {}
|
||||
func (*DockerImage) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
|
||||
|
||||
// Layer holds metadata specific to a layer of a Docker image.
|
||||
type DockerImage_Layer struct {
|
||||
// The recovered Dockerfile directive used to construct this layer.
|
||||
Directive DockerImage_Layer_Directive `protobuf:"varint,1,opt,name=directive,enum=google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive" json:"directive,omitempty"`
|
||||
// The recovered arguments to the Dockerfile directive.
|
||||
Arguments string `protobuf:"bytes,2,opt,name=arguments" json:"arguments,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DockerImage_Layer) Reset() { *m = DockerImage_Layer{} }
|
||||
func (m *DockerImage_Layer) String() string { return proto.CompactTextString(m) }
|
||||
func (*DockerImage_Layer) ProtoMessage() {}
|
||||
func (*DockerImage_Layer) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
|
||||
|
||||
func (m *DockerImage_Layer) GetDirective() DockerImage_Layer_Directive {
|
||||
if m != nil {
|
||||
return m.Directive
|
||||
}
|
||||
return DockerImage_Layer_DIRECTIVE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *DockerImage_Layer) GetArguments() string {
|
||||
if m != nil {
|
||||
return m.Arguments
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A set of properties that uniquely identify a given Docker image.
|
||||
type DockerImage_Fingerprint struct {
|
||||
// The layer-id of the final layer in the Docker image's v1
|
||||
// representation.
|
||||
// This field can be used as a filter in list requests.
|
||||
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name" json:"v1_name,omitempty"`
|
||||
// The ordered list of v2 blobs that represent a given image.
|
||||
V2Blob []string `protobuf:"bytes,2,rep,name=v2_blob,json=v2Blob" json:"v2_blob,omitempty"`
|
||||
// Output only. The name of the image's v2 blobs computed via:
|
||||
// [bottom] := v2_blob[bottom]
|
||||
// [N] := sha256(v2_blob[N] + " " + v2_name[N+1])
|
||||
// Only the name of the final blob is kept.
|
||||
// This field can be used as a filter in list requests.
|
||||
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name" json:"v2_name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DockerImage_Fingerprint) Reset() { *m = DockerImage_Fingerprint{} }
|
||||
func (m *DockerImage_Fingerprint) String() string { return proto.CompactTextString(m) }
|
||||
func (*DockerImage_Fingerprint) ProtoMessage() {}
|
||||
func (*DockerImage_Fingerprint) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 1} }
|
||||
|
||||
func (m *DockerImage_Fingerprint) GetV1Name() string {
|
||||
if m != nil {
|
||||
return m.V1Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DockerImage_Fingerprint) GetV2Blob() []string {
|
||||
if m != nil {
|
||||
return m.V2Blob
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DockerImage_Fingerprint) GetV2Name() string {
|
||||
if m != nil {
|
||||
return m.V2Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Basis describes the base image portion (Note) of the DockerImage
|
||||
// relationship. Linked occurrences are derived from this or an
|
||||
// equivalent image via:
|
||||
// FROM <Basis.resource_url>
|
||||
// Or an equivalent reference, e.g. a tag of the resource_url.
|
||||
type DockerImage_Basis struct {
|
||||
// The resource_url for the resource representing the basis of
|
||||
// associated occurrence images.
|
||||
ResourceUrl string `protobuf:"bytes,1,opt,name=resource_url,json=resourceUrl" json:"resource_url,omitempty"`
|
||||
// The fingerprint of the base image
|
||||
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,2,opt,name=fingerprint" json:"fingerprint,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DockerImage_Basis) Reset() { *m = DockerImage_Basis{} }
|
||||
func (m *DockerImage_Basis) String() string { return proto.CompactTextString(m) }
|
||||
func (*DockerImage_Basis) ProtoMessage() {}
|
||||
func (*DockerImage_Basis) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 2} }
|
||||
|
||||
func (m *DockerImage_Basis) GetResourceUrl() string {
|
||||
if m != nil {
|
||||
return m.ResourceUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *DockerImage_Basis) GetFingerprint() *DockerImage_Fingerprint {
|
||||
if m != nil {
|
||||
return m.Fingerprint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Derived describes the derived image portion (Occurrence) of the
|
||||
// DockerImage relationship. This image would be produced from a Dockerfile
|
||||
// with FROM <DockerImage.Basis in attached Note>.
|
||||
type DockerImage_Derived struct {
|
||||
// The fingerprint of the derived image
|
||||
Fingerprint *DockerImage_Fingerprint `protobuf:"bytes,1,opt,name=fingerprint" json:"fingerprint,omitempty"`
|
||||
// Output only. The number of layers by which this image differs from
|
||||
// the associated image basis.
|
||||
Distance uint32 `protobuf:"varint,2,opt,name=distance" json:"distance,omitempty"`
|
||||
// This contains layer-specific metadata, if populated it
|
||||
// has length "distance" and is ordered with [distance] being the
|
||||
// layer immediately following the base image and [1]
|
||||
// being the final layer.
|
||||
LayerInfo []*DockerImage_Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo" json:"layer_info,omitempty"`
|
||||
// Output only.This contains the base image url for the derived image
|
||||
// Occurrence
|
||||
BaseResourceUrl string `protobuf:"bytes,4,opt,name=base_resource_url,json=baseResourceUrl" json:"base_resource_url,omitempty"`
|
||||
}
|
||||
|
||||
func (m *DockerImage_Derived) Reset() { *m = DockerImage_Derived{} }
|
||||
func (m *DockerImage_Derived) String() string { return proto.CompactTextString(m) }
|
||||
func (*DockerImage_Derived) ProtoMessage() {}
|
||||
func (*DockerImage_Derived) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 3} }
|
||||
|
||||
func (m *DockerImage_Derived) GetFingerprint() *DockerImage_Fingerprint {
|
||||
if m != nil {
|
||||
return m.Fingerprint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DockerImage_Derived) GetDistance() uint32 {
|
||||
if m != nil {
|
||||
return m.Distance
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *DockerImage_Derived) GetLayerInfo() []*DockerImage_Layer {
|
||||
if m != nil {
|
||||
return m.LayerInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *DockerImage_Derived) GetBaseResourceUrl() string {
|
||||
if m != nil {
|
||||
return m.BaseResourceUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*DockerImage)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage")
|
||||
proto.RegisterType((*DockerImage_Layer)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Layer")
|
||||
proto.RegisterType((*DockerImage_Fingerprint)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Fingerprint")
|
||||
proto.RegisterType((*DockerImage_Basis)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Basis")
|
||||
proto.RegisterType((*DockerImage_Derived)(nil), "google.devtools.containeranalysis.v1alpha1.DockerImage.Derived")
|
||||
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.DockerImage_Layer_Directive", DockerImage_Layer_Directive_name, DockerImage_Layer_Directive_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/image_basis.proto", fileDescriptor2)
|
||||
}
|
||||
|
||||
var fileDescriptor2 = []byte{
|
||||
// 627 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x94, 0xdf, 0x6e, 0xda, 0x30,
|
||||
0x14, 0xc6, 0x17, 0x28, 0xd0, 0x9c, 0xf4, 0x8f, 0x6b, 0x69, 0x1a, 0x43, 0xbd, 0x60, 0x95, 0x26,
|
||||
0x55, 0xbd, 0x08, 0x82, 0x5d, 0x6e, 0xbb, 0x80, 0xc4, 0x85, 0xa8, 0x69, 0x40, 0x06, 0xba, 0x76,
|
||||
0x9b, 0x84, 0x0c, 0xb8, 0x59, 0xb4, 0x60, 0x23, 0x27, 0x45, 0xea, 0x3b, 0xec, 0x66, 0x37, 0x7d,
|
||||
0x80, 0x3d, 0xe1, 0xde, 0x60, 0x93, 0x53, 0x28, 0xdd, 0xaa, 0x49, 0xd5, 0xa6, 0xdd, 0x99, 0xf3,
|
||||
0xf9, 0xfb, 0x7d, 0xf6, 0xf1, 0x21, 0xf0, 0x26, 0x94, 0x32, 0x8c, 0x79, 0x6d, 0xca, 0x17, 0xa9,
|
||||
0x94, 0x71, 0x52, 0x9b, 0x48, 0x91, 0xb2, 0x48, 0x70, 0xc5, 0x04, 0x8b, 0xaf, 0x93, 0x28, 0xa9,
|
||||
0x2d, 0xea, 0x2c, 0x9e, 0x7f, 0x62, 0xf5, 0x5a, 0x34, 0x63, 0x21, 0x1f, 0x8d, 0x59, 0x12, 0x25,
|
||||
0xf6, 0x5c, 0xc9, 0x54, 0xe2, 0xa3, 0x5b, 0xb7, 0xbd, 0x72, 0xdb, 0x0f, 0xdc, 0xf6, 0xca, 0x5d,
|
||||
0xd9, 0x5f, 0x26, 0xb1, 0x79, 0x54, 0x63, 0x42, 0xc8, 0x94, 0xa5, 0x91, 0x14, 0x4b, 0xd2, 0xc1,
|
||||
0x4d, 0x09, 0x2c, 0x57, 0x4e, 0x3e, 0x73, 0xe5, 0xe9, 0x94, 0xca, 0x8f, 0x1c, 0x14, 0x7c, 0x76,
|
||||
0xcd, 0x15, 0xe6, 0x60, 0x4e, 0x23, 0xc5, 0x27, 0x69, 0xb4, 0xe0, 0x65, 0xa3, 0x6a, 0x1c, 0xee,
|
||||
0x34, 0xda, 0xf6, 0xe3, 0x73, 0xed, 0x7b, 0x54, 0x3b, 0x23, 0xda, 0xee, 0x0a, 0x47, 0xd7, 0x64,
|
||||
0xbc, 0x0f, 0x26, 0x53, 0xe1, 0xd5, 0x8c, 0x8b, 0x34, 0x29, 0xe7, 0xaa, 0xc6, 0xa1, 0x49, 0xd7,
|
||||
0x85, 0x83, 0xef, 0x06, 0x98, 0x77, 0x36, 0xfc, 0x1c, 0x9e, 0xba, 0x1e, 0x25, 0xce, 0xc0, 0x3b,
|
||||
0x23, 0xa3, 0x61, 0xd0, 0xef, 0x11, 0xc7, 0x3b, 0xf6, 0x88, 0x8b, 0x9e, 0xe0, 0x1d, 0x80, 0xd3,
|
||||
0xa6, 0x17, 0x0c, 0x9a, 0x5e, 0x40, 0x28, 0x32, 0x70, 0x09, 0xf2, 0x74, 0x18, 0xa0, 0x9c, 0x5e,
|
||||
0x38, 0xa7, 0x2e, 0xca, 0x63, 0x13, 0x0a, 0x7e, 0xb3, 0x45, 0x7c, 0xb4, 0x81, 0x01, 0x8a, 0xe4,
|
||||
0xbc, 0xd7, 0xed, 0x13, 0x54, 0xd0, 0x3a, 0x09, 0xce, 0x50, 0x51, 0x2f, 0x9a, 0xae, 0x8b, 0x4a,
|
||||
0x78, 0x13, 0x36, 0x9c, 0x6e, 0xef, 0x02, 0x6d, 0x6a, 0x28, 0x09, 0x06, 0xf4, 0xa2, 0xd7, 0xf5,
|
||||
0x82, 0x01, 0x32, 0xb5, 0xef, 0xac, 0xeb, 0x0f, 0x4f, 0x09, 0x02, 0xbd, 0x6b, 0xd8, 0x27, 0x14,
|
||||
0x59, 0xd8, 0x82, 0xd2, 0xbb, 0x2e, 0x3d, 0x71, 0x3d, 0x8a, 0xb6, 0x32, 0x0a, 0x6d, 0xa3, 0x6d,
|
||||
0x5d, 0xed, 0x06, 0xad, 0xa1, 0xe7, 0xbb, 0x68, 0x47, 0x83, 0xfa, 0x83, 0x6e, 0xaf, 0xef, 0xb5,
|
||||
0x83, 0xa6, 0x8f, 0x76, 0xf1, 0x2e, 0x58, 0x1d, 0xd2, 0xf4, 0x07, 0x1d, 0xa7, 0x43, 0x9c, 0x13,
|
||||
0x84, 0xf4, 0xe1, 0xfa, 0x1d, 0xe2, 0xfb, 0x68, 0xaf, 0x72, 0x0e, 0xd6, 0x71, 0x24, 0x42, 0xae,
|
||||
0xe6, 0x2a, 0x12, 0x29, 0x7e, 0x06, 0xa5, 0x45, 0x7d, 0x24, 0xd8, 0xec, 0xf6, 0x11, 0x4c, 0x5a,
|
||||
0x5c, 0xd4, 0x03, 0x36, 0xe3, 0x99, 0xd0, 0x18, 0x8d, 0x63, 0x39, 0x2e, 0xe7, 0xaa, 0xf9, 0x4c,
|
||||
0x68, 0xb4, 0x62, 0x39, 0x5e, 0x0a, 0x99, 0x23, 0xbf, 0x74, 0x34, 0xb4, 0xa3, 0xf2, 0xd5, 0x80,
|
||||
0x42, 0x4b, 0x4f, 0x11, 0x7e, 0x01, 0x5b, 0x8a, 0x27, 0xf2, 0x4a, 0x4d, 0xf8, 0xe8, 0x4a, 0xc5,
|
||||
0x4b, 0xb2, 0xb5, 0xaa, 0x0d, 0x55, 0x8c, 0x39, 0x58, 0x97, 0xeb, 0x63, 0x64, 0x2f, 0x63, 0x35,
|
||||
0x9c, 0xbf, 0x1d, 0x80, 0x7b, 0x37, 0xa2, 0xf7, 0xb9, 0x95, 0x9b, 0x1c, 0x94, 0x5c, 0xae, 0xa2,
|
||||
0x05, 0x9f, 0xfe, 0x1e, 0x69, 0xfc, 0x9f, 0x48, 0x5c, 0x81, 0xcd, 0x69, 0x94, 0xa4, 0x4c, 0x4c,
|
||||
0x78, 0x76, 0xad, 0x6d, 0x7a, 0xf7, 0x1b, 0x7f, 0x04, 0x88, 0xf5, 0xac, 0x8e, 0x22, 0x71, 0x29,
|
||||
0xcb, 0xf9, 0x6a, 0xfe, 0xd0, 0x6a, 0xbc, 0xfd, 0xa7, 0xa9, 0xa7, 0x66, 0x06, 0xf4, 0xc4, 0xa5,
|
||||
0xc4, 0x47, 0xb0, 0x37, 0x66, 0x09, 0x1f, 0xfd, 0xd2, 0xfb, 0x8d, 0xac, 0xf7, 0xbb, 0x5a, 0xa0,
|
||||
0xeb, 0xfe, 0xb7, 0xbe, 0x18, 0xf0, 0x72, 0x22, 0x67, 0xab, 0xec, 0x3f, 0x47, 0xf6, 0x8c, 0xf7,
|
||||
0x1f, 0x96, 0x9b, 0x42, 0x19, 0x33, 0x11, 0xda, 0x52, 0x85, 0xb5, 0x90, 0x8b, 0xec, 0x0f, 0x5e,
|
||||
0xbb, 0x95, 0xd8, 0x3c, 0x4a, 0x1e, 0xf3, 0xad, 0x79, 0xfd, 0x40, 0xfa, 0x96, 0xcb, 0xb7, 0x9d,
|
||||
0xe6, 0xb8, 0x98, 0xd1, 0x5e, 0xfd, 0x0c, 0x00, 0x00, 0xff, 0xff, 0xc3, 0xd1, 0xf4, 0x9a, 0xb8,
|
||||
0x04, 0x00, 0x00,
|
||||
}
|
468
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/package_vulnerability.pb.go
generated
vendored
Normal file
468
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/package_vulnerability.pb.go
generated
vendored
Normal file
@ -0,0 +1,468 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto
|
||||
|
||||
package containeranalysis
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// Note provider-assigned severity/impact ranking
|
||||
type VulnerabilityType_Severity int32
|
||||
|
||||
const (
|
||||
// Unknown Impact
|
||||
VulnerabilityType_SEVERITY_UNSPECIFIED VulnerabilityType_Severity = 0
|
||||
// Minimal Impact
|
||||
VulnerabilityType_MINIMAL VulnerabilityType_Severity = 1
|
||||
// Low Impact
|
||||
VulnerabilityType_LOW VulnerabilityType_Severity = 2
|
||||
// Medium Impact
|
||||
VulnerabilityType_MEDIUM VulnerabilityType_Severity = 3
|
||||
// High Impact
|
||||
VulnerabilityType_HIGH VulnerabilityType_Severity = 4
|
||||
// Critical Impact
|
||||
VulnerabilityType_CRITICAL VulnerabilityType_Severity = 5
|
||||
)
|
||||
|
||||
var VulnerabilityType_Severity_name = map[int32]string{
|
||||
0: "SEVERITY_UNSPECIFIED",
|
||||
1: "MINIMAL",
|
||||
2: "LOW",
|
||||
3: "MEDIUM",
|
||||
4: "HIGH",
|
||||
5: "CRITICAL",
|
||||
}
|
||||
var VulnerabilityType_Severity_value = map[string]int32{
|
||||
"SEVERITY_UNSPECIFIED": 0,
|
||||
"MINIMAL": 1,
|
||||
"LOW": 2,
|
||||
"MEDIUM": 3,
|
||||
"HIGH": 4,
|
||||
"CRITICAL": 5,
|
||||
}
|
||||
|
||||
func (x VulnerabilityType_Severity) String() string {
|
||||
return proto.EnumName(VulnerabilityType_Severity_name, int32(x))
|
||||
}
|
||||
func (VulnerabilityType_Severity) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor3, []int{0, 0}
|
||||
}
|
||||
|
||||
// Whether this is an ordinary package version or a
|
||||
// sentinel MIN/MAX version.
|
||||
type VulnerabilityType_Version_VersionKind int32
|
||||
|
||||
const (
|
||||
// A standard package version, defined by the other fields.
|
||||
VulnerabilityType_Version_NORMAL VulnerabilityType_Version_VersionKind = 0
|
||||
// A special version representing negative infinity,
|
||||
// other fields are ignored.
|
||||
VulnerabilityType_Version_MINIMUM VulnerabilityType_Version_VersionKind = 1
|
||||
// A special version representing positive infinity,
|
||||
// other fields are ignored.
|
||||
VulnerabilityType_Version_MAXIMUM VulnerabilityType_Version_VersionKind = 2
|
||||
)
|
||||
|
||||
var VulnerabilityType_Version_VersionKind_name = map[int32]string{
|
||||
0: "NORMAL",
|
||||
1: "MINIMUM",
|
||||
2: "MAXIMUM",
|
||||
}
|
||||
var VulnerabilityType_Version_VersionKind_value = map[string]int32{
|
||||
"NORMAL": 0,
|
||||
"MINIMUM": 1,
|
||||
"MAXIMUM": 2,
|
||||
}
|
||||
|
||||
func (x VulnerabilityType_Version_VersionKind) String() string {
|
||||
return proto.EnumName(VulnerabilityType_Version_VersionKind_name, int32(x))
|
||||
}
|
||||
func (VulnerabilityType_Version_VersionKind) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor3, []int{0, 0, 0}
|
||||
}
|
||||
|
||||
// VulnerabilityType provides metadata about a security vulnerability.
|
||||
type VulnerabilityType struct {
|
||||
// The CVSS score for this Vulnerability.
|
||||
CvssScore float32 `protobuf:"fixed32,2,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
|
||||
// Note provider assigned impact of the vulnerability
|
||||
Severity VulnerabilityType_Severity `protobuf:"varint,3,opt,name=severity,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
|
||||
// All information about the package to specifically identify this
|
||||
// vulnerability. One entry per (version range and cpe_uri) the
|
||||
// package vulnerability has manifested in.
|
||||
Details []*VulnerabilityType_Detail `protobuf:"bytes,4,rep,name=details" json:"details,omitempty"`
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType) Reset() { *m = VulnerabilityType{} }
|
||||
func (m *VulnerabilityType) String() string { return proto.CompactTextString(m) }
|
||||
func (*VulnerabilityType) ProtoMessage() {}
|
||||
func (*VulnerabilityType) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
|
||||
|
||||
func (m *VulnerabilityType) GetCvssScore() float32 {
|
||||
if m != nil {
|
||||
return m.CvssScore
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType) GetSeverity() VulnerabilityType_Severity {
|
||||
if m != nil {
|
||||
return m.Severity
|
||||
}
|
||||
return VulnerabilityType_SEVERITY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType) GetDetails() []*VulnerabilityType_Detail {
|
||||
if m != nil {
|
||||
return m.Details
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Version contains structured information about the version of the package.
|
||||
// For a discussion of this in Debian/Ubuntu:
|
||||
// http://serverfault.com/questions/604541/debian-packages-version-convention
|
||||
// For a discussion of this in Redhat/Fedora/Centos:
|
||||
// http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
|
||||
type VulnerabilityType_Version struct {
|
||||
// Used to correct mistakes in the version numbering scheme.
|
||||
Epoch int32 `protobuf:"varint,1,opt,name=epoch" json:"epoch,omitempty"`
|
||||
// The main part of the version name.
|
||||
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
||||
// The iteration of the package build from the above version.
|
||||
Revision string `protobuf:"bytes,3,opt,name=revision" json:"revision,omitempty"`
|
||||
// Distinguish between sentinel MIN/MAX versions and normal versions.
|
||||
// If kind is not NORMAL, then the other fields are ignored.
|
||||
Kind VulnerabilityType_Version_VersionKind `protobuf:"varint,5,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind" json:"kind,omitempty"`
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Version) Reset() { *m = VulnerabilityType_Version{} }
|
||||
func (m *VulnerabilityType_Version) String() string { return proto.CompactTextString(m) }
|
||||
func (*VulnerabilityType_Version) ProtoMessage() {}
|
||||
func (*VulnerabilityType_Version) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
|
||||
|
||||
func (m *VulnerabilityType_Version) GetEpoch() int32 {
|
||||
if m != nil {
|
||||
return m.Epoch
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Version) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Version) GetRevision() string {
|
||||
if m != nil {
|
||||
return m.Revision
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Version) GetKind() VulnerabilityType_Version_VersionKind {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return VulnerabilityType_Version_NORMAL
|
||||
}
|
||||
|
||||
// Identifies all occurrences of this vulnerability in the package for a
|
||||
// specific distro/location
|
||||
// For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
|
||||
type VulnerabilityType_Detail struct {
|
||||
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
|
||||
// which the vulnerability manifests. Examples include distro or storage
|
||||
// location for vulnerable jar.
|
||||
// This field can be used as a filter in list requests.
|
||||
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
|
||||
// The name of the package where the vulnerability was found.
|
||||
// This field can be used as a filter in list requests.
|
||||
Package string `protobuf:"bytes,8,opt,name=package" json:"package,omitempty"`
|
||||
// The min version of the package in which the vulnerability exists.
|
||||
MinAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,6,opt,name=min_affected_version,json=minAffectedVersion" json:"min_affected_version,omitempty"`
|
||||
// The max version of the package in which the vulnerability exists.
|
||||
// This field can be used as a filter in list requests.
|
||||
MaxAffectedVersion *VulnerabilityType_Version `protobuf:"bytes,7,opt,name=max_affected_version,json=maxAffectedVersion" json:"max_affected_version,omitempty"`
|
||||
// The severity (eg: distro assigned severity) for this vulnerability.
|
||||
SeverityName string `protobuf:"bytes,4,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
|
||||
// A vendor-specific description of this note.
|
||||
Description string `protobuf:"bytes,9,opt,name=description" json:"description,omitempty"`
|
||||
// The fix for this specific package version.
|
||||
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,5,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
|
||||
// The type of package; whether native or non native(ruby gems,
|
||||
// node.js packages etc)
|
||||
PackageType string `protobuf:"bytes,10,opt,name=package_type,json=packageType" json:"package_type,omitempty"`
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) Reset() { *m = VulnerabilityType_Detail{} }
|
||||
func (m *VulnerabilityType_Detail) String() string { return proto.CompactTextString(m) }
|
||||
func (*VulnerabilityType_Detail) ProtoMessage() {}
|
||||
func (*VulnerabilityType_Detail) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 1} }
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetPackage() string {
|
||||
if m != nil {
|
||||
return m.Package
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetMinAffectedVersion() *VulnerabilityType_Version {
|
||||
if m != nil {
|
||||
return m.MinAffectedVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetMaxAffectedVersion() *VulnerabilityType_Version {
|
||||
if m != nil {
|
||||
return m.MaxAffectedVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetSeverityName() string {
|
||||
if m != nil {
|
||||
return m.SeverityName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetFixedLocation() *VulnerabilityType_VulnerabilityLocation {
|
||||
if m != nil {
|
||||
return m.FixedLocation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_Detail) GetPackageType() string {
|
||||
if m != nil {
|
||||
return m.PackageType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Used by Occurrence to point to where the vulnerability exists and how
|
||||
// to fix it.
|
||||
type VulnerabilityType_VulnerabilityDetails struct {
|
||||
// The type of package; whether native or non native(ruby gems,
|
||||
// node.js packages etc)
|
||||
Type string `protobuf:"bytes,3,opt,name=type" json:"type,omitempty"`
|
||||
// Output only. The note provider assigned Severity of the vulnerability.
|
||||
Severity VulnerabilityType_Severity `protobuf:"varint,4,opt,name=severity,enum=google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity" json:"severity,omitempty"`
|
||||
// Output only. The CVSS score of this vulnerability. CVSS score is on a
|
||||
// scale of 0-10 where 0 indicates low severity and 10 indicates high
|
||||
// severity.
|
||||
CvssScore float32 `protobuf:"fixed32,5,opt,name=cvss_score,json=cvssScore" json:"cvss_score,omitempty"`
|
||||
// The set of affected locations and their fixes (if available) within
|
||||
// the associated resource.
|
||||
PackageIssue []*VulnerabilityType_PackageIssue `protobuf:"bytes,6,rep,name=package_issue,json=packageIssue" json:"package_issue,omitempty"`
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityDetails) Reset() {
|
||||
*m = VulnerabilityType_VulnerabilityDetails{}
|
||||
}
|
||||
func (m *VulnerabilityType_VulnerabilityDetails) String() string { return proto.CompactTextString(m) }
|
||||
func (*VulnerabilityType_VulnerabilityDetails) ProtoMessage() {}
|
||||
func (*VulnerabilityType_VulnerabilityDetails) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor3, []int{0, 2}
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityDetails) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityDetails) GetSeverity() VulnerabilityType_Severity {
|
||||
if m != nil {
|
||||
return m.Severity
|
||||
}
|
||||
return VulnerabilityType_SEVERITY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityDetails) GetCvssScore() float32 {
|
||||
if m != nil {
|
||||
return m.CvssScore
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityDetails) GetPackageIssue() []*VulnerabilityType_PackageIssue {
|
||||
if m != nil {
|
||||
return m.PackageIssue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// This message wraps a location affected by a vulnerability and its
|
||||
// associated fix (if one is available).
|
||||
type VulnerabilityType_PackageIssue struct {
|
||||
// The location of the vulnerability.
|
||||
AffectedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation" json:"affected_location,omitempty"`
|
||||
// The location of the available fix for vulnerability.
|
||||
FixedLocation *VulnerabilityType_VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation" json:"fixed_location,omitempty"`
|
||||
// The severity (eg: distro assigned severity) for this vulnerability.
|
||||
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName" json:"severity_name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_PackageIssue) Reset() { *m = VulnerabilityType_PackageIssue{} }
|
||||
func (m *VulnerabilityType_PackageIssue) String() string { return proto.CompactTextString(m) }
|
||||
func (*VulnerabilityType_PackageIssue) ProtoMessage() {}
|
||||
func (*VulnerabilityType_PackageIssue) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor3, []int{0, 3}
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_PackageIssue) GetAffectedLocation() *VulnerabilityType_VulnerabilityLocation {
|
||||
if m != nil {
|
||||
return m.AffectedLocation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_PackageIssue) GetFixedLocation() *VulnerabilityType_VulnerabilityLocation {
|
||||
if m != nil {
|
||||
return m.FixedLocation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_PackageIssue) GetSeverityName() string {
|
||||
if m != nil {
|
||||
return m.SeverityName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The location of the vulnerability
|
||||
type VulnerabilityType_VulnerabilityLocation struct {
|
||||
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
|
||||
// format. Examples include distro or storage location for vulnerable jar.
|
||||
// This field can be used as a filter in list requests.
|
||||
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri" json:"cpe_uri,omitempty"`
|
||||
// The package being described.
|
||||
Package string `protobuf:"bytes,2,opt,name=package" json:"package,omitempty"`
|
||||
// The version of the package being described.
|
||||
// This field can be used as a filter in list requests.
|
||||
Version *VulnerabilityType_Version `protobuf:"bytes,4,opt,name=version" json:"version,omitempty"`
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityLocation) Reset() {
|
||||
*m = VulnerabilityType_VulnerabilityLocation{}
|
||||
}
|
||||
func (m *VulnerabilityType_VulnerabilityLocation) String() string { return proto.CompactTextString(m) }
|
||||
func (*VulnerabilityType_VulnerabilityLocation) ProtoMessage() {}
|
||||
func (*VulnerabilityType_VulnerabilityLocation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor3, []int{0, 4}
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityLocation) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityLocation) GetPackage() string {
|
||||
if m != nil {
|
||||
return m.Package
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityType_VulnerabilityLocation) GetVersion() *VulnerabilityType_Version {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*VulnerabilityType)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType")
|
||||
proto.RegisterType((*VulnerabilityType_Version)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Version")
|
||||
proto.RegisterType((*VulnerabilityType_Detail)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.Detail")
|
||||
proto.RegisterType((*VulnerabilityType_VulnerabilityDetails)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityDetails")
|
||||
proto.RegisterType((*VulnerabilityType_PackageIssue)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.PackageIssue")
|
||||
proto.RegisterType((*VulnerabilityType_VulnerabilityLocation)(nil), "google.devtools.containeranalysis.v1alpha1.VulnerabilityType.VulnerabilityLocation")
|
||||
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Severity", VulnerabilityType_Severity_name, VulnerabilityType_Severity_value)
|
||||
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.VulnerabilityType_Version_VersionKind", VulnerabilityType_Version_VersionKind_name, VulnerabilityType_Version_VersionKind_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/package_vulnerability.proto", fileDescriptor3)
|
||||
}
|
||||
|
||||
var fileDescriptor3 = []byte{
|
||||
// 750 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x56, 0xcf, 0x6e, 0xda, 0x4c,
|
||||
0x10, 0xff, 0x6c, 0x0c, 0x86, 0x81, 0x44, 0xce, 0x8a, 0x4f, 0x9f, 0x85, 0xbe, 0x4a, 0x34, 0x55,
|
||||
0x25, 0xd4, 0x83, 0x51, 0xc8, 0xb1, 0x27, 0x0a, 0x24, 0x71, 0x0b, 0x24, 0x35, 0x21, 0xfd, 0x27,
|
||||
0xc5, 0xda, 0x98, 0x0d, 0x59, 0xc5, 0x78, 0x2d, 0xdb, 0xa1, 0xa1, 0xa7, 0x3e, 0x40, 0x6f, 0xbd,
|
||||
0xf7, 0xd0, 0x6b, 0x6f, 0x7d, 0xa0, 0xbe, 0x40, 0x5f, 0xa2, 0xf2, 0xda, 0x8b, 0x20, 0xb4, 0x52,
|
||||
0x24, 0x92, 0x9e, 0xf0, 0xcc, 0x78, 0x7f, 0xbf, 0x99, 0x9d, 0xdf, 0x0c, 0x86, 0xbd, 0x31, 0x63,
|
||||
0x63, 0x97, 0xd4, 0x47, 0x64, 0x1a, 0x31, 0xe6, 0x86, 0x75, 0x87, 0x79, 0x11, 0xa6, 0x1e, 0x09,
|
||||
0xb0, 0x87, 0xdd, 0x59, 0x48, 0xc3, 0xfa, 0x74, 0x07, 0xbb, 0xfe, 0x05, 0xde, 0xa9, 0xfb, 0xd8,
|
||||
0xb9, 0xc4, 0x63, 0x62, 0x4f, 0xaf, 0xdc, 0x38, 0x7e, 0x46, 0x5d, 0x1a, 0xcd, 0x0c, 0x3f, 0x60,
|
||||
0x11, 0x43, 0x4f, 0x12, 0x1c, 0x43, 0xe0, 0x18, 0x2b, 0x38, 0x86, 0xc0, 0xa9, 0xfc, 0x9f, 0x72,
|
||||
0x62, 0x9f, 0xd6, 0xb1, 0xe7, 0xb1, 0x08, 0x47, 0x94, 0x79, 0x61, 0x82, 0xb4, 0xfd, 0x63, 0x13,
|
||||
0xb6, 0x4e, 0x16, 0x19, 0x8e, 0x67, 0x3e, 0x41, 0x0f, 0x00, 0x9c, 0x69, 0x18, 0xda, 0xa1, 0xc3,
|
||||
0x02, 0xa2, 0xcb, 0x55, 0xa9, 0x26, 0x5b, 0x85, 0xd8, 0x33, 0x88, 0x1d, 0xe8, 0x0c, 0xf2, 0x21,
|
||||
0x99, 0x92, 0x80, 0x46, 0x33, 0x3d, 0x53, 0x95, 0x6a, 0x9b, 0x8d, 0x3d, 0xe3, 0xf6, 0x19, 0x19,
|
||||
0x2b, 0x7c, 0xc6, 0x20, 0x45, 0xb3, 0xe6, 0xb8, 0xe8, 0x14, 0xd4, 0x11, 0x89, 0x30, 0x75, 0x43,
|
||||
0x5d, 0xa9, 0x66, 0x6a, 0xc5, 0x46, 0x7b, 0x3d, 0x8a, 0x36, 0x07, 0xb3, 0x04, 0x68, 0xe5, 0xa7,
|
||||
0x04, 0xea, 0x09, 0x09, 0x42, 0xca, 0x3c, 0x54, 0x86, 0x2c, 0xf1, 0x99, 0x73, 0xa1, 0x4b, 0x55,
|
||||
0xa9, 0x96, 0xb5, 0x12, 0x03, 0x21, 0x50, 0x3c, 0x3c, 0x49, 0xca, 0x2f, 0x58, 0xfc, 0x19, 0x55,
|
||||
0x20, 0x1f, 0x90, 0x29, 0x8d, 0x4f, 0xf1, 0xca, 0x0b, 0xd6, 0xdc, 0x46, 0x04, 0x94, 0x4b, 0xea,
|
||||
0x8d, 0xf4, 0x2c, 0xbf, 0x91, 0x97, 0xeb, 0xa5, 0x9b, 0xa6, 0x26, 0x7e, 0x5f, 0x50, 0x6f, 0x64,
|
||||
0x71, 0xf8, 0xed, 0x5d, 0x28, 0x2e, 0x38, 0x11, 0x40, 0xae, 0x7f, 0x68, 0xf5, 0x9a, 0x5d, 0xed,
|
||||
0x1f, 0x54, 0x04, 0xb5, 0x67, 0xf6, 0xcd, 0xde, 0xb0, 0xa7, 0x49, 0xdc, 0x68, 0xbe, 0xe6, 0x86,
|
||||
0x5c, 0xf9, 0xac, 0x40, 0x2e, 0xb9, 0x01, 0xf4, 0x1f, 0xa8, 0x8e, 0x4f, 0xec, 0xab, 0x80, 0xf2,
|
||||
0x72, 0x0b, 0x56, 0xce, 0xf1, 0xc9, 0x30, 0xa0, 0x48, 0x07, 0x35, 0xd5, 0x9c, 0x9e, 0xe7, 0x01,
|
||||
0x61, 0xa2, 0xf7, 0x50, 0x9e, 0x50, 0xcf, 0xc6, 0xe7, 0xe7, 0xc4, 0x89, 0xc8, 0xc8, 0x9e, 0x26,
|
||||
0xfc, 0x7a, 0xae, 0x2a, 0xd5, 0x8a, 0x8d, 0xce, 0x9d, 0x54, 0x6a, 0xa1, 0x09, 0xf5, 0x9a, 0x29,
|
||||
0x83, 0x68, 0x4c, 0x4c, 0x8c, 0xaf, 0x57, 0x89, 0xd5, 0xbb, 0x25, 0xc6, 0xd7, 0x37, 0x89, 0x1f,
|
||||
0xc1, 0x86, 0x50, 0xa2, 0xcd, 0x45, 0xa0, 0xf0, 0x1b, 0x29, 0x09, 0x67, 0x3f, 0x16, 0x43, 0x15,
|
||||
0x8a, 0x23, 0x12, 0x3a, 0x01, 0xf5, 0xe3, 0x89, 0xd2, 0x0b, 0xfc, 0x95, 0x45, 0x17, 0xfa, 0x00,
|
||||
0x9b, 0xe7, 0xf4, 0x9a, 0x8c, 0x6c, 0x97, 0x39, 0x7c, 0xec, 0xb8, 0x38, 0x8a, 0x8d, 0xc1, 0x9a,
|
||||
0x99, 0x2f, 0x7a, 0xba, 0x29, 0xb4, 0xb5, 0xc1, 0xa9, 0x84, 0x89, 0x1e, 0x42, 0x49, 0xac, 0x90,
|
||||
0x68, 0xe6, 0x13, 0x1d, 0x92, 0xf4, 0x52, 0x5f, 0x8c, 0x53, 0xf9, 0x22, 0x43, 0x79, 0x09, 0x2b,
|
||||
0x91, 0x48, 0x18, 0x4b, 0x9f, 0x9f, 0x49, 0x24, 0xce, 0x9f, 0x97, 0x86, 0x5e, 0xb9, 0xa7, 0xa1,
|
||||
0x5f, 0xde, 0x3b, 0xd9, 0x9b, 0x7b, 0x87, 0xc1, 0x86, 0x28, 0x89, 0x86, 0xe1, 0x15, 0xd1, 0x73,
|
||||
0x7c, 0x33, 0x3c, 0x5f, 0x2f, 0x8f, 0xa3, 0x04, 0xd2, 0x8c, 0x11, 0x2d, 0x71, 0x67, 0xdc, 0xaa,
|
||||
0x7c, 0x97, 0xa1, 0xb4, 0x18, 0x46, 0x1f, 0x25, 0xd8, 0x9a, 0xab, 0x71, 0xde, 0x54, 0xe9, 0xfe,
|
||||
0x9a, 0xaa, 0x09, 0xb6, 0x79, 0x5f, 0x57, 0x35, 0x25, 0xff, 0x35, 0x4d, 0xad, 0x8c, 0x45, 0x66,
|
||||
0x75, 0x2c, 0x2a, 0xdf, 0x24, 0xf8, 0xf7, 0xb7, 0x68, 0xb7, 0x5a, 0x3d, 0xf2, 0xf2, 0xea, 0xb1,
|
||||
0x41, 0x15, 0x43, 0xaf, 0xdc, 0xe5, 0xd0, 0x0b, 0xd4, 0xed, 0x53, 0xc8, 0x0b, 0x21, 0x22, 0x1d,
|
||||
0xca, 0x83, 0xce, 0x49, 0xc7, 0x32, 0x8f, 0xdf, 0xd8, 0xc3, 0xfe, 0xe0, 0xa8, 0xd3, 0x32, 0xf7,
|
||||
0xcc, 0x4e, 0x7b, 0x61, 0xb3, 0x36, 0xbb, 0x9a, 0x84, 0x54, 0xc8, 0x74, 0x0f, 0x5f, 0x69, 0x72,
|
||||
0xbc, 0x7b, 0x7b, 0x9d, 0xb6, 0x39, 0xec, 0x69, 0x19, 0x94, 0x07, 0xe5, 0xc0, 0xdc, 0x3f, 0xd0,
|
||||
0x14, 0x54, 0x82, 0x7c, 0xcb, 0x32, 0x8f, 0xcd, 0x56, 0xb3, 0xab, 0x65, 0x9f, 0x7d, 0x92, 0xe0,
|
||||
0xb1, 0xc3, 0x26, 0x22, 0xeb, 0x3f, 0x27, 0x7b, 0x24, 0xbd, 0x7d, 0x97, 0xbe, 0x34, 0x66, 0x2e,
|
||||
0xf6, 0xc6, 0x06, 0x0b, 0xc6, 0xf5, 0x31, 0xf1, 0xf8, 0x1f, 0x75, 0x3d, 0x09, 0x61, 0x9f, 0x86,
|
||||
0xb7, 0xf9, 0x7a, 0x78, 0xba, 0x12, 0xfa, 0x2a, 0x67, 0xf6, 0x5b, 0xcd, 0xb3, 0x1c, 0x47, 0xdb,
|
||||
0xfd, 0x15, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xe7, 0xb7, 0xf5, 0x8a, 0x08, 0x00, 0x00,
|
||||
}
|
797
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/provenance.pb.go
generated
vendored
Normal file
797
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/provenance.pb.go
generated
vendored
Normal file
@ -0,0 +1,797 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1alpha1/provenance.proto
|
||||
|
||||
package containeranalysis
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// Specifies the hash algorithm, if any.
|
||||
type Hash_HashType int32
|
||||
|
||||
const (
|
||||
// No hash requested.
|
||||
Hash_NONE Hash_HashType = 0
|
||||
// A sha256 hash.
|
||||
Hash_SHA256 Hash_HashType = 1
|
||||
)
|
||||
|
||||
var Hash_HashType_name = map[int32]string{
|
||||
0: "NONE",
|
||||
1: "SHA256",
|
||||
}
|
||||
var Hash_HashType_value = map[string]int32{
|
||||
"NONE": 0,
|
||||
"SHA256": 1,
|
||||
}
|
||||
|
||||
func (x Hash_HashType) String() string {
|
||||
return proto.EnumName(Hash_HashType_name, int32(x))
|
||||
}
|
||||
func (Hash_HashType) EnumDescriptor() ([]byte, []int) { return fileDescriptor4, []int{3, 0} }
|
||||
|
||||
// Provenance of a build. Contains all information needed to verify the full
|
||||
// details about the build from source to completion.
|
||||
type BuildProvenance struct {
|
||||
// Unique identifier of the build.
|
||||
Id string `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
|
||||
// ID of the project.
|
||||
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
|
||||
// Commands requested by the build.
|
||||
Commands []*Command `protobuf:"bytes,5,rep,name=commands" json:"commands,omitempty"`
|
||||
// Output of the build.
|
||||
BuiltArtifacts []*Artifact `protobuf:"bytes,6,rep,name=built_artifacts,json=builtArtifacts" json:"built_artifacts,omitempty"`
|
||||
// Time at which the build was created.
|
||||
CreateTime *google_protobuf1.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime" json:"create_time,omitempty"`
|
||||
// Time at which execution of the build was started.
|
||||
StartTime *google_protobuf1.Timestamp `protobuf:"bytes,8,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
|
||||
// Time at which execution of the build was finished.
|
||||
FinishTime *google_protobuf1.Timestamp `protobuf:"bytes,9,opt,name=finish_time,json=finishTime" json:"finish_time,omitempty"`
|
||||
// E-mail address of the user who initiated this build. Note that this was the
|
||||
// user's e-mail address at the time the build was initiated; this address may
|
||||
// not represent the same end-user for all time.
|
||||
Creator string `protobuf:"bytes,11,opt,name=creator" json:"creator,omitempty"`
|
||||
// Google Cloud Storage bucket where logs were written.
|
||||
LogsBucket string `protobuf:"bytes,13,opt,name=logs_bucket,json=logsBucket" json:"logs_bucket,omitempty"`
|
||||
// Details of the Source input to the build.
|
||||
SourceProvenance *Source `protobuf:"bytes,14,opt,name=source_provenance,json=sourceProvenance" json:"source_provenance,omitempty"`
|
||||
// Trigger identifier if the build was triggered automatically; empty if not.
|
||||
TriggerId string `protobuf:"bytes,15,opt,name=trigger_id,json=triggerId" json:"trigger_id,omitempty"`
|
||||
// Special options applied to this build. This is a catch-all field where
|
||||
// build providers can enter any desired additional details.
|
||||
BuildOptions map[string]string `protobuf:"bytes,16,rep,name=build_options,json=buildOptions" json:"build_options,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
// Version string of the builder at the time this build was executed.
|
||||
BuilderVersion string `protobuf:"bytes,17,opt,name=builder_version,json=builderVersion" json:"builder_version,omitempty"`
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) Reset() { *m = BuildProvenance{} }
|
||||
func (m *BuildProvenance) String() string { return proto.CompactTextString(m) }
|
||||
func (*BuildProvenance) ProtoMessage() {}
|
||||
func (*BuildProvenance) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{0} }
|
||||
|
||||
func (m *BuildProvenance) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetCommands() []*Command {
|
||||
if m != nil {
|
||||
return m.Commands
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetBuiltArtifacts() []*Artifact {
|
||||
if m != nil {
|
||||
return m.BuiltArtifacts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetCreateTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetStartTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetFinishTime() *google_protobuf1.Timestamp {
|
||||
if m != nil {
|
||||
return m.FinishTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetCreator() string {
|
||||
if m != nil {
|
||||
return m.Creator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetLogsBucket() string {
|
||||
if m != nil {
|
||||
return m.LogsBucket
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetSourceProvenance() *Source {
|
||||
if m != nil {
|
||||
return m.SourceProvenance
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetTriggerId() string {
|
||||
if m != nil {
|
||||
return m.TriggerId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetBuildOptions() map[string]string {
|
||||
if m != nil {
|
||||
return m.BuildOptions
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetBuilderVersion() string {
|
||||
if m != nil {
|
||||
return m.BuilderVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Source describes the location of the source used for the build.
|
||||
type Source struct {
|
||||
// Source location information.
|
||||
//
|
||||
// Types that are valid to be assigned to Source:
|
||||
// *Source_StorageSource
|
||||
// *Source_RepoSource
|
||||
Source isSource_Source `protobuf_oneof:"source"`
|
||||
// If provided, the input binary artifacts for the build came from this
|
||||
// location.
|
||||
ArtifactStorageSource *StorageSource `protobuf:"bytes,4,opt,name=artifact_storage_source,json=artifactStorageSource" json:"artifact_storage_source,omitempty"`
|
||||
// Hash(es) of the build source, which can be used to verify that the original
|
||||
// source integrity was maintained in the build.
|
||||
//
|
||||
// The keys to this map are file paths used as build source and the values
|
||||
// contain the hash values for those files.
|
||||
//
|
||||
// If the build source came in a single package such as a gzipped tarfile
|
||||
// (.tar.gz), the FileHash will be for the single path to that file.
|
||||
FileHashes map[string]*FileHashes `protobuf:"bytes,3,rep,name=file_hashes,json=fileHashes" json:"file_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
// If provided, the source code used for the build came from this location.
|
||||
Context *SourceContext `protobuf:"bytes,7,opt,name=context" json:"context,omitempty"`
|
||||
// If provided, some of the source code used for the build may be found in
|
||||
// these locations, in the case where the source repository had multiple
|
||||
// remotes or submodules. This list will not include the context specified in
|
||||
// the context field.
|
||||
AdditionalContexts []*SourceContext `protobuf:"bytes,8,rep,name=additional_contexts,json=additionalContexts" json:"additional_contexts,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Source) Reset() { *m = Source{} }
|
||||
func (m *Source) String() string { return proto.CompactTextString(m) }
|
||||
func (*Source) ProtoMessage() {}
|
||||
func (*Source) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{1} }
|
||||
|
||||
type isSource_Source interface {
|
||||
isSource_Source()
|
||||
}
|
||||
|
||||
type Source_StorageSource struct {
|
||||
StorageSource *StorageSource `protobuf:"bytes,1,opt,name=storage_source,json=storageSource,oneof"`
|
||||
}
|
||||
type Source_RepoSource struct {
|
||||
RepoSource *RepoSource `protobuf:"bytes,2,opt,name=repo_source,json=repoSource,oneof"`
|
||||
}
|
||||
|
||||
func (*Source_StorageSource) isSource_Source() {}
|
||||
func (*Source_RepoSource) isSource_Source() {}
|
||||
|
||||
func (m *Source) GetSource() isSource_Source {
|
||||
if m != nil {
|
||||
return m.Source
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetStorageSource() *StorageSource {
|
||||
if x, ok := m.GetSource().(*Source_StorageSource); ok {
|
||||
return x.StorageSource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetRepoSource() *RepoSource {
|
||||
if x, ok := m.GetSource().(*Source_RepoSource); ok {
|
||||
return x.RepoSource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetArtifactStorageSource() *StorageSource {
|
||||
if m != nil {
|
||||
return m.ArtifactStorageSource
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetFileHashes() map[string]*FileHashes {
|
||||
if m != nil {
|
||||
return m.FileHashes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetContext() *SourceContext {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetAdditionalContexts() []*SourceContext {
|
||||
if m != nil {
|
||||
return m.AdditionalContexts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Source) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _Source_OneofMarshaler, _Source_OneofUnmarshaler, _Source_OneofSizer, []interface{}{
|
||||
(*Source_StorageSource)(nil),
|
||||
(*Source_RepoSource)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Source_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Source)
|
||||
// source
|
||||
switch x := m.Source.(type) {
|
||||
case *Source_StorageSource:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.StorageSource); err != nil {
|
||||
return err
|
||||
}
|
||||
case *Source_RepoSource:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.RepoSource); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Source.Source has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Source_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Source)
|
||||
switch tag {
|
||||
case 1: // source.storage_source
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(StorageSource)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Source = &Source_StorageSource{msg}
|
||||
return true, err
|
||||
case 2: // source.repo_source
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(RepoSource)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Source = &Source_RepoSource{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Source_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Source)
|
||||
// source
|
||||
switch x := m.Source.(type) {
|
||||
case *Source_StorageSource:
|
||||
s := proto.Size(x.StorageSource)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *Source_RepoSource:
|
||||
s := proto.Size(x.RepoSource)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Container message for hashes of byte content of files, used in Source
|
||||
// messages to verify integrity of source input to the build.
|
||||
type FileHashes struct {
|
||||
// Collection of file hashes.
|
||||
FileHash []*Hash `protobuf:"bytes,1,rep,name=file_hash,json=fileHash" json:"file_hash,omitempty"`
|
||||
}
|
||||
|
||||
func (m *FileHashes) Reset() { *m = FileHashes{} }
|
||||
func (m *FileHashes) String() string { return proto.CompactTextString(m) }
|
||||
func (*FileHashes) ProtoMessage() {}
|
||||
func (*FileHashes) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{2} }
|
||||
|
||||
func (m *FileHashes) GetFileHash() []*Hash {
|
||||
if m != nil {
|
||||
return m.FileHash
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Container message for hash values.
|
||||
type Hash struct {
|
||||
// The type of hash that was performed.
|
||||
Type Hash_HashType `protobuf:"varint,1,opt,name=type,enum=google.devtools.containeranalysis.v1alpha1.Hash_HashType" json:"type,omitempty"`
|
||||
// The hash value.
|
||||
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Hash) Reset() { *m = Hash{} }
|
||||
func (m *Hash) String() string { return proto.CompactTextString(m) }
|
||||
func (*Hash) ProtoMessage() {}
|
||||
func (*Hash) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{3} }
|
||||
|
||||
func (m *Hash) GetType() Hash_HashType {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return Hash_NONE
|
||||
}
|
||||
|
||||
func (m *Hash) GetValue() []byte {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// StorageSource describes the location of the source in an archive file in
|
||||
// Google Cloud Storage.
|
||||
type StorageSource struct {
|
||||
// Google Cloud Storage bucket containing source (see [Bucket Name
|
||||
// Requirements]
|
||||
// (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
|
||||
Bucket string `protobuf:"bytes,1,opt,name=bucket" json:"bucket,omitempty"`
|
||||
// Google Cloud Storage object containing source.
|
||||
Object string `protobuf:"bytes,2,opt,name=object" json:"object,omitempty"`
|
||||
// Google Cloud Storage generation for the object.
|
||||
Generation int64 `protobuf:"varint,3,opt,name=generation" json:"generation,omitempty"`
|
||||
}
|
||||
|
||||
func (m *StorageSource) Reset() { *m = StorageSource{} }
|
||||
func (m *StorageSource) String() string { return proto.CompactTextString(m) }
|
||||
func (*StorageSource) ProtoMessage() {}
|
||||
func (*StorageSource) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{4} }
|
||||
|
||||
func (m *StorageSource) GetBucket() string {
|
||||
if m != nil {
|
||||
return m.Bucket
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *StorageSource) GetObject() string {
|
||||
if m != nil {
|
||||
return m.Object
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *StorageSource) GetGeneration() int64 {
|
||||
if m != nil {
|
||||
return m.Generation
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
// RepoSource describes the location of the source in a Google Cloud Source
|
||||
// Repository.
|
||||
type RepoSource struct {
|
||||
// ID of the project that owns the repo.
|
||||
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
|
||||
// Name of the repo.
|
||||
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
|
||||
// A revision within the source repository must be specified in
|
||||
// one of these ways.
|
||||
//
|
||||
// Types that are valid to be assigned to Revision:
|
||||
// *RepoSource_BranchName
|
||||
// *RepoSource_TagName
|
||||
// *RepoSource_CommitSha
|
||||
Revision isRepoSource_Revision `protobuf_oneof:"revision"`
|
||||
}
|
||||
|
||||
func (m *RepoSource) Reset() { *m = RepoSource{} }
|
||||
func (m *RepoSource) String() string { return proto.CompactTextString(m) }
|
||||
func (*RepoSource) ProtoMessage() {}
|
||||
func (*RepoSource) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{5} }
|
||||
|
||||
type isRepoSource_Revision interface {
|
||||
isRepoSource_Revision()
|
||||
}
|
||||
|
||||
type RepoSource_BranchName struct {
|
||||
BranchName string `protobuf:"bytes,3,opt,name=branch_name,json=branchName,oneof"`
|
||||
}
|
||||
type RepoSource_TagName struct {
|
||||
TagName string `protobuf:"bytes,4,opt,name=tag_name,json=tagName,oneof"`
|
||||
}
|
||||
type RepoSource_CommitSha struct {
|
||||
CommitSha string `protobuf:"bytes,5,opt,name=commit_sha,json=commitSha,oneof"`
|
||||
}
|
||||
|
||||
func (*RepoSource_BranchName) isRepoSource_Revision() {}
|
||||
func (*RepoSource_TagName) isRepoSource_Revision() {}
|
||||
func (*RepoSource_CommitSha) isRepoSource_Revision() {}
|
||||
|
||||
func (m *RepoSource) GetRevision() isRepoSource_Revision {
|
||||
if m != nil {
|
||||
return m.Revision
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RepoSource) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RepoSource) GetRepoName() string {
|
||||
if m != nil {
|
||||
return m.RepoName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RepoSource) GetBranchName() string {
|
||||
if x, ok := m.GetRevision().(*RepoSource_BranchName); ok {
|
||||
return x.BranchName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RepoSource) GetTagName() string {
|
||||
if x, ok := m.GetRevision().(*RepoSource_TagName); ok {
|
||||
return x.TagName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RepoSource) GetCommitSha() string {
|
||||
if x, ok := m.GetRevision().(*RepoSource_CommitSha); ok {
|
||||
return x.CommitSha
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*RepoSource) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _RepoSource_OneofMarshaler, _RepoSource_OneofUnmarshaler, _RepoSource_OneofSizer, []interface{}{
|
||||
(*RepoSource_BranchName)(nil),
|
||||
(*RepoSource_TagName)(nil),
|
||||
(*RepoSource_CommitSha)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _RepoSource_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*RepoSource)
|
||||
// revision
|
||||
switch x := m.Revision.(type) {
|
||||
case *RepoSource_BranchName:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.BranchName)
|
||||
case *RepoSource_TagName:
|
||||
b.EncodeVarint(4<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.TagName)
|
||||
case *RepoSource_CommitSha:
|
||||
b.EncodeVarint(5<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.CommitSha)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("RepoSource.Revision has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _RepoSource_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*RepoSource)
|
||||
switch tag {
|
||||
case 3: // revision.branch_name
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Revision = &RepoSource_BranchName{x}
|
||||
return true, err
|
||||
case 4: // revision.tag_name
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Revision = &RepoSource_TagName{x}
|
||||
return true, err
|
||||
case 5: // revision.commit_sha
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Revision = &RepoSource_CommitSha{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _RepoSource_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*RepoSource)
|
||||
// revision
|
||||
switch x := m.Revision.(type) {
|
||||
case *RepoSource_BranchName:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.BranchName)))
|
||||
n += len(x.BranchName)
|
||||
case *RepoSource_TagName:
|
||||
n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.TagName)))
|
||||
n += len(x.TagName)
|
||||
case *RepoSource_CommitSha:
|
||||
n += proto.SizeVarint(5<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.CommitSha)))
|
||||
n += len(x.CommitSha)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Command describes a step performed as part of the build pipeline.
|
||||
type Command struct {
|
||||
// Name of the command, as presented on the command line, or if the command is
|
||||
// packaged as a Docker container, as presented to `docker pull`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// Environment variables set before running this Command.
|
||||
Env []string `protobuf:"bytes,2,rep,name=env" json:"env,omitempty"`
|
||||
// Command-line arguments used when executing this Command.
|
||||
Args []string `protobuf:"bytes,3,rep,name=args" json:"args,omitempty"`
|
||||
// Working directory (relative to project source root) used when running
|
||||
// this Command.
|
||||
Dir string `protobuf:"bytes,4,opt,name=dir" json:"dir,omitempty"`
|
||||
// Optional unique identifier for this Command, used in wait_for to reference
|
||||
// this Command as a dependency.
|
||||
Id string `protobuf:"bytes,5,opt,name=id" json:"id,omitempty"`
|
||||
// The ID(s) of the Command(s) that this Command depends on.
|
||||
WaitFor []string `protobuf:"bytes,6,rep,name=wait_for,json=waitFor" json:"wait_for,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Command) Reset() { *m = Command{} }
|
||||
func (m *Command) String() string { return proto.CompactTextString(m) }
|
||||
func (*Command) ProtoMessage() {}
|
||||
func (*Command) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{6} }
|
||||
|
||||
func (m *Command) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Command) GetEnv() []string {
|
||||
if m != nil {
|
||||
return m.Env
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Command) GetArgs() []string {
|
||||
if m != nil {
|
||||
return m.Args
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Command) GetDir() string {
|
||||
if m != nil {
|
||||
return m.Dir
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Command) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Command) GetWaitFor() []string {
|
||||
if m != nil {
|
||||
return m.WaitFor
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Artifact describes a build product.
|
||||
type Artifact struct {
|
||||
// Name of the artifact. This may be the path to a binary or jar file, or in
|
||||
// the case of a container build, the name used to push the container image to
|
||||
// Google Container Registry, as presented to `docker push`.
|
||||
//
|
||||
// This field is deprecated in favor of the plural `names` field; it continues
|
||||
// to exist here to allow existing BuildProvenance serialized to json in
|
||||
// google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
|
||||
// deserialize back into proto.
|
||||
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
||||
// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
|
||||
// container.
|
||||
Checksum string `protobuf:"bytes,2,opt,name=checksum" json:"checksum,omitempty"`
|
||||
// Artifact ID, if any; for container images, this will be a URL by digest
|
||||
// like gcr.io/projectID/imagename@sha256:123456
|
||||
Id string `protobuf:"bytes,3,opt,name=id" json:"id,omitempty"`
|
||||
// Related artifact names. This may be the path to a binary or jar file, or in
|
||||
// the case of a container build, the name used to push the container image to
|
||||
// Google Container Registry, as presented to `docker push`. Note that a
|
||||
// single Artifact ID can have multiple names, for example if two tags are
|
||||
// applied to one image.
|
||||
Names []string `protobuf:"bytes,4,rep,name=names" json:"names,omitempty"`
|
||||
}
|
||||
|
||||
func (m *Artifact) Reset() { *m = Artifact{} }
|
||||
func (m *Artifact) String() string { return proto.CompactTextString(m) }
|
||||
func (*Artifact) ProtoMessage() {}
|
||||
func (*Artifact) Descriptor() ([]byte, []int) { return fileDescriptor4, []int{7} }
|
||||
|
||||
func (m *Artifact) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Artifact) GetChecksum() string {
|
||||
if m != nil {
|
||||
return m.Checksum
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Artifact) GetId() string {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Artifact) GetNames() []string {
|
||||
if m != nil {
|
||||
return m.Names
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*BuildProvenance)(nil), "google.devtools.containeranalysis.v1alpha1.BuildProvenance")
|
||||
proto.RegisterType((*Source)(nil), "google.devtools.containeranalysis.v1alpha1.Source")
|
||||
proto.RegisterType((*FileHashes)(nil), "google.devtools.containeranalysis.v1alpha1.FileHashes")
|
||||
proto.RegisterType((*Hash)(nil), "google.devtools.containeranalysis.v1alpha1.Hash")
|
||||
proto.RegisterType((*StorageSource)(nil), "google.devtools.containeranalysis.v1alpha1.StorageSource")
|
||||
proto.RegisterType((*RepoSource)(nil), "google.devtools.containeranalysis.v1alpha1.RepoSource")
|
||||
proto.RegisterType((*Command)(nil), "google.devtools.containeranalysis.v1alpha1.Command")
|
||||
proto.RegisterType((*Artifact)(nil), "google.devtools.containeranalysis.v1alpha1.Artifact")
|
||||
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.Hash_HashType", Hash_HashType_name, Hash_HashType_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/provenance.proto", fileDescriptor4)
|
||||
}
|
||||
|
||||
var fileDescriptor4 = []byte{
|
||||
// 1026 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0xdd, 0x6e, 0x1b, 0x45,
|
||||
0x14, 0xee, 0xfa, 0x77, 0xf7, 0xb8, 0x71, 0x92, 0xa1, 0xc0, 0xe2, 0x52, 0x62, 0x2c, 0x21, 0x22,
|
||||
0x2e, 0x6c, 0x9a, 0x42, 0x45, 0xc8, 0x45, 0x15, 0x47, 0x2d, 0xa9, 0x44, 0x92, 0x6a, 0x53, 0x21,
|
||||
0x41, 0x85, 0x96, 0xf1, 0xee, 0x78, 0x3d, 0xcd, 0x7a, 0x67, 0x99, 0x19, 0x1b, 0x7c, 0xc7, 0x03,
|
||||
0xc0, 0x4b, 0xf0, 0x0e, 0xdc, 0xf2, 0x2e, 0xbc, 0x09, 0x9a, 0x9f, 0xb5, 0x1d, 0xa7, 0x55, 0xbb,
|
||||
0xea, 0xcd, 0x6a, 0xce, 0x37, 0xe7, 0x7c, 0x67, 0xe6, 0xcc, 0x77, 0x66, 0x16, 0x8e, 0x12, 0xc6,
|
||||
0x92, 0x94, 0x0c, 0x62, 0x32, 0x97, 0x8c, 0xa5, 0x62, 0x10, 0xb1, 0x4c, 0x62, 0x9a, 0x11, 0x8e,
|
||||
0x33, 0x9c, 0x2e, 0x04, 0x15, 0x83, 0xf9, 0x7d, 0x9c, 0xe6, 0x13, 0x7c, 0x7f, 0x90, 0x73, 0x36,
|
||||
0x27, 0x19, 0xce, 0x22, 0xd2, 0xcf, 0x39, 0x93, 0x0c, 0x7d, 0x61, 0x82, 0xfb, 0x45, 0x70, 0xff,
|
||||
0x46, 0x70, 0xbf, 0x08, 0xee, 0x7c, 0x6c, 0x13, 0xe1, 0x9c, 0x0e, 0x70, 0x96, 0x31, 0x89, 0x25,
|
||||
0x65, 0x99, 0x30, 0x4c, 0x9d, 0x47, 0x25, 0x96, 0x21, 0xd8, 0x8c, 0x47, 0x24, 0x54, 0x1e, 0xe4,
|
||||
0x77, 0x69, 0x09, 0xf6, 0x2c, 0x81, 0xb6, 0x46, 0xb3, 0xf1, 0x40, 0xd2, 0x29, 0x11, 0x12, 0x4f,
|
||||
0x73, 0xe3, 0xd0, 0xfb, 0xb7, 0x01, 0xdb, 0xc3, 0x19, 0x4d, 0xe3, 0x67, 0xcb, 0x5d, 0xa0, 0x36,
|
||||
0x54, 0x68, 0xec, 0x3b, 0x5d, 0x67, 0xdf, 0x0b, 0x2a, 0x34, 0x46, 0xf7, 0x00, 0x72, 0xce, 0x5e,
|
||||
0x92, 0x48, 0x86, 0x34, 0xf6, 0x2b, 0x1a, 0xf7, 0x2c, 0xf2, 0x34, 0x46, 0x17, 0xe0, 0x46, 0x6c,
|
||||
0x3a, 0xc5, 0x59, 0x2c, 0xfc, 0x7a, 0xb7, 0xba, 0xdf, 0x3a, 0x78, 0xd0, 0x7f, 0xfb, 0x0a, 0xf4,
|
||||
0x4f, 0x4c, 0x6c, 0xb0, 0x24, 0x41, 0x3f, 0xc3, 0xf6, 0x68, 0x46, 0x53, 0x19, 0x62, 0x2e, 0xe9,
|
||||
0x18, 0x47, 0x52, 0xf8, 0x0d, 0xcd, 0xfb, 0x55, 0x19, 0xde, 0x63, 0x1b, 0x1c, 0xb4, 0x35, 0x59,
|
||||
0x61, 0x0a, 0x74, 0x04, 0xad, 0x88, 0x13, 0x2c, 0x49, 0xa8, 0x8a, 0xe1, 0x37, 0xbb, 0xce, 0x7e,
|
||||
0xeb, 0xa0, 0x53, 0x50, 0x17, 0x95, 0xea, 0x3f, 0x2f, 0x2a, 0x15, 0x80, 0x71, 0x57, 0x00, 0x3a,
|
||||
0x04, 0x10, 0x12, 0x73, 0x69, 0x62, 0xdd, 0x37, 0xc6, 0x7a, 0xda, 0x5b, 0x87, 0x1e, 0x41, 0x6b,
|
||||
0x4c, 0x33, 0x2a, 0x26, 0x26, 0xd6, 0x7b, 0x73, 0x5e, 0xe3, 0xae, 0x83, 0x7d, 0x68, 0xea, 0x55,
|
||||
0x30, 0xee, 0xb7, 0xf4, 0x01, 0x14, 0x26, 0xda, 0x83, 0x56, 0xca, 0x12, 0x11, 0x8e, 0x66, 0xd1,
|
||||
0x15, 0x91, 0xfe, 0x96, 0x9e, 0x05, 0x05, 0x0d, 0x35, 0x82, 0x42, 0xd8, 0xb5, 0xda, 0x58, 0x29,
|
||||
0xd5, 0x6f, 0xeb, 0xec, 0x07, 0x65, 0x0a, 0x7a, 0xa9, 0x49, 0x82, 0x1d, 0x43, 0xb6, 0xa6, 0x97,
|
||||
0x7b, 0x00, 0x92, 0xd3, 0x24, 0x21, 0x5c, 0xe9, 0x63, 0xdb, 0xe8, 0xc3, 0x22, 0x4f, 0x63, 0xc4,
|
||||
0x61, 0x4b, 0x9d, 0x40, 0x1c, 0xb2, 0x5c, 0x6b, 0xdb, 0xdf, 0xd1, 0x87, 0x79, 0x56, 0x26, 0xf7,
|
||||
0x86, 0x44, 0x8d, 0x7d, 0x61, 0xf8, 0x1e, 0x67, 0x92, 0x2f, 0x82, 0xdb, 0xa3, 0x35, 0x08, 0x7d,
|
||||
0x6e, 0x24, 0x14, 0x13, 0x1e, 0xce, 0x09, 0x17, 0x94, 0x65, 0xfe, 0xae, 0x5e, 0x57, 0xdb, 0xc2,
|
||||
0x3f, 0x18, 0xb4, 0xf3, 0x08, 0x76, 0x6f, 0x70, 0xa1, 0x1d, 0xa8, 0x5e, 0x91, 0x85, 0xed, 0x00,
|
||||
0x35, 0x44, 0x77, 0xa0, 0x3e, 0xc7, 0xe9, 0x8c, 0x58, 0xf5, 0x1b, 0xe3, 0xdb, 0xca, 0x37, 0x4e,
|
||||
0xef, 0xbf, 0x3a, 0x34, 0x4c, 0x65, 0xd0, 0x08, 0xda, 0x42, 0x32, 0x8e, 0x13, 0x12, 0x9a, 0x1a,
|
||||
0x69, 0x86, 0xd6, 0xc1, 0x61, 0xa9, 0x2a, 0x1b, 0x06, 0x43, 0x79, 0x7a, 0x2b, 0xd8, 0x12, 0xeb,
|
||||
0x00, 0xfa, 0x11, 0x5a, 0x9c, 0xe4, 0xac, 0x48, 0x50, 0xd1, 0x09, 0x1e, 0x96, 0x49, 0x10, 0x90,
|
||||
0x9c, 0x2d, 0xd9, 0x81, 0x2f, 0x2d, 0xf4, 0x2b, 0x7c, 0x58, 0x34, 0x5c, 0xb8, 0xb1, 0x8f, 0xda,
|
||||
0x3b, 0xee, 0x23, 0x78, 0xbf, 0x60, 0xbe, 0x06, 0xa3, 0x48, 0xb5, 0x44, 0x4a, 0xc2, 0x09, 0x16,
|
||||
0x13, 0x22, 0xfc, 0xaa, 0x16, 0xc6, 0xb0, 0xbc, 0x28, 0xfb, 0x4f, 0x68, 0x4a, 0x4e, 0x35, 0x89,
|
||||
0x51, 0x03, 0x8c, 0x97, 0x00, 0xba, 0x84, 0xa6, 0xbd, 0x14, 0x6d, 0xaf, 0x1f, 0x96, 0x4f, 0x70,
|
||||
0x62, 0x08, 0x82, 0x82, 0x09, 0xbd, 0x84, 0xf7, 0x70, 0x1c, 0x53, 0x25, 0x1a, 0x9c, 0x16, 0x97,
|
||||
0xae, 0xf0, 0x5d, 0xbd, 0x83, 0x77, 0x48, 0x80, 0x56, 0xac, 0x16, 0x12, 0x9d, 0x19, 0x6c, 0x6f,
|
||||
0xec, 0xef, 0x15, 0x0a, 0xfd, 0x7e, 0x5d, 0xa1, 0x25, 0x25, 0xb1, 0x62, 0x5f, 0x53, 0xf6, 0xd0,
|
||||
0x85, 0x86, 0x39, 0xfe, 0xde, 0x0b, 0x80, 0x95, 0x0b, 0x3a, 0x03, 0x6f, 0x79, 0x68, 0xbe, 0xa3,
|
||||
0x37, 0xfc, 0x65, 0x99, 0x6c, 0x8a, 0x26, 0x70, 0x8b, 0x03, 0xea, 0xfd, 0xe5, 0x40, 0x4d, 0x0d,
|
||||
0xd0, 0x19, 0xd4, 0xe4, 0x22, 0x37, 0x4d, 0xd3, 0x2e, 0x57, 0x43, 0x15, 0xaf, 0x3f, 0xcf, 0x17,
|
||||
0x39, 0x09, 0x34, 0xcd, 0xf5, 0x96, 0xbd, 0x6d, 0x37, 0xd6, 0xeb, 0x82, 0x5b, 0xf8, 0x21, 0x17,
|
||||
0x6a, 0xe7, 0x17, 0xe7, 0x8f, 0x77, 0x6e, 0x21, 0x80, 0xc6, 0xe5, 0xe9, 0xf1, 0xc1, 0xd7, 0x0f,
|
||||
0x77, 0x9c, 0x5e, 0x08, 0x5b, 0xd7, 0x45, 0xfa, 0x01, 0x34, 0xec, 0xdd, 0x6a, 0xca, 0x6d, 0x2d,
|
||||
0x85, 0xb3, 0x91, 0x7a, 0x03, 0xed, 0xa5, 0x60, 0x2d, 0xf4, 0x09, 0x40, 0x42, 0xd4, 0x32, 0xd5,
|
||||
0x31, 0xfa, 0xd5, 0xae, 0xb3, 0x5f, 0x0d, 0xd6, 0x90, 0xde, 0x3f, 0x0e, 0xc0, 0xaa, 0x09, 0x37,
|
||||
0x5e, 0x57, 0x67, 0xf3, 0x75, 0xbd, 0x0b, 0x9e, 0x6e, 0xf8, 0x0c, 0x4f, 0x8b, 0xdb, 0xc7, 0x55,
|
||||
0xc0, 0x39, 0x9e, 0x12, 0xf4, 0x29, 0xb4, 0x46, 0x1c, 0x67, 0xd1, 0xc4, 0x4c, 0xab, 0x5c, 0x9e,
|
||||
0xea, 0x6a, 0x03, 0x6a, 0x97, 0xbb, 0xe0, 0x4a, 0x9c, 0x98, 0xf9, 0x9a, 0x9d, 0x6f, 0x4a, 0x9c,
|
||||
0xe8, 0xc9, 0x3d, 0x00, 0xf5, 0xea, 0x52, 0x19, 0x8a, 0x09, 0xf6, 0xeb, 0x76, 0xda, 0x33, 0xd8,
|
||||
0xe5, 0x04, 0x0f, 0x01, 0x5c, 0x4e, 0xe6, 0x54, 0x5d, 0x95, 0xbd, 0x3f, 0x1c, 0x68, 0xda, 0xc7,
|
||||
0x1a, 0x21, 0xa8, 0x69, 0x46, 0xb3, 0x5c, 0x3d, 0x56, 0x9a, 0x24, 0xd9, 0xdc, 0xaf, 0x74, 0xab,
|
||||
0x4a, 0x93, 0x24, 0x9b, 0x2b, 0x2f, 0xcc, 0x13, 0xd3, 0xd7, 0x5e, 0xa0, 0xc7, 0xca, 0x2b, 0xa6,
|
||||
0xdc, 0x2c, 0x25, 0x50, 0x43, 0xfb, 0xbb, 0x51, 0x5f, 0xfe, 0x6e, 0x7c, 0x04, 0xee, 0x6f, 0x98,
|
||||
0xca, 0x70, 0xcc, 0xb8, 0x7e, 0xf7, 0xbd, 0xa0, 0xa9, 0xec, 0x27, 0x8c, 0xf7, 0x7e, 0x01, 0xb7,
|
||||
0x78, 0xc7, 0x5f, 0xb9, 0x84, 0x0e, 0xb8, 0xd1, 0x84, 0x44, 0x57, 0x62, 0x36, 0x2d, 0x6a, 0x55,
|
||||
0xd8, 0x36, 0x4d, 0x75, 0x99, 0xe6, 0x0e, 0xd4, 0x55, 0x8c, 0xf0, 0x6b, 0x3a, 0x87, 0x31, 0x86,
|
||||
0x7f, 0x3a, 0xf0, 0x59, 0xc4, 0xa6, 0x85, 0xf8, 0x5e, 0xaf, 0xb9, 0x67, 0xce, 0x4f, 0x2f, 0xac,
|
||||
0x53, 0xc2, 0x52, 0x9c, 0x25, 0x7d, 0xc6, 0x93, 0x41, 0x42, 0x32, 0xfd, 0x90, 0x0f, 0xcc, 0x14,
|
||||
0xce, 0xa9, 0x78, 0x9b, 0x9f, 0xb7, 0xa3, 0x1b, 0x53, 0x7f, 0x57, 0xaa, 0xdf, 0x9d, 0x1c, 0x8f,
|
||||
0x1a, 0x9a, 0xed, 0xc1, 0xff, 0x01, 0x00, 0x00, 0xff, 0xff, 0x91, 0xec, 0x1b, 0x85, 0x90, 0x0a,
|
||||
0x00, 0x00,
|
||||
}
|
751
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/source_context.pb.go
generated
vendored
Normal file
751
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1alpha1/source_context.pb.go
generated
vendored
Normal file
@ -0,0 +1,751 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1alpha1/source_context.proto
|
||||
|
||||
package containeranalysis
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// The type of an alias.
|
||||
type AliasContext_Kind int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
AliasContext_KIND_UNSPECIFIED AliasContext_Kind = 0
|
||||
// Git tag.
|
||||
AliasContext_FIXED AliasContext_Kind = 1
|
||||
// Git branch.
|
||||
AliasContext_MOVABLE AliasContext_Kind = 2
|
||||
// Used to specify non-standard aliases. For example, if a Git repo has a
|
||||
// ref named "refs/foo/bar".
|
||||
AliasContext_OTHER AliasContext_Kind = 4
|
||||
)
|
||||
|
||||
var AliasContext_Kind_name = map[int32]string{
|
||||
0: "KIND_UNSPECIFIED",
|
||||
1: "FIXED",
|
||||
2: "MOVABLE",
|
||||
4: "OTHER",
|
||||
}
|
||||
var AliasContext_Kind_value = map[string]int32{
|
||||
"KIND_UNSPECIFIED": 0,
|
||||
"FIXED": 1,
|
||||
"MOVABLE": 2,
|
||||
"OTHER": 4,
|
||||
}
|
||||
|
||||
func (x AliasContext_Kind) String() string {
|
||||
return proto.EnumName(AliasContext_Kind_name, int32(x))
|
||||
}
|
||||
func (AliasContext_Kind) EnumDescriptor() ([]byte, []int) { return fileDescriptor5, []int{1, 0} }
|
||||
|
||||
// A SourceContext is a reference to a tree of files. A SourceContext together
|
||||
// with a path point to a unique revision of a single file or directory.
|
||||
type SourceContext struct {
|
||||
// A SourceContext can refer any one of the following types of repositories.
|
||||
//
|
||||
// Types that are valid to be assigned to Context:
|
||||
// *SourceContext_CloudRepo
|
||||
// *SourceContext_Gerrit
|
||||
// *SourceContext_Git
|
||||
Context isSourceContext_Context `protobuf_oneof:"context"`
|
||||
// Labels with user defined metadata.
|
||||
Labels map[string]string `protobuf:"bytes,4,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
|
||||
}
|
||||
|
||||
func (m *SourceContext) Reset() { *m = SourceContext{} }
|
||||
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*SourceContext) ProtoMessage() {}
|
||||
func (*SourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{0} }
|
||||
|
||||
type isSourceContext_Context interface {
|
||||
isSourceContext_Context()
|
||||
}
|
||||
|
||||
type SourceContext_CloudRepo struct {
|
||||
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,oneof"`
|
||||
}
|
||||
type SourceContext_Gerrit struct {
|
||||
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,oneof"`
|
||||
}
|
||||
type SourceContext_Git struct {
|
||||
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,oneof"`
|
||||
}
|
||||
|
||||
func (*SourceContext_CloudRepo) isSourceContext_Context() {}
|
||||
func (*SourceContext_Gerrit) isSourceContext_Context() {}
|
||||
func (*SourceContext_Git) isSourceContext_Context() {}
|
||||
|
||||
func (m *SourceContext) GetContext() isSourceContext_Context {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SourceContext) GetCloudRepo() *CloudRepoSourceContext {
|
||||
if x, ok := m.GetContext().(*SourceContext_CloudRepo); ok {
|
||||
return x.CloudRepo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SourceContext) GetGerrit() *GerritSourceContext {
|
||||
if x, ok := m.GetContext().(*SourceContext_Gerrit); ok {
|
||||
return x.Gerrit
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SourceContext) GetGit() *GitSourceContext {
|
||||
if x, ok := m.GetContext().(*SourceContext_Git); ok {
|
||||
return x.Git
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *SourceContext) GetLabels() map[string]string {
|
||||
if m != nil {
|
||||
return m.Labels
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*SourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _SourceContext_OneofMarshaler, _SourceContext_OneofUnmarshaler, _SourceContext_OneofSizer, []interface{}{
|
||||
(*SourceContext_CloudRepo)(nil),
|
||||
(*SourceContext_Gerrit)(nil),
|
||||
(*SourceContext_Git)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _SourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*SourceContext)
|
||||
// context
|
||||
switch x := m.Context.(type) {
|
||||
case *SourceContext_CloudRepo:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.CloudRepo); err != nil {
|
||||
return err
|
||||
}
|
||||
case *SourceContext_Gerrit:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Gerrit); err != nil {
|
||||
return err
|
||||
}
|
||||
case *SourceContext_Git:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.Git); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("SourceContext.Context has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _SourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*SourceContext)
|
||||
switch tag {
|
||||
case 1: // context.cloud_repo
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(CloudRepoSourceContext)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Context = &SourceContext_CloudRepo{msg}
|
||||
return true, err
|
||||
case 2: // context.gerrit
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(GerritSourceContext)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Context = &SourceContext_Gerrit{msg}
|
||||
return true, err
|
||||
case 3: // context.git
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(GitSourceContext)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Context = &SourceContext_Git{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _SourceContext_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*SourceContext)
|
||||
// context
|
||||
switch x := m.Context.(type) {
|
||||
case *SourceContext_CloudRepo:
|
||||
s := proto.Size(x.CloudRepo)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *SourceContext_Gerrit:
|
||||
s := proto.Size(x.Gerrit)
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *SourceContext_Git:
|
||||
s := proto.Size(x.Git)
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// An alias to a repo revision.
|
||||
type AliasContext struct {
|
||||
// The alias kind.
|
||||
Kind AliasContext_Kind `protobuf:"varint,1,opt,name=kind,enum=google.devtools.containeranalysis.v1alpha1.AliasContext_Kind" json:"kind,omitempty"`
|
||||
// The alias name.
|
||||
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *AliasContext) Reset() { *m = AliasContext{} }
|
||||
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*AliasContext) ProtoMessage() {}
|
||||
func (*AliasContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{1} }
|
||||
|
||||
func (m *AliasContext) GetKind() AliasContext_Kind {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return AliasContext_KIND_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *AliasContext) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A CloudRepoSourceContext denotes a particular revision in a Google Cloud
|
||||
// Source Repo.
|
||||
type CloudRepoSourceContext struct {
|
||||
// The ID of the repo.
|
||||
RepoId *RepoId `protobuf:"bytes,1,opt,name=repo_id,json=repoId" json:"repo_id,omitempty"`
|
||||
// A revision in a Cloud Repo can be identified by either its revision ID or
|
||||
// its alias.
|
||||
//
|
||||
// Types that are valid to be assigned to Revision:
|
||||
// *CloudRepoSourceContext_RevisionId
|
||||
// *CloudRepoSourceContext_AliasContext
|
||||
Revision isCloudRepoSourceContext_Revision `protobuf_oneof:"revision"`
|
||||
}
|
||||
|
||||
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
|
||||
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*CloudRepoSourceContext) ProtoMessage() {}
|
||||
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{2} }
|
||||
|
||||
type isCloudRepoSourceContext_Revision interface {
|
||||
isCloudRepoSourceContext_Revision()
|
||||
}
|
||||
|
||||
type CloudRepoSourceContext_RevisionId struct {
|
||||
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,oneof"`
|
||||
}
|
||||
type CloudRepoSourceContext_AliasContext struct {
|
||||
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,oneof"`
|
||||
}
|
||||
|
||||
func (*CloudRepoSourceContext_RevisionId) isCloudRepoSourceContext_Revision() {}
|
||||
func (*CloudRepoSourceContext_AliasContext) isCloudRepoSourceContext_Revision() {}
|
||||
|
||||
func (m *CloudRepoSourceContext) GetRevision() isCloudRepoSourceContext_Revision {
|
||||
if m != nil {
|
||||
return m.Revision
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
|
||||
if m != nil {
|
||||
return m.RepoId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *CloudRepoSourceContext) GetRevisionId() string {
|
||||
if x, ok := m.GetRevision().(*CloudRepoSourceContext_RevisionId); ok {
|
||||
return x.RevisionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *CloudRepoSourceContext) GetAliasContext() *AliasContext {
|
||||
if x, ok := m.GetRevision().(*CloudRepoSourceContext_AliasContext); ok {
|
||||
return x.AliasContext
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*CloudRepoSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _CloudRepoSourceContext_OneofMarshaler, _CloudRepoSourceContext_OneofUnmarshaler, _CloudRepoSourceContext_OneofSizer, []interface{}{
|
||||
(*CloudRepoSourceContext_RevisionId)(nil),
|
||||
(*CloudRepoSourceContext_AliasContext)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _CloudRepoSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*CloudRepoSourceContext)
|
||||
// revision
|
||||
switch x := m.Revision.(type) {
|
||||
case *CloudRepoSourceContext_RevisionId:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.RevisionId)
|
||||
case *CloudRepoSourceContext_AliasContext:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.AliasContext); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("CloudRepoSourceContext.Revision has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _CloudRepoSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*CloudRepoSourceContext)
|
||||
switch tag {
|
||||
case 2: // revision.revision_id
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Revision = &CloudRepoSourceContext_RevisionId{x}
|
||||
return true, err
|
||||
case 3: // revision.alias_context
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(AliasContext)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Revision = &CloudRepoSourceContext_AliasContext{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _CloudRepoSourceContext_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*CloudRepoSourceContext)
|
||||
// revision
|
||||
switch x := m.Revision.(type) {
|
||||
case *CloudRepoSourceContext_RevisionId:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.RevisionId)))
|
||||
n += len(x.RevisionId)
|
||||
case *CloudRepoSourceContext_AliasContext:
|
||||
s := proto.Size(x.AliasContext)
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// A SourceContext referring to a Gerrit project.
|
||||
type GerritSourceContext struct {
|
||||
// The URI of a running Gerrit instance.
|
||||
HostUri string `protobuf:"bytes,1,opt,name=host_uri,json=hostUri" json:"host_uri,omitempty"`
|
||||
// The full project name within the host. Projects may be nested, so
|
||||
// "project/subproject" is a valid project name. The "repo name" is
|
||||
// the hostURI/project.
|
||||
GerritProject string `protobuf:"bytes,2,opt,name=gerrit_project,json=gerritProject" json:"gerrit_project,omitempty"`
|
||||
// A revision in a Gerrit project can be identified by either its revision ID
|
||||
// or its alias.
|
||||
//
|
||||
// Types that are valid to be assigned to Revision:
|
||||
// *GerritSourceContext_RevisionId
|
||||
// *GerritSourceContext_AliasContext
|
||||
Revision isGerritSourceContext_Revision `protobuf_oneof:"revision"`
|
||||
}
|
||||
|
||||
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
|
||||
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*GerritSourceContext) ProtoMessage() {}
|
||||
func (*GerritSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{3} }
|
||||
|
||||
type isGerritSourceContext_Revision interface {
|
||||
isGerritSourceContext_Revision()
|
||||
}
|
||||
|
||||
type GerritSourceContext_RevisionId struct {
|
||||
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,oneof"`
|
||||
}
|
||||
type GerritSourceContext_AliasContext struct {
|
||||
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,oneof"`
|
||||
}
|
||||
|
||||
func (*GerritSourceContext_RevisionId) isGerritSourceContext_Revision() {}
|
||||
func (*GerritSourceContext_AliasContext) isGerritSourceContext_Revision() {}
|
||||
|
||||
func (m *GerritSourceContext) GetRevision() isGerritSourceContext_Revision {
|
||||
if m != nil {
|
||||
return m.Revision
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *GerritSourceContext) GetHostUri() string {
|
||||
if m != nil {
|
||||
return m.HostUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GerritSourceContext) GetGerritProject() string {
|
||||
if m != nil {
|
||||
return m.GerritProject
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GerritSourceContext) GetRevisionId() string {
|
||||
if x, ok := m.GetRevision().(*GerritSourceContext_RevisionId); ok {
|
||||
return x.RevisionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GerritSourceContext) GetAliasContext() *AliasContext {
|
||||
if x, ok := m.GetRevision().(*GerritSourceContext_AliasContext); ok {
|
||||
return x.AliasContext
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*GerritSourceContext) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _GerritSourceContext_OneofMarshaler, _GerritSourceContext_OneofUnmarshaler, _GerritSourceContext_OneofSizer, []interface{}{
|
||||
(*GerritSourceContext_RevisionId)(nil),
|
||||
(*GerritSourceContext_AliasContext)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _GerritSourceContext_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*GerritSourceContext)
|
||||
// revision
|
||||
switch x := m.Revision.(type) {
|
||||
case *GerritSourceContext_RevisionId:
|
||||
b.EncodeVarint(3<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.RevisionId)
|
||||
case *GerritSourceContext_AliasContext:
|
||||
b.EncodeVarint(4<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.AliasContext); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("GerritSourceContext.Revision has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _GerritSourceContext_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*GerritSourceContext)
|
||||
switch tag {
|
||||
case 3: // revision.revision_id
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Revision = &GerritSourceContext_RevisionId{x}
|
||||
return true, err
|
||||
case 4: // revision.alias_context
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(AliasContext)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Revision = &GerritSourceContext_AliasContext{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _GerritSourceContext_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*GerritSourceContext)
|
||||
// revision
|
||||
switch x := m.Revision.(type) {
|
||||
case *GerritSourceContext_RevisionId:
|
||||
n += proto.SizeVarint(3<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.RevisionId)))
|
||||
n += len(x.RevisionId)
|
||||
case *GerritSourceContext_AliasContext:
|
||||
s := proto.Size(x.AliasContext)
|
||||
n += proto.SizeVarint(4<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// A GitSourceContext denotes a particular revision in a third party Git
|
||||
// repository (e.g., GitHub).
|
||||
type GitSourceContext struct {
|
||||
// Git repository URL.
|
||||
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
|
||||
// Required.
|
||||
// Git commit hash.
|
||||
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId" json:"revision_id,omitempty"`
|
||||
}
|
||||
|
||||
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
|
||||
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*GitSourceContext) ProtoMessage() {}
|
||||
func (*GitSourceContext) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{4} }
|
||||
|
||||
func (m *GitSourceContext) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GitSourceContext) GetRevisionId() string {
|
||||
if m != nil {
|
||||
return m.RevisionId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A unique identifier for a Cloud Repo.
|
||||
type RepoId struct {
|
||||
// A cloud repo can be identified by either its project ID and repository name
|
||||
// combination, or its globally unique identifier.
|
||||
//
|
||||
// Types that are valid to be assigned to Id:
|
||||
// *RepoId_ProjectRepoId
|
||||
// *RepoId_Uid
|
||||
Id isRepoId_Id `protobuf_oneof:"id"`
|
||||
}
|
||||
|
||||
func (m *RepoId) Reset() { *m = RepoId{} }
|
||||
func (m *RepoId) String() string { return proto.CompactTextString(m) }
|
||||
func (*RepoId) ProtoMessage() {}
|
||||
func (*RepoId) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{5} }
|
||||
|
||||
type isRepoId_Id interface {
|
||||
isRepoId_Id()
|
||||
}
|
||||
|
||||
type RepoId_ProjectRepoId struct {
|
||||
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,oneof"`
|
||||
}
|
||||
type RepoId_Uid struct {
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,oneof"`
|
||||
}
|
||||
|
||||
func (*RepoId_ProjectRepoId) isRepoId_Id() {}
|
||||
func (*RepoId_Uid) isRepoId_Id() {}
|
||||
|
||||
func (m *RepoId) GetId() isRepoId_Id {
|
||||
if m != nil {
|
||||
return m.Id
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RepoId) GetProjectRepoId() *ProjectRepoId {
|
||||
if x, ok := m.GetId().(*RepoId_ProjectRepoId); ok {
|
||||
return x.ProjectRepoId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *RepoId) GetUid() string {
|
||||
if x, ok := m.GetId().(*RepoId_Uid); ok {
|
||||
return x.Uid
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*RepoId) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) {
|
||||
return _RepoId_OneofMarshaler, _RepoId_OneofUnmarshaler, _RepoId_OneofSizer, []interface{}{
|
||||
(*RepoId_ProjectRepoId)(nil),
|
||||
(*RepoId_Uid)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _RepoId_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*RepoId)
|
||||
// id
|
||||
switch x := m.Id.(type) {
|
||||
case *RepoId_ProjectRepoId:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.ProjectRepoId); err != nil {
|
||||
return err
|
||||
}
|
||||
case *RepoId_Uid:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.Uid)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("RepoId.Id has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _RepoId_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*RepoId)
|
||||
switch tag {
|
||||
case 1: // id.project_repo_id
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(ProjectRepoId)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Id = &RepoId_ProjectRepoId{msg}
|
||||
return true, err
|
||||
case 2: // id.uid
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.Id = &RepoId_Uid{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _RepoId_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*RepoId)
|
||||
// id
|
||||
switch x := m.Id.(type) {
|
||||
case *RepoId_ProjectRepoId:
|
||||
s := proto.Size(x.ProjectRepoId)
|
||||
n += proto.SizeVarint(1<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *RepoId_Uid:
|
||||
n += proto.SizeVarint(2<<3 | proto.WireBytes)
|
||||
n += proto.SizeVarint(uint64(len(x.Uid)))
|
||||
n += len(x.Uid)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Selects a repo using a Google Cloud Platform project ID (e.g.,
|
||||
// winged-cargo-31) and a repo name within that project.
|
||||
type ProjectRepoId struct {
|
||||
// The ID of the project.
|
||||
ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId" json:"project_id,omitempty"`
|
||||
// The name of the repo. Leave empty for the default repo.
|
||||
RepoName string `protobuf:"bytes,2,opt,name=repo_name,json=repoName" json:"repo_name,omitempty"`
|
||||
}
|
||||
|
||||
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
|
||||
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProjectRepoId) ProtoMessage() {}
|
||||
func (*ProjectRepoId) Descriptor() ([]byte, []int) { return fileDescriptor5, []int{6} }
|
||||
|
||||
func (m *ProjectRepoId) GetProjectId() string {
|
||||
if m != nil {
|
||||
return m.ProjectId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ProjectRepoId) GetRepoName() string {
|
||||
if m != nil {
|
||||
return m.RepoName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*SourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.SourceContext")
|
||||
proto.RegisterType((*AliasContext)(nil), "google.devtools.containeranalysis.v1alpha1.AliasContext")
|
||||
proto.RegisterType((*CloudRepoSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.CloudRepoSourceContext")
|
||||
proto.RegisterType((*GerritSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.GerritSourceContext")
|
||||
proto.RegisterType((*GitSourceContext)(nil), "google.devtools.containeranalysis.v1alpha1.GitSourceContext")
|
||||
proto.RegisterType((*RepoId)(nil), "google.devtools.containeranalysis.v1alpha1.RepoId")
|
||||
proto.RegisterType((*ProjectRepoId)(nil), "google.devtools.containeranalysis.v1alpha1.ProjectRepoId")
|
||||
proto.RegisterEnum("google.devtools.containeranalysis.v1alpha1.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1alpha1/source_context.proto", fileDescriptor5)
|
||||
}
|
||||
|
||||
var fileDescriptor5 = []byte{
|
||||
// 675 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x95, 0x5d, 0x4e, 0xdb, 0x4a,
|
||||
0x14, 0xc7, 0xe3, 0x38, 0x24, 0xf8, 0x84, 0x70, 0xa3, 0xb9, 0xe8, 0x2a, 0x97, 0x7b, 0xab, 0x52,
|
||||
0x4b, 0x48, 0xa8, 0x0f, 0xb6, 0x48, 0x5f, 0xa0, 0x1f, 0x42, 0x24, 0x18, 0x62, 0x85, 0x42, 0x6a,
|
||||
0x4a, 0xd5, 0x0f, 0x55, 0xd6, 0x60, 0x8f, 0xcc, 0x14, 0xe3, 0xb1, 0xc6, 0x76, 0x54, 0x56, 0xd0,
|
||||
0x97, 0xae, 0xa2, 0x8b, 0xe8, 0x12, 0xba, 0x95, 0xae, 0xa0, 0xef, 0xd5, 0x8c, 0x6d, 0xc9, 0x01,
|
||||
0x2a, 0x91, 0x4a, 0x7d, 0xca, 0xcc, 0x99, 0x99, 0xdf, 0xf9, 0x9f, 0x33, 0xff, 0x89, 0x61, 0x27,
|
||||
0x60, 0x2c, 0x08, 0x89, 0xe9, 0x93, 0x69, 0xca, 0x58, 0x98, 0x98, 0x1e, 0x8b, 0x52, 0x4c, 0x23,
|
||||
0xc2, 0x71, 0x84, 0xc3, 0xab, 0x84, 0x26, 0xe6, 0x74, 0x13, 0x87, 0xf1, 0x39, 0xde, 0x34, 0x13,
|
||||
0x96, 0x71, 0x8f, 0xb8, 0x62, 0x07, 0xf9, 0x98, 0x1a, 0x31, 0x67, 0x29, 0x43, 0x0f, 0x73, 0x80,
|
||||
0x51, 0x02, 0x8c, 0x1b, 0x00, 0xa3, 0x04, 0xac, 0xfe, 0x5f, 0x24, 0xc3, 0x31, 0x35, 0x71, 0x14,
|
||||
0xb1, 0x14, 0xa7, 0x94, 0x45, 0x49, 0x4e, 0xd2, 0xbf, 0xa9, 0xd0, 0x39, 0x91, 0x29, 0x86, 0x79,
|
||||
0x06, 0xe4, 0x01, 0x78, 0x21, 0xcb, 0x7c, 0x97, 0x93, 0x98, 0xf5, 0x94, 0x35, 0x65, 0xa3, 0xdd,
|
||||
0x1f, 0x18, 0x77, 0x4f, 0x68, 0x0c, 0xc5, 0x69, 0x87, 0xc4, 0x6c, 0x86, 0x3b, 0xaa, 0x39, 0x9a,
|
||||
0x57, 0xae, 0xa0, 0x37, 0xd0, 0x0c, 0x08, 0xe7, 0x34, 0xed, 0xd5, 0x65, 0x82, 0x9d, 0x79, 0x12,
|
||||
0x1c, 0xc8, 0x93, 0xd7, 0xe9, 0x05, 0x10, 0x4d, 0x40, 0x0d, 0x68, 0xda, 0x53, 0x25, 0xf7, 0xe9,
|
||||
0x5c, 0xdc, 0x9b, 0x50, 0x81, 0x42, 0xef, 0xa1, 0x19, 0xe2, 0x33, 0x12, 0x26, 0xbd, 0xc6, 0x9a,
|
||||
0xba, 0xd1, 0xee, 0x5b, 0xf3, 0x40, 0x67, 0x88, 0xc6, 0xa1, 0xe4, 0x58, 0x51, 0xca, 0xaf, 0x9c,
|
||||
0x02, 0xba, 0xba, 0x0d, 0xed, 0x4a, 0x18, 0x75, 0x41, 0xbd, 0x20, 0x57, 0xb2, 0xf1, 0x9a, 0x23,
|
||||
0x86, 0x68, 0x05, 0x16, 0xa6, 0x38, 0xcc, 0x88, 0xec, 0x95, 0xe6, 0xe4, 0x93, 0xc7, 0xf5, 0x2d,
|
||||
0x65, 0xa0, 0x41, 0xab, 0x30, 0x86, 0xfe, 0x55, 0x81, 0xa5, 0xdd, 0x90, 0xe2, 0xa4, 0xbc, 0xc7,
|
||||
0x17, 0xd0, 0xb8, 0xa0, 0x91, 0x2f, 0x41, 0xcb, 0xfd, 0x67, 0xf3, 0x68, 0xae, 0x72, 0x8c, 0x31,
|
||||
0x8d, 0x7c, 0x47, 0xa2, 0x10, 0x82, 0x46, 0x84, 0x2f, 0x4b, 0x1d, 0x72, 0xac, 0xef, 0x40, 0x43,
|
||||
0xec, 0x40, 0x2b, 0xd0, 0x1d, 0xdb, 0x47, 0x7b, 0xee, 0xe9, 0xd1, 0xc9, 0xc4, 0x1a, 0xda, 0xfb,
|
||||
0xb6, 0xb5, 0xd7, 0xad, 0x21, 0x0d, 0x16, 0xf6, 0xed, 0xd7, 0xd6, 0x5e, 0x57, 0x41, 0x6d, 0x68,
|
||||
0x3d, 0x3f, 0x7e, 0xb5, 0x3b, 0x38, 0xb4, 0xba, 0x75, 0x11, 0x3f, 0x7e, 0x39, 0xb2, 0x9c, 0x6e,
|
||||
0x43, 0xff, 0xa1, 0xc0, 0x3f, 0xb7, 0x5b, 0x06, 0x8d, 0xa1, 0x25, 0x4c, 0xe8, 0x52, 0xbf, 0xf0,
|
||||
0x61, 0x7f, 0x9e, 0x2a, 0x04, 0xcf, 0xf6, 0x9d, 0x26, 0x97, 0xbf, 0xe8, 0x01, 0xb4, 0x39, 0x99,
|
||||
0xd2, 0x84, 0xb2, 0x48, 0x00, 0x65, 0x0d, 0xa3, 0x9a, 0x03, 0x65, 0xd0, 0xf6, 0x91, 0x0b, 0x1d,
|
||||
0x2c, 0x4a, 0x2f, 0x5f, 0x5b, 0x61, 0xa2, 0xad, 0xdf, 0xed, 0xdd, 0xa8, 0xe6, 0x2c, 0xe1, 0xca,
|
||||
0x7c, 0x00, 0xb0, 0x58, 0xa6, 0xd3, 0xbf, 0x2b, 0xf0, 0xf7, 0x2d, 0x4e, 0x46, 0xff, 0xc2, 0xe2,
|
||||
0x39, 0x4b, 0x52, 0x37, 0xe3, 0xb4, 0x30, 0x41, 0x4b, 0xcc, 0x4f, 0x39, 0x45, 0xeb, 0xb0, 0x9c,
|
||||
0x9b, 0xdc, 0x8d, 0x39, 0xfb, 0x40, 0xbc, 0xb4, 0xb8, 0x89, 0x4e, 0x1e, 0x9d, 0xe4, 0xc1, 0xeb,
|
||||
0x95, 0xaa, 0x77, 0xa9, 0xb4, 0xf1, 0x07, 0x2b, 0xb5, 0xa0, 0x7b, 0xfd, 0x69, 0x09, 0x97, 0x67,
|
||||
0x3c, 0x2c, 0x5d, 0x9e, 0xf1, 0x10, 0xdd, 0xbf, 0xe5, 0x7e, 0xaa, 0x9a, 0xf5, 0x4f, 0x0a, 0x34,
|
||||
0xf3, 0x3b, 0x45, 0x1e, 0xfc, 0x55, 0x74, 0xc0, 0x9d, 0x35, 0xc8, 0xf6, 0x3c, 0x05, 0x14, 0xfd,
|
||||
0xca, 0x99, 0xa3, 0x9a, 0xd3, 0x89, 0xab, 0x01, 0x84, 0x40, 0xcd, 0x2a, 0x46, 0x11, 0x93, 0x41,
|
||||
0x03, 0xea, 0xd4, 0xd7, 0xc7, 0xd0, 0x99, 0x39, 0x8b, 0xee, 0x01, 0x94, 0x7a, 0x0a, 0x29, 0x9a,
|
||||
0xa3, 0x15, 0x11, 0xdb, 0x47, 0xff, 0x81, 0x26, 0x65, 0x56, 0x1e, 0xcf, 0xa2, 0x08, 0x1c, 0xe1,
|
||||
0x4b, 0x32, 0xf8, 0xac, 0xc0, 0xba, 0xc7, 0x2e, 0x4b, 0xe1, 0xbf, 0xd6, 0x3b, 0x51, 0xde, 0xbe,
|
||||
0x2b, 0x36, 0x05, 0x2c, 0xc4, 0x51, 0x60, 0x30, 0x1e, 0x98, 0x01, 0x89, 0xe4, 0x3f, 0xb9, 0x99,
|
||||
0x2f, 0xe1, 0x98, 0x26, 0x77, 0xf9, 0xae, 0x3c, 0xb9, 0xb1, 0xf4, 0xa5, 0xae, 0x1e, 0x0c, 0x77,
|
||||
0xcf, 0x9a, 0x92, 0xf6, 0xe8, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xff, 0xcf, 0x59, 0x43, 0xa4,
|
||||
0x06, 0x00, 0x00,
|
||||
}
|
Reference in New Issue
Block a user