mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-14 18:53:35 +00:00
Fresh dep ensure
This commit is contained in:
500
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/attestation/attestation.pb.go
generated
vendored
Normal file
500
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/attestation/attestation.pb.go
generated
vendored
Normal file
@ -0,0 +1,500 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/attestation/attestation.proto
|
||||
|
||||
package attestation // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/attestation"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Type (for example schema) of the attestation payload that was signed.
|
||||
type PgpSignedAttestation_ContentType int32
|
||||
|
||||
const (
|
||||
// `ContentType` is not set.
|
||||
PgpSignedAttestation_CONTENT_TYPE_UNSPECIFIED PgpSignedAttestation_ContentType = 0
|
||||
// Atomic format attestation signature. See
|
||||
// https://github.com/containers/image/blob/8a5d2f82a6e3263290c8e0276c3e0f64e77723e7/docs/atomic-signature.md
|
||||
// The payload extracted from `signature` is a JSON blob conforming to the
|
||||
// linked schema.
|
||||
PgpSignedAttestation_SIMPLE_SIGNING_JSON PgpSignedAttestation_ContentType = 1
|
||||
)
|
||||
|
||||
var PgpSignedAttestation_ContentType_name = map[int32]string{
|
||||
0: "CONTENT_TYPE_UNSPECIFIED",
|
||||
1: "SIMPLE_SIGNING_JSON",
|
||||
}
|
||||
var PgpSignedAttestation_ContentType_value = map[string]int32{
|
||||
"CONTENT_TYPE_UNSPECIFIED": 0,
|
||||
"SIMPLE_SIGNING_JSON": 1,
|
||||
}
|
||||
|
||||
func (x PgpSignedAttestation_ContentType) String() string {
|
||||
return proto.EnumName(PgpSignedAttestation_ContentType_name, int32(x))
|
||||
}
|
||||
func (PgpSignedAttestation_ContentType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_attestation_c9ed0362441a7a04, []int{0, 0}
|
||||
}
|
||||
|
||||
// An attestation wrapper with a PGP-compatible signature. This message only
|
||||
// supports `ATTACHED` signatures, where the payload that is signed is included
|
||||
// alongside the signature itself in the same file.
|
||||
type PgpSignedAttestation struct {
|
||||
// The raw content of the signature, as output by GNU Privacy Guard (GPG) or
|
||||
// equivalent. Since this message only supports attached signatures, the
|
||||
// payload that was signed must be attached. While the signature format
|
||||
// supported is dependent on the verification implementation, currently only
|
||||
// ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
|
||||
// `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
|
||||
// --output=signature.gpg payload.json` will create the signature content
|
||||
// expected in this field in `signature.gpg` for the `payload.json`
|
||||
// attestation payload.
|
||||
Signature string `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
// Type (for example schema) of the attestation payload that was signed.
|
||||
// The verifier must ensure that the provided type is one that the verifier
|
||||
// supports, and that the attestation payload is a valid instantiation of that
|
||||
// type (for example by validating a JSON schema).
|
||||
ContentType PgpSignedAttestation_ContentType `protobuf:"varint,3,opt,name=content_type,json=contentType,proto3,enum=grafeas.v1beta1.attestation.PgpSignedAttestation_ContentType" json:"content_type,omitempty"`
|
||||
// This field is used by verifiers to select the public key used to validate
|
||||
// the signature. Note that the policy of the verifier ultimately determines
|
||||
// which public keys verify a signature based on the context of the
|
||||
// verification. There is no guarantee validation will succeed if the
|
||||
// verifier has no key matching this ID, even if it has a key under a
|
||||
// different ID that would verify the signature. Note that this ID should also
|
||||
// be present in the signature content above, but that is not expected to be
|
||||
// used by the verifier.
|
||||
//
|
||||
// Types that are valid to be assigned to KeyId:
|
||||
// *PgpSignedAttestation_PgpKeyId
|
||||
KeyId isPgpSignedAttestation_KeyId `protobuf_oneof:"key_id"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PgpSignedAttestation) Reset() { *m = PgpSignedAttestation{} }
|
||||
func (m *PgpSignedAttestation) String() string { return proto.CompactTextString(m) }
|
||||
func (*PgpSignedAttestation) ProtoMessage() {}
|
||||
func (*PgpSignedAttestation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_attestation_c9ed0362441a7a04, []int{0}
|
||||
}
|
||||
func (m *PgpSignedAttestation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PgpSignedAttestation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PgpSignedAttestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PgpSignedAttestation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PgpSignedAttestation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PgpSignedAttestation.Merge(dst, src)
|
||||
}
|
||||
func (m *PgpSignedAttestation) XXX_Size() int {
|
||||
return xxx_messageInfo_PgpSignedAttestation.Size(m)
|
||||
}
|
||||
func (m *PgpSignedAttestation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PgpSignedAttestation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PgpSignedAttestation proto.InternalMessageInfo
|
||||
|
||||
func (m *PgpSignedAttestation) GetSignature() string {
|
||||
if m != nil {
|
||||
return m.Signature
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *PgpSignedAttestation) GetContentType() PgpSignedAttestation_ContentType {
|
||||
if m != nil {
|
||||
return m.ContentType
|
||||
}
|
||||
return PgpSignedAttestation_CONTENT_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
type isPgpSignedAttestation_KeyId interface {
|
||||
isPgpSignedAttestation_KeyId()
|
||||
}
|
||||
|
||||
type PgpSignedAttestation_PgpKeyId struct {
|
||||
PgpKeyId string `protobuf:"bytes,2,opt,name=pgp_key_id,json=pgpKeyId,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*PgpSignedAttestation_PgpKeyId) isPgpSignedAttestation_KeyId() {}
|
||||
|
||||
func (m *PgpSignedAttestation) GetKeyId() isPgpSignedAttestation_KeyId {
|
||||
if m != nil {
|
||||
return m.KeyId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PgpSignedAttestation) GetPgpKeyId() string {
|
||||
if x, ok := m.GetKeyId().(*PgpSignedAttestation_PgpKeyId); ok {
|
||||
return x.PgpKeyId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*PgpSignedAttestation) 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 _PgpSignedAttestation_OneofMarshaler, _PgpSignedAttestation_OneofUnmarshaler, _PgpSignedAttestation_OneofSizer, []interface{}{
|
||||
(*PgpSignedAttestation_PgpKeyId)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _PgpSignedAttestation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*PgpSignedAttestation)
|
||||
// key_id
|
||||
switch x := m.KeyId.(type) {
|
||||
case *PgpSignedAttestation_PgpKeyId:
|
||||
b.EncodeVarint(2<<3 | proto.WireBytes)
|
||||
b.EncodeStringBytes(x.PgpKeyId)
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("PgpSignedAttestation.KeyId has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _PgpSignedAttestation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*PgpSignedAttestation)
|
||||
switch tag {
|
||||
case 2: // key_id.pgp_key_id
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
x, err := b.DecodeStringBytes()
|
||||
m.KeyId = &PgpSignedAttestation_PgpKeyId{x}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _PgpSignedAttestation_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*PgpSignedAttestation)
|
||||
// key_id
|
||||
switch x := m.KeyId.(type) {
|
||||
case *PgpSignedAttestation_PgpKeyId:
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.PgpKeyId)))
|
||||
n += len(x.PgpKeyId)
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
// Note kind that represents a logical attestation "role" or "authority". For
|
||||
// example, an organization might have one `Authority` for "QA" and one for
|
||||
// "build". This Note is intended to act strictly as a grouping mechanism for
|
||||
// the attached Occurrences (Attestations). This grouping mechanism also
|
||||
// provides a security boundary, since IAM ACLs gate the ability for a principle
|
||||
// to attach an Occurrence to a given Note. It also provides a single point of
|
||||
// lookup to find all attached Attestation Occurrences, even if they don't all
|
||||
// live in the same project.
|
||||
type Authority struct {
|
||||
// Hint hints at the purpose of the attestation authority.
|
||||
Hint *Authority_Hint `protobuf:"bytes,1,opt,name=hint,proto3" json:"hint,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Authority) Reset() { *m = Authority{} }
|
||||
func (m *Authority) String() string { return proto.CompactTextString(m) }
|
||||
func (*Authority) ProtoMessage() {}
|
||||
func (*Authority) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_attestation_c9ed0362441a7a04, []int{1}
|
||||
}
|
||||
func (m *Authority) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Authority.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Authority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Authority.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Authority) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Authority.Merge(dst, src)
|
||||
}
|
||||
func (m *Authority) XXX_Size() int {
|
||||
return xxx_messageInfo_Authority.Size(m)
|
||||
}
|
||||
func (m *Authority) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Authority.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Authority proto.InternalMessageInfo
|
||||
|
||||
func (m *Authority) GetHint() *Authority_Hint {
|
||||
if m != nil {
|
||||
return m.Hint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// This submessage provides human-readable hints about the purpose of the
|
||||
// Authority. Because the name of a Note acts as its resource reference, it is
|
||||
// important to disambiguate the canonical name of the Note (which might be a
|
||||
// UUID for security purposes) from "readable" names more suitable for debug
|
||||
// output. Note that these hints should NOT be used to look up authorities in
|
||||
// security sensitive contexts, such as when looking up Attestations to
|
||||
// verify.
|
||||
type Authority_Hint struct {
|
||||
// The human readable name of this Attestation Authority, for example "qa".
|
||||
HumanReadableName string `protobuf:"bytes,1,opt,name=human_readable_name,json=humanReadableName,proto3" json:"human_readable_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Authority_Hint) Reset() { *m = Authority_Hint{} }
|
||||
func (m *Authority_Hint) String() string { return proto.CompactTextString(m) }
|
||||
func (*Authority_Hint) ProtoMessage() {}
|
||||
func (*Authority_Hint) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_attestation_c9ed0362441a7a04, []int{1, 0}
|
||||
}
|
||||
func (m *Authority_Hint) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Authority_Hint.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Authority_Hint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Authority_Hint.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Authority_Hint) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Authority_Hint.Merge(dst, src)
|
||||
}
|
||||
func (m *Authority_Hint) XXX_Size() int {
|
||||
return xxx_messageInfo_Authority_Hint.Size(m)
|
||||
}
|
||||
func (m *Authority_Hint) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Authority_Hint.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Authority_Hint proto.InternalMessageInfo
|
||||
|
||||
func (m *Authority_Hint) GetHumanReadableName() string {
|
||||
if m != nil {
|
||||
return m.HumanReadableName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Details of an attestation occurrence.
|
||||
type Details struct {
|
||||
// Attestation for the resource.
|
||||
Attestation *Attestation `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Details) Reset() { *m = Details{} }
|
||||
func (m *Details) String() string { return proto.CompactTextString(m) }
|
||||
func (*Details) ProtoMessage() {}
|
||||
func (*Details) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_attestation_c9ed0362441a7a04, []int{2}
|
||||
}
|
||||
func (m *Details) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Details.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Details) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Details.Merge(dst, src)
|
||||
}
|
||||
func (m *Details) XXX_Size() int {
|
||||
return xxx_messageInfo_Details.Size(m)
|
||||
}
|
||||
func (m *Details) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Details.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Details proto.InternalMessageInfo
|
||||
|
||||
func (m *Details) GetAttestation() *Attestation {
|
||||
if m != nil {
|
||||
return m.Attestation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Occurrence that represents a single "attestation". The authenticity of an
|
||||
// Attestation can be verified using the attached signature. If the verifier
|
||||
// trusts the public key of the signer, then verifying the signature is
|
||||
// sufficient to establish trust. In this circumstance, the Authority to which
|
||||
// this Attestation is attached is primarily useful for look-up (how to find
|
||||
// this Attestation if you already know the Authority and artifact to be
|
||||
// verified) and intent (which authority was this attestation intended to sign
|
||||
// for).
|
||||
type Attestation struct {
|
||||
// The signature, generally over the `resource_url`, that verifies this
|
||||
// attestation. The semantics of the signature veracity are ultimately
|
||||
// determined by the verification engine.
|
||||
//
|
||||
// Types that are valid to be assigned to Signature:
|
||||
// *Attestation_PgpSignedAttestation
|
||||
Signature isAttestation_Signature `protobuf_oneof:"signature"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Attestation) Reset() { *m = Attestation{} }
|
||||
func (m *Attestation) String() string { return proto.CompactTextString(m) }
|
||||
func (*Attestation) ProtoMessage() {}
|
||||
func (*Attestation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_attestation_c9ed0362441a7a04, []int{3}
|
||||
}
|
||||
func (m *Attestation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Attestation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Attestation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Attestation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Attestation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Attestation.Merge(dst, src)
|
||||
}
|
||||
func (m *Attestation) XXX_Size() int {
|
||||
return xxx_messageInfo_Attestation.Size(m)
|
||||
}
|
||||
func (m *Attestation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Attestation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Attestation proto.InternalMessageInfo
|
||||
|
||||
type isAttestation_Signature interface {
|
||||
isAttestation_Signature()
|
||||
}
|
||||
|
||||
type Attestation_PgpSignedAttestation struct {
|
||||
PgpSignedAttestation *PgpSignedAttestation `protobuf:"bytes,1,opt,name=pgp_signed_attestation,json=pgpSignedAttestation,proto3,oneof"`
|
||||
}
|
||||
|
||||
func (*Attestation_PgpSignedAttestation) isAttestation_Signature() {}
|
||||
|
||||
func (m *Attestation) GetSignature() isAttestation_Signature {
|
||||
if m != nil {
|
||||
return m.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Attestation) GetPgpSignedAttestation() *PgpSignedAttestation {
|
||||
if x, ok := m.GetSignature().(*Attestation_PgpSignedAttestation); ok {
|
||||
return x.PgpSignedAttestation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// XXX_OneofFuncs is for the internal use of the proto package.
|
||||
func (*Attestation) 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 _Attestation_OneofMarshaler, _Attestation_OneofUnmarshaler, _Attestation_OneofSizer, []interface{}{
|
||||
(*Attestation_PgpSignedAttestation)(nil),
|
||||
}
|
||||
}
|
||||
|
||||
func _Attestation_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
|
||||
m := msg.(*Attestation)
|
||||
// signature
|
||||
switch x := m.Signature.(type) {
|
||||
case *Attestation_PgpSignedAttestation:
|
||||
b.EncodeVarint(1<<3 | proto.WireBytes)
|
||||
if err := b.EncodeMessage(x.PgpSignedAttestation); err != nil {
|
||||
return err
|
||||
}
|
||||
case nil:
|
||||
default:
|
||||
return fmt.Errorf("Attestation.Signature has unexpected type %T", x)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func _Attestation_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
|
||||
m := msg.(*Attestation)
|
||||
switch tag {
|
||||
case 1: // signature.pgp_signed_attestation
|
||||
if wire != proto.WireBytes {
|
||||
return true, proto.ErrInternalBadWireType
|
||||
}
|
||||
msg := new(PgpSignedAttestation)
|
||||
err := b.DecodeMessage(msg)
|
||||
m.Signature = &Attestation_PgpSignedAttestation{msg}
|
||||
return true, err
|
||||
default:
|
||||
return false, nil
|
||||
}
|
||||
}
|
||||
|
||||
func _Attestation_OneofSizer(msg proto.Message) (n int) {
|
||||
m := msg.(*Attestation)
|
||||
// signature
|
||||
switch x := m.Signature.(type) {
|
||||
case *Attestation_PgpSignedAttestation:
|
||||
s := proto.Size(x.PgpSignedAttestation)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case nil:
|
||||
default:
|
||||
panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
|
||||
}
|
||||
return n
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*PgpSignedAttestation)(nil), "grafeas.v1beta1.attestation.PgpSignedAttestation")
|
||||
proto.RegisterType((*Authority)(nil), "grafeas.v1beta1.attestation.Authority")
|
||||
proto.RegisterType((*Authority_Hint)(nil), "grafeas.v1beta1.attestation.Authority.Hint")
|
||||
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.attestation.Details")
|
||||
proto.RegisterType((*Attestation)(nil), "grafeas.v1beta1.attestation.Attestation")
|
||||
proto.RegisterEnum("grafeas.v1beta1.attestation.PgpSignedAttestation_ContentType", PgpSignedAttestation_ContentType_name, PgpSignedAttestation_ContentType_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/attestation/attestation.proto", fileDescriptor_attestation_c9ed0362441a7a04)
|
||||
}
|
||||
|
||||
var fileDescriptor_attestation_c9ed0362441a7a04 = []byte{
|
||||
// 452 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x53, 0x5d, 0x6f, 0xd3, 0x30,
|
||||
0x14, 0x6d, 0xba, 0x69, 0xac, 0x37, 0x08, 0x8d, 0x6c, 0x82, 0x0a, 0xa6, 0x69, 0xca, 0x53, 0x25,
|
||||
0x24, 0x47, 0x1d, 0x12, 0x2f, 0x08, 0xa1, 0x7e, 0x84, 0x36, 0x03, 0xb2, 0x28, 0xe9, 0x1e, 0xe0,
|
||||
0xc5, 0x73, 0x97, 0x8b, 0x6b, 0x91, 0xda, 0x56, 0xe2, 0x4e, 0xca, 0x3b, 0xf0, 0xc0, 0xcf, 0xe0,
|
||||
0x97, 0xa2, 0xa6, 0x85, 0x46, 0xda, 0x54, 0xa9, 0x6f, 0xd7, 0x3e, 0x3e, 0xf7, 0x9c, 0xfb, 0x61,
|
||||
0x18, 0x71, 0xa5, 0x78, 0x86, 0x5e, 0x8a, 0x77, 0x46, 0xa9, 0xac, 0xf0, 0x6e, 0x95, 0x34, 0x4c,
|
||||
0x48, 0xcc, 0x99, 0x64, 0x59, 0x59, 0x88, 0xc2, 0xbb, 0xeb, 0x4e, 0xd1, 0xb0, 0xae, 0xc7, 0x8c,
|
||||
0xc1, 0xc2, 0x30, 0x23, 0x94, 0xac, 0xc7, 0x44, 0xe7, 0xca, 0x28, 0xe7, 0x25, 0xcf, 0xd9, 0x37,
|
||||
0x64, 0x05, 0x59, 0x3f, 0x27, 0xb5, 0x27, 0xee, 0xaf, 0x26, 0x9c, 0x44, 0x5c, 0x27, 0x82, 0x4b,
|
||||
0x4c, 0x7b, 0x1b, 0xc0, 0x39, 0x85, 0x56, 0x21, 0xb8, 0x64, 0x66, 0x91, 0x63, 0xdb, 0x3a, 0xb7,
|
||||
0x3a, 0xad, 0x78, 0x73, 0xe1, 0xdc, 0xc0, 0xe3, 0xa5, 0x1d, 0x94, 0x86, 0x9a, 0x52, 0x63, 0x7b,
|
||||
0xef, 0xdc, 0xea, 0x3c, 0xb9, 0x78, 0x47, 0xb6, 0x48, 0x91, 0x87, 0x64, 0xc8, 0x60, 0x95, 0x65,
|
||||
0x52, 0x6a, 0x8c, 0xed, 0xdb, 0xcd, 0xc1, 0x39, 0x03, 0xd0, 0x5c, 0xd3, 0xef, 0x58, 0x52, 0x91,
|
||||
0xb6, 0x9b, 0x4b, 0x03, 0xe3, 0x46, 0x7c, 0xa8, 0xb9, 0xfe, 0x88, 0x65, 0x90, 0xba, 0x43, 0xb0,
|
||||
0x6b, 0x5c, 0xe7, 0x14, 0xda, 0x83, 0xab, 0x70, 0xe2, 0x87, 0x13, 0x3a, 0xf9, 0x12, 0xf9, 0xf4,
|
||||
0x3a, 0x4c, 0x22, 0x7f, 0x10, 0x7c, 0x08, 0xfc, 0xe1, 0x51, 0xc3, 0x79, 0x0e, 0xc7, 0x49, 0xf0,
|
||||
0x39, 0xfa, 0xe4, 0xd3, 0x24, 0x18, 0x85, 0x41, 0x38, 0xa2, 0x97, 0xc9, 0x55, 0x78, 0x64, 0xf5,
|
||||
0x0f, 0xe1, 0x60, 0xa5, 0xe0, 0xfe, 0xb0, 0xa0, 0xd5, 0x5b, 0x98, 0x99, 0xca, 0x85, 0x29, 0x9d,
|
||||
0xf7, 0xb0, 0x3f, 0x13, 0xd2, 0x54, 0x85, 0xdb, 0x17, 0xaf, 0xb6, 0xd6, 0xf5, 0x9f, 0x45, 0xc6,
|
||||
0x42, 0x9a, 0xb8, 0x22, 0xbe, 0x78, 0x03, 0xfb, 0xcb, 0x93, 0x43, 0xe0, 0x78, 0xb6, 0x98, 0x33,
|
||||
0x49, 0x73, 0x64, 0x29, 0x9b, 0x66, 0x48, 0x25, 0x9b, 0xff, 0x6b, 0xe8, 0xd3, 0x0a, 0x8a, 0xd7,
|
||||
0x48, 0xc8, 0xe6, 0xe8, 0x5e, 0xc3, 0xa3, 0x21, 0x1a, 0x26, 0xb2, 0xc2, 0xb9, 0x04, 0xbb, 0x26,
|
||||
0xb3, 0xb6, 0xd2, 0xd9, 0x6e, 0x65, 0x13, 0xc7, 0x75, 0xb2, 0xfb, 0xd3, 0x02, 0xbb, 0x3e, 0x5d,
|
||||
0x01, 0xcf, 0x96, 0xdd, 0x2d, 0xaa, 0x79, 0xd0, 0xfb, 0x32, 0xdd, 0x9d, 0x27, 0x39, 0x6e, 0xc4,
|
||||
0x27, 0xfa, 0x81, 0xfb, 0xbe, 0x5d, 0x5b, 0xa4, 0xfe, 0x6f, 0x0b, 0xce, 0x84, 0xda, 0x96, 0x3c,
|
||||
0xb2, 0xbe, 0xde, 0xac, 0x36, 0x9f, 0x70, 0x95, 0x31, 0xc9, 0x89, 0xca, 0xb9, 0xc7, 0x51, 0x56,
|
||||
0xcb, 0xec, 0xad, 0x20, 0xa6, 0x45, 0xb1, 0xe3, 0xc7, 0x78, 0x5b, 0x8b, 0xff, 0x34, 0xf7, 0x46,
|
||||
0x71, 0x6f, 0x7a, 0x50, 0xa5, 0x7c, 0xfd, 0x37, 0x00, 0x00, 0xff, 0xff, 0x69, 0x0c, 0x36, 0xf8,
|
||||
0x6a, 0x03, 0x00, 0x00,
|
||||
}
|
287
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/build/build.pb.go
generated
vendored
Normal file
287
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/build/build.pb.go
generated
vendored
Normal file
@ -0,0 +1,287 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/build/build.proto
|
||||
|
||||
package build // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/build"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import provenance "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance"
|
||||
|
||||
// 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
|
||||
|
||||
// Public key formats
|
||||
type BuildSignature_KeyType int32
|
||||
|
||||
const (
|
||||
// `KeyType` is not set.
|
||||
BuildSignature_KEY_TYPE_UNSPECIFIED BuildSignature_KeyType = 0
|
||||
// `PGP ASCII Armored` public key.
|
||||
BuildSignature_PGP_ASCII_ARMORED BuildSignature_KeyType = 1
|
||||
// `PKIX PEM` public key.
|
||||
BuildSignature_PKIX_PEM BuildSignature_KeyType = 2
|
||||
)
|
||||
|
||||
var BuildSignature_KeyType_name = map[int32]string{
|
||||
0: "KEY_TYPE_UNSPECIFIED",
|
||||
1: "PGP_ASCII_ARMORED",
|
||||
2: "PKIX_PEM",
|
||||
}
|
||||
var BuildSignature_KeyType_value = map[string]int32{
|
||||
"KEY_TYPE_UNSPECIFIED": 0,
|
||||
"PGP_ASCII_ARMORED": 1,
|
||||
"PKIX_PEM": 2,
|
||||
}
|
||||
|
||||
func (x BuildSignature_KeyType) String() string {
|
||||
return proto.EnumName(BuildSignature_KeyType_name, int32(x))
|
||||
}
|
||||
func (BuildSignature_KeyType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_build_739f6c7d44c8a606, []int{1, 0}
|
||||
}
|
||||
|
||||
// Note holding the version of the provider's builder and the signature of the
|
||||
// provenance message in linked BuildDetails.
|
||||
type Build struct {
|
||||
// Version of the builder which produced this Note.
|
||||
BuilderVersion string `protobuf:"bytes,1,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
|
||||
// Signature of the build in Occurrences pointing to the Note containing this
|
||||
// `BuilderDetails`.
|
||||
Signature *BuildSignature `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Build) Reset() { *m = Build{} }
|
||||
func (m *Build) String() string { return proto.CompactTextString(m) }
|
||||
func (*Build) ProtoMessage() {}
|
||||
func (*Build) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_build_739f6c7d44c8a606, []int{0}
|
||||
}
|
||||
func (m *Build) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Build.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Build) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Build.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Build) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Build.Merge(dst, src)
|
||||
}
|
||||
func (m *Build) XXX_Size() int {
|
||||
return xxx_messageInfo_Build.Size(m)
|
||||
}
|
||||
func (m *Build) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Build.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Build proto.InternalMessageInfo
|
||||
|
||||
func (m *Build) GetBuilderVersion() string {
|
||||
if m != nil {
|
||||
return m.BuilderVersion
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Build) GetSignature() *BuildSignature {
|
||||
if m != nil {
|
||||
return m.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Message encapsulating the signature of the verified build.
|
||||
type BuildSignature struct {
|
||||
// Public key of the builder which can be used to verify that the related
|
||||
// findings are valid and unchanged. If `key_type` is empty, this defaults
|
||||
// to PEM encoded public keys.
|
||||
//
|
||||
// This field may be empty if `key_id` references an external key.
|
||||
//
|
||||
// For Cloud Container Builder based signatures, this is a PEM encoded public
|
||||
// key. To verify the Cloud Container Builder signature, place the contents of
|
||||
// this field into a file (public.pem). The signature field is base64-decoded
|
||||
// into its binary representation in signature.bin, and the provenance bytes
|
||||
// from `BuildDetails` are base64-decoded into a binary representation in
|
||||
// signed.bin. OpenSSL can then verify the signature:
|
||||
// `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
|
||||
PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
|
||||
// Signature of the related `BuildProvenance`. In JSON, this is base-64
|
||||
// encoded.
|
||||
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
|
||||
// An ID for the key used to sign. This could be either an Id for the key
|
||||
// stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
|
||||
// CN for a cert), or a reference to an external key (such as a reference to a
|
||||
// key in Cloud Key Management Service).
|
||||
KeyId string `protobuf:"bytes,3,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
|
||||
// The type of the key, either stored in `public_key` or referenced in
|
||||
// `key_id`
|
||||
KeyType BuildSignature_KeyType `protobuf:"varint,4,opt,name=key_type,json=keyType,proto3,enum=grafeas.v1beta1.build.BuildSignature_KeyType" json:"key_type,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BuildSignature) Reset() { *m = BuildSignature{} }
|
||||
func (m *BuildSignature) String() string { return proto.CompactTextString(m) }
|
||||
func (*BuildSignature) ProtoMessage() {}
|
||||
func (*BuildSignature) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_build_739f6c7d44c8a606, []int{1}
|
||||
}
|
||||
func (m *BuildSignature) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BuildSignature.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BuildSignature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BuildSignature.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BuildSignature) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BuildSignature.Merge(dst, src)
|
||||
}
|
||||
func (m *BuildSignature) XXX_Size() int {
|
||||
return xxx_messageInfo_BuildSignature.Size(m)
|
||||
}
|
||||
func (m *BuildSignature) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BuildSignature.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BuildSignature proto.InternalMessageInfo
|
||||
|
||||
func (m *BuildSignature) GetPublicKey() string {
|
||||
if m != nil {
|
||||
return m.PublicKey
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildSignature) GetSignature() []byte {
|
||||
if m != nil {
|
||||
return m.Signature
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildSignature) GetKeyId() string {
|
||||
if m != nil {
|
||||
return m.KeyId
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildSignature) GetKeyType() BuildSignature_KeyType {
|
||||
if m != nil {
|
||||
return m.KeyType
|
||||
}
|
||||
return BuildSignature_KEY_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
// Details of a build occurrence.
|
||||
type Details struct {
|
||||
// The actual provenance for the build.
|
||||
Provenance *provenance.BuildProvenance `protobuf:"bytes,1,opt,name=provenance,proto3" json:"provenance,omitempty"`
|
||||
// Serialized JSON representation of the provenance, used in generating the
|
||||
// `BuildSignature` in the corresponding Result. After verifying the
|
||||
// signature, `provenance_bytes` can be unmarshalled and compared to the
|
||||
// provenance to confirm that it is unchanged. A base64-encoded string
|
||||
// representation of the provenance bytes is used for the signature in order
|
||||
// to interoperate with openssl which expects this format for signature
|
||||
// verification.
|
||||
//
|
||||
// The serialized form is captured both to avoid ambiguity in how the
|
||||
// provenance is marshalled to json as well to prevent incompatibilities with
|
||||
// future changes.
|
||||
ProvenanceBytes string `protobuf:"bytes,2,opt,name=provenance_bytes,json=provenanceBytes,proto3" json:"provenance_bytes,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Details) Reset() { *m = Details{} }
|
||||
func (m *Details) String() string { return proto.CompactTextString(m) }
|
||||
func (*Details) ProtoMessage() {}
|
||||
func (*Details) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_build_739f6c7d44c8a606, []int{2}
|
||||
}
|
||||
func (m *Details) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Details.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Details) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Details.Merge(dst, src)
|
||||
}
|
||||
func (m *Details) XXX_Size() int {
|
||||
return xxx_messageInfo_Details.Size(m)
|
||||
}
|
||||
func (m *Details) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Details.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Details proto.InternalMessageInfo
|
||||
|
||||
func (m *Details) GetProvenance() *provenance.BuildProvenance {
|
||||
if m != nil {
|
||||
return m.Provenance
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Details) GetProvenanceBytes() string {
|
||||
if m != nil {
|
||||
return m.ProvenanceBytes
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Build)(nil), "grafeas.v1beta1.build.Build")
|
||||
proto.RegisterType((*BuildSignature)(nil), "grafeas.v1beta1.build.BuildSignature")
|
||||
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.build.Details")
|
||||
proto.RegisterEnum("grafeas.v1beta1.build.BuildSignature_KeyType", BuildSignature_KeyType_name, BuildSignature_KeyType_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/build/build.proto", fileDescriptor_build_739f6c7d44c8a606)
|
||||
}
|
||||
|
||||
var fileDescriptor_build_739f6c7d44c8a606 = []byte{
|
||||
// 434 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x4d, 0x6f, 0xd3, 0x40,
|
||||
0x10, 0xc5, 0x29, 0x6d, 0x9a, 0x69, 0x95, 0x86, 0x15, 0x91, 0x2c, 0x04, 0x52, 0x14, 0x09, 0x11,
|
||||
0x84, 0xb0, 0xd5, 0x70, 0xec, 0x29, 0x1f, 0xa6, 0xb5, 0xac, 0x82, 0xe5, 0x04, 0x44, 0xb9, 0xac,
|
||||
0xd6, 0xc9, 0x60, 0xad, 0x62, 0xed, 0x5a, 0xde, 0x4d, 0xc4, 0x1e, 0xf9, 0x2b, 0xfc, 0x4a, 0x8e,
|
||||
0x28, 0xeb, 0x40, 0x0c, 0xed, 0x21, 0x97, 0xd5, 0xcc, 0x9b, 0x99, 0x37, 0x6f, 0x67, 0x06, 0xae,
|
||||
0x32, 0x29, 0xb3, 0x1c, 0xfd, 0x25, 0x6e, 0xb4, 0x94, 0xb9, 0xf2, 0x17, 0x52, 0x68, 0xc6, 0x05,
|
||||
0x96, 0x4c, 0xb0, 0xdc, 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0xc3, 0x88, 0x0b, 0x4f, 0xa3, 0xe0, 0x8e, 0xce, 0xef, 0xe2, 0x80, 0x7e, 0xfa, 0x30,
|
||||
0x8b, 0x83, 0x49, 0xf8, 0x3e, 0x0c, 0xa6, 0x9d, 0x47, 0xa4, 0x0b, 0x4f, 0xe2, 0xeb, 0x98, 0x8e,
|
||||
0x66, 0x93, 0x30, 0xa4, 0xa3, 0xe4, 0xf6, 0x63, 0x12, 0x4c, 0x3b, 0x0e, 0x39, 0x87, 0xd3, 0x38,
|
||||
0x0a, 0xbf, 0xd0, 0x38, 0xb8, 0xed, 0x34, 0xfa, 0x3f, 0x1c, 0x68, 0x4e, 0x51, 0x33, 0x9e, 0x2b,
|
||||
0x12, 0x01, 0xec, 0x37, 0x62, 0xff, 0x7c, 0x36, 0x7c, 0x73, 0x4f, 0x61, 0x6d, 0x69, 0x56, 0x66,
|
||||
0xfc, 0xd7, 0x4f, 0x6a, 0xe5, 0xe4, 0x35, 0x74, 0xf6, 0x1e, 0x4d, 0x8d, 0x46, 0x65, 0x07, 0xd5,
|
||||
0x4a, 0x2e, 0xf6, 0xf8, 0x78, 0x0b, 0x8f, 0xbf, 0x83, 0xcb, 0xe5, 0xc3, 0x93, 0x88, 0x9d, 0xaf,
|
||||
0xf3, 0xea, 0xb4, 0xbc, 0x4c, 0xe6, 0x4c, 0x64, 0x9e, 0x2c, 0x33, 0x3f, 0x43, 0x61, 0xef, 0xc5,
|
||||
0xaf, 0x42, 0xac, 0xe0, 0xea, 0xe0, 0x6b, 0xbe, 0xb2, 0xef, 0xcf, 0xc6, 0xd1, 0x75, 0x32, 0x4a,
|
||||
0x4f, 0x2c, 0xcd, 0xbb, 0xdf, 0x01, 0x00, 0x00, 0xff, 0xff, 0x06, 0x5a, 0x03, 0x5d, 0x13, 0x03,
|
||||
0x00, 0x00,
|
||||
}
|
152
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common/common.pb.go
generated
vendored
Normal file
152
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common/common.pb.go
generated
vendored
Normal file
@ -0,0 +1,152 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/common/common.proto
|
||||
|
||||
package common // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Kind represents the kinds of notes supported.
|
||||
type NoteKind int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
NoteKind_NOTE_KIND_UNSPECIFIED NoteKind = 0
|
||||
// The note and occurrence represent a package vulnerability.
|
||||
NoteKind_VULNERABILITY NoteKind = 1
|
||||
// The note and occurrence assert build provenance.
|
||||
NoteKind_BUILD NoteKind = 2
|
||||
// This represents an image basis relationship.
|
||||
NoteKind_IMAGE NoteKind = 3
|
||||
// This represents a package installed via a package manager.
|
||||
NoteKind_PACKAGE NoteKind = 4
|
||||
// The note and occurrence track deployment events.
|
||||
NoteKind_DEPLOYMENT NoteKind = 5
|
||||
// The note and occurrence track the initial discovery status of a resource.
|
||||
NoteKind_DISCOVERY NoteKind = 6
|
||||
// This represents a logical "role" that can attest to artifacts.
|
||||
NoteKind_ATTESTATION NoteKind = 7
|
||||
)
|
||||
|
||||
var NoteKind_name = map[int32]string{
|
||||
0: "NOTE_KIND_UNSPECIFIED",
|
||||
1: "VULNERABILITY",
|
||||
2: "BUILD",
|
||||
3: "IMAGE",
|
||||
4: "PACKAGE",
|
||||
5: "DEPLOYMENT",
|
||||
6: "DISCOVERY",
|
||||
7: "ATTESTATION",
|
||||
}
|
||||
var NoteKind_value = map[string]int32{
|
||||
"NOTE_KIND_UNSPECIFIED": 0,
|
||||
"VULNERABILITY": 1,
|
||||
"BUILD": 2,
|
||||
"IMAGE": 3,
|
||||
"PACKAGE": 4,
|
||||
"DEPLOYMENT": 5,
|
||||
"DISCOVERY": 6,
|
||||
"ATTESTATION": 7,
|
||||
}
|
||||
|
||||
func (x NoteKind) String() string {
|
||||
return proto.EnumName(NoteKind_name, int32(x))
|
||||
}
|
||||
func (NoteKind) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_common_bcbfdeee4a2611b3, []int{0}
|
||||
}
|
||||
|
||||
// Metadata for any related URL information.
|
||||
type RelatedUrl struct {
|
||||
// Specific URL associated with the resource.
|
||||
Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// Label to describe usage of the URL.
|
||||
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *RelatedUrl) Reset() { *m = RelatedUrl{} }
|
||||
func (m *RelatedUrl) String() string { return proto.CompactTextString(m) }
|
||||
func (*RelatedUrl) ProtoMessage() {}
|
||||
func (*RelatedUrl) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_common_bcbfdeee4a2611b3, []int{0}
|
||||
}
|
||||
func (m *RelatedUrl) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RelatedUrl.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RelatedUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RelatedUrl.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RelatedUrl) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RelatedUrl.Merge(dst, src)
|
||||
}
|
||||
func (m *RelatedUrl) XXX_Size() int {
|
||||
return xxx_messageInfo_RelatedUrl.Size(m)
|
||||
}
|
||||
func (m *RelatedUrl) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RelatedUrl.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RelatedUrl proto.InternalMessageInfo
|
||||
|
||||
func (m *RelatedUrl) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *RelatedUrl) GetLabel() string {
|
||||
if m != nil {
|
||||
return m.Label
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*RelatedUrl)(nil), "grafeas.v1beta1.RelatedUrl")
|
||||
proto.RegisterEnum("grafeas.v1beta1.NoteKind", NoteKind_name, NoteKind_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/common/common.proto", fileDescriptor_common_bcbfdeee4a2611b3)
|
||||
}
|
||||
|
||||
var fileDescriptor_common_bcbfdeee4a2611b3 = []byte{
|
||||
// 322 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x90, 0x41, 0x6b, 0xea, 0x40,
|
||||
0x14, 0x85, 0x5f, 0xf4, 0xa9, 0xcf, 0x2b, 0x3e, 0xa7, 0x43, 0x0b, 0xba, 0x2b, 0x5d, 0x95, 0x2e,
|
||||
0x12, 0xa4, 0xdd, 0x95, 0x2e, 0xa2, 0x99, 0xca, 0x60, 0x9c, 0x84, 0x38, 0x11, 0xec, 0x46, 0x46,
|
||||
0x9d, 0x0e, 0x81, 0x71, 0x46, 0x92, 0x54, 0x28, 0xfd, 0x09, 0xfd, 0x17, 0xfd, 0xa5, 0x45, 0xe3,
|
||||
0xaa, 0xab,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
||||
0x0e, 0xe8, 0x7c, 0x1c, 0x2d, 0x48, 0xb2, 0x44, 0x4d, 0xdc, 0x83, 0x8e, 0xcf, 0x39, 0x99, 0x73,
|
||||
0x9f, 0xd3, 0x88, 0xa1, 0xd6, 0xe8, 0x03, 0x06, 0x99, 0x75, 0x7f, 0x34, 0x73, 0xab, 0xde, 0xb1,
|
||||
0xf3, 0xb2, 0xa8, 0x90, 0xb9, 0xca, 0x6a, 0x61, 0x94, 0x6b, 0x73, 0xe5, 0x29, 0x69, 0x4e, 0x3c,
|
||||
0xbc, 0x6a, 0x25, 0xf6, 0x59, 0xf1, 0x7b, 0xa2, 0x8f, 0x95, 0x7c, 0xd5, 0xea, 0x93, 0xc4, 0x5f,
|
||||
0x37, 0x4f, 0x8f, 0xee, 0xbf, 0x03, 0x00, 0x00, 0xff, 0xff, 0xe2, 0x0a, 0x57, 0x94, 0x99, 0x01,
|
||||
0x00, 0x00,
|
||||
}
|
670
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/containeranalysis.pb.go
generated
vendored
Normal file
670
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/containeranalysis.pb.go
generated
vendored
Normal file
@ -0,0 +1,670 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/containeranalysis.proto
|
||||
|
||||
package containeranalysis // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import _ "google.golang.org/genproto/googleapis/api/annotations"
|
||||
import v1 "google.golang.org/genproto/googleapis/iam/v1"
|
||||
|
||||
import (
|
||||
context "golang.org/x/net/context"
|
||||
grpc "google.golang.org/grpc"
|
||||
)
|
||||
|
||||
// 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
|
||||
|
||||
// A scan configuration specifies whether Cloud components in a project have a
|
||||
// particular type of analysis being run. For example, it can configure whether
|
||||
// vulnerability scanning is being done on Docker images or not.
|
||||
type ScanConfig struct {
|
||||
// Output only. The name of the scan configuration in the form of
|
||||
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// Output only. A human-readable description of what the scan configuration
|
||||
// does.
|
||||
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// Whether the scan is enabled.
|
||||
Enabled bool `protobuf:"varint,3,opt,name=enabled,proto3" json:"enabled,omitempty"`
|
||||
// Output only. The time this scan config was created.
|
||||
CreateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
||||
// Output only. The time this scan config was last updated.
|
||||
UpdateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ScanConfig) Reset() { *m = ScanConfig{} }
|
||||
func (m *ScanConfig) String() string { return proto.CompactTextString(m) }
|
||||
func (*ScanConfig) ProtoMessage() {}
|
||||
func (*ScanConfig) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{0}
|
||||
}
|
||||
func (m *ScanConfig) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ScanConfig.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ScanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ScanConfig.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ScanConfig) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ScanConfig.Merge(dst, src)
|
||||
}
|
||||
func (m *ScanConfig) XXX_Size() int {
|
||||
return xxx_messageInfo_ScanConfig.Size(m)
|
||||
}
|
||||
func (m *ScanConfig) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ScanConfig.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ScanConfig proto.InternalMessageInfo
|
||||
|
||||
func (m *ScanConfig) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ScanConfig) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ScanConfig) GetEnabled() bool {
|
||||
if m != nil {
|
||||
return m.Enabled
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
func (m *ScanConfig) GetCreateTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ScanConfig) GetUpdateTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.UpdateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Request to get a scan configuration.
|
||||
type GetScanConfigRequest struct {
|
||||
// The name of the scan configuration in the form of
|
||||
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GetScanConfigRequest) Reset() { *m = GetScanConfigRequest{} }
|
||||
func (m *GetScanConfigRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*GetScanConfigRequest) ProtoMessage() {}
|
||||
func (*GetScanConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{1}
|
||||
}
|
||||
func (m *GetScanConfigRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GetScanConfigRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GetScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GetScanConfigRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GetScanConfigRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GetScanConfigRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *GetScanConfigRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_GetScanConfigRequest.Size(m)
|
||||
}
|
||||
func (m *GetScanConfigRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GetScanConfigRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GetScanConfigRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *GetScanConfigRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Request to list scan configurations.
|
||||
type ListScanConfigsRequest struct {
|
||||
// The name of the project to list scan configurations for in the form of
|
||||
// `projects/[PROJECT_ID]`.
|
||||
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
|
||||
// The filter expression.
|
||||
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
|
||||
// The number of scan configs to return in the list.
|
||||
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
|
||||
// Token to provide to skip to a particular spot in the list.
|
||||
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListScanConfigsRequest) Reset() { *m = ListScanConfigsRequest{} }
|
||||
func (m *ListScanConfigsRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListScanConfigsRequest) ProtoMessage() {}
|
||||
func (*ListScanConfigsRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{2}
|
||||
}
|
||||
func (m *ListScanConfigsRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListScanConfigsRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListScanConfigsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListScanConfigsRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ListScanConfigsRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListScanConfigsRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *ListScanConfigsRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_ListScanConfigsRequest.Size(m)
|
||||
}
|
||||
func (m *ListScanConfigsRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListScanConfigsRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListScanConfigsRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *ListScanConfigsRequest) GetParent() string {
|
||||
if m != nil {
|
||||
return m.Parent
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListScanConfigsRequest) GetFilter() string {
|
||||
if m != nil {
|
||||
return m.Filter
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *ListScanConfigsRequest) GetPageSize() int32 {
|
||||
if m != nil {
|
||||
return m.PageSize
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *ListScanConfigsRequest) GetPageToken() string {
|
||||
if m != nil {
|
||||
return m.PageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// Response for listing scan configurations.
|
||||
type ListScanConfigsResponse struct {
|
||||
// The scan configurations requested.
|
||||
ScanConfigs []*ScanConfig `protobuf:"bytes,1,rep,name=scan_configs,json=scanConfigs,proto3" json:"scan_configs,omitempty"`
|
||||
// The next pagination token in the list response. It should be used as
|
||||
// `page_token` for the following request. An empty value means no more
|
||||
// results.
|
||||
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ListScanConfigsResponse) Reset() { *m = ListScanConfigsResponse{} }
|
||||
func (m *ListScanConfigsResponse) String() string { return proto.CompactTextString(m) }
|
||||
func (*ListScanConfigsResponse) ProtoMessage() {}
|
||||
func (*ListScanConfigsResponse) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{3}
|
||||
}
|
||||
func (m *ListScanConfigsResponse) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ListScanConfigsResponse.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ListScanConfigsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ListScanConfigsResponse.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ListScanConfigsResponse) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ListScanConfigsResponse.Merge(dst, src)
|
||||
}
|
||||
func (m *ListScanConfigsResponse) XXX_Size() int {
|
||||
return xxx_messageInfo_ListScanConfigsResponse.Size(m)
|
||||
}
|
||||
func (m *ListScanConfigsResponse) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ListScanConfigsResponse.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ListScanConfigsResponse proto.InternalMessageInfo
|
||||
|
||||
func (m *ListScanConfigsResponse) GetScanConfigs() []*ScanConfig {
|
||||
if m != nil {
|
||||
return m.ScanConfigs
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *ListScanConfigsResponse) GetNextPageToken() string {
|
||||
if m != nil {
|
||||
return m.NextPageToken
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A request to update a scan configuration.
|
||||
type UpdateScanConfigRequest struct {
|
||||
// The name of the scan configuration in the form of
|
||||
// `projects/[PROJECT_ID]/scanConfigs/[SCAN_CONFIG_ID]`.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The updated scan configuration.
|
||||
ScanConfig *ScanConfig `protobuf:"bytes,2,opt,name=scan_config,json=scanConfig,proto3" json:"scan_config,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *UpdateScanConfigRequest) Reset() { *m = UpdateScanConfigRequest{} }
|
||||
func (m *UpdateScanConfigRequest) String() string { return proto.CompactTextString(m) }
|
||||
func (*UpdateScanConfigRequest) ProtoMessage() {}
|
||||
func (*UpdateScanConfigRequest) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_containeranalysis_a170acd3c74dfdfb, []int{4}
|
||||
}
|
||||
func (m *UpdateScanConfigRequest) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_UpdateScanConfigRequest.Unmarshal(m, b)
|
||||
}
|
||||
func (m *UpdateScanConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_UpdateScanConfigRequest.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *UpdateScanConfigRequest) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_UpdateScanConfigRequest.Merge(dst, src)
|
||||
}
|
||||
func (m *UpdateScanConfigRequest) XXX_Size() int {
|
||||
return xxx_messageInfo_UpdateScanConfigRequest.Size(m)
|
||||
}
|
||||
func (m *UpdateScanConfigRequest) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_UpdateScanConfigRequest.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_UpdateScanConfigRequest proto.InternalMessageInfo
|
||||
|
||||
func (m *UpdateScanConfigRequest) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *UpdateScanConfigRequest) GetScanConfig() *ScanConfig {
|
||||
if m != nil {
|
||||
return m.ScanConfig
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*ScanConfig)(nil), "google.devtools.containeranalysis.v1beta1.ScanConfig")
|
||||
proto.RegisterType((*GetScanConfigRequest)(nil), "google.devtools.containeranalysis.v1beta1.GetScanConfigRequest")
|
||||
proto.RegisterType((*ListScanConfigsRequest)(nil), "google.devtools.containeranalysis.v1beta1.ListScanConfigsRequest")
|
||||
proto.RegisterType((*ListScanConfigsResponse)(nil), "google.devtools.containeranalysis.v1beta1.ListScanConfigsResponse")
|
||||
proto.RegisterType((*UpdateScanConfigRequest)(nil), "google.devtools.containeranalysis.v1beta1.UpdateScanConfigRequest")
|
||||
}
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ context.Context
|
||||
var _ grpc.ClientConn
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the grpc package it is being compiled against.
|
||||
const _ = grpc.SupportPackageIsVersion4
|
||||
|
||||
// ContainerAnalysisV1Beta1Client is the client API for ContainerAnalysisV1Beta1 service.
|
||||
//
|
||||
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
|
||||
type ContainerAnalysisV1Beta1Client interface {
|
||||
// Sets the access control policy on the specified note or occurrence.
|
||||
// Requires `containeranalysis.notes.setIamPolicy` or
|
||||
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
||||
// a note or an occurrence, respectively.
|
||||
//
|
||||
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
||||
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
||||
// occurrences.
|
||||
SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
|
||||
// Gets the access control policy for a note or an occurrence resource.
|
||||
// Requires `containeranalysis.notes.setIamPolicy` or
|
||||
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
||||
// a note or occurrence, respectively.
|
||||
//
|
||||
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
||||
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
||||
// occurrences.
|
||||
GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error)
|
||||
// Returns the permissions that a caller has on the specified note or
|
||||
// occurrence. Requires list permission on the project (for example,
|
||||
// `containeranalysis.notes.list`).
|
||||
//
|
||||
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
||||
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
||||
// occurrences.
|
||||
TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error)
|
||||
// Gets the specified scan configuration.
|
||||
GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error)
|
||||
// Lists scan configurations for the specified project.
|
||||
ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error)
|
||||
// Updates the specified scan configuration.
|
||||
UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error)
|
||||
}
|
||||
|
||||
type containerAnalysisV1Beta1Client struct {
|
||||
cc *grpc.ClientConn
|
||||
}
|
||||
|
||||
func NewContainerAnalysisV1Beta1Client(cc *grpc.ClientConn) ContainerAnalysisV1Beta1Client {
|
||||
return &containerAnalysisV1Beta1Client{cc}
|
||||
}
|
||||
|
||||
func (c *containerAnalysisV1Beta1Client) SetIamPolicy(ctx context.Context, in *v1.SetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
|
||||
out := new(v1.Policy)
|
||||
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/SetIamPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *containerAnalysisV1Beta1Client) GetIamPolicy(ctx context.Context, in *v1.GetIamPolicyRequest, opts ...grpc.CallOption) (*v1.Policy, error) {
|
||||
out := new(v1.Policy)
|
||||
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetIamPolicy", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *containerAnalysisV1Beta1Client) TestIamPermissions(ctx context.Context, in *v1.TestIamPermissionsRequest, opts ...grpc.CallOption) (*v1.TestIamPermissionsResponse, error) {
|
||||
out := new(v1.TestIamPermissionsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/TestIamPermissions", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *containerAnalysisV1Beta1Client) GetScanConfig(ctx context.Context, in *GetScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) {
|
||||
out := new(ScanConfig)
|
||||
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetScanConfig", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *containerAnalysisV1Beta1Client) ListScanConfigs(ctx context.Context, in *ListScanConfigsRequest, opts ...grpc.CallOption) (*ListScanConfigsResponse, error) {
|
||||
out := new(ListScanConfigsResponse)
|
||||
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/ListScanConfigs", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *containerAnalysisV1Beta1Client) UpdateScanConfig(ctx context.Context, in *UpdateScanConfigRequest, opts ...grpc.CallOption) (*ScanConfig, error) {
|
||||
out := new(ScanConfig)
|
||||
err := c.cc.Invoke(ctx, "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/UpdateScanConfig", in, out, opts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
// ContainerAnalysisV1Beta1Server is the server API for ContainerAnalysisV1Beta1 service.
|
||||
type ContainerAnalysisV1Beta1Server interface {
|
||||
// Sets the access control policy on the specified note or occurrence.
|
||||
// Requires `containeranalysis.notes.setIamPolicy` or
|
||||
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
||||
// a note or an occurrence, respectively.
|
||||
//
|
||||
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
||||
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
||||
// occurrences.
|
||||
SetIamPolicy(context.Context, *v1.SetIamPolicyRequest) (*v1.Policy, error)
|
||||
// Gets the access control policy for a note or an occurrence resource.
|
||||
// Requires `containeranalysis.notes.setIamPolicy` or
|
||||
// `containeranalysis.occurrences.setIamPolicy` permission if the resource is
|
||||
// a note or occurrence, respectively.
|
||||
//
|
||||
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
||||
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
||||
// occurrences.
|
||||
GetIamPolicy(context.Context, *v1.GetIamPolicyRequest) (*v1.Policy, error)
|
||||
// Returns the permissions that a caller has on the specified note or
|
||||
// occurrence. Requires list permission on the project (for example,
|
||||
// `containeranalysis.notes.list`).
|
||||
//
|
||||
// The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
|
||||
// notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
|
||||
// occurrences.
|
||||
TestIamPermissions(context.Context, *v1.TestIamPermissionsRequest) (*v1.TestIamPermissionsResponse, error)
|
||||
// Gets the specified scan configuration.
|
||||
GetScanConfig(context.Context, *GetScanConfigRequest) (*ScanConfig, error)
|
||||
// Lists scan configurations for the specified project.
|
||||
ListScanConfigs(context.Context, *ListScanConfigsRequest) (*ListScanConfigsResponse, error)
|
||||
// Updates the specified scan configuration.
|
||||
UpdateScanConfig(context.Context, *UpdateScanConfigRequest) (*ScanConfig, error)
|
||||
}
|
||||
|
||||
func RegisterContainerAnalysisV1Beta1Server(s *grpc.Server, srv ContainerAnalysisV1Beta1Server) {
|
||||
s.RegisterService(&_ContainerAnalysisV1Beta1_serviceDesc, srv)
|
||||
}
|
||||
|
||||
func _ContainerAnalysisV1Beta1_SetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(v1.SetIamPolicyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).SetIamPolicy(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/SetIamPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).SetIamPolicy(ctx, req.(*v1.SetIamPolicyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ContainerAnalysisV1Beta1_GetIamPolicy_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(v1.GetIamPolicyRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).GetIamPolicy(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetIamPolicy",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).GetIamPolicy(ctx, req.(*v1.GetIamPolicyRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ContainerAnalysisV1Beta1_TestIamPermissions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(v1.TestIamPermissionsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).TestIamPermissions(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/TestIamPermissions",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).TestIamPermissions(ctx, req.(*v1.TestIamPermissionsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ContainerAnalysisV1Beta1_GetScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(GetScanConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).GetScanConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/GetScanConfig",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).GetScanConfig(ctx, req.(*GetScanConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ContainerAnalysisV1Beta1_ListScanConfigs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ListScanConfigsRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).ListScanConfigs(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/ListScanConfigs",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).ListScanConfigs(ctx, req.(*ListScanConfigsRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _ContainerAnalysisV1Beta1_UpdateScanConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(UpdateScanConfigRequest)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).UpdateScanConfig(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: "/google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1/UpdateScanConfig",
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(ContainerAnalysisV1Beta1Server).UpdateScanConfig(ctx, req.(*UpdateScanConfigRequest))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
var _ContainerAnalysisV1Beta1_serviceDesc = grpc.ServiceDesc{
|
||||
ServiceName: "google.devtools.containeranalysis.v1beta1.ContainerAnalysisV1Beta1",
|
||||
HandlerType: (*ContainerAnalysisV1Beta1Server)(nil),
|
||||
Methods: []grpc.MethodDesc{
|
||||
{
|
||||
MethodName: "SetIamPolicy",
|
||||
Handler: _ContainerAnalysisV1Beta1_SetIamPolicy_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetIamPolicy",
|
||||
Handler: _ContainerAnalysisV1Beta1_GetIamPolicy_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "TestIamPermissions",
|
||||
Handler: _ContainerAnalysisV1Beta1_TestIamPermissions_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "GetScanConfig",
|
||||
Handler: _ContainerAnalysisV1Beta1_GetScanConfig_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "ListScanConfigs",
|
||||
Handler: _ContainerAnalysisV1Beta1_ListScanConfigs_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "UpdateScanConfig",
|
||||
Handler: _ContainerAnalysisV1Beta1_UpdateScanConfig_Handler,
|
||||
},
|
||||
},
|
||||
Streams: []grpc.StreamDesc{},
|
||||
Metadata: "google/devtools/containeranalysis/v1beta1/containeranalysis.proto",
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/containeranalysis.proto", fileDescriptor_containeranalysis_a170acd3c74dfdfb)
|
||||
}
|
||||
|
||||
var fileDescriptor_containeranalysis_a170acd3c74dfdfb = []byte{
|
||||
// 766 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x56, 0xcd, 0x4e, 0x1b, 0x49,
|
||||
0x10, 0x56, 0xf3, 0xb7, 0xd0, 0x06, 0xb1, 0x6a, 0xed, 0x82, 0x35, 0xfb, 0x67, 0x8d, 0x56, 0x2b,
|
||||
0xe3, 0xc3, 0xcc, 0x1a, 0xb4, 0x5a, 0x05, 0x44, 0x90, 0x21, 0x92, 0x15, 0x29, 0x07, 0x64, 0x08,
|
||||
0x8a, 0xb8, 0x58, 0xed, 0x71, 0x31, 0xea, 0xc4, 0xd3, 0x3d, 0x99, 0x6e, 0x5b, 0x40, 0x44, 0x0e,
|
||||
0x11, 0xb9, 0x24, 0xc7, 0x1c, 0x73, 0xcb, 0x5b, 0xe4, 0x11, 0x12, 0xe5, 0x16, 0x29, 0x4f, 0x90,
|
||||
0x77, 0xc8, 0x35, 0x9a, 0x9e, 0x1e, 0x7b, 0xb0, 0x0d, 0xd8, 0xa0, 0x9c, 0xa0, 0xeb, 0xfb, 0xaa,
|
||||
0xea, 0xfb, 0xaa, 0xdd, 0x65, 0xe3, 0x8a, 0x2f, 0x84, 0xdf, 0x02, 0xb7, 0x09, 0x1d, 0x25, 0x44,
|
||||
0x4b, 0xba, 0x9e, 0xe0, 0x8a, 0x32, 0x0e, 0x11, 0xe5, 0xb4, 0x75, 0x22, 0x99, 0x74, 0x3b, 0xe5,
|
||||
0x06, 0x28, 0x5a, 0x1e, 0x44, 0x9c, 0x30, 0x12, 0x4a, 0x90, 0x95, 0xa4, 0x84, 0x93, 0x96, 0x70,
|
||||
0x06, 0x89, 0xa6, 0x84, 0xf5, 0xbb, 0xe9, 0x46, 0x43, 0xe6, 0x52, 0xce, 0x85, 0xa2, 0x8a, 0x09,
|
||||
0x6e, 0x0a, 0x59, 0x7f, 0x1a, 0x94, 0xd1, 0xc0, 0xed, 0x94, 0xe3, 0x3f, 0xf5, 0x50, 0xb4, 0x98,
|
||||
0x77, 0x62, 0x70, 0xeb, 0x22, 0x7e, 0x01, 0xfb, 0xcb, 0x60, 0xfa, 0xd4, 0x68, 0x1f, 0xb9, 0x8a,
|
||||
0x05, 0x20, 0x15, 0x0d, 0xc2, 0x84, 0x60, 0x7f, 0x41, 0x18, 0xef, 0x79, 0x94, 0xef, 0x08, 0x7e,
|
||||
0xc4, 0x7c, 0x42, 0xf0, 0x14, 0xa7, 0x01, 0xe4, 0x51, 0x01, 0x15, 0xe7, 0x6a, 0xfa, 0x7f, 0x52,
|
||||
0xc0, 0xb9, 0x26, 0x48, 0x2f, 0x62, 0x61, 0xac, 0x2a, 0x3f, 0xa1, 0xa1, 0x6c, 0x88, 0xe4, 0xf1,
|
||||
0x4f, 0xc0, 0x69, 0xa3, 0x05, 0xcd, 0xfc, 0x64, 0x01, 0x15, 0x67, 0x6b, 0xe9, 0x91, 0x6c, 0xe0,
|
||||
0x9c, 0x17, 0x01, 0x55, 0x50, 0x8f, 0x1b, 0xe7, 0xa7, 0x0a, 0xa8, 0x98, 0x5b, 0xb5, 0x1c, 0x33,
|
||||
0x9a, 0x54, 0x95, 0xb3, 0x9f, 0xaa, 0xaa, 0xe1, 0x84, 0x1e, 0x07, 0xe2, 0xe4, 0x76, 0xd8, 0xec,
|
||||
0x26, 0x4f, 0x5f, 0x9f, 0x9c, 0xd0, 0xe3, 0x80, 0x5d, 0xc2, 0xbf, 0x54, 0x41, 0xf5, 0xac, 0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0xec, 0x5b, 0x48, 0xa4, 0x32, 0x46,
|
||||
0xf3, 0xe1, 0x3b, 0xd5, 0xda, 0xbe, 0x4d, 0x09, 0x73, 0xc9, 0x43, 0xcc, 0x24, 0x9b, 0x39, 0x63,
|
||||
0xe7, 0x2c, 0xeb, 0x87, 0x7c, 0x42, 0xf8, 0xe7, 0xfe, 0xfd, 0x45, 0xc6, 0x91, 0x72, 0xc9, 0xf2,
|
||||
0xbb, 0xe9, 0x75, 0x6c, 0x6a, 0x07, 0xff, 0x5b, 0x23, 0x5f, 0xc7, 0x7a, 0x76, 0x9f, 0x6e, 0xbf,
|
||||
0x42, 0xf8, 0x6f, 0x4f, 0x04, 0x69, 0xef, 0x4b, 0x5b, 0xee, 0xa2, 0xc3, 0x43, 0xc3, 0xf1, 0x45,
|
||||
0x8b, 0x72, 0xdf, 0x11, 0x91, 0xef, 0xfa, 0xc0, 0xf5, 0xf7, 0xa7, 0x9b, 0x40, 0x34, 0x64, 0x72,
|
||||
0x84, 0xdf, 0x3a, 0x1b, 0x03, 0xc8, 0xbb, 0x89, 0xc9, 0xea, 0x4e, 0xa5, 0x31, 0xa3, 0x8b, 0xad,
|
||||
0x7d, 0x0f, 0x00, 0x00, 0xff, 0xff, 0x6c, 0xf6, 0x5c, 0x69, 0x37, 0x09, 0x00, 0x00,
|
||||
}
|
272
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go
generated
vendored
Normal file
272
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/deployment/deployment.pb.go
generated
vendored
Normal file
@ -0,0 +1,272 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/deployment/deployment.proto
|
||||
|
||||
package deployment // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/deployment"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "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
|
||||
|
||||
// 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
|
||||
|
||||
// Types of platforms.
|
||||
type Deployment_Platform int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
Deployment_PLATFORM_UNSPECIFIED Deployment_Platform = 0
|
||||
// Google Container Engine.
|
||||
Deployment_GKE Deployment_Platform = 1
|
||||
// Google App Engine: Flexible Environment.
|
||||
Deployment_FLEX Deployment_Platform = 2
|
||||
// Custom user-defined platform.
|
||||
Deployment_CUSTOM Deployment_Platform = 3
|
||||
)
|
||||
|
||||
var Deployment_Platform_name = map[int32]string{
|
||||
0: "PLATFORM_UNSPECIFIED",
|
||||
1: "GKE",
|
||||
2: "FLEX",
|
||||
3: "CUSTOM",
|
||||
}
|
||||
var Deployment_Platform_value = map[string]int32{
|
||||
"PLATFORM_UNSPECIFIED": 0,
|
||||
"GKE": 1,
|
||||
"FLEX": 2,
|
||||
"CUSTOM": 3,
|
||||
}
|
||||
|
||||
func (x Deployment_Platform) String() string {
|
||||
return proto.EnumName(Deployment_Platform_name, int32(x))
|
||||
}
|
||||
func (Deployment_Platform) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_deployment_6b1a45811f125482, []int{2, 0}
|
||||
}
|
||||
|
||||
// An artifact that can be deployed in some runtime.
|
||||
type Deployable struct {
|
||||
// Resource URI for the artifact being deployed.
|
||||
ResourceUri []string `protobuf:"bytes,1,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Deployable) Reset() { *m = Deployable{} }
|
||||
func (m *Deployable) String() string { return proto.CompactTextString(m) }
|
||||
func (*Deployable) ProtoMessage() {}
|
||||
func (*Deployable) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_deployment_6b1a45811f125482, []int{0}
|
||||
}
|
||||
func (m *Deployable) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Deployable.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Deployable) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Deployable.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Deployable) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Deployable.Merge(dst, src)
|
||||
}
|
||||
func (m *Deployable) XXX_Size() int {
|
||||
return xxx_messageInfo_Deployable.Size(m)
|
||||
}
|
||||
func (m *Deployable) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Deployable.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Deployable proto.InternalMessageInfo
|
||||
|
||||
func (m *Deployable) GetResourceUri() []string {
|
||||
if m != nil {
|
||||
return m.ResourceUri
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Details of a deployment occurrence.
|
||||
type Details struct {
|
||||
// Deployment history for the resource.
|
||||
Deployment *Deployment `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Details) Reset() { *m = Details{} }
|
||||
func (m *Details) String() string { return proto.CompactTextString(m) }
|
||||
func (*Details) ProtoMessage() {}
|
||||
func (*Details) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_deployment_6b1a45811f125482, []int{1}
|
||||
}
|
||||
func (m *Details) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Details.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Details) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Details.Merge(dst, src)
|
||||
}
|
||||
func (m *Details) XXX_Size() int {
|
||||
return xxx_messageInfo_Details.Size(m)
|
||||
}
|
||||
func (m *Details) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Details.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Details proto.InternalMessageInfo
|
||||
|
||||
func (m *Details) GetDeployment() *Deployment {
|
||||
if m != nil {
|
||||
return m.Deployment
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// The period during which some deployable was active in a runtime.
|
||||
type Deployment struct {
|
||||
// Identity of the user that triggered this deployment.
|
||||
UserEmail string `protobuf:"bytes,1,opt,name=user_email,json=userEmail,proto3" json:"user_email,omitempty"`
|
||||
// Beginning of the lifetime of this deployment.
|
||||
DeployTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=deploy_time,json=deployTime,proto3" json:"deploy_time,omitempty"`
|
||||
// End of the lifetime of this deployment.
|
||||
UndeployTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=undeploy_time,json=undeployTime,proto3" json:"undeploy_time,omitempty"`
|
||||
// Configuration used to create this deployment.
|
||||
Config string `protobuf:"bytes,4,opt,name=config,proto3" json:"config,omitempty"`
|
||||
// Address of the runtime element hosting this deployment.
|
||||
Address string `protobuf:"bytes,5,opt,name=address,proto3" json:"address,omitempty"`
|
||||
// Output only. Resource URI for the artifact being deployed taken from
|
||||
// the deployable field with the same name.
|
||||
ResourceUri []string `protobuf:"bytes,6,rep,name=resource_uri,json=resourceUri,proto3" json:"resource_uri,omitempty"`
|
||||
// Platform hosting this deployment.
|
||||
Platform Deployment_Platform `protobuf:"varint,7,opt,name=platform,proto3,enum=grafeas.v1beta1.deployment.Deployment_Platform" json:"platform,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Deployment) Reset() { *m = Deployment{} }
|
||||
func (m *Deployment) String() string { return proto.CompactTextString(m) }
|
||||
func (*Deployment) ProtoMessage() {}
|
||||
func (*Deployment) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_deployment_6b1a45811f125482, []int{2}
|
||||
}
|
||||
func (m *Deployment) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Deployment.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Deployment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Deployment.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Deployment) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Deployment.Merge(dst, src)
|
||||
}
|
||||
func (m *Deployment) XXX_Size() int {
|
||||
return xxx_messageInfo_Deployment.Size(m)
|
||||
}
|
||||
func (m *Deployment) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Deployment.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Deployment proto.InternalMessageInfo
|
||||
|
||||
func (m *Deployment) GetUserEmail() string {
|
||||
if m != nil {
|
||||
return m.UserEmail
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Deployment) GetDeployTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.DeployTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Deployment) GetUndeployTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.UndeployTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Deployment) GetConfig() string {
|
||||
if m != nil {
|
||||
return m.Config
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Deployment) GetAddress() string {
|
||||
if m != nil {
|
||||
return m.Address
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Deployment) GetResourceUri() []string {
|
||||
if m != nil {
|
||||
return m.ResourceUri
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Deployment) GetPlatform() Deployment_Platform {
|
||||
if m != nil {
|
||||
return m.Platform
|
||||
}
|
||||
return Deployment_PLATFORM_UNSPECIFIED
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Deployable)(nil), "grafeas.v1beta1.deployment.Deployable")
|
||||
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.deployment.Details")
|
||||
proto.RegisterType((*Deployment)(nil), "grafeas.v1beta1.deployment.Deployment")
|
||||
proto.RegisterEnum("grafeas.v1beta1.deployment.Deployment_Platform", Deployment_Platform_name, Deployment_Platform_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/deployment/deployment.proto", fileDescriptor_deployment_6b1a45811f125482)
|
||||
}
|
||||
|
||||
var fileDescriptor_deployment_6b1a45811f125482 = []byte{
|
||||
// 434 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x52, 0x4d, 0x6b, 0xdb, 0x40,
|
||||
0x10, 0xad, 0xac, 0xd4, 0x1f, 0xe3, 0xb4, 0x98, 0xa5, 0x14, 0x61, 0x08, 0x75, 0x7d, 0x28, 0x3e,
|
||||
0xed, 0x92, 0xf4, 0x98, 0x43, 0x49, 0x6d, 0x39, 0x84, 0x24, 0x8d, 0xab, 0xd8, 0x50, 0x7a, 0xa8,
|
||||
0x59, 0xdb, 0x63, 0xb1, 0xb0, 0xd2, 0x8a, 0xdd, 0x55, 0x20, 0xbf, 0xa0, 0xd7, 0xfe, 0x86, 0xfe,
|
||||
0xd2, 0xa2, 0x95, 0x14, 0x1b, 0x4c, 0xbf, 0x6e, 0x33, 0x6f, 0xe7, 0xcd, 0xbc, 0xf7, 0x58, 0x08,
|
||||
0x63, 0xa5, 0x62, 0x89, 0x6c, 0x83, 0x0f, 0x56, 0x29, 0x69, 0xd8, 0x5a, 0xa5, 0x96, 0x8b, 0x14,
|
||||
0x35, 0x4f, 0xb9, 0x7c, 0x34, 0xc2, 0xb0, 0x87, 0xd3, 0x15, 0x5a, 0x7e, 0xca, 0x36, 0x98, 0x49,
|
||||
0xf5, 0x98, 0x60, 0x6a, 0xf7, 0x4a, 0x9a, 0x69, 0x65, 0x15, 0xe9, 0xc7, 0x9a, 0x6f, 0x91, 0x1b,
|
||||
0x5a, 0x0d, 0xd3, 0xdd, 0x44, 0xff, 0x4d, 0x75, 0xc2, 0x4d, 0xae, 0xf2, 0x2d, 0xb3, 0x22, 0x41,
|
||||
0x63, 0x79, 0x92, 0x95, 0xe4, 0x21, 0x03, 0x98, 0xb8, 0x71, 0xbe, 0x92, 0x48, 0xde, 0xc2, 0xb1,
|
||||
0x46, 0xa3, 0x72, 0xbd, 0xc6, 0x65, 0xae, 0x45, 0xe0, 0x0d, 0xfc, 0x51, 0x27, 0xea, 0xd6, 0xd8,
|
||||
0x42, 0x8b, 0xe1, 0x67, 0x68, 0x4d, 0xd0, 0x72, 0x21, 0x0d, 0x99, 0x02, 0xec, 0x4e, 0x05, 0xde,
|
||||
0xc0, 0x1b, 0x75, 0xcf, 0xde, 0xd1, 0xdf, 0xab, 0xa1, 0x93, 0xa7, 0x32, 0xda, 0x63, 0x0e, 0x7f,
|
||||
0xf8, 0xb5, 0x88, 0xa2, 0x25, 0x27, 0x00, 0xb9, 0x41, 0xbd, 0xc4, 0x84, 0x0b, 0xe9, 0xd6, 0x76,
|
||||
0xa2, 0x4e, 0x81, 0x84, 0x05, 0x40, 0xce, 0xa1, 0x5b, 0x72, 0x97, 0x85, 0x97, 0xa0, 0xe1, 0xce,
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 0xa3, 0x8b,
|
||||
0x55, 0xd3, 0x2d, 0x7c, 0xff, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x4f, 0x59, 0xd5, 0x23, 0x2d, 0x03,
|
||||
0x00, 0x00,
|
||||
}
|
297
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go
generated
vendored
Normal file
297
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/discovery/discovery.pb.go
generated
vendored
Normal file
@ -0,0 +1,297 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/discovery/discovery.proto
|
||||
|
||||
package discovery // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/discovery"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import common "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common"
|
||||
import status "google.golang.org/genproto/googleapis/rpc/status"
|
||||
|
||||
// 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
|
||||
|
||||
// Whether the resource is continuously analyzed.
|
||||
type Discovered_ContinuousAnalysis int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
Discovered_CONTINUOUS_ANALYSIS_UNSPECIFIED Discovered_ContinuousAnalysis = 0
|
||||
// The resource is continuously analyzed.
|
||||
Discovered_ACTIVE Discovered_ContinuousAnalysis = 1
|
||||
// The resource is ignored for continuous analysis.
|
||||
Discovered_INACTIVE Discovered_ContinuousAnalysis = 2
|
||||
)
|
||||
|
||||
var Discovered_ContinuousAnalysis_name = map[int32]string{
|
||||
0: "CONTINUOUS_ANALYSIS_UNSPECIFIED",
|
||||
1: "ACTIVE",
|
||||
2: "INACTIVE",
|
||||
}
|
||||
var Discovered_ContinuousAnalysis_value = map[string]int32{
|
||||
"CONTINUOUS_ANALYSIS_UNSPECIFIED": 0,
|
||||
"ACTIVE": 1,
|
||||
"INACTIVE": 2,
|
||||
}
|
||||
|
||||
func (x Discovered_ContinuousAnalysis) String() string {
|
||||
return proto.EnumName(Discovered_ContinuousAnalysis_name, int32(x))
|
||||
}
|
||||
func (Discovered_ContinuousAnalysis) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_discovery_35b141f4cbe7efdb, []int{2, 0}
|
||||
}
|
||||
|
||||
// Analysis status for a resource. Currently for initial analysis only (not
|
||||
// updated in continuous analysis).
|
||||
type Discovered_AnalysisStatus int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
Discovered_ANALYSIS_STATUS_UNSPECIFIED Discovered_AnalysisStatus = 0
|
||||
// Resource is known but no action has been taken yet.
|
||||
Discovered_PENDING Discovered_AnalysisStatus = 1
|
||||
// Resource is being analyzed.
|
||||
Discovered_SCANNING Discovered_AnalysisStatus = 2
|
||||
// Analysis has finished successfully.
|
||||
Discovered_FINISHED_SUCCESS Discovered_AnalysisStatus = 3
|
||||
// Analysis has finished unsuccessfully, the analysis itself is in a bad
|
||||
// state.
|
||||
Discovered_FINISHED_FAILED Discovered_AnalysisStatus = 4
|
||||
// The resource is known not to be supported
|
||||
Discovered_FINISHED_UNSUPPORTED Discovered_AnalysisStatus = 5
|
||||
)
|
||||
|
||||
var Discovered_AnalysisStatus_name = map[int32]string{
|
||||
0: "ANALYSIS_STATUS_UNSPECIFIED",
|
||||
1: "PENDING",
|
||||
2: "SCANNING",
|
||||
3: "FINISHED_SUCCESS",
|
||||
4: "FINISHED_FAILED",
|
||||
5: "FINISHED_UNSUPPORTED",
|
||||
}
|
||||
var Discovered_AnalysisStatus_value = map[string]int32{
|
||||
"ANALYSIS_STATUS_UNSPECIFIED": 0,
|
||||
"PENDING": 1,
|
||||
"SCANNING": 2,
|
||||
"FINISHED_SUCCESS": 3,
|
||||
"FINISHED_FAILED": 4,
|
||||
"FINISHED_UNSUPPORTED": 5,
|
||||
}
|
||||
|
||||
func (x Discovered_AnalysisStatus) String() string {
|
||||
return proto.EnumName(Discovered_AnalysisStatus_name, int32(x))
|
||||
}
|
||||
func (Discovered_AnalysisStatus) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_discovery_35b141f4cbe7efdb, []int{2, 1}
|
||||
}
|
||||
|
||||
// A note that indicates a type of analysis a provider would perform. This note
|
||||
// exists in a provider's project. A `Discovery` occurrence is created in a
|
||||
// consumer's project at the start of analysis.
|
||||
type Discovery struct {
|
||||
// The kind of analysis that is handled by this discovery.
|
||||
AnalysisKind common.NoteKind `protobuf:"varint,1,opt,name=analysis_kind,json=analysisKind,proto3,enum=grafeas.v1beta1.NoteKind" json:"analysis_kind,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Discovery) Reset() { *m = Discovery{} }
|
||||
func (m *Discovery) String() string { return proto.CompactTextString(m) }
|
||||
func (*Discovery) ProtoMessage() {}
|
||||
func (*Discovery) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_discovery_35b141f4cbe7efdb, []int{0}
|
||||
}
|
||||
func (m *Discovery) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Discovery.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Discovery) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Discovery.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Discovery) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Discovery.Merge(dst, src)
|
||||
}
|
||||
func (m *Discovery) XXX_Size() int {
|
||||
return xxx_messageInfo_Discovery.Size(m)
|
||||
}
|
||||
func (m *Discovery) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Discovery.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Discovery proto.InternalMessageInfo
|
||||
|
||||
func (m *Discovery) GetAnalysisKind() common.NoteKind {
|
||||
if m != nil {
|
||||
return m.AnalysisKind
|
||||
}
|
||||
return common.NoteKind_NOTE_KIND_UNSPECIFIED
|
||||
}
|
||||
|
||||
// Details of a discovery occurrence.
|
||||
type Details struct {
|
||||
// Analysis status for the discovered resource.
|
||||
Discovered *Discovered `protobuf:"bytes,1,opt,name=discovered,proto3" json:"discovered,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Details) Reset() { *m = Details{} }
|
||||
func (m *Details) String() string { return proto.CompactTextString(m) }
|
||||
func (*Details) ProtoMessage() {}
|
||||
func (*Details) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_discovery_35b141f4cbe7efdb, []int{1}
|
||||
}
|
||||
func (m *Details) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Details.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Details) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Details.Merge(dst, src)
|
||||
}
|
||||
func (m *Details) XXX_Size() int {
|
||||
return xxx_messageInfo_Details.Size(m)
|
||||
}
|
||||
func (m *Details) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Details.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Details proto.InternalMessageInfo
|
||||
|
||||
func (m *Details) GetDiscovered() *Discovered {
|
||||
if m != nil {
|
||||
return m.Discovered
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Provides information about the analysis status of a discovered resource.
|
||||
type Discovered struct {
|
||||
// Whether the resource is continuously analyzed.
|
||||
ContinuousAnalysis Discovered_ContinuousAnalysis `protobuf:"varint,1,opt,name=continuous_analysis,json=continuousAnalysis,proto3,enum=grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis" json:"continuous_analysis,omitempty"`
|
||||
// The last time continuous analysis was done for this resource.
|
||||
LastAnalysisTime *timestamp.Timestamp `protobuf:"bytes,2,opt,name=last_analysis_time,json=lastAnalysisTime,proto3" json:"last_analysis_time,omitempty"`
|
||||
// The status of discovery for the resource.
|
||||
AnalysisStatus Discovered_AnalysisStatus `protobuf:"varint,3,opt,name=analysis_status,json=analysisStatus,proto3,enum=grafeas.v1beta1.discovery.Discovered_AnalysisStatus" json:"analysis_status,omitempty"`
|
||||
// When an error is encountered this will contain a LocalizedMessage under
|
||||
// details to show to the user. The LocalizedMessage is output only and
|
||||
// populated by the API.
|
||||
AnalysisStatusError *status.Status `protobuf:"bytes,4,opt,name=analysis_status_error,json=analysisStatusError,proto3" json:"analysis_status_error,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Discovered) Reset() { *m = Discovered{} }
|
||||
func (m *Discovered) String() string { return proto.CompactTextString(m) }
|
||||
func (*Discovered) ProtoMessage() {}
|
||||
func (*Discovered) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_discovery_35b141f4cbe7efdb, []int{2}
|
||||
}
|
||||
func (m *Discovered) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Discovered.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Discovered) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Discovered.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Discovered) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Discovered.Merge(dst, src)
|
||||
}
|
||||
func (m *Discovered) XXX_Size() int {
|
||||
return xxx_messageInfo_Discovered.Size(m)
|
||||
}
|
||||
func (m *Discovered) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Discovered.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Discovered proto.InternalMessageInfo
|
||||
|
||||
func (m *Discovered) GetContinuousAnalysis() Discovered_ContinuousAnalysis {
|
||||
if m != nil {
|
||||
return m.ContinuousAnalysis
|
||||
}
|
||||
return Discovered_CONTINUOUS_ANALYSIS_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Discovered) GetLastAnalysisTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.LastAnalysisTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Discovered) GetAnalysisStatus() Discovered_AnalysisStatus {
|
||||
if m != nil {
|
||||
return m.AnalysisStatus
|
||||
}
|
||||
return Discovered_ANALYSIS_STATUS_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Discovered) GetAnalysisStatusError() *status.Status {
|
||||
if m != nil {
|
||||
return m.AnalysisStatusError
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Discovery)(nil), "grafeas.v1beta1.discovery.Discovery")
|
||||
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.discovery.Details")
|
||||
proto.RegisterType((*Discovered)(nil), "grafeas.v1beta1.discovery.Discovered")
|
||||
proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_ContinuousAnalysis", Discovered_ContinuousAnalysis_name, Discovered_ContinuousAnalysis_value)
|
||||
proto.RegisterEnum("grafeas.v1beta1.discovery.Discovered_AnalysisStatus", Discovered_AnalysisStatus_name, Discovered_AnalysisStatus_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/discovery/discovery.proto", fileDescriptor_discovery_35b141f4cbe7efdb)
|
||||
}
|
||||
|
||||
var fileDescriptor_discovery_35b141f4cbe7efdb = []byte{
|
||||
// 541 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x6a, 0xdb, 0x4c,
|
||||
0x10, 0xc5, 0x3f, 0x39, 0xf9, 0x92, 0x76, 0x92, 0x3a, 0x62, 0x9d, 0x52, 0xc7, 0x2d, 0xb8, 0xb8,
|
||||
0x14, 0x7a, 0xb5, 0x22, 0x69, 0x2f, 0x0a, 0xa5, 0x05, 0x55, 0x92, 0x13, 0x91, 0xb0, 0x16, 0x5a,
|
||||
0xa9, 0xd0, 0xd2, 0x22, 0xd6, 0xf2, 0x46, 0x88, 0xca, 0x5a, 0xa3, 0x95, 0x0d, 0xb9, 0xef, 0x0b,
|
||||
0xf4, 0x15, 0xfa, 0x46, 0x7d, 0xa3, 0xa2, 0xbf, 0xa9, 0x1d, 0x02, 0xee, 0x95, 0x77, 0x66, 0xcf,
|
||||
0xfc, 0xe6, 0xec, 0x31, 0x08, 0x8c, 0x48, 0x88, 0x28, 0xe1, 0xda, 0x8c, 0xaf, 0x72, 0x21, 0x12,
|
||||
0xa9, 0x85, 0x22, 0xcd, 0x59, 0x9c, 0xf2, 0x8c, 0xa5, 0x2c, 0xb9, 0x91, 0xb1, 0xd4, 0x56, 0xa7,
|
||||
0x53, 0x9e, 0xb3, 0x53, 0x6d, 0x16, 0xcb, 0x50, 0xac, 0x78, 0x76, 0x73, 0x7b, 0xc2, 0x8b, 0x4c,
|
||||
0xe4, 0x02, 0x9d, 0x44, 0x19, 0xbb, 0xe6, 0x4c, 0xe2, 0x5a, 0x8a, 0x5b, 0xc1, 0xe0, 0xfd, 0xf6,
|
||||
0xfc, 0x50, 0xcc, 0xe7, 0x22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 0xc8, 0x22, 0x2d, 0xe2, 0x69, 0xf9, 0x6f, 0x6b, 0xd5, 0x15, 0x5b, 0xc4, 0xf2, 0x9f,
|
||||
0xbe, 0x06, 0xef, 0xda, 0xd3, 0xaf, 0xce, 0xce, 0xb9, 0xab, 0x4f, 0xf7, 0x4a, 0xdc, 0xeb, 0x3f,
|
||||
0x01, 0x00, 0x00, 0xff, 0xff, 0xaf, 0x60, 0x55, 0x7f, 0x5b, 0x04, 0x00, 0x00,
|
||||
}
|
2739
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/grafeas/grafeas.pb.go
generated
vendored
Normal file
2739
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/grafeas/grafeas.pb.go
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
442
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image/image.pb.go
generated
vendored
Normal file
442
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image/image.pb.go
generated
vendored
Normal file
@ -0,0 +1,442 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/image/image.proto
|
||||
|
||||
package image // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Instructions from Dockerfile.
|
||||
type Layer_Directive int32
|
||||
|
||||
const (
|
||||
// Default value for unsupported/missing directive.
|
||||
Layer_DIRECTIVE_UNSPECIFIED Layer_Directive = 0
|
||||
// https://docs.docker.com/reference/builder/#maintainer
|
||||
Layer_MAINTAINER Layer_Directive = 1
|
||||
// https://docs.docker.com/reference/builder/#run
|
||||
Layer_RUN Layer_Directive = 2
|
||||
// https://docs.docker.com/reference/builder/#cmd
|
||||
Layer_CMD Layer_Directive = 3
|
||||
// https://docs.docker.com/reference/builder/#label
|
||||
Layer_LABEL Layer_Directive = 4
|
||||
// https://docs.docker.com/reference/builder/#expose
|
||||
Layer_EXPOSE Layer_Directive = 5
|
||||
// https://docs.docker.com/reference/builder/#env
|
||||
Layer_ENV Layer_Directive = 6
|
||||
// https://docs.docker.com/reference/builder/#add
|
||||
Layer_ADD Layer_Directive = 7
|
||||
// https://docs.docker.com/reference/builder/#copy
|
||||
Layer_COPY Layer_Directive = 8
|
||||
// https://docs.docker.com/reference/builder/#entrypoint
|
||||
Layer_ENTRYPOINT Layer_Directive = 9
|
||||
// https://docs.docker.com/reference/builder/#volume
|
||||
Layer_VOLUME Layer_Directive = 10
|
||||
// https://docs.docker.com/reference/builder/#user
|
||||
Layer_USER Layer_Directive = 11
|
||||
// https://docs.docker.com/reference/builder/#workdir
|
||||
Layer_WORKDIR Layer_Directive = 12
|
||||
// https://docs.docker.com/reference/builder/#arg
|
||||
Layer_ARG Layer_Directive = 13
|
||||
// https://docs.docker.com/reference/builder/#onbuild
|
||||
Layer_ONBUILD Layer_Directive = 14
|
||||
// https://docs.docker.com/reference/builder/#stopsignal
|
||||
Layer_STOPSIGNAL Layer_Directive = 15
|
||||
// https://docs.docker.com/reference/builder/#healthcheck
|
||||
Layer_HEALTHCHECK Layer_Directive = 16
|
||||
// https://docs.docker.com/reference/builder/#shell
|
||||
Layer_SHELL Layer_Directive = 17
|
||||
)
|
||||
|
||||
var 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 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 Layer_Directive) String() string {
|
||||
return proto.EnumName(Layer_Directive_name, int32(x))
|
||||
}
|
||||
func (Layer_Directive) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_image_7b7d3df7358e6057, []int{0, 0}
|
||||
}
|
||||
|
||||
// Layer holds metadata specific to a layer of a Docker image.
|
||||
type Layer struct {
|
||||
// The recovered Dockerfile directive used to construct this layer.
|
||||
Directive Layer_Directive `protobuf:"varint,1,opt,name=directive,proto3,enum=grafeas.v1beta1.image.Layer_Directive" json:"directive,omitempty"`
|
||||
// The recovered arguments to the Dockerfile directive.
|
||||
Arguments string `protobuf:"bytes,2,opt,name=arguments,proto3" json:"arguments,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Layer) Reset() { *m = Layer{} }
|
||||
func (m *Layer) String() string { return proto.CompactTextString(m) }
|
||||
func (*Layer) ProtoMessage() {}
|
||||
func (*Layer) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_image_7b7d3df7358e6057, []int{0}
|
||||
}
|
||||
func (m *Layer) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Layer.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Layer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Layer.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Layer) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Layer.Merge(dst, src)
|
||||
}
|
||||
func (m *Layer) XXX_Size() int {
|
||||
return xxx_messageInfo_Layer.Size(m)
|
||||
}
|
||||
func (m *Layer) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Layer.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Layer proto.InternalMessageInfo
|
||||
|
||||
func (m *Layer) GetDirective() Layer_Directive {
|
||||
if m != nil {
|
||||
return m.Directive
|
||||
}
|
||||
return Layer_DIRECTIVE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Layer) GetArguments() string {
|
||||
if m != nil {
|
||||
return m.Arguments
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// A set of properties that uniquely identify a given Docker image.
|
||||
type Fingerprint struct {
|
||||
// The layer-id of the final layer in the Docker image's v1 representation.
|
||||
V1Name string `protobuf:"bytes,1,opt,name=v1_name,json=v1Name,proto3" 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,proto3" 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.
|
||||
V2Name string `protobuf:"bytes,3,opt,name=v2_name,json=v2Name,proto3" json:"v2_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Fingerprint) Reset() { *m = Fingerprint{} }
|
||||
func (m *Fingerprint) String() string { return proto.CompactTextString(m) }
|
||||
func (*Fingerprint) ProtoMessage() {}
|
||||
func (*Fingerprint) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_image_7b7d3df7358e6057, []int{1}
|
||||
}
|
||||
func (m *Fingerprint) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Fingerprint.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Fingerprint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Fingerprint.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Fingerprint) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Fingerprint.Merge(dst, src)
|
||||
}
|
||||
func (m *Fingerprint) XXX_Size() int {
|
||||
return xxx_messageInfo_Fingerprint.Size(m)
|
||||
}
|
||||
func (m *Fingerprint) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Fingerprint.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Fingerprint proto.InternalMessageInfo
|
||||
|
||||
func (m *Fingerprint) GetV1Name() string {
|
||||
if m != nil {
|
||||
return m.V1Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Fingerprint) GetV2Blob() []string {
|
||||
if m != nil {
|
||||
return m.V2Blob
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *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 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,proto3" json:"resource_url,omitempty"`
|
||||
// The fingerprint of the base image.
|
||||
Fingerprint *Fingerprint `protobuf:"bytes,2,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Basis) Reset() { *m = Basis{} }
|
||||
func (m *Basis) String() string { return proto.CompactTextString(m) }
|
||||
func (*Basis) ProtoMessage() {}
|
||||
func (*Basis) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_image_7b7d3df7358e6057, []int{2}
|
||||
}
|
||||
func (m *Basis) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Basis.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Basis) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Basis.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Basis) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Basis.Merge(dst, src)
|
||||
}
|
||||
func (m *Basis) XXX_Size() int {
|
||||
return xxx_messageInfo_Basis.Size(m)
|
||||
}
|
||||
func (m *Basis) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Basis.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Basis proto.InternalMessageInfo
|
||||
|
||||
func (m *Basis) GetResourceUrl() string {
|
||||
if m != nil {
|
||||
return m.ResourceUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Basis) GetFingerprint() *Fingerprint {
|
||||
if m != nil {
|
||||
return m.Fingerprint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Details of an image occurrence.
|
||||
type Details struct {
|
||||
// The child image derived from the base image.
|
||||
DerivedImage *Derived `protobuf:"bytes,1,opt,name=derived_image,json=derivedImage,proto3" json:"derived_image,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Details) Reset() { *m = Details{} }
|
||||
func (m *Details) String() string { return proto.CompactTextString(m) }
|
||||
func (*Details) ProtoMessage() {}
|
||||
func (*Details) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_image_7b7d3df7358e6057, []int{3}
|
||||
}
|
||||
func (m *Details) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Details.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Details) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Details.Merge(dst, src)
|
||||
}
|
||||
func (m *Details) XXX_Size() int {
|
||||
return xxx_messageInfo_Details.Size(m)
|
||||
}
|
||||
func (m *Details) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Details.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Details proto.InternalMessageInfo
|
||||
|
||||
func (m *Details) GetDerivedImage() *Derived {
|
||||
if m != nil {
|
||||
return m.DerivedImage
|
||||
}
|
||||
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 Derived struct {
|
||||
// The fingerprint of the derived image.
|
||||
Fingerprint *Fingerprint `protobuf:"bytes,1,opt,name=fingerprint,proto3" json:"fingerprint,omitempty"`
|
||||
// Output only. The number of layers by which this image differs from the
|
||||
// associated image basis.
|
||||
Distance int32 `protobuf:"varint,2,opt,name=distance,proto3" 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 []*Layer `protobuf:"bytes,3,rep,name=layer_info,json=layerInfo,proto3" 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,proto3" json:"base_resource_url,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Derived) Reset() { *m = Derived{} }
|
||||
func (m *Derived) String() string { return proto.CompactTextString(m) }
|
||||
func (*Derived) ProtoMessage() {}
|
||||
func (*Derived) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_image_7b7d3df7358e6057, []int{4}
|
||||
}
|
||||
func (m *Derived) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Derived.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Derived) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Derived.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Derived) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Derived.Merge(dst, src)
|
||||
}
|
||||
func (m *Derived) XXX_Size() int {
|
||||
return xxx_messageInfo_Derived.Size(m)
|
||||
}
|
||||
func (m *Derived) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Derived.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Derived proto.InternalMessageInfo
|
||||
|
||||
func (m *Derived) GetFingerprint() *Fingerprint {
|
||||
if m != nil {
|
||||
return m.Fingerprint
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Derived) GetDistance() int32 {
|
||||
if m != nil {
|
||||
return m.Distance
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Derived) GetLayerInfo() []*Layer {
|
||||
if m != nil {
|
||||
return m.LayerInfo
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Derived) GetBaseResourceUrl() string {
|
||||
if m != nil {
|
||||
return m.BaseResourceUrl
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Layer)(nil), "grafeas.v1beta1.image.Layer")
|
||||
proto.RegisterType((*Fingerprint)(nil), "grafeas.v1beta1.image.Fingerprint")
|
||||
proto.RegisterType((*Basis)(nil), "grafeas.v1beta1.image.Basis")
|
||||
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.image.Details")
|
||||
proto.RegisterType((*Derived)(nil), "grafeas.v1beta1.image.Derived")
|
||||
proto.RegisterEnum("grafeas.v1beta1.image.Layer_Directive", Layer_Directive_name, Layer_Directive_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/image/image.proto", fileDescriptor_image_7b7d3df7358e6057)
|
||||
}
|
||||
|
||||
var fileDescriptor_image_7b7d3df7358e6057 = []byte{
|
||||
// 613 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x93, 0xcf, 0x6e, 0xda, 0x40,
|
||||
0x10, 0xc6, 0x6b, 0x08, 0x10, 0x8f, 0xf3, 0x67, 0xb3, 0x52, 0x54, 0x5a, 0x45, 0x15, 0xe5, 0x50,
|
||||
0x45, 0x3d, 0x18, 0x41, 0x8f, 0x39, 0x01, 0xde, 0x04, 0x2b, 0x8e, 0x8d, 0x16, 0x93, 0x26, 0xbd,
|
||||
0x58, 0x0b, 0x2c, 0xd6, 0x4a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06, 0xae, 0x41, 0x99, 0x8e, 0x7d, 0x54, 0x2a, 0x2e, 0xfd, 0x2b, 0x07, 0x95, 0xb1,
|
||||
0x09, 0x15, 0xaf, 0xdb, 0x23, 0x1e, 0xda, 0xc1, 0x00, 0x55, 0x72, 0x33, 0x0c, 0x46, 0x04, 0x55,
|
||||
0x0a, 0x9d, 0xf8, 0xd7, 0xa8, 0x5a, 0x5c, 0xba, 0x8e, 0x83, 0x6a, 0x78, 0x17, 0x76, 0xfa, 0xc1,
|
||||
0xf0, 0x16, 0xed, 0x16, 0xa6, 0xc4, 0x0f, 0xe9, 0xed, 0x30, 0x70, 0xfd, 0x10, 0x99, 0x05, 0x77,
|
||||
0x1d, 0x78, 0xe3, 0x2b, 0x82, 0xa0, 0xc8, 0x1a, 0x8f, 0x08, 0x45, 0x16, 0xb6, 0xa0, 0xf6, 0x39,
|
||||
0xa0, 0x97, 0x8e, 0x4b, 0xd1, 0x9e, 0x76, 0xa1, 0x17, 0x68, 0xbf, 0x88, 0x06, 0x7e, 0x6f, 0xec,
|
||||
0x7a, 0x0e, 0x3a, 0x28, 0x8c, 0x46, 0x61, 0x30, 0x1c, 0xb9, 0x17, 0x7e, 0xd7, 0x43, 0x87, 0xf8,
|
||||
0x10, 0xac, 0x01, 0xe9, 0x7a, 0xe1, 0xa0, 0x3f, 0x20, 0xfd, 0x4b, 0x84, 0x8a, 0xe2, 0x46, 0x03,
|
||||
0xe2, 0x79, 0xe8, 0xa8, 0x79, 0x03, 0xd6, 0xb9, 0x48, 0x63, 0xae, 0x96, 0x4a, 0xa4, 0x39, 0x7e,
|
||||
0x0d, 0xb5, 0x55, 0x3b, 0x4a, 0xd9, 0x62, 0xdd, 0x63, 0x93, 0x56, 0x57, 0x6d, 0x9f, 0x2d, 0xb8,
|
||||
0x16, 0x3a, 0xd1, 0x24, 0x91, 0x93, 0x7a, 0xa9, 0x51, 0xd6, 0x42, 0xa7, 0x97, 0xc8, 0xc9, 0x46,
|
||||
0xd0, 0x44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 0xe6,
|
||||
0xa9, 0x5e, 0xd2, 0xd6, 0x5a, 0x62, 0x4b, 0x91, 0xfd, 0xf3, 0x92, 0x9f, 0xe9, 0xf3, 0x5b, 0xa9,
|
||||
0x7c, 0x41, 0xbb, 0x93, 0xaa, 0xb6, 0xf9, 0xf4, 0x2b, 0x00, 0x00, 0xff, 0xff, 0xe8, 0x06, 0xe8,
|
||||
0x32, 0x2a, 0x04, 0x00, 0x00,
|
||||
}
|
499
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go
generated
vendored
Normal file
499
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package/package.pb.go
generated
vendored
Normal file
@ -0,0 +1,499 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/package/package.proto
|
||||
|
||||
package _package // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// Instruction set architectures supported by various package managers.
|
||||
type Architecture int32
|
||||
|
||||
const (
|
||||
// Unknown architecture.
|
||||
Architecture_ARCHITECTURE_UNSPECIFIED Architecture = 0
|
||||
// X86 architecture.
|
||||
Architecture_X86 Architecture = 1
|
||||
// X64 architecture.
|
||||
Architecture_X64 Architecture = 2
|
||||
)
|
||||
|
||||
var Architecture_name = map[int32]string{
|
||||
0: "ARCHITECTURE_UNSPECIFIED",
|
||||
1: "X86",
|
||||
2: "X64",
|
||||
}
|
||||
var Architecture_value = map[string]int32{
|
||||
"ARCHITECTURE_UNSPECIFIED": 0,
|
||||
"X86": 1,
|
||||
"X64": 2,
|
||||
}
|
||||
|
||||
func (x Architecture) String() string {
|
||||
return proto.EnumName(Architecture_name, int32(x))
|
||||
}
|
||||
func (Architecture) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{0}
|
||||
}
|
||||
|
||||
// Whether this is an ordinary package version or a sentinel MIN/MAX version.
|
||||
type Version_VersionKind int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
Version_VERSION_KIND_UNSPECIFIED Version_VersionKind = 0
|
||||
// A standard package version, defined by the other fields.
|
||||
Version_NORMAL Version_VersionKind = 1
|
||||
// A special version representing negative infinity, other fields are
|
||||
// ignored.
|
||||
Version_MINIMUM Version_VersionKind = 2
|
||||
// A special version representing positive infinity, other fields are
|
||||
// ignored.
|
||||
Version_MAXIMUM Version_VersionKind = 3
|
||||
)
|
||||
|
||||
var Version_VersionKind_name = map[int32]string{
|
||||
0: "VERSION_KIND_UNSPECIFIED",
|
||||
1: "NORMAL",
|
||||
2: "MINIMUM",
|
||||
3: "MAXIMUM",
|
||||
}
|
||||
var Version_VersionKind_value = map[string]int32{
|
||||
"VERSION_KIND_UNSPECIFIED": 0,
|
||||
"NORMAL": 1,
|
||||
"MINIMUM": 2,
|
||||
"MAXIMUM": 3,
|
||||
}
|
||||
|
||||
func (x Version_VersionKind) String() string {
|
||||
return proto.EnumName(Version_VersionKind_name, int32(x))
|
||||
}
|
||||
func (Version_VersionKind) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{5, 0}
|
||||
}
|
||||
|
||||
// This represents a particular channel of distribution for a given package.
|
||||
// E.g., Debian's jessie-backports dpkg mirror.
|
||||
type 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,proto3" json:"cpe_uri,omitempty"`
|
||||
// The CPU architecture for which packages in this distribution channel were
|
||||
// built.
|
||||
Architecture Architecture `protobuf:"varint,2,opt,name=architecture,proto3,enum=grafeas.v1beta1.package.Architecture" json:"architecture,omitempty"`
|
||||
// The latest available version of this package in this distribution
|
||||
// channel.
|
||||
LatestVersion *Version `protobuf:"bytes,3,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
|
||||
// A freeform string denoting the maintainer of this package.
|
||||
Maintainer string `protobuf:"bytes,4,opt,name=maintainer,proto3" json:"maintainer,omitempty"`
|
||||
// The distribution channel-specific homepage for this package.
|
||||
Url string `protobuf:"bytes,5,opt,name=url,proto3" json:"url,omitempty"`
|
||||
// The distribution channel-specific description of this package.
|
||||
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Distribution) Reset() { *m = Distribution{} }
|
||||
func (m *Distribution) String() string { return proto.CompactTextString(m) }
|
||||
func (*Distribution) ProtoMessage() {}
|
||||
func (*Distribution) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{0}
|
||||
}
|
||||
func (m *Distribution) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Distribution.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Distribution) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Distribution.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Distribution) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Distribution.Merge(dst, src)
|
||||
}
|
||||
func (m *Distribution) XXX_Size() int {
|
||||
return xxx_messageInfo_Distribution.Size(m)
|
||||
}
|
||||
func (m *Distribution) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Distribution.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Distribution proto.InternalMessageInfo
|
||||
|
||||
func (m *Distribution) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Distribution) GetArchitecture() Architecture {
|
||||
if m != nil {
|
||||
return m.Architecture
|
||||
}
|
||||
return Architecture_ARCHITECTURE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Distribution) GetLatestVersion() *Version {
|
||||
if m != nil {
|
||||
return m.LatestVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Distribution) GetMaintainer() string {
|
||||
if m != nil {
|
||||
return m.Maintainer
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Distribution) GetUrl() string {
|
||||
if m != nil {
|
||||
return m.Url
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *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 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,proto3" json:"cpe_uri,omitempty"`
|
||||
// The version installed at this location.
|
||||
Version *Version `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
|
||||
// The path from which we gathered that this package/version is installed.
|
||||
Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Location) Reset() { *m = Location{} }
|
||||
func (m *Location) String() string { return proto.CompactTextString(m) }
|
||||
func (*Location) ProtoMessage() {}
|
||||
func (*Location) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{1}
|
||||
}
|
||||
func (m *Location) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Location.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Location) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Location.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Location) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Location.Merge(dst, src)
|
||||
}
|
||||
func (m *Location) XXX_Size() int {
|
||||
return xxx_messageInfo_Location.Size(m)
|
||||
}
|
||||
func (m *Location) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Location.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Location proto.InternalMessageInfo
|
||||
|
||||
func (m *Location) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Location) GetVersion() *Version {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *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 Package struct {
|
||||
// The name of the package.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The various channels by which a package is distributed.
|
||||
Distribution []*Distribution `protobuf:"bytes,10,rep,name=distribution,proto3" json:"distribution,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Package) Reset() { *m = Package{} }
|
||||
func (m *Package) String() string { return proto.CompactTextString(m) }
|
||||
func (*Package) ProtoMessage() {}
|
||||
func (*Package) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{2}
|
||||
}
|
||||
func (m *Package) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Package.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Package) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Package.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Package) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Package.Merge(dst, src)
|
||||
}
|
||||
func (m *Package) XXX_Size() int {
|
||||
return xxx_messageInfo_Package.Size(m)
|
||||
}
|
||||
func (m *Package) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Package.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Package proto.InternalMessageInfo
|
||||
|
||||
func (m *Package) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Package) GetDistribution() []*Distribution {
|
||||
if m != nil {
|
||||
return m.Distribution
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Details of a package occurrence.
|
||||
type Details struct {
|
||||
// Where the package was installed.
|
||||
Installation *Installation `protobuf:"bytes,1,opt,name=installation,proto3" json:"installation,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Details) Reset() { *m = Details{} }
|
||||
func (m *Details) String() string { return proto.CompactTextString(m) }
|
||||
func (*Details) ProtoMessage() {}
|
||||
func (*Details) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{3}
|
||||
}
|
||||
func (m *Details) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Details.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Details) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Details.Merge(dst, src)
|
||||
}
|
||||
func (m *Details) XXX_Size() int {
|
||||
return xxx_messageInfo_Details.Size(m)
|
||||
}
|
||||
func (m *Details) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Details.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Details proto.InternalMessageInfo
|
||||
|
||||
func (m *Details) GetInstallation() *Installation {
|
||||
if m != nil {
|
||||
return m.Installation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// This represents how a particular software package may be installed on a
|
||||
// system.
|
||||
type Installation struct {
|
||||
// Output only. The name of the installed package.
|
||||
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// All of the places within the filesystem versions of this package
|
||||
// have been found.
|
||||
Location []*Location `protobuf:"bytes,2,rep,name=location,proto3" json:"location,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Installation) Reset() { *m = Installation{} }
|
||||
func (m *Installation) String() string { return proto.CompactTextString(m) }
|
||||
func (*Installation) ProtoMessage() {}
|
||||
func (*Installation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{4}
|
||||
}
|
||||
func (m *Installation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Installation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Installation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Installation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Installation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Installation.Merge(dst, src)
|
||||
}
|
||||
func (m *Installation) XXX_Size() int {
|
||||
return xxx_messageInfo_Installation.Size(m)
|
||||
}
|
||||
func (m *Installation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Installation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Installation proto.InternalMessageInfo
|
||||
|
||||
func (m *Installation) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Installation) GetLocation() []*Location {
|
||||
if m != nil {
|
||||
return m.Location
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Version contains structured information about the version of a package.
|
||||
type Version struct {
|
||||
// Used to correct mistakes in the version numbering scheme.
|
||||
Epoch int32 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"`
|
||||
// The main part of the version name.
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
// The iteration of the package build from the above version.
|
||||
Revision string `protobuf:"bytes,3,opt,name=revision,proto3" json:"revision,omitempty"`
|
||||
// Distinguish between sentinel MIN/MAX versions and normal versions. If
|
||||
// kind is not NORMAL, then the other fields are ignored.
|
||||
Kind Version_VersionKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.package.Version_VersionKind" json:"kind,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Version) Reset() { *m = Version{} }
|
||||
func (m *Version) String() string { return proto.CompactTextString(m) }
|
||||
func (*Version) ProtoMessage() {}
|
||||
func (*Version) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_package_98e063c9654a5d86, []int{5}
|
||||
}
|
||||
func (m *Version) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Version.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Version.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Version) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Version.Merge(dst, src)
|
||||
}
|
||||
func (m *Version) XXX_Size() int {
|
||||
return xxx_messageInfo_Version.Size(m)
|
||||
}
|
||||
func (m *Version) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Version.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Version proto.InternalMessageInfo
|
||||
|
||||
func (m *Version) GetEpoch() int32 {
|
||||
if m != nil {
|
||||
return m.Epoch
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Version) GetName() string {
|
||||
if m != nil {
|
||||
return m.Name
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Version) GetRevision() string {
|
||||
if m != nil {
|
||||
return m.Revision
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Version) GetKind() Version_VersionKind {
|
||||
if m != nil {
|
||||
return m.Kind
|
||||
}
|
||||
return Version_VERSION_KIND_UNSPECIFIED
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Distribution)(nil), "grafeas.v1beta1.package.Distribution")
|
||||
proto.RegisterType((*Location)(nil), "grafeas.v1beta1.package.Location")
|
||||
proto.RegisterType((*Package)(nil), "grafeas.v1beta1.package.Package")
|
||||
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.package.Details")
|
||||
proto.RegisterType((*Installation)(nil), "grafeas.v1beta1.package.Installation")
|
||||
proto.RegisterType((*Version)(nil), "grafeas.v1beta1.package.Version")
|
||||
proto.RegisterEnum("grafeas.v1beta1.package.Architecture", Architecture_name, Architecture_value)
|
||||
proto.RegisterEnum("grafeas.v1beta1.package.Version_VersionKind", Version_VersionKind_name, Version_VersionKind_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/package/package.proto", fileDescriptor_package_98e063c9654a5d86)
|
||||
}
|
||||
|
||||
var fileDescriptor_package_98e063c9654a5d86 = []byte{
|
||||
// 575 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xff, 0x6a, 0xd4, 0x40,
|
||||
0x10, 0x36, 0x49, 0x7b, 0x69, 0xe7, 0xce, 0x12, 0x16, 0xb1, 0x41, 0x44, 0x62, 0x40, 0x38, 0x44,
|
||||
0x12, 0x5a, 0xa5, 0x88, 0xe2, 0x8f, 0xb3, 0x77, 0xd6, 0xd0, 0xde, 0xb5, 0x6e, 0x7b, 0xa5, 0xf8,
|
||||
0xcf, 0xb1, 0xcd, 0xad, 0xb9, 0xa5, 0x69, 0x36, 0xec, 0xee, 0x1d, 0xe8, 0x4b, 0xf8, 0x0e, 0x3e,
|
||||
0x9b, 0x0f, 0x22, 0xd9, 0x24, 0x47, 0xaa, 0xb6, 0xea, 0x5f, 0x3b, 0xb3, 0x33, 0xdf, 0x37, 0xfb,
|
||||
0xcd, 0x24, 0x03, 0x6f, 0x12, 0xce, 0x93, 0x94, 0x86, 0x53, 0xba, 0x50, 0x9c, 0xa7, 0x32, 0x8c,
|
||||
0x79, 0xa6, 0x08, 0xcb, 0xa8, 0x20, 0x19, 0x49, 0xbf, 0x48, 0x26, 0xc3, 0xc5, 0xd6, 0x39, 0x55,
|
||||
0x64, 0x2b, 0xcc, 0x49, 0x7c, 0x41, 0x12, 0x5a, 0x9f, 0x41, 0x2e, 0xb8, 0xe2, 0x68, 0x33, 0x11,
|
||||
0xe4, 0x33, 0x25, 0x32, 0xa8, 0xd2, 0x82, 0x2a, 0xec, 0x7f, 0x33, 0xa1, 0xd3, 0x67, 0x52, 0x09,
|
||||
0x76, 0x3e, 0x57, 0x8c, 0x67, 0x68, 0x13, 0xec, 0x38, 0xa7, 0x93, 0xb9, 0x60, 0xae, 0xe1, 0x19,
|
||||
0xdd, 0x75, 0xdc, 0x8a, 0x73, 0x3a, 0x16, 0x0c, 0x45, 0xd0, 0x21, 0x22, 0x9e, 0x31, 0x45, 0x63,
|
||||
0x35, 0x17, 0xd4, 0x35, 0x3d, 0xa3, 0xbb, 0xb1, 0xfd, 0x28, 0xb8, 0x86, 0x39, 0xe8, 0x35, 0x92,
|
||||
0xf1, 0x15, 0x28, 0xda, 0x83, 0x8d, 0x94, 0x28, 0x2a, 0xd5, 0x64, 0x41, 0x85, 0x64, 0x3c, 0x73,
|
||||
0x2d, 0xcf, 0xe8, 0xb6, 0xb7, 0xbd, 0x6b, 0xc9, 0x4e, 0xcb, 0x3c, 0x7c, 0xbb, 0xc4, 0x55, 0x2e,
|
||||
0x7a, 0x00, 0x70, 0x49, 0x58, 0xd5, 0x0a, 0x77, 0x45, 0xbf, 0xb7, 0x71, 0x83, 0x1c, 0xb0, 0xe6,
|
||||
0x22, 0x75, 0x57, 0x75, 0xa0, 0x30, 0x91, 0x07, 0xed, 0x29, 0x95, 0xb1, 0x60, 0x79, 0xa1, 0xd6,
|
||||
0x6d, 0xe9, 0x48, 0xf3, 0xca, 0x97, 0xb0, 0x76, 0xc0, 0x63, 0x72, 0x73, 0x33, 0x5e, 0x80, 0x5d,
|
||||
0x3f, 0xdd, 0xfc, 0xc7, 0xa7, 0xd7, 0x00, 0x84, 0x60, 0x25, 0x27, 0x6a, 0xa6, 0x35, 0xaf, 0x63,
|
||||
0x6d, 0xfb, 0x33, 0xb0, 0x8f, 0xca, 0xfc, 0x22, 0x9c, 0x91, 0x4b, 0x5a, 0x15, 0xd4, 0x76, 0xd1,
|
||||
0xfb, 0x69, 0x63, 0x48, 0x2e, 0x78, 0x56, 0xb7, 0x7d, 0x43, 0xef, 0x9b, 0x13, 0xc5, 0x57, 0xa0,
|
||||
0xfe, 0x09, 0xd8, 0x7d, 0x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x3c, 0xf8, 0x85, 0xd3, 0x06, 0xeb, 0xec, 0xf9, 0x8e, 0x63, 0x68, 0x63, 0xe7, 0x99, 0x63,
|
||||
0xbe, 0xfb, 0x0a, 0x77, 0x19, 0xff, 0x5d, 0xca, 0x45, 0x72, 0x64, 0x7c, 0x3a, 0x2b, 0xd7, 0x48,
|
||||
0x90, 0xf0, 0x94, 0x64, 0x49, 0xc0, 0x45, 0x12, 0x26, 0x34, 0xd3, 0x1b, 0x22, 0x2c, 0x43, 0x24,
|
||||
0x67, 0xf2, 0x3f, 0xb6, 0xcc, 0xcb, 0xea, 0xfc, 0x6e, 0x5a, 0x7b, 0xb8, 0x77, 0xde, 0xd2, 0x54,
|
||||
0x4f, 0x7f, 0x06, 0x00, 0x00, 0xff, 0xff, 0x78, 0xac, 0x5c, 0xdf, 0xaf, 0x04, 0x00, 0x00,
|
||||
}
|
592
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance/provenance.pb.go
generated
vendored
Normal file
592
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance/provenance.pb.go
generated
vendored
Normal file
@ -0,0 +1,592 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/provenance/provenance.proto
|
||||
|
||||
package provenance // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import timestamp "github.com/golang/protobuf/ptypes/timestamp"
|
||||
import source "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/source"
|
||||
|
||||
// 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
|
||||
|
||||
// Specifies the hash algorithm, if any.
|
||||
type Hash_HashType int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
Hash_HASH_TYPE_UNSPECIFIED Hash_HashType = 0
|
||||
// A SHA-256 hash.
|
||||
Hash_SHA256 Hash_HashType = 1
|
||||
)
|
||||
|
||||
var Hash_HashType_name = map[int32]string{
|
||||
0: "HASH_TYPE_UNSPECIFIED",
|
||||
1: "SHA256",
|
||||
}
|
||||
var Hash_HashType_value = map[string]int32{
|
||||
"HASH_TYPE_UNSPECIFIED": 0,
|
||||
"SHA256": 1,
|
||||
}
|
||||
|
||||
func (x Hash_HashType) String() string {
|
||||
return proto.EnumName(Hash_HashType_name, int32(x))
|
||||
}
|
||||
func (Hash_HashType) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_provenance_d5caf2c54405b6af, []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,proto3" json:"id,omitempty"`
|
||||
// ID of the project.
|
||||
ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
|
||||
// Commands requested by the build.
|
||||
Commands []*Command `protobuf:"bytes,3,rep,name=commands,proto3" json:"commands,omitempty"`
|
||||
// Output of the build.
|
||||
BuiltArtifacts []*Artifact `protobuf:"bytes,4,rep,name=built_artifacts,json=builtArtifacts,proto3" json:"built_artifacts,omitempty"`
|
||||
// Time at which the build was created.
|
||||
CreateTime *timestamp.Timestamp `protobuf:"bytes,5,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
|
||||
// Time at which execution of the build was started.
|
||||
StartTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
|
||||
// Time at which execution of the build was finished.
|
||||
EndTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_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,8,opt,name=creator,proto3" json:"creator,omitempty"`
|
||||
// URI where any logs for this provenance were written.
|
||||
LogsUri string `protobuf:"bytes,9,opt,name=logs_uri,json=logsUri,proto3" json:"logs_uri,omitempty"`
|
||||
// Details of the Source input to the build.
|
||||
SourceProvenance *Source `protobuf:"bytes,10,opt,name=source_provenance,json=sourceProvenance,proto3" json:"source_provenance,omitempty"`
|
||||
// Trigger identifier if the build was triggered automatically; empty if not.
|
||||
TriggerId string `protobuf:"bytes,11,opt,name=trigger_id,json=triggerId,proto3" 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,12,rep,name=build_options,json=buildOptions,proto3" json:"build_options,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// Version string of the builder at the time this build was executed.
|
||||
BuilderVersion string `protobuf:"bytes,13,opt,name=builder_version,json=builderVersion,proto3" json:"builder_version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) Reset() { *m = BuildProvenance{} }
|
||||
func (m *BuildProvenance) String() string { return proto.CompactTextString(m) }
|
||||
func (*BuildProvenance) ProtoMessage() {}
|
||||
func (*BuildProvenance) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_provenance_d5caf2c54405b6af, []int{0}
|
||||
}
|
||||
func (m *BuildProvenance) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_BuildProvenance.Unmarshal(m, b)
|
||||
}
|
||||
func (m *BuildProvenance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_BuildProvenance.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *BuildProvenance) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_BuildProvenance.Merge(dst, src)
|
||||
}
|
||||
func (m *BuildProvenance) XXX_Size() int {
|
||||
return xxx_messageInfo_BuildProvenance.Size(m)
|
||||
}
|
||||
func (m *BuildProvenance) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_BuildProvenance.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_BuildProvenance proto.InternalMessageInfo
|
||||
|
||||
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() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.CreateTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetStartTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.StartTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetEndTime() *timestamp.Timestamp {
|
||||
if m != nil {
|
||||
return m.EndTime
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetCreator() string {
|
||||
if m != nil {
|
||||
return m.Creator
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *BuildProvenance) GetLogsUri() string {
|
||||
if m != nil {
|
||||
return m.LogsUri
|
||||
}
|
||||
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 {
|
||||
// If provided, the input binary artifacts for the build came from this
|
||||
// location.
|
||||
ArtifactStorageSourceUri string `protobuf:"bytes,1,opt,name=artifact_storage_source_uri,json=artifactStorageSourceUri,proto3" json:"artifact_storage_source_uri,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,2,rep,name=file_hashes,json=fileHashes,proto3" json:"file_hashes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
// If provided, the source code used for the build came from this location.
|
||||
Context *source.SourceContext `protobuf:"bytes,3,opt,name=context,proto3" 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 []*source.SourceContext `protobuf:"bytes,4,rep,name=additional_contexts,json=additionalContexts,proto3" json:"additional_contexts,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Source) Reset() { *m = Source{} }
|
||||
func (m *Source) String() string { return proto.CompactTextString(m) }
|
||||
func (*Source) ProtoMessage() {}
|
||||
func (*Source) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_provenance_d5caf2c54405b6af, []int{1}
|
||||
}
|
||||
func (m *Source) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Source.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Source) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Source.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Source) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Source.Merge(dst, src)
|
||||
}
|
||||
func (m *Source) XXX_Size() int {
|
||||
return xxx_messageInfo_Source.Size(m)
|
||||
}
|
||||
func (m *Source) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Source.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Source proto.InternalMessageInfo
|
||||
|
||||
func (m *Source) GetArtifactStorageSourceUri() string {
|
||||
if m != nil {
|
||||
return m.ArtifactStorageSourceUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Source) GetFileHashes() map[string]*FileHashes {
|
||||
if m != nil {
|
||||
return m.FileHashes
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetContext() *source.SourceContext {
|
||||
if m != nil {
|
||||
return m.Context
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Source) GetAdditionalContexts() []*source.SourceContext {
|
||||
if m != nil {
|
||||
return m.AdditionalContexts
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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,proto3" json:"file_hash,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *FileHashes) Reset() { *m = FileHashes{} }
|
||||
func (m *FileHashes) String() string { return proto.CompactTextString(m) }
|
||||
func (*FileHashes) ProtoMessage() {}
|
||||
func (*FileHashes) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_provenance_d5caf2c54405b6af, []int{2}
|
||||
}
|
||||
func (m *FileHashes) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_FileHashes.Unmarshal(m, b)
|
||||
}
|
||||
func (m *FileHashes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_FileHashes.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *FileHashes) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_FileHashes.Merge(dst, src)
|
||||
}
|
||||
func (m *FileHashes) XXX_Size() int {
|
||||
return xxx_messageInfo_FileHashes.Size(m)
|
||||
}
|
||||
func (m *FileHashes) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_FileHashes.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_FileHashes proto.InternalMessageInfo
|
||||
|
||||
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,proto3,enum=grafeas.v1beta1.provenance.Hash_HashType" json:"type,omitempty"`
|
||||
// The hash value.
|
||||
Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Hash) Reset() { *m = Hash{} }
|
||||
func (m *Hash) String() string { return proto.CompactTextString(m) }
|
||||
func (*Hash) ProtoMessage() {}
|
||||
func (*Hash) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_provenance_d5caf2c54405b6af, []int{3}
|
||||
}
|
||||
func (m *Hash) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Hash.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Hash) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Hash.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Hash) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Hash.Merge(dst, src)
|
||||
}
|
||||
func (m *Hash) XXX_Size() int {
|
||||
return xxx_messageInfo_Hash.Size(m)
|
||||
}
|
||||
func (m *Hash) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Hash.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Hash proto.InternalMessageInfo
|
||||
|
||||
func (m *Hash) GetType() Hash_HashType {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return Hash_HASH_TYPE_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Hash) GetValue() []byte {
|
||||
if m != nil {
|
||||
return m.Value
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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,proto3" json:"name,omitempty"`
|
||||
// Environment variables set before running this command.
|
||||
Env []string `protobuf:"bytes,2,rep,name=env,proto3" json:"env,omitempty"`
|
||||
// Command-line arguments used when executing this command.
|
||||
Args []string `protobuf:"bytes,3,rep,name=args,proto3" json:"args,omitempty"`
|
||||
// Working directory (relative to project source root) used when running this
|
||||
// command.
|
||||
Dir string `protobuf:"bytes,4,opt,name=dir,proto3" 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,proto3" 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,proto3" json:"wait_for,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Command) Reset() { *m = Command{} }
|
||||
func (m *Command) String() string { return proto.CompactTextString(m) }
|
||||
func (*Command) ProtoMessage() {}
|
||||
func (*Command) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_provenance_d5caf2c54405b6af, []int{4}
|
||||
}
|
||||
func (m *Command) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Command.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Command) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Command.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Command) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Command.Merge(dst, src)
|
||||
}
|
||||
func (m *Command) XXX_Size() int {
|
||||
return xxx_messageInfo_Command.Size(m)
|
||||
}
|
||||
func (m *Command) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Command.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Command proto.InternalMessageInfo
|
||||
|
||||
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 {
|
||||
// Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
|
||||
// container.
|
||||
Checksum string `protobuf:"bytes,1,opt,name=checksum,proto3" 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,2,opt,name=id,proto3" 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,3,rep,name=names,proto3" json:"names,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Artifact) Reset() { *m = Artifact{} }
|
||||
func (m *Artifact) String() string { return proto.CompactTextString(m) }
|
||||
func (*Artifact) ProtoMessage() {}
|
||||
func (*Artifact) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_provenance_d5caf2c54405b6af, []int{5}
|
||||
}
|
||||
func (m *Artifact) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Artifact.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Artifact) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Artifact.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Artifact) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Artifact.Merge(dst, src)
|
||||
}
|
||||
func (m *Artifact) XXX_Size() int {
|
||||
return xxx_messageInfo_Artifact.Size(m)
|
||||
}
|
||||
func (m *Artifact) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Artifact.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Artifact proto.InternalMessageInfo
|
||||
|
||||
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), "grafeas.v1beta1.provenance.BuildProvenance")
|
||||
proto.RegisterMapType((map[string]string)(nil), "grafeas.v1beta1.provenance.BuildProvenance.BuildOptionsEntry")
|
||||
proto.RegisterType((*Source)(nil), "grafeas.v1beta1.provenance.Source")
|
||||
proto.RegisterMapType((map[string]*FileHashes)(nil), "grafeas.v1beta1.provenance.Source.FileHashesEntry")
|
||||
proto.RegisterType((*FileHashes)(nil), "grafeas.v1beta1.provenance.FileHashes")
|
||||
proto.RegisterType((*Hash)(nil), "grafeas.v1beta1.provenance.Hash")
|
||||
proto.RegisterType((*Command)(nil), "grafeas.v1beta1.provenance.Command")
|
||||
proto.RegisterType((*Artifact)(nil), "grafeas.v1beta1.provenance.Artifact")
|
||||
proto.RegisterEnum("grafeas.v1beta1.provenance.Hash_HashType", Hash_HashType_name, Hash_HashType_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/provenance/provenance.proto", fileDescriptor_provenance_d5caf2c54405b6af)
|
||||
}
|
||||
|
||||
var fileDescriptor_provenance_d5caf2c54405b6af = []byte{
|
||||
// 848 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x55, 0x4b, 0x6f, 0x23, 0x45,
|
||||
0x10, 0x66, 0xfc, 0x1c, 0x97, 0xb3, 0x49, 0xb6, 0x59, 0xa4, 0x8e, 0x51, 0x44, 0x64, 0x5e, 0xe1,
|
||||
0x32, 0x56, 0x8c, 0x16, 0x01, 0x8b, 0x15, 0x65, 0x83, 0x43, 0x22, 0x1e, 0x1b, 0x8d, 0xb3, 0x2b,
|
||||
0xc1, 0x81, 0x51, 0x7b, 0xba, 0x3d, 0x69, 0x76, 0x3c, 0x6d, 0x75, 0xb7, 0x0d, 0xbe, 0x71, 0xe3,
|
||||
0xc6, 0x2f, 0xe0, 0xc4, 0x4f, 0xe4, 0x17, 0xa0, 0x7e, 0x8c, 0x6d, 0x76, 0xc1, 0x09, 0x97, 0xa4,
|
||||
0xab, 0xe6, 0xfb, 0xbe, 0xae, 0xf9, 0xaa, 0xa6, 0x0c, 0xc3, 0x4c, 0x88, 0x2c, 0x67, 0x3d, 0xca,
|
||||
0x16, 0x5a, 0x88, 0x5c, 0xf5, 0x52, 0x51, 0x68, 0xc2, 0x0b, 0x26, 0x49, 0x41, 0xf2, 0xa5, 0xe2,
|
||||
0xaa, 0xb7, 0x38, 0x19, 0x33, 0x4d, 0x4e, 0x7a, 0x33, 0x29, 0x16, 0xac, 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0xab, 0xff, 0xf7, 0x43, 0xfa, 0x64, 0x7d, 0xfc, 0xb3, 0x52, 0xfd, 0x2a, 0x3e, 0x1b, 0x37, 0xac,
|
||||
0xe0, 0xc7, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0x7b, 0x4e, 0x7a, 0xbc, 0x98, 0x07, 0x00, 0x00,
|
||||
}
|
919
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/source/source.pb.go
generated
vendored
Normal file
919
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/source/source.pb.go
generated
vendored
Normal file
@ -0,0 +1,919 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/source/source.proto
|
||||
|
||||
package source // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/source"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
|
||||
// Reference imports to suppress errors if they are not otherwise used.
|
||||
var _ = proto.Marshal
|
||||
var _ = fmt.Errorf
|
||||
var _ = math.Inf
|
||||
|
||||
// This is a compile-time assertion to ensure that this generated file
|
||||
// is compatible with the proto package it is being compiled against.
|
||||
// A compilation error at this line likely means your copy of the
|
||||
// proto package needs to be updated.
|
||||
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
|
||||
|
||||
// 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 fileDescriptor_source_b7360f0d8c9ed1c8, []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,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *SourceContext) Reset() { *m = SourceContext{} }
|
||||
func (m *SourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*SourceContext) ProtoMessage() {}
|
||||
func (*SourceContext) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_b7360f0d8c9ed1c8, []int{0}
|
||||
}
|
||||
func (m *SourceContext) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_SourceContext.Unmarshal(m, b)
|
||||
}
|
||||
func (m *SourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_SourceContext.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *SourceContext) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_SourceContext.Merge(dst, src)
|
||||
}
|
||||
func (m *SourceContext) XXX_Size() int {
|
||||
return xxx_messageInfo_SourceContext.Size(m)
|
||||
}
|
||||
func (m *SourceContext) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_SourceContext.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_SourceContext proto.InternalMessageInfo
|
||||
|
||||
type isSourceContext_Context interface {
|
||||
isSourceContext_Context()
|
||||
}
|
||||
|
||||
type SourceContext_CloudRepo struct {
|
||||
CloudRepo *CloudRepoSourceContext `protobuf:"bytes,1,opt,name=cloud_repo,json=cloudRepo,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SourceContext_Gerrit struct {
|
||||
Gerrit *GerritSourceContext `protobuf:"bytes,2,opt,name=gerrit,proto3,oneof"`
|
||||
}
|
||||
|
||||
type SourceContext_Git struct {
|
||||
Git *GitSourceContext `protobuf:"bytes,3,opt,name=git,proto3,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 += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *SourceContext_Gerrit:
|
||||
s := proto.Size(x.Gerrit)
|
||||
n += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *SourceContext_Git:
|
||||
s := proto.Size(x.Git)
|
||||
n += 1 // tag and wire
|
||||
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,proto3,enum=grafeas.v1beta1.source.AliasContext_Kind" json:"kind,omitempty"`
|
||||
// The alias name.
|
||||
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *AliasContext) Reset() { *m = AliasContext{} }
|
||||
func (m *AliasContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*AliasContext) ProtoMessage() {}
|
||||
func (*AliasContext) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_b7360f0d8c9ed1c8, []int{1}
|
||||
}
|
||||
func (m *AliasContext) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_AliasContext.Unmarshal(m, b)
|
||||
}
|
||||
func (m *AliasContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_AliasContext.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *AliasContext) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_AliasContext.Merge(dst, src)
|
||||
}
|
||||
func (m *AliasContext) XXX_Size() int {
|
||||
return xxx_messageInfo_AliasContext.Size(m)
|
||||
}
|
||||
func (m *AliasContext) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_AliasContext.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_AliasContext proto.InternalMessageInfo
|
||||
|
||||
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,proto3" 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *CloudRepoSourceContext) Reset() { *m = CloudRepoSourceContext{} }
|
||||
func (m *CloudRepoSourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*CloudRepoSourceContext) ProtoMessage() {}
|
||||
func (*CloudRepoSourceContext) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_b7360f0d8c9ed1c8, []int{2}
|
||||
}
|
||||
func (m *CloudRepoSourceContext) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_CloudRepoSourceContext.Unmarshal(m, b)
|
||||
}
|
||||
func (m *CloudRepoSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_CloudRepoSourceContext.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *CloudRepoSourceContext) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_CloudRepoSourceContext.Merge(dst, src)
|
||||
}
|
||||
func (m *CloudRepoSourceContext) XXX_Size() int {
|
||||
return xxx_messageInfo_CloudRepoSourceContext.Size(m)
|
||||
}
|
||||
func (m *CloudRepoSourceContext) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_CloudRepoSourceContext.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_CloudRepoSourceContext proto.InternalMessageInfo
|
||||
|
||||
func (m *CloudRepoSourceContext) GetRepoId() *RepoId {
|
||||
if m != nil {
|
||||
return m.RepoId
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
type isCloudRepoSourceContext_Revision interface {
|
||||
isCloudRepoSourceContext_Revision()
|
||||
}
|
||||
|
||||
type CloudRepoSourceContext_RevisionId struct {
|
||||
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3,oneof"`
|
||||
}
|
||||
|
||||
type CloudRepoSourceContext_AliasContext struct {
|
||||
AliasContext *AliasContext `protobuf:"bytes,3,opt,name=alias_context,json=aliasContext,proto3,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) 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 += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.RevisionId)))
|
||||
n += len(x.RevisionId)
|
||||
case *CloudRepoSourceContext_AliasContext:
|
||||
s := proto.Size(x.AliasContext)
|
||||
n += 1 // tag and wire
|
||||
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,proto3" 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,proto3" 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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GerritSourceContext) Reset() { *m = GerritSourceContext{} }
|
||||
func (m *GerritSourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*GerritSourceContext) ProtoMessage() {}
|
||||
func (*GerritSourceContext) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_b7360f0d8c9ed1c8, []int{3}
|
||||
}
|
||||
func (m *GerritSourceContext) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GerritSourceContext.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GerritSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GerritSourceContext.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GerritSourceContext) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GerritSourceContext.Merge(dst, src)
|
||||
}
|
||||
func (m *GerritSourceContext) XXX_Size() int {
|
||||
return xxx_messageInfo_GerritSourceContext.Size(m)
|
||||
}
|
||||
func (m *GerritSourceContext) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GerritSourceContext.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GerritSourceContext proto.InternalMessageInfo
|
||||
|
||||
func (m *GerritSourceContext) GetHostUri() string {
|
||||
if m != nil {
|
||||
return m.HostUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *GerritSourceContext) GetGerritProject() string {
|
||||
if m != nil {
|
||||
return m.GerritProject
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type isGerritSourceContext_Revision interface {
|
||||
isGerritSourceContext_Revision()
|
||||
}
|
||||
|
||||
type GerritSourceContext_RevisionId struct {
|
||||
RevisionId string `protobuf:"bytes,3,opt,name=revision_id,json=revisionId,proto3,oneof"`
|
||||
}
|
||||
|
||||
type GerritSourceContext_AliasContext struct {
|
||||
AliasContext *AliasContext `protobuf:"bytes,4,opt,name=alias_context,json=aliasContext,proto3,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) 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 += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(len(x.RevisionId)))
|
||||
n += len(x.RevisionId)
|
||||
case *GerritSourceContext_AliasContext:
|
||||
s := proto.Size(x.AliasContext)
|
||||
n += 1 // tag and wire
|
||||
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,proto3" json:"url,omitempty"`
|
||||
// Git commit hash.
|
||||
RevisionId string `protobuf:"bytes,2,opt,name=revision_id,json=revisionId,proto3" json:"revision_id,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *GitSourceContext) Reset() { *m = GitSourceContext{} }
|
||||
func (m *GitSourceContext) String() string { return proto.CompactTextString(m) }
|
||||
func (*GitSourceContext) ProtoMessage() {}
|
||||
func (*GitSourceContext) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_b7360f0d8c9ed1c8, []int{4}
|
||||
}
|
||||
func (m *GitSourceContext) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_GitSourceContext.Unmarshal(m, b)
|
||||
}
|
||||
func (m *GitSourceContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_GitSourceContext.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *GitSourceContext) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_GitSourceContext.Merge(dst, src)
|
||||
}
|
||||
func (m *GitSourceContext) XXX_Size() int {
|
||||
return xxx_messageInfo_GitSourceContext.Size(m)
|
||||
}
|
||||
func (m *GitSourceContext) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_GitSourceContext.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_GitSourceContext proto.InternalMessageInfo
|
||||
|
||||
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"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *RepoId) Reset() { *m = RepoId{} }
|
||||
func (m *RepoId) String() string { return proto.CompactTextString(m) }
|
||||
func (*RepoId) ProtoMessage() {}
|
||||
func (*RepoId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_b7360f0d8c9ed1c8, []int{5}
|
||||
}
|
||||
func (m *RepoId) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_RepoId.Unmarshal(m, b)
|
||||
}
|
||||
func (m *RepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_RepoId.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *RepoId) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_RepoId.Merge(dst, src)
|
||||
}
|
||||
func (m *RepoId) XXX_Size() int {
|
||||
return xxx_messageInfo_RepoId.Size(m)
|
||||
}
|
||||
func (m *RepoId) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_RepoId.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_RepoId proto.InternalMessageInfo
|
||||
|
||||
type isRepoId_Id interface {
|
||||
isRepoId_Id()
|
||||
}
|
||||
|
||||
type RepoId_ProjectRepoId struct {
|
||||
ProjectRepoId *ProjectRepoId `protobuf:"bytes,1,opt,name=project_repo_id,json=projectRepoId,proto3,oneof"`
|
||||
}
|
||||
|
||||
type RepoId_Uid struct {
|
||||
Uid string `protobuf:"bytes,2,opt,name=uid,proto3,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 += 1 // tag and wire
|
||||
n += proto.SizeVarint(uint64(s))
|
||||
n += s
|
||||
case *RepoId_Uid:
|
||||
n += 1 // tag and wire
|
||||
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,proto3" 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,proto3" json:"repo_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *ProjectRepoId) Reset() { *m = ProjectRepoId{} }
|
||||
func (m *ProjectRepoId) String() string { return proto.CompactTextString(m) }
|
||||
func (*ProjectRepoId) ProtoMessage() {}
|
||||
func (*ProjectRepoId) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_source_b7360f0d8c9ed1c8, []int{6}
|
||||
}
|
||||
func (m *ProjectRepoId) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_ProjectRepoId.Unmarshal(m, b)
|
||||
}
|
||||
func (m *ProjectRepoId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_ProjectRepoId.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *ProjectRepoId) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_ProjectRepoId.Merge(dst, src)
|
||||
}
|
||||
func (m *ProjectRepoId) XXX_Size() int {
|
||||
return xxx_messageInfo_ProjectRepoId.Size(m)
|
||||
}
|
||||
func (m *ProjectRepoId) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_ProjectRepoId.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_ProjectRepoId proto.InternalMessageInfo
|
||||
|
||||
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), "grafeas.v1beta1.source.SourceContext")
|
||||
proto.RegisterMapType((map[string]string)(nil), "grafeas.v1beta1.source.SourceContext.LabelsEntry")
|
||||
proto.RegisterType((*AliasContext)(nil), "grafeas.v1beta1.source.AliasContext")
|
||||
proto.RegisterType((*CloudRepoSourceContext)(nil), "grafeas.v1beta1.source.CloudRepoSourceContext")
|
||||
proto.RegisterType((*GerritSourceContext)(nil), "grafeas.v1beta1.source.GerritSourceContext")
|
||||
proto.RegisterType((*GitSourceContext)(nil), "grafeas.v1beta1.source.GitSourceContext")
|
||||
proto.RegisterType((*RepoId)(nil), "grafeas.v1beta1.source.RepoId")
|
||||
proto.RegisterType((*ProjectRepoId)(nil), "grafeas.v1beta1.source.ProjectRepoId")
|
||||
proto.RegisterEnum("grafeas.v1beta1.source.AliasContext_Kind", AliasContext_Kind_name, AliasContext_Kind_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/source/source.proto", fileDescriptor_source_b7360f0d8c9ed1c8)
|
||||
}
|
||||
|
||||
var fileDescriptor_source_b7360f0d8c9ed1c8 = []byte{
|
||||
// 640 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0xdd, 0x4e, 0xdb, 0x30,
|
||||
0x18, 0x6d, 0xda, 0xd0, 0x92, 0xaf, 0x94, 0x45, 0x1e, 0x42, 0x65, 0xd3, 0x36, 0x16, 0x0d, 0x89,
|
||||
0x69, 0x52, 0x2a, 0xd8, 0xc5, 0x7e, 0x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e5, 0x91, 0xc7, 0x55, 0x19, 0x0b, 0xae, 0x1b, 0x78, 0x4d, 0x2e, 0x57, 0xf4,
|
||||
0x14, 0xda, 0x9c, 0x4c, 0x69, 0x42, 0x59, 0x2c, 0xc8, 0x32, 0xdf, 0x41, 0xcd, 0x83, 0x02, 0x74,
|
||||
0x03, 0x34, 0x84, 0x0e, 0x16, 0x65, 0xfa, 0xaa, 0x59, 0x6a, 0xe8, 0xcf, 0xee, 0xd2, 0x93, 0x41,
|
||||
0xcd, 0x5b, 0xc2, 0xa5, 0x73, 0x1f, 0x60, 0xb1, 0x90, 0xb6, 0x7e, 0x6b, 0x70, 0x7f, 0x8e, 0xcb,
|
||||
0xd0, 0x1a, 0x2c, 0x7e, 0x63, 0x49, 0xea, 0x67, 0x9c, 0xaa, 0x41, 0xb6, 0xc4, 0xf9, 0x8c, 0x53,
|
||||
0xb4, 0x01, 0xcb, 0xb9, 0x01, 0xfd, 0x09, 0x67, 0xdf, 0xc9, 0x38, 0x55, 0x1d, 0xee, 0xe4, 0xe8,
|
||||
0x49, 0x0e, 0xde, 0xae, 0xaa, 0x71, 0x97, 0xaa, 0xf4, 0xff, 0x54, 0x95, 0x03, 0xe6, 0x6d, 0xdb,
|
||||
0x0b, 0x57, 0x66, 0x3c, 0x2a, 0x5c, 0x99, 0xf1, 0x08, 0x3d, 0x99, 0xd3, 0xf7, 0x72, 0x7e, 0x56,
|
||||
0x02, 0xcd, 0x7c, 0x54, 0x68, 0x04, 0xf7, 0x54, 0xb1, 0xfe, 0xec, 0x8c, 0x37, 0xaa, 0x72, 0x55,
|
||||
0x6d, 0xc8, 0xf9, 0x83, 0x9a, 0xd7, 0x99, 0x94, 0x01, 0x84, 0xa0, 0x91, 0x95, 0x66, 0x2d, 0x0e,
|
||||
0x7d, 0x1d, 0xea, 0x34, 0xb0, 0x86, 0xd0, 0x99, 0xe1, 0xa2, 0x47, 0x00, 0xc5, 0xdb, 0xea, 0x59,
|
||||
0xc3, 0x33, 0x14, 0xe2, 0x06, 0xe8, 0x21, 0x18, 0x32, 0xa5, 0x92, 0xd7, 0x17, 0x05, 0x70, 0x8c,
|
||||
0xaf, 0x48, 0xff, 0x27, 0xac, 0x51, 0x56, 0x91, 0xe2, 0x89, 0xf6, 0xe5, 0x3c, 0xff, 0x42, 0xed,
|
||||
0x90, 0x45, 0x38, 0x0e, 0x6d, 0xc6, 0xc3, 0x5e, 0x48, 0x62, 0xf9, 0x3f, 0xf6, 0xf2, 0x2b, 0x3c,
|
||||
0xa1, 0xc9, 0xdd, 0x7f, 0xd8, 0x77, 0xf9, 0x72, 0x53, 0x6f, 0x1c, 0x7a, 0xbb, 0x17, 0x4d, 0x29,
|
||||
0xf4, 0xf2, 0x6f, 0x00, 0x00, 0x00, 0xff, 0xff, 0x39, 0x33, 0xb6, 0xbe, 0xa9, 0x05, 0x00, 0x00,
|
||||
}
|
520
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.pb.go
generated
vendored
Normal file
520
vendor/google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.pb.go
generated
vendored
Normal file
@ -0,0 +1,520 @@
|
||||
// Code generated by protoc-gen-go. DO NOT EDIT.
|
||||
// source: google/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.proto
|
||||
|
||||
package vulnerability // import "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/vulnerability"
|
||||
|
||||
import proto "github.com/golang/protobuf/proto"
|
||||
import fmt "fmt"
|
||||
import math "math"
|
||||
import common "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common"
|
||||
import _package "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package"
|
||||
|
||||
// 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
|
||||
|
||||
// Note provider-assigned severity/impact ranking.
|
||||
type Severity int32
|
||||
|
||||
const (
|
||||
// Unknown.
|
||||
Severity_SEVERITY_UNSPECIFIED Severity = 0
|
||||
// Minimal severity.
|
||||
Severity_MINIMAL Severity = 1
|
||||
// Low severity.
|
||||
Severity_LOW Severity = 2
|
||||
// Medium severity.
|
||||
Severity_MEDIUM Severity = 3
|
||||
// High severity.
|
||||
Severity_HIGH Severity = 4
|
||||
// Critical severity.
|
||||
Severity_CRITICAL Severity = 5
|
||||
)
|
||||
|
||||
var Severity_name = map[int32]string{
|
||||
0: "SEVERITY_UNSPECIFIED",
|
||||
1: "MINIMAL",
|
||||
2: "LOW",
|
||||
3: "MEDIUM",
|
||||
4: "HIGH",
|
||||
5: "CRITICAL",
|
||||
}
|
||||
var Severity_value = map[string]int32{
|
||||
"SEVERITY_UNSPECIFIED": 0,
|
||||
"MINIMAL": 1,
|
||||
"LOW": 2,
|
||||
"MEDIUM": 3,
|
||||
"HIGH": 4,
|
||||
"CRITICAL": 5,
|
||||
}
|
||||
|
||||
func (x Severity) String() string {
|
||||
return proto.EnumName(Severity_name, int32(x))
|
||||
}
|
||||
func (Severity) EnumDescriptor() ([]byte, []int) {
|
||||
return fileDescriptor_vulnerability_94d0ea806c1c7d02, []int{0}
|
||||
}
|
||||
|
||||
// Vulnerability provides metadata about a security vulnerability.
|
||||
type Vulnerability struct {
|
||||
// The CVSS score for this vulnerability.
|
||||
CvssScore float32 `protobuf:"fixed32,1,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
|
||||
// Note provider assigned impact of the vulnerability.
|
||||
Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1beta1.vulnerability.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 []*Vulnerability_Detail `protobuf:"bytes,3,rep,name=details,proto3" json:"details,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Vulnerability) Reset() { *m = Vulnerability{} }
|
||||
func (m *Vulnerability) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vulnerability) ProtoMessage() {}
|
||||
func (*Vulnerability) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_vulnerability_94d0ea806c1c7d02, []int{0}
|
||||
}
|
||||
func (m *Vulnerability) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Vulnerability.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Vulnerability) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Vulnerability.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Vulnerability) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Vulnerability.Merge(dst, src)
|
||||
}
|
||||
func (m *Vulnerability) XXX_Size() int {
|
||||
return xxx_messageInfo_Vulnerability.Size(m)
|
||||
}
|
||||
func (m *Vulnerability) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Vulnerability.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Vulnerability proto.InternalMessageInfo
|
||||
|
||||
func (m *Vulnerability) GetCvssScore() float32 {
|
||||
if m != nil {
|
||||
return m.CvssScore
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Vulnerability) GetSeverity() Severity {
|
||||
if m != nil {
|
||||
return m.Severity
|
||||
}
|
||||
return Severity_SEVERITY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Vulnerability) GetDetails() []*Vulnerability_Detail {
|
||||
if m != nil {
|
||||
return m.Details
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// 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 Vulnerability_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.
|
||||
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
|
||||
// The name of the package where the vulnerability was found.
|
||||
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
|
||||
// The min version of the package in which the vulnerability exists.
|
||||
MinAffectedVersion *_package.Version `protobuf:"bytes,3,opt,name=min_affected_version,json=minAffectedVersion,proto3" json:"min_affected_version,omitempty"`
|
||||
// The max version of the package in which the vulnerability exists.
|
||||
MaxAffectedVersion *_package.Version `protobuf:"bytes,4,opt,name=max_affected_version,json=maxAffectedVersion,proto3" json:"max_affected_version,omitempty"`
|
||||
// The severity (eg: distro assigned severity) for this vulnerability.
|
||||
SeverityName string `protobuf:"bytes,5,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
|
||||
// A vendor-specific description of this note.
|
||||
Description string `protobuf:"bytes,6,opt,name=description,proto3" json:"description,omitempty"`
|
||||
// The fix for this specific package version.
|
||||
FixedLocation *VulnerabilityLocation `protobuf:"bytes,7,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
|
||||
// The type of package; whether native or non native(ruby gems, node.js
|
||||
// packages etc).
|
||||
PackageType string `protobuf:"bytes,8,opt,name=package_type,json=packageType,proto3" json:"package_type,omitempty"`
|
||||
// Whether this detail is obsolete. Occurrences are expected not to point to
|
||||
// obsolete details.
|
||||
IsObsolete bool `protobuf:"varint,9,opt,name=is_obsolete,json=isObsolete,proto3" json:"is_obsolete,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) Reset() { *m = Vulnerability_Detail{} }
|
||||
func (m *Vulnerability_Detail) String() string { return proto.CompactTextString(m) }
|
||||
func (*Vulnerability_Detail) ProtoMessage() {}
|
||||
func (*Vulnerability_Detail) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_vulnerability_94d0ea806c1c7d02, []int{0, 0}
|
||||
}
|
||||
func (m *Vulnerability_Detail) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Vulnerability_Detail.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Vulnerability_Detail) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Vulnerability_Detail.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Vulnerability_Detail) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Vulnerability_Detail.Merge(dst, src)
|
||||
}
|
||||
func (m *Vulnerability_Detail) XXX_Size() int {
|
||||
return xxx_messageInfo_Vulnerability_Detail.Size(m)
|
||||
}
|
||||
func (m *Vulnerability_Detail) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Vulnerability_Detail.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Vulnerability_Detail proto.InternalMessageInfo
|
||||
|
||||
func (m *Vulnerability_Detail) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetPackage() string {
|
||||
if m != nil {
|
||||
return m.Package
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetMinAffectedVersion() *_package.Version {
|
||||
if m != nil {
|
||||
return m.MinAffectedVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetMaxAffectedVersion() *_package.Version {
|
||||
if m != nil {
|
||||
return m.MaxAffectedVersion
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetSeverityName() string {
|
||||
if m != nil {
|
||||
return m.SeverityName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetDescription() string {
|
||||
if m != nil {
|
||||
return m.Description
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetFixedLocation() *VulnerabilityLocation {
|
||||
if m != nil {
|
||||
return m.FixedLocation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetPackageType() string {
|
||||
if m != nil {
|
||||
return m.PackageType
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Vulnerability_Detail) GetIsObsolete() bool {
|
||||
if m != nil {
|
||||
return m.IsObsolete
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Details of a vulnerability occurrence.
|
||||
type Details struct {
|
||||
// The type of package; whether native or non native(ruby gems, node.js
|
||||
// packages etc)
|
||||
Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
|
||||
// Output only. The note provider assigned Severity of the vulnerability.
|
||||
Severity Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1beta1.vulnerability.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,3,opt,name=cvss_score,json=cvssScore,proto3" json:"cvss_score,omitempty"`
|
||||
// The set of affected locations and their fixes (if available) within the
|
||||
// associated resource.
|
||||
PackageIssue []*PackageIssue `protobuf:"bytes,4,rep,name=package_issue,json=packageIssue,proto3" json:"package_issue,omitempty"`
|
||||
// Output only. A one sentence description of this vulnerability.
|
||||
ShortDescription string `protobuf:"bytes,5,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"`
|
||||
// Output only. A detailed description of this vulnerability.
|
||||
LongDescription string `protobuf:"bytes,6,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"`
|
||||
// Output only. URLs related to this vulnerability.
|
||||
RelatedUrls []*common.RelatedUrl `protobuf:"bytes,7,rep,name=related_urls,json=relatedUrls,proto3" json:"related_urls,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *Details) Reset() { *m = Details{} }
|
||||
func (m *Details) String() string { return proto.CompactTextString(m) }
|
||||
func (*Details) ProtoMessage() {}
|
||||
func (*Details) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_vulnerability_94d0ea806c1c7d02, []int{1}
|
||||
}
|
||||
func (m *Details) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_Details.Unmarshal(m, b)
|
||||
}
|
||||
func (m *Details) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_Details.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *Details) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_Details.Merge(dst, src)
|
||||
}
|
||||
func (m *Details) XXX_Size() int {
|
||||
return xxx_messageInfo_Details.Size(m)
|
||||
}
|
||||
func (m *Details) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_Details.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_Details proto.InternalMessageInfo
|
||||
|
||||
func (m *Details) GetType() string {
|
||||
if m != nil {
|
||||
return m.Type
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Details) GetSeverity() Severity {
|
||||
if m != nil {
|
||||
return m.Severity
|
||||
}
|
||||
return Severity_SEVERITY_UNSPECIFIED
|
||||
}
|
||||
|
||||
func (m *Details) GetCvssScore() float32 {
|
||||
if m != nil {
|
||||
return m.CvssScore
|
||||
}
|
||||
return 0
|
||||
}
|
||||
|
||||
func (m *Details) GetPackageIssue() []*PackageIssue {
|
||||
if m != nil {
|
||||
return m.PackageIssue
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Details) GetShortDescription() string {
|
||||
if m != nil {
|
||||
return m.ShortDescription
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Details) GetLongDescription() string {
|
||||
if m != nil {
|
||||
return m.LongDescription
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *Details) GetRelatedUrls() []*common.RelatedUrl {
|
||||
if m != nil {
|
||||
return m.RelatedUrls
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// This message wraps a location affected by a vulnerability and its
|
||||
// associated fix (if one is available).
|
||||
type PackageIssue struct {
|
||||
// The location of the vulnerability.
|
||||
AffectedLocation *VulnerabilityLocation `protobuf:"bytes,1,opt,name=affected_location,json=affectedLocation,proto3" json:"affected_location,omitempty"`
|
||||
// The location of the available fix for vulnerability.
|
||||
FixedLocation *VulnerabilityLocation `protobuf:"bytes,2,opt,name=fixed_location,json=fixedLocation,proto3" json:"fixed_location,omitempty"`
|
||||
// The severity (e.g., distro assigned severity) for this vulnerability.
|
||||
SeverityName string `protobuf:"bytes,3,opt,name=severity_name,json=severityName,proto3" json:"severity_name,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *PackageIssue) Reset() { *m = PackageIssue{} }
|
||||
func (m *PackageIssue) String() string { return proto.CompactTextString(m) }
|
||||
func (*PackageIssue) ProtoMessage() {}
|
||||
func (*PackageIssue) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_vulnerability_94d0ea806c1c7d02, []int{2}
|
||||
}
|
||||
func (m *PackageIssue) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_PackageIssue.Unmarshal(m, b)
|
||||
}
|
||||
func (m *PackageIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_PackageIssue.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *PackageIssue) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_PackageIssue.Merge(dst, src)
|
||||
}
|
||||
func (m *PackageIssue) XXX_Size() int {
|
||||
return xxx_messageInfo_PackageIssue.Size(m)
|
||||
}
|
||||
func (m *PackageIssue) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_PackageIssue.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_PackageIssue proto.InternalMessageInfo
|
||||
|
||||
func (m *PackageIssue) GetAffectedLocation() *VulnerabilityLocation {
|
||||
if m != nil {
|
||||
return m.AffectedLocation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PackageIssue) GetFixedLocation() *VulnerabilityLocation {
|
||||
if m != nil {
|
||||
return m.FixedLocation
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *PackageIssue) GetSeverityName() string {
|
||||
if m != nil {
|
||||
return m.SeverityName
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
// The location of the vulnerability.
|
||||
type VulnerabilityLocation struct {
|
||||
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
|
||||
// format. Examples include distro or storage location for vulnerable jar.
|
||||
CpeUri string `protobuf:"bytes,1,opt,name=cpe_uri,json=cpeUri,proto3" json:"cpe_uri,omitempty"`
|
||||
// The package being described.
|
||||
Package string `protobuf:"bytes,2,opt,name=package,proto3" json:"package,omitempty"`
|
||||
// The version of the package being described.
|
||||
Version *_package.Version `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"`
|
||||
XXX_NoUnkeyedLiteral struct{} `json:"-"`
|
||||
XXX_unrecognized []byte `json:"-"`
|
||||
XXX_sizecache int32 `json:"-"`
|
||||
}
|
||||
|
||||
func (m *VulnerabilityLocation) Reset() { *m = VulnerabilityLocation{} }
|
||||
func (m *VulnerabilityLocation) String() string { return proto.CompactTextString(m) }
|
||||
func (*VulnerabilityLocation) ProtoMessage() {}
|
||||
func (*VulnerabilityLocation) Descriptor() ([]byte, []int) {
|
||||
return fileDescriptor_vulnerability_94d0ea806c1c7d02, []int{3}
|
||||
}
|
||||
func (m *VulnerabilityLocation) XXX_Unmarshal(b []byte) error {
|
||||
return xxx_messageInfo_VulnerabilityLocation.Unmarshal(m, b)
|
||||
}
|
||||
func (m *VulnerabilityLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
|
||||
return xxx_messageInfo_VulnerabilityLocation.Marshal(b, m, deterministic)
|
||||
}
|
||||
func (dst *VulnerabilityLocation) XXX_Merge(src proto.Message) {
|
||||
xxx_messageInfo_VulnerabilityLocation.Merge(dst, src)
|
||||
}
|
||||
func (m *VulnerabilityLocation) XXX_Size() int {
|
||||
return xxx_messageInfo_VulnerabilityLocation.Size(m)
|
||||
}
|
||||
func (m *VulnerabilityLocation) XXX_DiscardUnknown() {
|
||||
xxx_messageInfo_VulnerabilityLocation.DiscardUnknown(m)
|
||||
}
|
||||
|
||||
var xxx_messageInfo_VulnerabilityLocation proto.InternalMessageInfo
|
||||
|
||||
func (m *VulnerabilityLocation) GetCpeUri() string {
|
||||
if m != nil {
|
||||
return m.CpeUri
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityLocation) GetPackage() string {
|
||||
if m != nil {
|
||||
return m.Package
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func (m *VulnerabilityLocation) GetVersion() *_package.Version {
|
||||
if m != nil {
|
||||
return m.Version
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterType((*Vulnerability)(nil), "grafeas.v1beta1.vulnerability.Vulnerability")
|
||||
proto.RegisterType((*Vulnerability_Detail)(nil), "grafeas.v1beta1.vulnerability.Vulnerability.Detail")
|
||||
proto.RegisterType((*Details)(nil), "grafeas.v1beta1.vulnerability.Details")
|
||||
proto.RegisterType((*PackageIssue)(nil), "grafeas.v1beta1.vulnerability.PackageIssue")
|
||||
proto.RegisterType((*VulnerabilityLocation)(nil), "grafeas.v1beta1.vulnerability.VulnerabilityLocation")
|
||||
proto.RegisterEnum("grafeas.v1beta1.vulnerability.Severity", Severity_name, Severity_value)
|
||||
}
|
||||
|
||||
func init() {
|
||||
proto.RegisterFile("google/devtools/containeranalysis/v1beta1/vulnerability/vulnerability.proto", fileDescriptor_vulnerability_94d0ea806c1c7d02)
|
||||
}
|
||||
|
||||
var fileDescriptor_vulnerability_94d0ea806c1c7d02 = []byte{
|
||||
// 727 bytes of a gzipped FileDescriptorProto
|
||||
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x55, 0xdd, 0x6e, 0xda, 0x48,
|
||||
0x14, 0x5e, 0x63, 0x82, 0xe1, 0x00, 0x59, 0x67, 0x94, 0xd5, 0x5a, 0x59, 0x45, 0xeb, 0x65, 0x2f,
|
||||
0x4a, 0x1b, 0xc9, 0x28, 0x49, 0xaf, 0x5a, 0xb5, 0x15, 0x05, 0x9a, 0x58, 0x85, 0x04, 0x99, 0x90,
|
||||
0xaa, 0xad, 0x54, 0x6b, 0x30, 0x83, 0x3b, 0xaa, 0xf1, 0x58, 0x1e, 0x83, 0xc2, 0x0b, 0xf4, 0x3a,
|
||||
0xcf, 0xd0, 0xd7, 0xe9, 0xa3, 0xf4, 0xb2, 0x2f, 0x50, 0x31, 0xb6, 0x11, 0x84, 0x2a, 0x3f, 0x6d,
|
||||
0xae, 0xec, 0xf3, 0xf9, 0x9c, 0x6f, 0xbe, 0x33, 0xe7, 0xf3, 0x0c, 0xbc, 0x76, 0x19, 0x73, 0x3d,
|
||||
0x52, 0x1b, 0x92, 0x69, 0xc4, 0x98, 0xc7, 0x6b, 0x0e, 0xf3, 0x23, 0x4c, 0x7d, 0x12, 0x62, 0x1f,
|
||||
0x7b, 0x33, 0x4e, 0x79, 0x6d, 0xba, 0x3f, 0x20, 0x11, 0xde, 0xaf, 0x4d, 0x27, 0xde, 0x1c, 0x1e,
|
||||
0x50, 0x8f, 0x46, 0xb3, 0xd5, 0xc8, 0x08, 0x42, 0x16, 0x31, 0xb4, 0xeb, 0x86, 0x78, 0x44, 0x30,
|
||||
0x37, 0x92, 0x12, 0x63, 0x25, 0x69, 0xe7, 0xd9, 0xed, 0xd7, 0x72, 0xd8, 0x78, 0xcc, 0xfc, 0xe4,
|
||||
0x11, 0xb3, 0xef, 0xbc, 0xb8, 0x7d, 0x79, 0x80, 0x9d, 0x4f, 0xd8, 0x25, 0xe9, 0x33, 0x26, 0xa8,
|
||||
0x5c, 0x6e, 0x40, 0xf9, 0x7c, 0x59, 0x11, 0xda, 0x05, 0x70, 0xa6, 0x9c, 0xdb, 0xdc, 0x61, 0x21,
|
||||
0xd1, 0x24, 0x5d, 0xaa, 0x66, 0xac, 0xc2, 0x1c, 0xe9, 0xcd, 0x01, 0xd4, 0x80, 0x3c, 0x27, 0x53,
|
||||
0x12, 0xd2, 0x68, 0xa6, 0x65, 0x74, 0xa9, 0xba, 0x79, 0xf0, 0xc0, 0xb8, 0xb6, 0x45, 0xa3, 0x97,
|
||||
0xa4, 0x5b, 0x8b, 0x42, 0xd4, 0x01, 0x65, 0x48, 0x22, 0x4c, 0x3d, 0xae, 0xc9, 0xba, 0x5c, 0x2d,
|
||||
0x1e, 0x1c, 0xde, 0xc0, 0xb1, 0x22, 0xd1, 0x68, 0x8a, 0x5a, 0x2b, 0xe5, 0xd8, 0xf9, 0x2a, 0x43,
|
||||
0x2e, 0xc6, 0xd0, 0xdf, 0xa0, 0x38, 0x01, 0xb1, 0x27, 0x21, 0x15, 0xd2, 0x0b, 0x56, 0xce, 0x09,
|
||||
0x48, 0x3f, 0xa4, 0x48, 0x03, 0x25, 0xe9, 0x5c, 0xc8, 0x2e, 0x58, 0x69, 0x88, 0x2c, 0xd8, 0x1e,
|
||||
0x53, 0xdf, 0xc6, 0xa3, 0x11, 0x71, 0x22, 0x32, 0xb4, 0xa7, 0x24, 0xe4, 0x94, 0xf9, 0x9a, 0xac,
|
||||
0x4b, 0xd5, 0xe2, 0x81, 0xbe, 0xa6, 0x2c, 0xdd, 0xc0, 0xf3, 0x38, 0xcf, 0x42, 0x63, 0xea, 0xd7,
|
||||
0x93, 0xe2, 0x04, 0x13, 0x9c, 0xf8, 0x62, 0x9d, 0x33, 0x7b, 0x6b, 0x4e, 0x7c, 0x71, 0x95, 0xf3,
|
||||
0x7f, 0x28, 0xa7, 0x1b, 0x68, 0xfb, 0x78, 0x4c, 0xb4, 0x0d, 0xd1, 0x47, 0x29, 0x05, 0x4f, 0xf0,
|
||||
0x98, 0x20, 0x1d, 0x8a, 0x43, 0xc2, 0x9d, 0x90, 0x06, 0xd1, 0x7c, 0xbd, 0x9c, 0x48, 0x59, 0x86,
|
||||
0xd0, 0x7b, 0xd8, 0x1c, 0xd1, 0x0b, 0x32, 0xb4, 0x3d, 0xe6, 0x60, 0x91, 0xa4, 0x08, 0x51, 0x8f,
|
||||
0xef, 0x32, 0x82, 0x76, 0x52, 0x6b, 0x95, 0x05, 0x57, 0x1a, 0xa2, 0xff, 0xa0, 0x94, 0xb4, 0x62,
|
||||
0x47, 0xb3, 0x80, 0x68, 0xf9, 0x78, 0xfd, 0x04, 0x3b, 0x9b, 0x05, 0x04, 0xfd, 0x0b, 0x45, 0xca,
|
||||
0x6d, 0x36, 0xe0, 0xcc, 0x23, 0x11, 0xd1, 0x0a, 0xba, 0x54, 0xcd, 0x5b, 0x40, 0xf9, 0x69, 0x82,
|
||||
0x54, 0xbe, 0x65, 0x40, 0x89, 0xa7, 0xc9, 0x11, 0x82, 0xac, 0xe0, 0x89, 0x67, 0x29, 0xde, 0xef,
|
||||
0xc7, 0x81, 0xab, 0x2e, 0x97, 0xaf, 0xba, 0xbc, 0x0b, 0xe5, 0xb4, 0x0f, 0xca, 0xf9, 0x84, 0x68,
|
||||
0x59, 0x61, 0xd3, 0xbd, 0x1b, 0x16, 0xea, 0xc6, 0x35, 0xe6, 0xbc, 0xc4, 0x4a, 0x77, 0x42, 0x44,
|
||||
0x68, 0x0f, 0xb6, 0xf8, 0x47, 0x16, 0x46, 0xf6, 0xf2, 0x78, 0xe2, 0x09, 0xaa, 0xe2, 0x43, 0x73,
|
||||
0x69, 0x46, 0x0f, 0x41, 0xf5, 0x98, 0xef, 0xda, 0xeb, 0xa3, 0xfc, 0x73, 0x8e, 0x2f, 0xa7, 0x3e,
|
||||
0x87, 0x52, 0x48, 0x3c, 0x3c, 0x37, 0xd9, 0x24, 0xf4, 0xb8, 0xa6, 0x08, 0xa1, 0xff, 0xac, 0x09,
|
||||
0xb5, 0xe2, 0xa4, 0x7e, 0xe8, 0x59, 0xc5, 0x70, 0xf1, 0xce, 0x2b, 0xdf, 0x25, 0x28, 0x2d, 0xcb,
|
||||
0x46, 0x18, 0xb6, 0x16, 0xb6, 0x5d, 0x58, 0x44, 0xfa, 0x0d, 0x8b, 0xa8, 0x29, 0xdd, 0xc2, 0x25,
|
||||
0xeb, 0x16, 0xcc, 0xdc, 0x9f, 0x05, 0xd7, 0x7e, 0x13, 0x79, 0xfd, 0x37, 0xa9, 0x7c, 0x96, 0xe0,
|
||||
0xaf, 0x9f, 0xb2, 0xfd, 0xca, 0x01, 0xf2, 0x04, 0x94, 0xbb, 0x9e, 0x19, 0x69, 0xc1, 0xa3, 0x0f,
|
||||
0x90, 0x4f, 0xdd, 0x89, 0x34, 0xd8, 0xee, 0xb5, 0xce, 0x5b, 0x96, 0x79, 0xf6, 0xd6, 0xee, 0x9f,
|
||||
0xf4, 0xba, 0xad, 0x86, 0xf9, 0xca, 0x6c, 0x35, 0xd5, 0x3f, 0x50, 0x11, 0x94, 0x8e, 0x79, 0x62,
|
||||
0x76, 0xea, 0x6d, 0x55, 0x42, 0x0a, 0xc8, 0xed, 0xd3, 0x37, 0x6a, 0x06, 0x01, 0xe4, 0x3a, 0xad,
|
||||
0xa6, 0xd9, 0xef, 0xa8, 0x32, 0xca, 0x43, 0xf6, 0xd8, 0x3c, 0x3a, 0x56, 0xb3, 0xa8, 0x04, 0xf9,
|
||||
0x86, 0x65, 0x9e, 0x99, 0x8d, 0x7a, 0x5b, 0xdd, 0x78, 0x79, 0x29, 0x81, 0x4e, 0xd9, 0xf5, 0xfb,
|
||||
0xda, 0x95, 0xde, 0x0d, 0xe3, 0x7b, 0xc4, 0x70, 0x99, 0x87, 0x7d, 0xd7, 0x60, 0xa1, 0x5b, 0x73,
|
||||
0x89, 0x2f, 0xae, 0x88, 0x5a, 0xfc, 0x09, 0x07, 0x94, 0xdf, 0xf9, 0x46, 0x7c, 0xba, 0x12, 0x7d,
|
||||
0xc9, 0xc8, 0x47, 0x56, 0x7d, 0x90, 0x13, 0xb4, 0x87, 0x3f, 0x02, 0x00, 0x00, 0xff, 0xff, 0xfd,
|
||||
0xfb, 0x4c, 0x27, 0x67, 0x07, 0x00, 0x00,
|
||||
}
|
Reference in New Issue
Block a user