1// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: grafeas/v1/common.proto
3
4package grafeas
5
6import (
7	fmt "fmt"
8	math "math"
9
10	proto "github.com/golang/protobuf/proto"
11)
12
13// Reference imports to suppress errors if they are not otherwise used.
14var _ = proto.Marshal
15var _ = fmt.Errorf
16var _ = math.Inf
17
18// This is a compile-time assertion to ensure that this generated file
19// is compatible with the proto package it is being compiled against.
20// A compilation error at this line likely means your copy of the
21// proto package needs to be updated.
22const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
23
24// Kind represents the kinds of notes supported.
25type NoteKind int32
26
27const (
28	// Unknown.
29	NoteKind_NOTE_KIND_UNSPECIFIED NoteKind = 0
30	// The note and occurrence represent a package vulnerability.
31	NoteKind_VULNERABILITY NoteKind = 1
32	// The note and occurrence assert build provenance.
33	NoteKind_BUILD NoteKind = 2
34	// This represents an image basis relationship.
35	NoteKind_IMAGE NoteKind = 3
36	// This represents a package installed via a package manager.
37	NoteKind_PACKAGE NoteKind = 4
38	// The note and occurrence track deployment events.
39	NoteKind_DEPLOYMENT NoteKind = 5
40	// The note and occurrence track the initial discovery status of a resource.
41	NoteKind_DISCOVERY NoteKind = 6
42	// This represents a logical "role" that can attest to artifacts.
43	NoteKind_ATTESTATION NoteKind = 7
44)
45
46var NoteKind_name = map[int32]string{
47	0: "NOTE_KIND_UNSPECIFIED",
48	1: "VULNERABILITY",
49	2: "BUILD",
50	3: "IMAGE",
51	4: "PACKAGE",
52	5: "DEPLOYMENT",
53	6: "DISCOVERY",
54	7: "ATTESTATION",
55}
56
57var NoteKind_value = map[string]int32{
58	"NOTE_KIND_UNSPECIFIED": 0,
59	"VULNERABILITY":         1,
60	"BUILD":                 2,
61	"IMAGE":                 3,
62	"PACKAGE":               4,
63	"DEPLOYMENT":            5,
64	"DISCOVERY":             6,
65	"ATTESTATION":           7,
66}
67
68func (x NoteKind) String() string {
69	return proto.EnumName(NoteKind_name, int32(x))
70}
71
72func (NoteKind) EnumDescriptor() ([]byte, []int) {
73	return fileDescriptor_5eb785a4ec53d49e, []int{0}
74}
75
76// Metadata for any related URL information.
77type RelatedUrl struct {
78	// Specific URL associated with the resource.
79	Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
80	// Label to describe usage of the URL.
81	Label                string   `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty"`
82	XXX_NoUnkeyedLiteral struct{} `json:"-"`
83	XXX_unrecognized     []byte   `json:"-"`
84	XXX_sizecache        int32    `json:"-"`
85}
86
87func (m *RelatedUrl) Reset()         { *m = RelatedUrl{} }
88func (m *RelatedUrl) String() string { return proto.CompactTextString(m) }
89func (*RelatedUrl) ProtoMessage()    {}
90func (*RelatedUrl) Descriptor() ([]byte, []int) {
91	return fileDescriptor_5eb785a4ec53d49e, []int{0}
92}
93
94func (m *RelatedUrl) XXX_Unmarshal(b []byte) error {
95	return xxx_messageInfo_RelatedUrl.Unmarshal(m, b)
96}
97func (m *RelatedUrl) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
98	return xxx_messageInfo_RelatedUrl.Marshal(b, m, deterministic)
99}
100func (m *RelatedUrl) XXX_Merge(src proto.Message) {
101	xxx_messageInfo_RelatedUrl.Merge(m, src)
102}
103func (m *RelatedUrl) XXX_Size() int {
104	return xxx_messageInfo_RelatedUrl.Size(m)
105}
106func (m *RelatedUrl) XXX_DiscardUnknown() {
107	xxx_messageInfo_RelatedUrl.DiscardUnknown(m)
108}
109
110var xxx_messageInfo_RelatedUrl proto.InternalMessageInfo
111
112func (m *RelatedUrl) GetUrl() string {
113	if m != nil {
114		return m.Url
115	}
116	return ""
117}
118
119func (m *RelatedUrl) GetLabel() string {
120	if m != nil {
121		return m.Label
122	}
123	return ""
124}
125
126// Verifiers (e.g. Kritis implementations) MUST verify signatures
127// with respect to the trust anchors defined in policy (e.g. a Kritis policy).
128// Typically this means that the verifier has been configured with a map from
129// `public_key_id` to public key material (and any required parameters, e.g.
130// signing algorithm).
131//
132// In particular, verification implementations MUST NOT treat the signature
133// `public_key_id` as anything more than a key lookup hint. The `public_key_id`
134// DOES NOT validate or authenticate a public key; it only provides a mechanism
135// for quickly selecting a public key ALREADY CONFIGURED on the verifier through
136// a trusted channel. Verification implementations MUST reject signatures in any
137// of the following circumstances:
138//   * The `public_key_id` is not recognized by the verifier.
139//   * The public key that `public_key_id` refers to does not verify the
140//     signature with respect to the payload.
141//
142// The `signature` contents SHOULD NOT be "attached" (where the payload is
143// included with the serialized `signature` bytes). Verifiers MUST ignore any
144// "attached" payload and only verify signatures with respect to explicitly
145// provided payload (e.g. a `payload` field on the proto message that holds
146// this Signature, or the canonical serialization of the proto message that
147// holds this signature).
148type Signature struct {
149	// The content of the signature, an opaque bytestring.
150	// The payload that this signature verifies MUST be unambiguously provided
151	// with the Signature during verification. A wrapper message might provide
152	// the payload explicitly. Alternatively, a message might have a canonical
153	// serialization that can always be unambiguously computed to derive the
154	// payload.
155	Signature []byte `protobuf:"bytes,1,opt,name=signature,proto3" json:"signature,omitempty"`
156	// The identifier for the public key that verifies this signature.
157	//   * The `public_key_id` is required.
158	//   * The `public_key_id` MUST be an RFC3986 conformant URI.
159	//   * When possible, the `public_key_id` SHOULD be an immutable reference,
160	//     such as a cryptographic digest.
161	//
162	// Examples of valid `public_key_id`s:
163	//
164	// OpenPGP V4 public key fingerprint:
165	//   * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA"
166	// See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more
167	// details on this scheme.
168	//
169	// RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER
170	// serialization):
171	//   * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU"
172	//   * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5"
173	PublicKeyId          string   `protobuf:"bytes,2,opt,name=public_key_id,json=publicKeyId,proto3" json:"public_key_id,omitempty"`
174	XXX_NoUnkeyedLiteral struct{} `json:"-"`
175	XXX_unrecognized     []byte   `json:"-"`
176	XXX_sizecache        int32    `json:"-"`
177}
178
179func (m *Signature) Reset()         { *m = Signature{} }
180func (m *Signature) String() string { return proto.CompactTextString(m) }
181func (*Signature) ProtoMessage()    {}
182func (*Signature) Descriptor() ([]byte, []int) {
183	return fileDescriptor_5eb785a4ec53d49e, []int{1}
184}
185
186func (m *Signature) XXX_Unmarshal(b []byte) error {
187	return xxx_messageInfo_Signature.Unmarshal(m, b)
188}
189func (m *Signature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
190	return xxx_messageInfo_Signature.Marshal(b, m, deterministic)
191}
192func (m *Signature) XXX_Merge(src proto.Message) {
193	xxx_messageInfo_Signature.Merge(m, src)
194}
195func (m *Signature) XXX_Size() int {
196	return xxx_messageInfo_Signature.Size(m)
197}
198func (m *Signature) XXX_DiscardUnknown() {
199	xxx_messageInfo_Signature.DiscardUnknown(m)
200}
201
202var xxx_messageInfo_Signature proto.InternalMessageInfo
203
204func (m *Signature) GetSignature() []byte {
205	if m != nil {
206		return m.Signature
207	}
208	return nil
209}
210
211func (m *Signature) GetPublicKeyId() string {
212	if m != nil {
213		return m.PublicKeyId
214	}
215	return ""
216}
217
218func init() {
219	proto.RegisterEnum("grafeas.v1.NoteKind", NoteKind_name, NoteKind_value)
220	proto.RegisterType((*RelatedUrl)(nil), "grafeas.v1.RelatedUrl")
221	proto.RegisterType((*Signature)(nil), "grafeas.v1.Signature")
222}
223
224func init() { proto.RegisterFile("grafeas/v1/common.proto", fileDescriptor_5eb785a4ec53d49e) }
225
226var fileDescriptor_5eb785a4ec53d49e = []byte{
227	// 335 bytes of a gzipped FileDescriptorProto
228	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x90, 0xcf, 0x4e, 0xea, 0x40,
229	0x18, 0xc5, 0x6f, 0xe1, 0x02, 0xb7, 0x1f, 0xb7, 0x3a, 0x4e, 0x34, 0x62, 0xe2, 0xc2, 0xb0, 0x32,
230	0x2e, 0xda, 0x10, 0x5d, 0x98, 0xb8, 0x2a, 0x74, 0x24, 0x93, 0x96, 0xb6, 0xf6, 0x0f, 0x09, 0x6e,
231	0x9a, 0x42, 0xc7, 0x49, 0xe3, 0xd0, 0x21, 0xa5, 0x90, 0xf0, 0x0c, 0xbe, 0x85, 0x4f, 0x6a, 0x28,
232	0x18, 0x76, 0xe7, 0xfc, 0xce, 0xcc, 0xb7, 0xf8, 0xc1, 0x35, 0x2f, 0xd3, 0x0f, 0x96, 0xae, 0x8d,
233	0xed, 0xc0, 0x58, 0xc8, 0xe5, 0x52, 0x16, 0xfa, 0xaa, 0x94, 0x95, 0xc4, 0x70, 0x1c, 0xf4, 0xed,
234	0xa0, 0xff, 0x04, 0x10, 0x30, 0x91, 0x56, 0x2c, 0x8b, 0x4b, 0x81, 0x11, 0x34, 0x37, 0xa5, 0xe8,
235	0x29, 0x77, 0xca, 0xbd, 0x1a, 0xec, 0x23, 0xbe, 0x84, 0x96, 0x48, 0xe7, 0x4c, 0xf4, 0x1a, 0x35,
236	0x3b, 0x94, 0xfe, 0x04, 0xd4, 0x30, 0xe7, 0x45, 0x5a, 0x6d, 0x4a, 0x86, 0x6f, 0x41, 0x5d, 0xff,
237	0x96, 0xfa, 0xeb, 0xff, 0xe0, 0x04, 0x70, 0x1f, 0xb4, 0xd5, 0x66, 0x2e, 0xf2, 0x45, 0xf2, 0xc9,
238	0x76, 0x49, 0x9e, 0x1d, 0x0f, 0x75, 0x0f, 0xd0, 0x66, 0x3b, 0x9a, 0x3d, 0x7c, 0x29, 0xf0, 0xcf,
239	0x95, 0x15, 0xb3, 0xf3, 0x22, 0xc3, 0x37, 0x70, 0xe5, 0x7a, 0x11, 0x49, 0x6c, 0xea, 0x5a, 0x49,
240	0xec, 0x86, 0x3e, 0x19, 0xd1, 0x57, 0x4a, 0x2c, 0xf4, 0x07, 0x5f, 0x80, 0x36, 0x8d, 0x1d, 0x97,
241	0x04, 0xe6, 0x90, 0x3a, 0x34, 0x9a, 0x21, 0x05, 0xab, 0xd0, 0x1a, 0xc6, 0xd4, 0xb1, 0x50, 0x63,
242	0x1f, 0xe9, 0xc4, 0x1c, 0x13, 0xd4, 0xc4, 0x5d, 0xe8, 0xf8, 0xe6, 0xc8, 0xde, 0x97, 0xbf, 0xf8,
243	0x0c, 0xc0, 0x22, 0xbe, 0xe3, 0xcd, 0x26, 0xc4, 0x8d, 0x50, 0x0b, 0x6b, 0xa0, 0x5a, 0x34, 0x1c,
244	0x79, 0x53, 0x12, 0xcc, 0x50, 0x1b, 0x9f, 0x43, 0xd7, 0x8c, 0x22, 0x12, 0x46, 0x66, 0x44, 0x3d,
245	0x17, 0x75, 0x86, 0x6f, 0xa0, 0xe5, 0x52, 0x3f, 0x39, 0xf2, 0x95, 0xf7, 0x67, 0x2e, 0x25, 0x17,
246	0x4c, 0xe7, 0x52, 0xa4, 0x05, 0xd7, 0x65, 0xc9, 0x0d, 0xce, 0x8a, 0xda, 0xa6, 0x71, 0x98, 0xd2,
247	0x55, 0xbe, 0x36, 0x4e, 0xc2, 0x5f, 0x8e, 0xf1, 0xbb, 0xd1, 0x1c, 0x07, 0xe6, 0xbc, 0x5d, 0x3f,
248	0x7d, 0xfc, 0x09, 0x00, 0x00, 0xff, 0xff, 0x98, 0x52, 0x07, 0xe2, 0x93, 0x01, 0x00, 0x00,
249}
250